From bfb2576bce097694bdbc34e69a43b8984482bb4e Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Fri, 27 Oct 2023 13:56:28 +0200 Subject: [PATCH] Add migration step to the changelog --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4b71d3..c48ade9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,15 @@ A new version of the library, including a couple of improvements: 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: + +```diff +-import jwtDecodefrom "jwt-decode"; ++import { jwtDecode } from "jwt-decode"; +``` + ## Version [4.0.0-beta.4](https://github.com/auth0/jwt-decode/releases/tag/v4.0.0-beta.4) [Full Changelog](https://github.com/auth0/jwt-decode/compare/v4.0.0-beta.3..v4.0.0-beta.4)