NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2126 most downloaded on npm
Decode JWT tokens, mostly useful for browser applications.
Last release 3 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 3.5 years
Rarely documented
notes for 4 of 21 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
29 releases · first in 2014
Even though some users might experience breaking changes, mostly because of the exports field, the majority should be able to update without making an…
A new version of the library, including a couple of improvements:
exports field, for better CJS/ESM supportindex.standalone.ts, but rely on rollup instead.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 jwtDecodefrom "jwt-decode";
+import { jwtDecode } from "jwt-decode";One column per quarter.
Raise minimum Node.js version to 18 #209 ( jonkoops )
Drop UMD bundle #193 ( frederikprijck )
Avoid using default exports #175 ( frederikprijck )
Ensure build is run on prepack #167 ( frederikprijck )
Fixed
Even though some users might experience breaking changes, mostly because of the exports field, the majority should be able to update without making an…
A new version of the library, including a couple of improvements:
exports field, for better CJS/ESM supportindex.standalone.ts, but rely on rollup instead.header argument by using overloads.Additionally, this PR ensures the file size is decreased:
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.
Add a generic as return type so the user can specify what's expected, this will still be unknown by default
unknown by defaultJwtHeaderand JwtPayload that can be used with the generic return type as-is or extended.Nothing published for this version
Full Changelog - Add TypeScript type definition - Fix CJS default export
Warning: this version has some potentially breaking changes!
Warning: this version has some potentially breaking changes!
import * as jwt_decode from 'jwt-decode', you'll have to change your import to import jwt_decode from 'jwt-decode';.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →