Socket
Socket
Sign inDemoInstall

ofetch

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ofetch - npm Package Versions

2

1.3.4

Diff

Changelog

Source

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

pi0
published 1.3.3 •

Changelog

Source

v1.3.3

compare changes

🩹 Fixes

  • Augment FetchError type to include IFetchError (#279)

❤️ Contributors

pi0
published 1.3.2 •

Changelog

Source

v1.3.2

compare changes

🩹 Fixes

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

❤️ Contributors

pi0
published 1.3.1 •

Changelog

Source

v1.3.1

compare changes

🏡 Chore

❤️ Contributors

pi0
published 1.3.0 •

Changelog

Source

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
pi0
published 1.2.1 •

Changelog

Source

v1.2.1

compare changes

📦 Build

  • Add missing node export condition (4081170)

🏡 Chore

✅ Tests

  • Speedup with background close (567fb35)

❤️ Contributors

pi0
published 1.2.0 •

Changelog

Source

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

pi0
published 1.1.1 •

Changelog

Source

v1.1.1

compare changes

🏡 Chore

❤️ Contributors

pi0
published 1.1.0 •

Changelog

Source

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

pi0
published 1.0.1 •

Changelog

Source

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

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc