All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- Augment
FetchError
type to includeIFetchError
(#279)
- Johann Schopplich (@johannschopplich)
- Hide getters from console and pass
cause
(905244a)
- Pooya Parsa (@pi0)
- Update dependencies (c72976f)
- Pooya Parsa (@pi0)
- Support customizable
retryStatusCodes
(#109) - Add
options
field and improve formatting of errors (#270) - Automatically enable duplex to stream request body (#275)
- Avoid binding
.native
to$fetch
(#272) - Skip reading body with
204
responses andHEAD
requests (#171, #84) - Improve response body check for node 16 compatibility (64d3aed)
- Avoid serializing buffer body (#273)
- Move body handling out of request block (15a28fb)
- Remove unused
response?: boolean
option (#223) - Pass all fetch context to the error (b70e6b0)
- error: Factory pattern for getters (6139785)
- Improve explanation about
body
option (#276)
- Pooya Parsa (@pi0)
- Nozomu Ikuta
- Daniil Bezuglov
- Add missing
node
export condition (4081170)
- Update dependencies (d18584d)
- Speedup with background close (567fb35)
- Pooya Parsa (@pi0)
- Always uppercase
method
option (#259) - pkg: Fix ts type resolution for
/node
subpath (#256) - Make all
createFetch
options optional (#266)
- Update dev dependencies (8fc7d96)
- release: V1.1.1 (41c3b56)
- Update dependencies (db2434c)
- Add autofix ci (a953a33)
- Apply automated fixes (bbdfb9c)
- Update tests (db2ad50)
- Daniil Bezuglov
- Pooya Parsa (@pi0)
- Sébastien Chopin (@Atinux)
- Tmk (@tmkx)
- Murisceman murisceman@gmail.com
- Heb (@Hebilicious)
- Update dev dependencies (8fc7d96)
- Pooya Parsa (@pi0)
- Pass empty object to headers initializer to prevent crash on chrome 49 (#235)
- Export
ResponseMap
type to allow composition ofofetch
(#232) - Fix issues with native node fetch (#245)
- pkg: Add
./package.json
subpath (253707a) - Deep merge fetch options (#243)
- readme: Use
_data
rather thandata
for raw requests (#239) - Mention
DELETE
is no-retry be default (#241)
- readme: Small improvements (65921a1)
- Enable tests against node
16
,18
and20
(351fc80)
- Dennis Meuwissen
- Pooya Parsa (@pi0)
- Alex Korytskyi (@alex-key)
- Arunanshu Biswas
- Jonathan Bakebwa codebender828@gmail.com
- Ilya Semenov (@IlyaSemenov)
- _lmmmmmm lmmmmmm12138@gmail.com
- Jonas Thelemann (@dargmuesli)
- Sébastien Chopin seb@nuxtjs.com
- Improve error message for request errors (#199)
- Fix small typos (#200)
- Fix typo (#175)
- Add agent option usage (#173)
- Add note about http agent (#202)
- Use standalone commonjs dist (#211)
- Update lockfile (67a7fa4)
- Remove build badge (9a878b6)
- Update ufo (3776210)
- Update release script (50a58ab)
- Format with prettier (aabfb9a)
- Pooya Parsa pooya@pi0.io
- Daniel West daniel@silverback.is
- Sébastien Chopin seb@nuxtjs.com
- Nozomu Ikuta
- Yuyin
- Kricsleo
- 0xflotus 0xflotus@gmail.com
1.0.0 (2022-11-15)
- drop undici support
0.4.21 (2022-11-03)
0.4.20 (2022-10-17)
- add backwards-compatible subpath declarations (#144) (3a48c21)
- types: allow synchronous interceptors to be passed (#128) (46e8f3c)
0.4.19 (2022-09-19)
0.4.18 (2022-05-20)
0.4.17 (2022-05-11)
- use
node-fetch-native
(a881acb)
0.4.16 (2022-04-29)
0.4.15 (2022-01-18)
0.4.14 (2021-12-22)
- avoid calling
fetch
withglobalOptions
context (8ea2d2b)
0.4.13 (2021-12-21)
0.4.12 (2021-12-21)
- avoid overriding headers (4b74e45), closes #40 #41
- only retry on known response codes (resolves #31) (f7fff24)
0.4.11 (2021-12-17)
0.4.10 (2021-12-14)
- avoid optional chaining (931d12d)
0.4.9 (2021-12-14)
0.4.8 (2021-11-22)
0.4.7 (2021-11-18)
0.4.6 (2021-11-10)
- add check for using
Error.captureStackTrace
(#27) (0c55e1e) - remove baseurl append on retry (#25) (7e1b54d)
0.4.5 (2021-11-05)
- improve error handling for non-user errors (6b965a5)
0.4.4 (2021-11-04)
- allow
retry: false
(ce8e4d3)
0.4.3 (2021-11-04)
- experimental undici support (dfa0b55)
- node: pick
globalThis.fetch
when available overnode-fetch
(54b779b) - node: support http agent with
keepAlive
(#22) (18a952a) - support retry and default to
1
(ec83366)
- remove
at raw
from stack (82351a8)
0.4.2 (2021-10-22)
- cjs: provide
fetch
and$fetch.raw
exports (529af1c)
0.4.1 (2021-10-22)
- avoid optional chaining for sake of webpack4 (38a75fe)
0.4.0 (2021-10-22)
- upgrade to node-fetch 3.x
- upgrade to node-fetch 3.x (ec51edf)
0.3.2 (2021-10-22)
0.3.1 (2021-08-26)
0.3.0 (2021-08-25)
- use export condition to automatically use node-fetch
- direct export fetch implementation (65b27dd)
- use export condition to automatically use node-fetch (b81082b)
0.2.0 (2021-04-06)
- don't inline dependencies
- don't inline dependencies (cf3578b)
0.1.8 (2021-02-22)
- pkg: add top level node.d.ts (dcc1358)
0.1.7 (2021-02-19)
0.1.6 (2021-01-12)
0.1.5 (2021-01-04)
- pkg: use same export names for incompatible tools (7fc450a)
0.1.4 (2020-12-16)
- update ufo to 0.5 (reducing bundle size) (837707d)
0.1.3 (2020-12-16)
- ufo 0.3.1 (e56e73e)
0.1.2 (2020-12-16)
- update ufo to 0.3 (52d84e7)
0.1.1 (2020-12-12)
- preserve params when using baseURL (c3a63e2)
0.0.7 (2020-12-12)
0.0.6 (2020-12-12)
- pkg: fix top level named exports (0b51462)
0.0.5 (2020-12-12)
- pkg: fix ./node in exports (c6b27b7)
0.0.4 (2020-12-12)
- support params (e6a56ff)
0.0.3 (2020-12-12)
- bundle ufo and destr for easier bundler integration (8f5ba88)
- support
$fetch.raw
and improve docs (f9f70a5)
0.0.2 (2020-12-09)
- pkg: add top level dist (6da17ca)
- universal + isomorphic builds (a873702)