Socket
Socket
Sign inDemoInstall

fetch-cookie

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-cookie - npm Package Versions

234

3.0.1

Diff

Changelog

Source

[3.0.1] - 2024-02-24

  • Fix an issue with type declarations resolution. ([#84])
valeriangalliat
published 3.0.0 •

Changelog

Source

[3.0.0] - 2024-02-21

  • Export FetchCookieImpl interface. ([#81])
  • Breaking: move away from CJS module.exports = fetchCookie style, instead use more standard and future-proof exports.default = fetchCookie. When using CJS, you now need to const fetchCookie = require('fetch-cookie').default instead of const fetchCookie = require('fetch-cookie') previously.
valeriangalliat
published 2.2.0 •

Changelog

Source

[2.2.0] - 2024-02-01

  • Export CookieJar interface. ([#81])
valeriangalliat
published 2.1.0 •

Changelog

Source

[2.1.0] - 2022-07-12

  • Explicitly export package.json to be compatible with bundlers. ([#72])
valeriangalliat
published 2.0.5 •

Changelog

Source

[2.0.5] - 2022-05-26

  • Change order of exports default in package.json. ([#72])
valeriangalliat
published 2.0.4 •

Changelog

Source

[2.0.4] - 2022-05-25

  • Support ESM and CJS hybrid types. ([#71])
valeriangalliat
published 2.0.3 •

Changelog

Source

[2.0.3] - 2022-03-16

  • Fix TypeScript types, and add a test to check that TypeScript is happy with fetch-cookie, node-fetch v2, v3 and undici. ([#70])
valeriangalliat
published 2.0.2 •

Changelog

Source

[2.0.2] - 2022-03-15

  • Make build script more portable.
  • Backwards compatibility for environments not supporting the exports object in package.json, falling back on main and module fields. [#69]
valeriangalliat
published 2.0.1 •

Changelog

Source

[2.0.1] - 2022-03-03

  • Fix TypeScript types. ([#68])
  • Because we can't specify different types for ESM and CJS, I chose to drop CJS support for TypeScript as I assume most TypeScript users will use this module with ESM. You can still import fetchCookie = require('fetch-cookie') but the type will be wrong (it's a function, not an object with a default property as TypeScript assumes).
valeriangalliat
published 2.0.0 •

Changelog

Source

[2.0.0] - 2022-02-17

  • Rewrite in TypeScript. ([#43])
  • Hybrid support of ESM and CJS.
  • Test against node-fetch v2, v3 and hypothetically WHATWG spec through Undici.
  • Reimplement the redirect logic based on latest most complete node-fetch implementation. ([#11], [#39], [#42], [#57])
  • Breaking: the redirect logic is now included in the main export and the node-fetch wrapper (require('fetch-cookie/node-fetch')) was removed. Just require('node-fetch') and you're good to go with redirects!
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