Skip to content

Commit

Permalink
Update dependency jwt-decode to v4 (#71)
Browse files Browse the repository at this point in the history
[![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.

**Additionally, this PR ensures the file size is decreased:**

-   **ESM and CJS decreased by 22%**
-   **UMD decreased by 37%**

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

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **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](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/SvenKirschbaum/aws-utils).
  • Loading branch information
renovate[bot] authored Nov 7, 2023
1 parent 008a5b6 commit 3b78213
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions lambda/log-redirect/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lambda/log-redirect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@middy/error-logger": "4.6.5",
"@aws-sdk/client-secrets-manager": "3.441.0",
"graphql-request": "6.1.0",
"jwt-decode": "3.1.2",
"jwt-decode": "4.0.0",
"luxon": "3.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion lambda/log-redirect/src/wcl.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//Cross invocation cache
import {gql, GraphQLClient} from "graphql-request";
import {GetSecretValueCommand, SecretsManagerClient} from "@aws-sdk/client-secrets-manager";
import jwtDecode from "jwt-decode";
import {jwtDecode} from "jwt-decode";
import {tracer} from "./util";
import {DateTime} from "luxon";

Expand Down

0 comments on commit 3b78213

Please sign in to comment.