Skip to content

v0.0.22

Compare
Choose a tag to compare
@samselikoff samselikoff released this 08 Mar 22:01
· 2126 commits to master since this release

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