Skip to content

Update dependency jwt-decode to v4#738

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/jwt-decode-4.x
Open

Update dependency jwt-decode to v4#738
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/jwt-decode-4.x

Conversation

@renovate

@renovate renovate Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
jwt-decode ^2.2.0^4.0.0 age confidence

Release Notes

auth0/jwt-decode (jwt-decode)

v4.0.0

Compare Source

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.

Migration to v4.0.0

The jwtDecode function is now no longer the default export, and is instead provided as a named export. Make sure to update your code in places where you are importing this function:

-import jwtDecode from "jwt-decode";
+import { jwtDecode } from "jwt-decode";

v3.1.2

Compare Source

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.

v3.1.1

Compare Source

v3.1.0

Compare Source

Full Changelog

  • Add TypeScript type definition
  • Fix CJS default export

v3.0.0

Compare Source

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';.

Configuration

📅 Schedule: (in timezone Europe/London)

  • Branch creation
    • Between 04:00 PM and 07:59 PM, Monday through Friday (* 16-19 * * 1-5)
  • Automerge
    • Between 02:00 PM and 06:59 PM, Monday through Thursday (* 14-18 * * 1-4)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/jwt-decode-4.x branch 4 times, most recently from beb0720 to ad97cf0 Compare June 11, 2026 15:12
@renovate renovate Bot force-pushed the renovate/jwt-decode-4.x branch from ad97cf0 to 3b40358 Compare June 11, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants