Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ofetch

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ofetch - npm Package Versions

2

1.4.1

Diff

Changelog

Source

v1.4.1

compare changes

🩹 Fixes

  • Remove undefined method and query/params from fetch options (#451)
  • Use response._bodyInit as fallback for react-native and qq (#398)

🏡 Chore

✅ Tests

❤️ Contributors

pi0
published 1.4.0 •

Changelog

Source

v1.4.0

compare changes

🚀 Enhancements

  • Support retryDelay with callback function (#372)
  • Add better message and code for timeout error (#351)
  • Allow custom global options for $fetch.create (#401)
  • Support interceptors arrays (#353)
  • Always clone and normalize options.headers and options.query (#436)

🩹 Fixes

  • Export types from node export condition (#407)
  • Use wrapper to allow patching global fetch (#377)

📖 Documentation

  • Add docs for using undici dispatcher (#389)

🌊 Types

  • Add agent and dispatcher options (node-specific) (#308)

🏡 Chore

✅ Tests

  • Add additional tests for hook errors (7ff4d11)

🤖 CI

❤️ Contributors

pi0
published 1.3.4 •

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

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