Releases: miragejs/ember-cli-mirage
v0.2.0-beta.6
v0.2.0-beta.6
v0.2.0-beta.5
Update notes: None.
Changes:
- [ENHANCEMENT] Allow files to be excluded from non-prodution builds Danail Nachev
- [ENHANCEMENT] #552 Add default passthroughs @anulman
- [ENHANCEMENT] #427 Factories return models @ef4
- [ENHANCEMENT] #561 Ensure foreign keys are picked up in shorthands @abuiles
- [ENHANCEMENT] #546 Add named associations @samselikoff
- [BUGFIX] #548 Shorthands can read ID from json:api request body @lkhaas
- General cleanup and updates @ef4 @abuiles @elwayman02
v0.2.0.beta-4
Update notes: None.
Changes:
- [ENHANCEMENT] #501 Adds ModelClass.first @lependu
- [BUGFIX] #543 Ensure Mirage works within Addons @cibernox
- [BUGFIX] #535 Include original message on rethrow errors @Hamled
- [BUGFIX] #515 Ensure serializer#serialize always receives request @2468ben
- [BUGFIX] #506 Ensure serializer#normalize looks up model-specific serializers @2468ben
- [BUGFIX] #507 Ensure foreign keys are added once @samselikoff
- General cleanup @bekzod, @alecho, @koriroys, @cibernox
v0.2.0-beta.3
Update notes:
-
There was a bug where dasherized multiword serializers and fixtures were not registered correctly. This has been fixed, so if you happen to have camelized multiword serializers or fixtures
/mirage/serializers/blogPost.js /mirage/fixtures/blogPosts.js
you can rename these to dasherized names
/mirage/serializers/blog-post.js /mirage/fixtures/blog-posts.js
In Mirage 0.2, all filenames should be dasherized, following the conventions of Ember CLI. If you ever encounter a situation where this doesn't work, please file an issue, as this is a bug.
Changes:
- [ENHANCEMENT] Better blueprints
- [BUGFIX] Ensure multiword dasherized serializers work #333
- [BUGFIX] Ensure multiword dasherized fixtures work
v0.2.0-beta.2
Update notes:
-
Serializer#relationships
was renamed toSerializer#include
.Before:
export default Serializer.extend({ relationships: ['comments'] });
After:
export default Serializer.extend({ include: ['comments'] });
-
We now use
destroyApp
test 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-mirage
when 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.type
was 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.type
tomodel.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
?include
query param support in JSONAPISerializer @lolmaus - [FEATURE] Add
build
&buildList
to 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
v0.2.0-beta.1
Update notes:
- Move
/app/mirage
to/mirage
Changes:
- [FEATURE] ORM, Serializers
- [ENHANCEMENT] @HeroicEric
- [BREAKING CHANGE] missing routes will now throw an Error instead of logging to the Logger's
error
channel.
v0.1.11
v0.1.10
v0.1.9
Please use 0.1.11, there is a bug in this version
Update notes:
- When this library first came out, you defined routes using
this.stub('get', '/path'...)
in yourmirage/config.js
file.stub
has been removed, so if you happen to be using it, just replace those calls with thethis.get
,this.post
, etc. helper methods. - If you happen to be using the orm (it's private + not ready yet), know that there were some changes to how the data is stored. Contact me if you want to upgrade.
Changes:
- [BREAKING CHANGE] remove #stub from Server (see update note) @samselikoff
- [FEATURE] add
.passthrough
See feature documentation @samselikoff - [FEATURE] add
.loadFixtures
See feature documentation @samselikoff - [FEATURE] add .random.number.range to faker @IAmJulianAcosta
- [IMPROVEMENT] better missing route message @blimmer
- [IMPROVEMENT] upgrade Ember CLI 1.13.8 @blimmer
- [IMPROVEMENT] improve logging @gaborsar
- [IMPROVEMENT] cleanup @jherdman
- [BUGFIX] fixup blueprints @Samsinite
- [BUGFIX] fix ie8 bug @jerel
- [BUGFIX] avoid dep warning in Ember 2.x @mixonic
v0.1.8
[BUGFIX] remove console.log from server.js