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

fix(deps): update dependency jwt-decode to v4 #5264

Merged
merged 2 commits into from
Apr 18, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 17, 2024

Mend Renovate

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 5pm,every weekend" in timezone America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone America/Los_Angeles.

🚦 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 force-pushed the renovate/jwt-decode-4.x branch 4 times, most recently from cff3e79 to 642c3c6 Compare April 17, 2024 14:23
@renovate renovate bot force-pushed the renovate/jwt-decode-4.x branch from 642c3c6 to fd2790f Compare April 17, 2024 18:27
Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 85.89%. Comparing base (e07c16b) to head (8c0e598).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5264      +/-   ##
==========================================
- Coverage   85.91%   85.89%   -0.02%     
==========================================
  Files         745      745              
  Lines       30487    30484       -3     
  Branches     5288     5287       -1     
==========================================
- Hits        26192    26184       -8     
- Misses       4059     4064       +5     
  Partials      236      236              
Files Coverage Ξ”
src/keylessBackup/web3auth.ts 100.00% <100.00%> (ΓΈ)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update 7a43746...8c0e598. Read the comment docs.

@renovate renovate bot added this pull request to the merge queue Apr 17, 2024
Copy link
Contributor Author

renovate bot commented Apr 17, 2024

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.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 18, 2024
@MuckT MuckT added this pull request to the merge queue Apr 18, 2024
Merged via the queue into main with commit 4709a0b Apr 18, 2024
16 checks passed
@MuckT MuckT deleted the renovate/jwt-decode-4.x branch April 18, 2024 01:39
shottah pushed a commit to zed-io/kolektivo that referenced this pull request May 15, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [jwt-decode](https://togithub.com/auth0/jwt-decode) | [`^3.1.2` ->
`^4.0.0`](https://renovatebot.com/diffs/npm/jwt-decode/3.1.2/4.0.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/jwt-decode/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/jwt-decode/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/jwt-decode/3.1.2/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/jwt-decode/3.1.2/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>auth0/jwt-decode (jwt-decode)</summary>

###
[`v4.0.0`](https://togithub.com/auth0/jwt-decode/blob/HEAD/CHANGELOG.md#Version-400)

[Compare
Source](https://togithub.com/auth0/jwt-decode/compare/v3.1.2...v4.0.0)

[Full
Changelog](https://togithub.com/auth0/jwt-decode/compare/v3.1.2..v4.0.0)

A new version of the library, including a couple of improvements:

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

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";
```

</details>

---

### Configuration

πŸ“… **Schedule**: Branch creation - "after 5pm,every weekend" in timezone
America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone
America/Los_Angeles.

🚦 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJucG0iLCJyZW5vdmF0ZSJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Satish Ravi <satish.ravi@valoraapp.com>
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.

None yet

2 participants