Skip to content

v0.0.17

Choose a tag to compare

@samselikoff samselikoff released this 16 Feb 20:05
· 2205 commits to master since this release

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