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

jwt-decode

Package Overview
Dependencies
Maintainers
40
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwt-decode - npm Package Versions

23

4.0.0

Diff

Changelog

Source

Version 4.0.0

Full Changelog

A new version of the library, including a couple of improvements:

  • No longer include a polyfill for atob, as this is supported in all major browsers (and node environments > 14).
  • Compile to ES2017, dropping support for anything that does not support ES2017 (which should be very limited according to caniuse)
  • Use Node's atob when running on node.
  • Drop support for Node 14 and 16, add support for Node 20.
  • Add support for package.json's exports field, for better CJS/ESM support
  • Reorganize build artifacts for better CJS/ESM support (cjs and esm needs to be their own directory with a cjs specific package.json file)
  • Drop manual UMD bundle creation in index.standalone.ts, but rely on rollup instead.
  • Infer JwtPayload and JwtHeader default types from the header argument by using overloads.

Even though some users might experience breaking changes, mostly because of the exports field, the majority should be able to update without making any changes, assuming the SDK is used in environments with support for atob.

auth0-oss
published 4.0.0-beta.4 •

Changelog

Source

Version 4.0.0-beta.4

Full Changelog

Breaking changes

Fixed

auth0-oss
published 4.0.0-beta.3 •

Changelog

Source

Version 4.0.0-beta.3

Full Changelog

Breaking changes

Changed

auth0-oss
published 4.0.0-beta.2 •

Changelog

Source

Version 4.0.0-beta.2

Full Changelog

Changed

Fixed

  • Ensure types are bundled and correctly linked #174 (jonkoops)
auth0-oss
published 4.0.0-beta.1 •

Changelog

Source

Version 4.0.0-beta.1

Full Changelog

Fixed

auth0-oss
published 4.0.0-beta.0 •

Changelog

Source

Version 4.0.0-beta.0

Full Changelog

A new version of the library, including a couple of improvements:

  • No longer include a polyfill for atob, as this is supported in all major browsers (and node environments > 14).
  • Compile to ES2017, dropping support for anything that does not support ES2017 (which should be very limited according to caniuse)
  • Use Node's atob when running on node.
  • Drop support for Node 14, add support for Node 20.
  • Add support for package.json's exports field, for better CJS/ESM support
  • Reorganize build artifacts for better CJS/ESM support (cjs and esm needs to be their own directory with a cjs specific package.json file)
  • Drop manual UMD bundle creation in index.standalone.ts, but rely on rollup instead.
  • Infer JwtPayload and JwtHeader default types from the header argument by using overloads.

Additionally, this PR ensures the file size is decreased:

  • ESM and CJS decreased by 22%
  • UMD decreased by 37%

Even though some users might experience breaking changes, mostly because of the exports field, the majority should be able to update without making any changes, assuming the SDK is used in environments with support for atob.

sambego
published 3.1.2 •

Changelog

Source

Version 3.1.2

Full Changelog

  • Add a generic as return type so the user can specify what's expected, this will still be unknown by default
  • Export JwtHeaderand JwtPayload that can be used with the generic return type as-is or extended.
sambego
published 3.1.1 •

sambego
published 3.1.0 •

Changelog

Source

Version 3.1.0

Full Changelog

  • Add TypeScript type definition
  • Fix CJS default export
sambego
published 3.0.0 •

Changelog

Source

Version 3.0.0

Full Changelog

  • Include an ESM build for native JavaScript imports

Warning: this version has some potentially breaking changes!

  • If you've previously imported the library as import * as jwt_decode from 'jwt-decode', you'll have to change your import to import jwt_decode from 'jwt-decode';.
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