Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Releases: nimbly/Remodel

Release 2.1

Choose a tag to compare

@brentscheffler brentscheffler released this 14 Jan 19:57

Features

  • Adding setDefaultIncludes method to override default includes at run time.

Release 2.0.1

Choose a tag to compare

@brentscheffler brentscheffler released this 01 Jan 00:25

Fixes

  • Throw exception if Transformer instance does not have a transform method.
  • Checking included subjects against instance of Subject, not static.

Release 2.0

Choose a tag to compare

@brentscheffler brentscheffler released this 31 Dec 22:06

Improvements

  • Transforming large data sets in Collection now up to 2x faster.
  • Support for PHP 8.0

Additions

  • Added Transformer::emptyObject() method that will transform into an empty \stdClass instance.

Breaking changes

  • New namespace Nimbly\Remodel
  • Moved namespace Resources to Subjects due to conflict with reserved PHP keyword.
  • Sub-includes in transformer now must have the Include name in method. For example: addressInclude().
  • Default includes property moved from $incldues to $defaultIncludes.
  • Renamed Transformer::nullCollection() method to emptyCollection().
  • Renamed Transformer::toData() to remodel().