GitPedia
auth0

auth0/jwt-decode

Decode JWT tokens; useful for browser applications.

6 Releases
Latest: 2y ago
v4.0.0Latest
frederikprijckfrederikprijck·2y ago·October 27, 2023
GitHub

📋 Changes

  • No longer include a polyfill for [atob](https://developer.mozilla.org/en-US/docs/Web/API/atob), as this is [supported in all major browsers](https://caniuse.com/?search=atob) (and [node environments > 14](https://developer.mozilla.org/en-US/docs/Web/API/atob#browser_compatibility)).
  • Compile to ES2017, dropping support for anything that does not support ES2017 (which should be very limited [according to caniuse](https://caniuse.com/?search=es2017))
  • 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.
v4.0.0-beta.4Pre-release
frederikprijckfrederikprijck·2y ago·September 5, 2023
GitHub

📋 Changes

  • Raise minimum Node.js version to 18 [\#209](https://github.com/auth0/jwt-decode/pull/209) ([jonkoops](https://github.com/jonkoops))
  • fix default condition should be the last one [\#199](https://github.com/auth0/jwt-decode/pull/199) ([frederikprijck](https://github.com/frederikprijck))
v4.0.0-beta.3Pre-release
frederikprijckfrederikprijck·2y ago·August 16, 2023
GitHub

📋 Changes

  • Drop UMD bundle [\#193](https://github.com/auth0/jwt-decode/pull/193) ([frederikprijck](https://github.com/frederikprijck))
  • Use modern JavaScript syntax [\#187](https://github.com/auth0/jwt-decode/pull/187) ([jonkoops](https://github.com/jonkoops))
  • Use ESNext as default module system [\#188](https://github.com/auth0/jwt-decode/pull/188) ([jonkoops](https://github.com/jonkoops))
  • Avoid using any bundlers but use tsc instead [\#192](https://github.com/auth0/jwt-decode/pull/192) ([frederikprijck](https://github.com/frederikprijck))
v4.0.0-beta.2Pre-release
frederikprijckfrederikprijck·2y ago·August 14, 2023
GitHub

📋 Changes

  • Avoid using default exports [\#175](https://github.com/auth0/jwt-decode/pull/175) ([frederikprijck](https://github.com/frederikprijck))
  • Make options optional no default function parameter initializer [\#179](https://github.com/auth0/jwt-decode/pull/179) ([cristobal](https://github.com/cristobal))
  • Ensure types are bundled and correctly linked [\#174](https://github.com/auth0/jwt-decode/pull/174) ([jonkoops](https://github.com/jonkoops))
v4.0.0-beta.1Pre-release
frederikprijckfrederikprijck·2y ago·July 29, 2023
GitHub

📋 Changes

  • Ensure build is run on prepack [\#167](https://github.com/auth0/jwt-decode/pull/167) ([frederikprijck](https://github.com/frederikprijck))
v4.0.0-beta.0Pre-release
frederikprijckfrederikprijck·2y ago·July 28, 2023
GitHub

📋 Changes

  • No longer include a polyfill for [atob](https://developer.mozilla.org/en-US/docs/Web/API/atob), as this is [supported in all major browsers](https://caniuse.com/?search=atob) (and [node environments > 14](https://developer.mozilla.org/en-US/docs/Web/API/atob#browser_compatibility)).
  • Compile to ES2017, dropping support for anything that does not support ES2017 (which should be very limited [according to caniuse](https://caniuse.com/?search=es2017))
  • 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.
  • + 2 more