v0.2.0-beta.2
Pre-release
Pre-release
·
1690 commits
to master
since this release
Update notes:
-
Serializer#relationshipswas renamed toSerializer#include.Before:
export default Serializer.extend({ relationships: ['comments'] });After:
export default Serializer.extend({ include: ['comments'] }); -
We now use
destroyApptest helper in Ember-CLI to shutdown the Mirage server after each test to resolve a memory leak reported in #226. It's important to runember g ember-cli-miragewhen upgrading to take advantage of this fix. -
Inserting records with numerical IDs that have already have been used will throw an error per changes from #417
-
model.typewas renamed tomodel.modelName, and is dasherized (instead of camelized)
Changes:
- [BREAKING CHANGE] POST and PUT shorthands require a Serializer#normalize function, and will transform your attrs to camelCase. (If you're using JsonApiSerializer or ActiveModelSerializer, this is done for you). To keep using the db yourself, write custom POST and PUT route handlers.
- [BREAKING CHANGE] Serializer#relationships was renamed to Serializer#include #424 @lolmaus
- [BREAKING CHANGE] Change
model.typetomodel.modelName, ensure it's dasherized #454 - [BREAKING CHANGE] Inserting records with numerical IDs that have already have been used will throw an per changes from #417
- [BREAKING CHANGE] DB stores ids as strings #462 @jherdman
- [BREAKING CHANGE] GET shorthand with single owner and many children throws an error.
- [BREAKING CHANGE] Arrays in shorthands should always contain singularzied model names (e.g. dasherized)
- [FEATURE] Add
?includequery param support in JSONAPISerializer @lolmaus - [FEATURE] Add
build&buildListto factories #459 @ballPointPenguin - [ENHANCEMENT] JSONAPISerializer defaults to dasherized types and relationships (and other JSONAPI enhancements) @lolmaus
- [ENHANCEMENT] shutdown Mirage server on destroyAppp @blimmer
- [ENHANCEMENT] createList perf enhancement @alvinvogelzang
- [ENHANCEMENT] improve DB autoincrement @jherdman
- [FEATURE] Allow nested factory objects @john-kurkowski
- Other bugfixes/enhancements @jherdman, @ef4, @seanpdoyle, @alecho, @bekzod