Skip to content

Releases: yahoo/fetchr

Fix bug with error handling

23 Dec 19:11
Compare
Choose a tag to compare

Fix `xhr` module interface and allow for xhr retries

18 Dec 01:56
Compare
Choose a tag to compare

Upgrading xhr to 2.0.0 broke the interface in the previous version. Fixed now.

Retry logic was never being called. Fixed now.

Updated xhr module to 2.0.0

17 Dec 23:10
Compare
Choose a tag to compare
  • xhr v2.0.0 adds ie8 support

Lodash

13 Dec 00:45
Compare
Choose a tag to compare

We now depend of lodash proper instead of all the lodash micro-libraries.

Remove unused `crumb`

04 Dec 02:13
Compare
Choose a tag to compare
  • Crumb was a special case used internally and so has been removed from code
  • Documentation updated to show how to do CSRF protection generically

Dependency Updates

26 Nov 22:53
Compare
Choose a tag to compare
v0.4.1

0.4.1

`delete` everywhere

13 Oct 17:53
Compare
Choose a tag to compare

We had backwards compatibility for del method but for sanity's sake we removed all traces of it. So now users can only use delete methods on the client/server fetcher interface as well as the data-fetchers' interfaces.

Thanks @ptomasroos

Change `del` method to `delete`

06 Oct 17:27
Compare
Choose a tag to compare

We used del as the delete operation method but we have now standardized the name to delete. So now the CRUD (create, read, update, and delete) methods are all trivial to spell and use.

Feature: Custom http status codes support

03 Oct 18:43
Compare
Choose a tag to compare

Data-fetchers can specify an HTTP error statusCode (400, 404, etc) by tacking on a statusCode property to the error object passed into the callback. If the statusCode property exists on the error object, fetcher middleware will use that HTTP response code.

Data-fetchers can now pass a 3rd meta parameter to their CRUD callbacks. If meta.statusCode is set, then fetcher middleware will use that HTTP response code.

Thanks to @mtscout6 for noticing and implementing this in #22.

Bugfix: Better error handling

01 Oct 22:55
Compare
Choose a tag to compare

Fixed an issue where middleware didn't stop after throwing error. See #18 for more details.