Skip to content

Version 1.1.0

Choose a tag to compare

@Taujor Taujor released this 05 Nov 23:08
· 2 commits to main since this release
eb9b806

Overview

This release represents a significant improvement in flexibility, performance, and maintainability across the project.
Major enhancements include a redesigned build system with caching, comprehensive hook support for both Buildable and Renderable components, and improved developer tooling through better documentation and IntelliSense support.


New Features

Hook System Enhancements

  • Implemented Buildable hooks: _beforeBuild, _afterBuild, and related hook points for greater extensibility.
  • Added Renderable hooks: _beforeRender, _afterRender, and _beforeInvoke methods, allowing components to modify or react to render flow.
  • Hook Context Access: Hooks now have access to component properties and additional contextual data for more advanced use cases.
  • Improved IntelliSense Support: Enhanced type hinting and docblocks to improve IDE autocompletion for hooks and contracts.

Configurable Builds

  • Custom placeholder delimiters can now be defined for template rendering, allowing developers to use non-standard placeholder formats.

Caching System

  • Introduced Disk Caching to speed up incremental and repeated builds.
  • Improved cold build performance and caching efficiency.
  • Proxy cache location is now configurable for flexibility across environments.

Utilities and Core Improvements

Locate Utility

  • Added root override support for better control over file resolution.
  • Documentation updated with clear usage examples.

Container Utility

  • Comprehensive new documentation explaining dependency resolution and container usage.

Build System

  • Refactored and cleaned up Buildable and Locate components for clarity and maintainability.
  • Incremental build logic improved for faster rebuilds.
  • Removed newline injection in the default renderer for cleaner HTML output.

Deprecated and Removed

  • Removed the Minify Utility: Static file minification has been deprecated.
    Rationale: Gzip and Brotli compression are more efficient and should be handled at the server level.
    • Removed minify references from Buildable.
    • Removed minify calls from compile() methods and related documentation.

Documentation Updates

  • Expanded documentation for:
    • Contracts: detailed explanation of Buildable and Renderable interfaces.
    • Utilities\Container and Utilities\Locate.
    • Hook usage, lifecycle examples, and custom placeholder configuration.
  • Corrected several typos and improved code examples for clarity.
  • Added full docblocks across all hook methods to improve IDE awareness.

Performance and Reliability

  • Thread-safe writes ensure no corruption while building.
  • Incremental builds now properly detect and rebuild only modified files.
  • Improved cold builds for initial site generation speed.

Internal Improvements

  • Codebase cleanup for consistency and readability.
  • Improved internal comments and docblocks.
  • Created skeleton repository to serve as a template repo for phpssg based projects

Summary

Category Description
Hooks Full lifecycle hook system for Buildable and Renderable
Caching Atomic disk cache with thread-safe writes
Performance Faster cold and incremental builds
Docs Expanded coverage, improved IntelliSense
Removed Minify utility (replaced by server-level compression)
Utilities Enhanced Locate and Container classes