Releases: thephpleague/fractal
Releases · thephpleague/fractal
0.21.0
What's Changed
- Don't allow JsonApiSerilizer to include empty attributes on serialization by @racastellanosm in #578
- Unset scopes from transformers after transforming to avoid memory leak by @KorvinSzanto in #582
- Switch to php-cs-fixer and PER-CS by @KorvinSzanto in #581
Backwards incompatible changes
- Current scope now gets cleared after transformation completes. If you're rely on
->getCurrentScope()after transformation completes, you'll need to update your transformer to capture the value during transformation. See #582
New Contributors
- @racastellanosm made their first contribution in #578
Full Changelog: 0.20.2...0.21
0.20.2
What's Changed
- Fix deprecated errors in tests by @KorvinSzanto in #575
- Add Laminas paginator adapter by @KorvinSzanto in #575
Full Changelog: 0.20.1...0.20.2
0.20.1
What's Changed
- Update supported versions in the readme by @jdreesen in #546
- Fix supported version in the readme by @jdreesen in #547
- Move stale config to the correct location by @Nyholm in #548
- Add static analysis by @matthewtrask in #549
- allow for null values to be passed to Scope by @matthewtrask in #553
- Explicitly default TransformerAbstract::currentScope to null since it's not defined in the constructor by @Plastonick in #552
New Contributors
- @jdreesen made their first contribution in #546
- @Plastonick made their first contribution in #552
Full Changelog: 0.20...0.20.1
0.20.0
This release moves Fractal up to modern PHP.
We have dropped support for 5.x with this release. Fractal now supports PHP 7.4 as the lowest PHP version. Should you need to keep using Fractal with PHP 5.x, please use 0.19.2 or lower. We will continue to patch security fixes for 0.19 but all new features and changes will be in the 0.20 release and more going forward. We will aim for a 1.0 release this summer targeting 8.x
What's Changed
- Update branch alias to reflect current status by @KorvinSzanto in #516
- Move to Github Actions by @JustSteveKing in #517
- Test against php 8.0 by @sergiy-petrov in #520
- clean up php code sniffer violations and update composer.json to 7.0 by @matthewtrask in #534
- jsonSerialize fix php8 interface compatibility by @madagon in #527
- Add support for PHP 8.1 by @annuh in #528
- Make sure CI is green by @Nyholm in #535
- Run tests on PHP 8.1 by @Nyholm in #536
- Clean up CI by @Nyholm in #537
- Added .editorconfig by @Nyholm in #538
- Adding phpstan and psalm by @Nyholm in #539
- Fix issues with PHPStan and Psalm by @Nyholm in #540
- Support for PHP 81 by @Nyholm in #542
- Add ResourceInterface::getMeta() by @Nyholm in #541
- Added baseline for static analyzers by @Nyholm in #543
- Added PHP 7.4 types by @Nyholm in #544
- Add stale bot by @Nyholm in #545
New Contributors
- @JustSteveKing made their first contribution in #517
- @sergiy-petrov made their first contribution in #520
- @madagon made their first contribution in #527
- @annuh made their first contribution in #528
- @Nyholm made their first contribution in #535
Full Changelog: 0.19.2...0.20
0.19.2
- Support PHP 5.4 and 5.5 and 5.6 - #502 - thanks @KorvinSzanto
0.19.1
- Allow sub relations with modifier #490 - thanks @onursimsek - docs
- Update TravisCI to allow failures on PHP 5.4 and 5.5 - thanks @matthewtrask
0.19
- Allow sub relations with modifier #490 - thanks @onursimsek - docs
- Update TravisCI to allow failures on PHP 5.4 and 5.5 - thanks @matthewtrask
0.18.0
Enhancements
- Allow PHPUnit 7+ where available - Thanks @ramsey
- Changed the paginator to not call
$paginator->getPaginate()inPhalconFrameworkPaginatorAdapterconstructor - Thanks @niden - Output an object for
attributeswhen none are provided instead of an array inJsonApiSerializer- Thanks @BastianHofmann - Include
metakey for relationships inJsonApiSerializer- Thanks @rawaludin - Allow
selflink to override defaults inJsonApiSerializer- Thanks @biggator - Preserve numeric keys when converting
Scopes to arrays by using array union instead of array_merge - Thanks @andrewtweber - Output an object for
linkswhen none are provided instead of an array inArraySerializerpagination - Thanks @basavind - Allow arrays for field lists in
$fractal->parseFieldsets()- Thanks @Flugger - Add links for all available includes to JsonApiSerializer - Thanks @matt-allan