Skip to content

Releases: daycry/twig

v3.2.0

07 May 22:29

Choose a tag to compare

v3.1.1

22 Sep 12:49

Choose a tag to compare

Full Changelog: v3.1.0...v3.1.1

v3.1.0

19 Sep 10:40

Choose a tag to compare

[3.1.0] - 2025-09-19

Added

  • Automatic discovery snapshot + preload + APCu acceleration in full profile (no manual flags needed).
  • Lean Mode capability profile with nullable overrides (enableDiscoverySnapshot, enableWarmupSummary, enableInvalidationHistory, enableDynamicMetrics, enableExtendedDiagnostics).
  • Autodetected cache backend (CI cache service preferred, filesystem fallback) with automatic prefix derivation.
  • Expanded diagnostics: render timing, discovery cache source, warmup summary, invalidation history (gated by capabilities).

Changed

  • Configuration surface simplified: discovery micro-tuning flags removed from docs; behavior is profile-driven.
  • Snapshot persistence: always on in full profile; opt-in via override in Lean Mode.
  • Fingerprint strategy depth fixed (previous configurable depth removed).

Removed

  • Legacy documentation of tuning flags and deprecated cache backend keys (docs now show only current configuration model).

Guidance

Use leanMode = false for maximum automatic acceleration & observability. Use leanMode = true for minimal overhead, optionally re‑enabling specific capabilities with the nullable overrides.

v3.0.2

19 Sep 07:33

Choose a tag to compare

Full Changelog: v3.0.0...v3.0.2

v3.0.1

18 Sep 17:30

Choose a tag to compare

Full Changelog: v3.0.0...v3.0.1

v3.0.0

18 Sep 14:29

Choose a tag to compare

[3.0.0] - 2025-09-18

Added

  • Modular services: TemplateDiscovery, TemplateCacheManager, DynamicRegistry, TemplateInvalidator.
  • Documentation: Added docs/SERVICES.md detailed architecture & advanced usage guide.
  • Batch & namespace invalidation APIs: invalidateTemplates(), invalidateNamespace() + CLI twig:invalidate:batch.
  • Unregister APIs: unregisterFunction(), unregisterFilter(), unregisterExtension().
  • Runtime cache toggle: disableCache(), enableCache(), isCacheEnabled().
  • Namespace auto-escape mapping: setAutoescapeForNamespace(), removeAutoescapeForNamespace().
  • Persistent compile index & listing: listTemplates() with status and compile-index.json storage.
  • CLI utilities: twig:list, twig:stats.
  • Pattern & namespace filtering in listTemplates().

Changed

  • Internal monolithic Twig class refactored into facade delegating to new services.
  • Batch invalidation optimized to single directory traversal.
  • Logging standardized to event=twig.* key=value format using global log_message().
  • README expanded for new runtime, listing & invalidation features.

Removed

  • Internal PSR-3 logger property & setLogger() method (replaced by helper logging).
  • Direct access to internal compiled template arrays (now encapsulated in services).

v1.3.7

15 Oct 14:39

Choose a tag to compare

Full Changelog: v1.3.6...v1.3.7

v1.3.6

15 Oct 12:06
f936789

Choose a tag to compare

What's Changed

  • Update rector/rector requirement from 1.1.0 to 1.2.6 by @dependabot in #68
  • Update rector/rector requirement from 1.2.6 to 1.2.7 by @dependabot in #69

Full Changelog: v1.3.5...v1.3.6

v1.3.5

02 Oct 15:40
14afddf

Choose a tag to compare

What's Changed

  • Fixed issue where clicking View in Toolbar didn't display View name by @k4zuki02h4t4 in #66
  • Update rector/rector requirement from 1.0.5 to 1.1.0 by @dependabot in #65

New Contributors

Full Changelog: v1.3.4...v1.3.5

v1.3.4

31 May 08:50

Choose a tag to compare

Full Changelog: v1.3.3...v1.3.4