v2.13.10
danielspaniel
released this
29 Oct 16:13
·
336 commits
to master
since this release
- Does not blow up anymore when using fastboot #282
- Switched to using pretender from jquery.mockjax
- No more jquery bower dependency ( though Ember still uses it )
- Of course you can not use factory guy to produce fastboot data since pretender does not support fetch
Since mockjax is gone, I added a simple mock
command for allowing ad hoc mocking of urls
Where you used to do this:
$.mockjax({url:'/bugs-bunny', type: 'GET', responseText: { says: "what's up doc"}});
Now you would do this:
import {mock} from 'ember-data-factory-guy';
mock({url:'/bugs-bunny', type: 'GET', responseText: { says: "what's up doc"}});
One more thing to remember, mockjax was nice in that it only mocked what you told it to, and everything else passed through to be a real network request. Pretender stops everything from getting through so you have to setup passThrough url's if you want them to get through the pretender firewall.
Unfortunately you can not do passthroughs yet .. but you will soon.