Skip to content

Latest commit

 

History

History
619 lines (323 loc) · 22.1 KB

CHANGELOG.md

File metadata and controls

619 lines (323 loc) · 22.1 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

v1.3.4

compare changes

🚀 Enhancements

  • Export all types (#280)
  • Expose GlobalOptions type (#307)

🩹 Fixes

  • Clear abort timeout after response was received (#369)

💅 Refactors

  • Remove extra line (#374)

📖 Documentation

  • Add initial examples (#288)

📦 Build

  • Add top level react-native field (03680dd)

🏡 Chore

❤️ Contributors

v1.3.3

compare changes

🩹 Fixes

  • Augment FetchError type to include IFetchError (#279)

❤️ Contributors

v1.3.2

compare changes

🩹 Fixes

  • Hide getters from console and pass cause (905244a)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.3.1

compare changes

🏡 Chore

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.3.0

compare changes

🚀 Enhancements

  • Support customizable retryStatusCodes (#109)
  • Add options field and improve formatting of errors (#270)
  • Automatically enable duplex to stream request body (#275)

🩹 Fixes

  • Avoid binding .native to $fetch (#272)
  • Skip reading body with 204 responses and HEAD 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)

💅 Refactors

  • Remove unused response?: boolean option (#223)
  • Pass all fetch context to the error (b70e6b0)
  • error: Factory pattern for getters (6139785)

📖 Documentation

  • Improve explanation about body option (#276)

🏡 Chore

  • release: V1.2.1 (bb98cb5)
  • Remove accidental raw response type addition (8589cae)

❤️ Contributors

  • Pooya Parsa (@pi0)
  • Nozomu Ikuta
  • Daniil Bezuglov

v1.2.1

compare changes

📦 Build

  • Add missing node export condition (4081170)

🏡 Chore

✅ Tests

  • Speedup with background close (567fb35)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.2.0

compare changes

🚀 Enhancements

  • Support retryDelay (#262)
  • Support timeout and AbortController (#268)

🩹 Fixes

  • Always uppercase method option (#259)
  • pkg: Fix ts type resolution for /node subpath (#256)
  • Make all createFetch options optional (#266)

📖 Documentation

🏡 Chore

✅ Tests

🎨 Styles

❤️ Contributors

v1.1.1

compare changes

🏡 Chore

  • Update dev dependencies (8fc7d96)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.1.0

compare changes

🚀 Enhancements

  • Support ignoreResponseError option (#221)
  • pkg: Add export conditions for runtime keys (#246)

🩹 Fixes

  • Pass empty object to headers initializer to prevent crash on chrome 49 (#235)
  • Export ResponseMap type to allow composition of ofetch (#232)
  • Fix issues with native node fetch (#245)
  • pkg: Add ./package.json subpath (253707a)
  • Deep merge fetch options (#243)

📖 Documentation

  • readme: Use _data rather than data for raw requests (#239)
  • Mention DELETE is no-retry be default (#241)

🏡 Chore

  • readme: Small improvements (65921a1)

🤖 CI

  • Enable tests against node 16, 18 and 20 (351fc80)

❤️ Contributors

v1.0.1

compare changes

🩹 Fixes

  • Improve error message for request errors (#199)

📖 Documentation

  • Fix small typos (#200)
  • Fix typo (#175)
  • Add agent option usage (#173)
  • Add note about http agent (#202)

📦 Build

  • Use standalone commonjs dist (#211)

🏡 Chore

🎨 Styles

❤️ Contributors

1.0.0 (2022-11-15)

⚠ BREAKING CHANGES

  • drop undici support

Features

0.4.21 (2022-11-03)

Features

  • add status and statusText to fetch errors (#152) (784a7c0)

Bug Fixes

  • only call error handler if status code is >= 400 (#153) (385f7fe)

0.4.20 (2022-10-17)

Bug Fixes

  • add backwards-compatible subpath declarations (#144) (3a48c21)
  • types: allow synchronous interceptors to be passed (#128) (46e8f3c)

0.4.19 (2022-09-19)

Features

  • support responseType: 'stream' as ReadableStream (#100) (5a19f73)

Bug Fixes

0.4.18 (2022-05-20)

Bug Fixes

0.4.17 (2022-05-11)

Features

0.4.16 (2022-04-29)

Bug Fixes

  • generalise application/json content types (#75) (adaa03b)

0.4.15 (2022-01-18)

Bug Fixes

  • use _data rather than data to store deserialized response (#49) (babb331)

0.4.14 (2021-12-22)

Bug Fixes

  • avoid calling fetch with globalOptions context (8ea2d2b)

0.4.13 (2021-12-21)

Features

  • $fetch.create support (d7fb8f6)
  • initial interceptor support (resolves #19) (1bf2dd9)

0.4.12 (2021-12-21)

Bug Fixes

0.4.11 (2021-12-17)

Features

  • return blob if content-type isn't text, svg, xml or json (#39) (1029b9e)

0.4.10 (2021-12-14)

Bug Fixes

  • avoid optional chaining (931d12d)

0.4.9 (2021-12-14)

Features

  • improve json body handling (4adb3bc), closes #36

0.4.8 (2021-11-22)

Bug Fixes

  • add accept header when using json payload (#30) (662145f)

0.4.7 (2021-11-18)

Bug Fixes

  • use application/json for array body (#29) (e794b1e)

0.4.6 (2021-11-10)

Bug Fixes

  • add check for using Error.captureStackTrace (#27) (0c55e1e)
  • remove baseurl append on retry (#25) (7e1b54d)

0.4.5 (2021-11-05)

Bug Fixes

  • improve error handling for non-user errors (6b965a5)

0.4.4 (2021-11-04)

Bug Fixes

0.4.3 (2021-11-04)

Features

  • experimental undici support (dfa0b55)
  • node: pick globalThis.fetch when available over node-fetch (54b779b)
  • node: support http agent with keepAlive (#22) (18a952a)
  • support retry and default to 1 (ec83366)

Bug Fixes

  • remove at raw from stack (82351a8)

0.4.2 (2021-10-22)

Features

  • cjs: provide fetch and $fetch.raw exports (529af1c)

0.4.1 (2021-10-22)

Bug Fixes

  • avoid optional chaining for sake of webpack4 (38a75fe)

0.4.0 (2021-10-22)

⚠ BREAKING CHANGES

  • upgrade to node-fetch 3.x

Features

  • upgrade to node-fetch 3.x (ec51edf)

0.3.2 (2021-10-22)

Features

  • allow for custom response parser with parseResponse (#16) (463ced6)

Bug Fixes

  • check for globalThis before fallback to shims (#20) (b5c0c3b)

0.3.1 (2021-08-26)

Bug Fixes

0.3.0 (2021-08-25)

⚠ BREAKING CHANGES

  • use export condition to automatically use node-fetch

Features

  • direct export fetch implementation (65b27dd)
  • use export condition to automatically use node-fetch (b81082b)

0.2.0 (2021-04-06)

⚠ BREAKING CHANGES

  • don't inline dependencies

Features

  • don't inline dependencies (cf3578b)

0.1.8 (2021-02-22)

Bug Fixes

  • pkg: add top level node.d.ts (dcc1358)

0.1.7 (2021-02-19)

Features

  • support automatic json body for post requests (#7) (97d0987)

0.1.6 (2021-01-12)

0.1.5 (2021-01-04)

Bug Fixes

  • pkg: use same export names for incompatible tools (7fc450a)

0.1.4 (2020-12-16)

Features

  • update ufo to 0.5 (reducing bundle size) (837707d)

0.1.3 (2020-12-16)

Bug Fixes

0.1.2 (2020-12-16)

Bug Fixes

0.1.1 (2020-12-12)

Bug Fixes

  • preserve params when using baseURL (c3a63e2)

0.0.7 (2020-12-12)

0.0.6 (2020-12-12)

Bug Fixes

  • pkg: fix top level named exports (0b51462)

0.0.5 (2020-12-12)

Bug Fixes

  • pkg: fix ./node in exports (c6b27b7)

0.0.4 (2020-12-12)

Features

0.0.3 (2020-12-12)

Features

  • bundle ufo and destr for easier bundler integration (8f5ba88)
  • support $fetch.raw and improve docs (f9f70a5)

0.0.2 (2020-12-09)

Bug Fixes

  • pkg: add top level dist (6da17ca)

0.0.1 (2020-12-09)

Features

  • universal + isomorphic builds (a873702)