Skip to content
8b9d39b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.20...0.20.1

419b0cb
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: 0.19.2...0.20

06dc15f
Compare
Choose a tag to compare
141c97e
Compare
Choose a tag to compare
d409754
Compare
Choose a tag to compare
4e553da
Compare
Choose a tag to compare

Enhancements

  • Allow PHPUnit 7+ where available - Thanks @ramsey
  • Changed the paginator to not call $paginator->getPaginate() in PhalconFrameworkPaginatorAdapter constructor - Thanks @niden
  • Output an object for attributes when none are provided instead of an array in JsonApiSerializer - Thanks @BastianHofmann
  • Include meta key for relationships in JsonApiSerializer - Thanks @rawaludin
  • Allow self link to override defaults in JsonApiSerializer - Thanks @biggator
  • Preserve numeric keys when converting Scopes to arrays by using array union instead of array_merge - Thanks @andrewtweber
  • Output an object for links when none are provided instead of an array in ArraySerializer pagination - Thanks @basavind
  • Allow arrays for field lists in $fractal->parseFieldsets() - Thanks @Flugger
  • Add links for all available includes to JsonApiSerializer - Thanks @matt-allan
Compare
Choose a tag to compare
  • Add ScopeFactoryInterface and ScopeFactory
  • Add $options parameter to toJson
  • Added Serializer interface to SerializerAbstract
  • Add Primitive resource type, allows to use primitives
  • optimized primitive transformation when transformer is not given
Compare
Choose a tag to compare

Enhancements:

  • #358 Allow the ability to define meta on each object in collection
  • #362 Add DoctrinePaginatorAdapter to interface with Doctrine pagination
  • Implement sparse fieldset
Compare
Choose a tag to compare
  • Custom links in serializer
  • PhalconPHP Paginator
  • tested on 7.1
Compare
Choose a tag to compare

Added

  • null() method for serializing null resource.
  • Adds pagination to JsonApiSerializer
  • Added JSON-API serializer collection links

Enhancements

  • Fix issue including relationships on collections
  • TransformerAbstract now returns a ResourceInterface
  • getIncludeParams now always return ParamBag
  • cody styling, method naming and docs