Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency jwt-decode to v4 #968

Closed
wants to merge 3 commits into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 30, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
jwt-decode ^3.1.2 -> ^4.0.0 age adoption passing 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 jwtDecodefrom "jwt-decode";
+import { jwtDecode } from "jwt-decode";

Configuration

📅 Schedule: Branch creation - "after 7am and before 11am every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Oct 30, 2023
@renovate renovate bot enabled auto-merge (rebase) October 30, 2023 09:25
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 2d18087 to 5b55d24 Compare November 1, 2023 12:51
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 5b55d24 to 0e04859 Compare November 1, 2023 13:31
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 0e04859 to a144b6d Compare November 1, 2023 14:02
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch 2 times, most recently from e69e658 to 91306f1 Compare November 1, 2023 17:40
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 91306f1 to dd29dc8 Compare November 3, 2023 15:52
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from dd29dc8 to 7835b45 Compare November 3, 2023 16:17
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 7835b45 to 470c9b2 Compare November 3, 2023 16:53
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 470c9b2 to 54803f4 Compare November 3, 2023 19:33
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 54803f4 to 1421d58 Compare November 6, 2023 10:27
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 1421d58 to baf6e04 Compare November 6, 2023 12:11
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 26fbc8f to 07ea5cf Compare November 16, 2023 15:05
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 07ea5cf to 6412dec Compare November 16, 2023 18:35
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 6412dec to ef47ca9 Compare November 17, 2023 11:03
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from ef47ca9 to 3713305 Compare November 17, 2023 13:46
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 3713305 to 4ec2f60 Compare November 20, 2023 10:20
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 4ec2f60 to ae5ac38 Compare November 20, 2023 12:19
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from ae5ac38 to bdfacf8 Compare November 20, 2023 13:53
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from bdfacf8 to 5ce432a Compare November 20, 2023 16:33
Copy link
Contributor Author

renovate bot commented Nov 23, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@kremi
Copy link
Collaborator

kremi commented Nov 23, 2023

This upgrade is too complicated and not worth the effort as web-public is being deprecated and replaced by idam-hmcts-access in the next months.

@kremi kremi closed this Nov 23, 2023
auto-merge was automatically disabled November 23, 2023 16:46

Pull request was closed

@kremi kremi deleted the renovate/jwt-decode-4.x branch November 23, 2023 16:46
Copy link
Contributor Author

renovate bot commented Nov 23, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 4.x releases. But if you manually upgrade to 4.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ns:idam prd:idam
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant