Releases: rhwilr/adonis-bumblebee
2.2.0
2.1.0
2.0.0
The developer experience release!
With this release, we improved the integration of Bumblebee into your application by allowing you to pass the Transformer by name, while also improving performance by changing the defaultInclude
& availableInclude
methods to static getters. For a complete list of all changes, see the changelog below.
An absolutely huge thank goes to @RomainLanz, who suggested and implemented many of the features we have in this release. Great work man! 👏
Breaking Changes
-
The
toArray()
was renamed totoJSON()
to be consistent with the rest of the framework. If you use thetoArray()
method, you should rename this it totoJSON()
. The signature and returned value remain the same. [#29] -
Changed
defaultInclude
&availableInclude
methods to static getter for better performance. [#29]// before class BookTransformer extends TransformerAbstract { defaultInclude () { return ['author'] } } // after class BookTransformer extends TransformerAbstract { static get defaultInclude () { return ['author'] } }
Added
- Transformers can now be automatically resolved when passed by name. [#33]
- Multiple transform methods can be defined and used with the new Transformer Variants feature. [#32]
- The
Adonis/Addons/Bumblebee/TransformerAbstract
class now has an optional shorter alias toBumblebee/Transformer
. [#29]
Deprecated
- The
toArray()
method was marked as deprecated. [#29]
2.0.0-beta.2
Added
- Multiple transform methods can be defined and used with the new Transformer Variants feature.
- Transformers can now be referenced by name only if they are in
App/Transformers
2.0.0-beta.1
tagged beta 2.0.0-beta.1
2.0.0-beta.0
Breaking Changes
- The
toArray()
was renamed totoJSON()
. - Changed
defaultInclude
&availableInclude
methods to static getter
Added
- Transformers can now be automatically resolved when passed by name.
- The
Adonis/Addons/Bumblebee/TransformerAbstract
class now has a shorter alias toBumblebee/Transformer
.
Deprecated
- The
toArray()
method was marked as deprecated.