Skip to content

Releases: thephpleague/fractal

0.21.0

16 Dec 16:24
9e81735

Choose a tag to compare

What's Changed

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

Full Changelog: 0.20.2...0.21

0.20.2

14 Feb 21:34
573ca2e

Choose a tag to compare

What's Changed

Full Changelog: 0.20.1...0.20.2

0.20.1

11 Apr 12:48
8b9d39b

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

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

Choose a tag to compare

0.19.1

24 Jan 14:01
141c97e

Choose a tag to compare

0.19

24 Jan 13:51
d409754

Choose a tag to compare

0.18.0

10 May 02:17
4e553da

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

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

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