Releases: rexlabsio/smokescreen-php
Releases · rexlabsio/smokescreen-php
2.5.0 - PHP 8.4 Compatibility
2.4.0 - Allow include methods to be callable
2.3.0
What's Changed
- Support PHP 8.3 by @colemanator in #23
New Contributors
- @colemanator made their first contribution in #23
Full Changelog: 2.2.0...2.3.0
2.2.0 - PHP 7.4 - 8.3 support and relation bug fix
General Changes
- Official support for PHP 7.4-8.3 with pipeline to test
Fixes
- Fixes an issue with parsing relation: marker where
relation:users,otherwould be parsed as['user', 'other]with
thescharacter being dropped off the first word
Breaking Changes
- Drop support for anything outside php 7.4-8.3
2.0.0 - Improvements to serialization and transformation process (BC)
This is a major release due to a breaking changes in both the RelationLoaderInterface and SerializerInterface classes.
It also contains a major refactor of the transformation process.
Breaking Changes
- The RelationLoaderInterface
load()method now requires a second argument (array), which is a list of relationship keys to be loaded. The first argument is now the original ResourceInterface object that the relationships should be loaded off of. - The SerializerInterface class requires implementing
nullItem()andnullCollection()methods. - The DefaultSerializer class has been updated to implement these methods (returns null and [] respectively).
Fixes / Changes
- Refactored the transformation and serialization process into a pipeline which composes Scope objects, this better encapsulates the transformation process and makes extending and reasoning about includes and relationships much easier
- Include methods will now be given a second argument of the Scope object that it is running within. This enables those methods to examine the Scope.
- Fix a regression in handling non-resource entities (such as those that may be returned from an include).
- Ensure toArray() always returns an array.
1.1.0 - Feature release
Release updates
- New Feature: Declarative properties
- New Feature: Auto-wiring of includes
- Change: Transformer Resolution
- Minor bug fixes
1.0.1 - Minor code cleanup
Minor fixes / improvements
- Fixed some annotations
- Improved code style
- Moved json encoding to helper
1.0.0 - Initial stable release
This is the first stable release of the Smokescreen PHP library.
See README.md for more information about this package.