Releases: miragejs/ember-cli-mirage
v0.0.27
v0.0.26
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
fromember 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
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
ordisable
option, simply specifyENV['ember-cli-mirage'].enabled = [true|false]
in whichever environment you need to override the default behavior.
-
[ENHANCEMENT] #51 Adds generators:
ember g factory contact
andember g fixture contacts
-
[ENHANCEMENT] Allow response logging in tests via
server.logging = true
-
[BUGFIX] #66 ignore query params in shorthands
v0.0.23
v0.0.22
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 todb
, 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 toapp/mirage/factories
- #41 [BREAKING CHANGE] Renamed
store
todb
, 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
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:
v0.0.20
Deprecating "ember-pretenderify"
v0.0.19
v0.0.18
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
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; usethis.pretender
instead.
Changes:
- [FEATURE] you can use
this.get
,this.post
,this.put
andthis.del
instead ofthis.stub(verb)
now - bug fixes + refactoring