Skip to content

Releases: miragejs/ember-cli-mirage

v0.0.27

25 Apr 02:34
Compare
Choose a tag to compare

Update notes: none

Changes:

  • [IMPROVEMENT] remove tmp dir from git @ahmadsoe
  • [BUGFIX] ensure string ids that start with ints can be used @cibernox

v0.0.26

17 Apr 20:45
Compare
Choose a tag to compare

Update notes: none.

Changes:

  • [ENHANCEMENT] #70 Allow function route handler to customize status
    code, HTTP headers and data. See the
    wiki

    for details.
  • [BUGFIX] #81 Include assets in dev build, in case users visit /tests
    from ember s.
  • [BUGFIX] smarter id coercion in controller @mikehollis
  • [IMPROVEMENT] import mergeTrees and funnel @willrax @cibernox
  • [IMPROVEMENT] better status code lookup @cibernox
  • [IMPROVEMENT] use ember-try @willrax

v0.0.24

02 Apr 13:19
Compare
Choose a tag to compare

Update notes: The config options force and disable have been simplified to a single API: enabled. See the docs here: https://github.com/samselikoff/ember-cli-mirage/wiki/Configuration#enabled

Changes:

  • [BREAKING CHANGE] There's no more force or disable option, simply specify

    ENV['ember-cli-mirage'].enabled = [true|false]
    

    in whichever environment you need to override the default behavior.

  • [ENHANCEMENT] #51 Adds generators: ember g factory contact and ember g fixture contacts

  • [ENHANCEMENT] Allow response logging in tests via server.logging = true

  • [BUGFIX] #66 ignore query params in shorthands

v0.0.23

14 Mar 03:05
Compare
Choose a tag to compare

Update notes: None.

Change:

  • #53 allow arbitrary factory attrs
  • #50 do not use Mirage if /server/proxies dir exists
  • load fixtures in test environment if no factories exist

v0.0.22

08 Mar 22:01
Compare
Choose a tag to compare

Update notes:

  • Rename your /app/mirage/data directory to /app/mirage/fixtures.

  • Move your /tests/factories directory to /app/mirage/factories.

  • store, the data cache your routes interact with, has been renamed to db, and its API has changed.

    Your shorthand routes should not be affected, but you'll need to update any routes where you passed in a function and interacted with the store. See the wiki entry for more details and the full API.

Changes:

  • [BREAKING CHANGE] Rename /data directory to /fixtures.
  • [BREAKING CHANGE] Move /tests/factories directory to app/mirage/factories
  • #41 [BREAKING CHANGE] Renamed store to db, and changed API. See the wiki entry.
  • #42 [ENHANCEMENT] Add ability to change timing within tests, e.g. to test the UI on long delays. See an example.
  • #6 [ENHANCEMENT] Add ability to force an error response from a route. See an example.
  • [ENHANCEMENT] Ability to return a POJO from a route
  • [BUGFIX] ignore assets if Mirage isn't being used

v0.0.21

04 Mar 02:19
Compare
Choose a tag to compare

Update notes:

This project has been renamed from ember-pretenderify to ember-cli-mirage. Please update your package.json dependency accordingly, and

  • rename the /app/pretender dir to /app/mirage

  • if you have factories, change

    import EP from 'ember-pretenderify';
    

    to

    import Mirage from 'ember-cli-mirage';
    

Changes:

  • #26 [ENHANCEMENT] Added support for factory inheritance
  • #36 [BUGFIX] Fix bug where createList didn't respect attr overrides @ashton
  • #37 [INTERNAL] Add tests for createList @cibernox
  • #35 [INTERNAL] Return [] from store#findAll

v0.0.20

04 Mar 02:07
Compare
Choose a tag to compare

Deprecating "ember-pretenderify"

v0.0.19

26 Feb 16:40
Compare
Choose a tag to compare

Hotfix for #34, no changes require to update.

v0.0.18

26 Feb 00:29
Compare
Choose a tag to compare

Update notes:

  • the testing API has changed. Before, you used store.loadData, now you use factories. See the Getting Started guide below for an example, or the factories wiki page for the full API.

Changes:

  • Basic factory support

v0.0.17

16 Feb 20:05
Compare
Choose a tag to compare

Update notes:

  • the testing API has changed. Before, you added data directly to serverData, e.g.

    serverData.contacts = [{id: 1, name: 'Link'}];
    

    Now, use the store directly:

    store.loadData({
      contacts: [{id: 1, name: 'Link'}]
    });
    
  • this in your config file no longer refers to the Pretender instance; use this.pretender instead.

Changes:

  • [FEATURE] you can use this.get, this.post, this.put and this.del instead of this.stub(verb) now
  • bug fixes + refactoring