Skip to content

Releases: thephpleague/fractal

0.20.1

11 Apr 12:48
8b9d39b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.20...0.20.1

0.20.0

08 Mar 15:41
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

0.19.2

24 Jan 23:18
06dc15f
Compare
Choose a tag to compare

0.19.1

24 Jan 14:01
141c97e
Compare
Choose a tag to compare

0.19

24 Jan 13:51
d409754
Compare
Choose a tag to compare

0.18.0

10 May 02:17
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

0.17.0

18 Aug 21:34
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

0.16.0

05 Apr 11:48
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

0.15.0

17 Jan 15:28
Compare
Choose a tag to compare
  • Custom links in serializer
  • PhalconPHP Paginator
  • tested on 7.1

0.14.0

29 Aug 17:03
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