Skip to content

Releases: miragejs/ember-cli-mirage

v0.2.0-beta.6

24 Feb 21:11
Compare
Choose a tag to compare
v0.2.0-beta.6 Pre-release
Pre-release
v0.2.0-beta.6

v0.2.0-beta.5

19 Feb 02:52
Compare
Choose a tag to compare
v0.2.0-beta.5 Pre-release
Pre-release

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

09 Feb 04:57
Compare
Choose a tag to compare
v0.2.0.beta-4 Pre-release
Pre-release

Update notes: None.

Changes:

v0.2.0-beta.3

16 Jan 22:59
Compare
Choose a tag to compare
v0.2.0-beta.3 Pre-release
Pre-release

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

15 Jan 23:31
Compare
Choose a tag to compare
v0.2.0-beta.2 Pre-release
Pre-release

Update notes:

  • Serializer#relationships was renamed to Serializer#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 run ember 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 to model.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 to model.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

15 Jan 23:31
Compare
Choose a tag to compare
v0.2.0-beta.1 Pre-release
Pre-release

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

14 Oct 12:07
Compare
Choose a tag to compare

#312 bugfix, no upgrade notes.

v0.1.10

13 Oct 18:26
Compare
Choose a tag to compare

#309 bugfix, no upgrade notes.

v0.1.9

05 Oct 12:03
Compare
Choose a tag to compare

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 your mirage/config.js file. stub has been removed, so if you happen to be using it, just replace those calls with the this.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:

v0.1.8

18 Aug 02:13
Compare
Choose a tag to compare

[BUGFIX] remove console.log from server.js