Releases: ButterCMS/buttercms-js
v2.0.2
v2.0.1
v2.0.0
Now supporting Node 18.17.1+ with native fetch
support.
We have removed the Axios dependencies and support for Node prior to version 18.17.1.
This release is a breaking change from ButterCMS-js version v1.2.16. If you need to continue to use Node prior to version 18, please use our v1.2.16 release.
New configuration options include the use of lifecycle hooks in our requests for onError
, onRequest
, and onResponse
. Additionally you are able to cancel a fetch request via .cancelRequest
for all resource types: butter.<resource>.cancelRequest()
.cancelRequest
is also available in each onRequest
hook.
Error reporting has been refined for use with rejecting the request and is returned via a Promise.reject
. You can now tap into the returned error lifecycle using onError
before the Promise is fully rejected. onError
will run before an onResponse
and will ensure that no onResponse
is run.
Please see our updated ReadMe for updated functionality, installation, and structure.
Thank you!
v1.2.16
v1.2.15
v1.2.14
v1.2.13
v1.2.12
What's Changed
- Implement unit-tests with jest by @mahdikhashan in #50
- upgrade dependencies by @courcelan in #60
New Contributors
- @mahdikhashan made their first contribution in #50
- @courcelan made their first contribution in #60
Full Changelog: v1.2.11...v1.2.12
Bump Axios Version and Fix Axios Bug
What's Changed
- Fix axios.create bug and bump versions to 1.2.11 by @ViolanteCodes in #57
Adding Pages Support
1.1.0 README Formatting