Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
Nothing yet.

## [1.0.1] - 2026-07-29

### Fixed

- `Singleton` returns to the ecosystem-standard storage shape:
`protected static $instance`, stored by `get_instance()` once the constructor
returns. The class-string-keyed private map introduced for 1.0.0 broke a real
consumer contract — a heavy constructor assigning `static::$instance = $this;`
first so work done during construction can re-enter `get_instance()`. That
early-assignment guard is now the documented, tested pattern. Trade-off, also
documented on the trait: a class using the trait and its subclasses share one
storage slot, so do not call `get_instance()` on a subclass of a singleton.
first so work done during construction can re-enter `get_instance()`, which
Comment on lines 16 to +20
fataled theme-elementary on 1.0.0 with "Access to undeclared static property".
Comment on lines +20 to +21
That early-assignment guard is now the documented, tested pattern. Trade-off,
also documented on the trait: a class using the trait and its subclasses share
one storage slot, so do not call `get_instance()` on a subclass of a singleton.

## [1.0.0] - 2026-07-28

Expand Down Expand Up @@ -60,5 +65,6 @@ Initial release. Requires PHP 8.2+.
- Reference documentation under `docs/`, a GPL-2.0-or-later `LICENSE.md`, and a
WordPress integration test suite running against `@wordpress/env`.

[Unreleased]: https://github.com/rtCamp/wp-framework/compare/v1.0.0...HEAD
[Unreleased]: https://github.com/rtCamp/wp-framework/compare/v1.0.1...HEAD
[1.0.1]: https://github.com/rtCamp/wp-framework/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/rtCamp/wp-framework/releases/tag/v1.0.0
Loading