Skip to content

Commit a1fb9a5

Browse files
Update dependency jwks-rsa to v3 (#2006)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [jwks-rsa](https://redirect.github.com/auth0/node-jwks-rsa) | dependencies | major | [`^1.4.0` -> `^3.0.0`](https://renovatebot.com/diffs/npm/jwks-rsa/1.12.3/3.1.0) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>auth0/node-jwks-rsa (jwks-rsa)</summary> ### [`v3.1.0`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v310-2023-10-05) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v3.0.1...v3.1.0) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v3.0.1...v3.1.0) **Added** - feat: resolve bun/deno compat issues [#&#8203;374](https://redirect.github.com/auth0/node-jwks-rsa/pull/374) ([panva](https://redirect.github.com/panva)) ### [`v3.0.1`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v301-2023-01-12) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v3.0.0...v3.0.1) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v3.0.0...v3.0.1) **Fixed** - update types/jsonwebtoken update v9.0.0 [#&#8203;349](https://redirect.github.com/auth0/node-jwks-rsa/pull/349) ([ToshihitoKon](https://redirect.github.com/ToshihitoKon)) - Bump jsonwebtoken from 8.5.1 to 9.0.0 [#&#8203;344](https://redirect.github.com/auth0/node-jwks-rsa/pull/344) ([dependabot\[bot\]](https://redirect.github.com/apps/dependabot)) ### [`v3.0.0`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v300-2022-11-01) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.5...v3.0.0) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.5...v3.0.0) **⚠️ BREAKING CHANGES** This release drops support for Node 10 and 12 - \[major] bump jose [#&#8203;333](https://redirect.github.com/auth0/node-jwks-rsa/pull/333) ([panva](https://redirect.github.com/panva)) ### [`v2.1.5`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v215-2022-10-10) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.4...v2.1.5) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.4...v2.1.5) **Fixed** - Fix GetVerificationKey typing to include undefined [#&#8203;329](https://redirect.github.com/auth0/node-jwks-rsa/pull/329) ([AaronMoat](https://redirect.github.com/AaronMoat)) ### [`v2.1.4`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v214-2022-06-07) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.3...v2.1.4) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.3...v2.1.4) **Fixed** - Type definitions depend on jsonwebtoken [#&#8203;314](https://redirect.github.com/auth0/node-jwks-rsa/pull/314) ([adamjmcgrath](https://redirect.github.com/adamjmcgrath)) ### [`v2.1.3`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v213-2022-05-20) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.2...v2.1.3) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.2...v2.1.3) **Fixed** - Fix issue with ES Express import [#&#8203;310](https://redirect.github.com/auth0/node-jwks-rsa/pull/310) ([adamjmcgrath](https://redirect.github.com/adamjmcgrath)) ### [`v2.1.2`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v212-2022-05-12) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.1...v2.1.2) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.1...v2.1.2) **Fixed** - fix: express build error [#&#8203;304](https://redirect.github.com/auth0/node-jwks-rsa/pull/304) ([blindperson](https://redirect.github.com/blindperson)) ### [`v2.1.1`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v211-2022-05-06) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.0...v2.1.1) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.1.0...v2.1.1) **Fixed** - fix: types-compabitility for express-jwt @&#8203; 7 [#&#8203;301](https://redirect.github.com/auth0/node-jwks-rsa/pull/301) ([carboneater](https://redirect.github.com/carboneater)) ### [`v2.1.0`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v210-2022-04-26) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.0.5...v2.1.0) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.0.5...v2.1.0) **Added** - add support for express-jwt@7 [#&#8203;297](https://redirect.github.com/auth0/node-jwks-rsa/pull/297) ([jfromaniello](https://redirect.github.com/jfromaniello)) **Fixed** - fix(type): correct the wrong type of the `getSigningKey` function arg… [#&#8203;289](https://redirect.github.com/auth0/node-jwks-rsa/pull/289) ([stegano](https://redirect.github.com/stegano)) ### [`v2.0.5`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#v205-2021-10-15) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/2.0.4...v2.0.5) [Full Changelog](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.0.4...v2.0.5) **Fixed** - Destroy the request when reaches the timeout ([#&#8203;270](https://redirect.github.com/auth0/node-jwks-rsa/issues/270)) [#&#8203;271](https://redirect.github.com/auth0/node-jwks-rsa/pull/271) ([amrsalama](https://redirect.github.com/amrsalama)) - \[SDK-2833] Fix issue where errors were being cached [#&#8203;268](https://redirect.github.com/auth0/node-jwks-rsa/pull/268) ([adamjmcgrath](https://redirect.github.com/adamjmcgrath)) ### [`v2.0.4`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#204---2021-07-16) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.0.3...2.0.4) **Fixed** - \[SDK-2626] getKeysInterceptor types [#&#8203;251](https://redirect.github.com/auth0/node-jwks-rsa/pull/251) ([davidpatrick](https://redirect.github.com/davidpatrick)) ### [`v2.0.3`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#203---2021-04-20) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.0.2...v2.0.3) **Fixed** - Fix retrieveSigningKeys error [#&#8203;242](https://redirect.github.com/auth0/node-jwks-rsa/pull/237) ([davidpatrick](https://redirect.github.com/davidpatrick)) **Security** - Bump jose from 2.0.3 to 2.0.5 [#&#8203;244](https://redirect.github.com/auth0/node-jwks-rsa/pull/244) ([dependabot](https://redirect.github.com/dependabot)) ### [`v2.0.2`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#202---2021-03-24) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.0.1...v2.0.2) **Fixed** - Interceptor bind client [#&#8203;237](https://redirect.github.com/auth0/node-jwks-rsa/pull/237) ([erikfried](https://redirect.github.com/erikfried)) - Update type def for getSigningKey [#&#8203;236](https://redirect.github.com/auth0/node-jwks-rsa/pull/236) ([davidpatrick](https://redirect.github.com/davidpatrick)) - Use hostname instead of host when creating request [#&#8203;233](https://redirect.github.com/auth0/node-jwks-rsa/pull/233) ([cjlpowers](https://redirect.github.com/cjlpowers)) ### [`v2.0.1`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#201---2021-03-12) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v2.0.0...v2.0.1) **Added** - Callback backwards compatbility for `getSigningKey` [#&#8203;227](https://redirect.github.com/auth0/node-jwks-rsa/pull/227) ([davidpatrick](https://redirect.github.com/davidpatrick)) **Fixed** - Fix typescript declarations for v2 [#&#8203;229](https://redirect.github.com/auth0/node-jwks-rsa/pull/229) ([davidpatrick](https://redirect.github.com/baywet)) - Fix typescript types for fetcher [#&#8203;231](https://redirect.github.com/auth0/node-jwks-rsa/pull/231) ([itajaja](https://redirect.github.com/itajaja)) ### [`v2.0.0`](https://redirect.github.com/auth0/node-jwks-rsa/blob/HEAD/CHANGELOG.md#200---2021-03-01) [Compare Source](https://redirect.github.com/auth0/node-jwks-rsa/compare/v1.12.3...v2.0.0) With version 2 we have added full JWK/JWS support. With this we have bumped the node version to minimum 10. We have also removed Axios and exposed a `fetcher` option to allow user's to completely override how the request to the `jwksUri` endpoint is made. ##### Breaking Changes - Drops support for Node < 10 - No more callbacks, using async/await(promises) - Removed Axios and changed the API to JwksClient ##### Changes **Added** - Full JWK/JWS Support [#&#8203;205](https://redirect.github.com/auth0/node-jwks-rsa/pull/205) ([panva](https://redirect.github.com/panva)) **Changed** - Simplify request wrapper [#&#8203;218](https://redirect.github.com/auth0/node-jwks-rsa/pull/218) ([davidpatrick](https://redirect.github.com/davidpatrick)) - Pins to Node Version 10,12,14 [#&#8203;212](https://redirect.github.com/auth0/node-jwks-rsa/pull/212) ([davidpatrick](https://redirect.github.com/davidpatrick)) - Migrate from callbacks to async/await [#&#8203;222](https://redirect.github.com/auth0/node-jwks-rsa/pull/222) ([davidpatrick](https://redirect.github.com/davidpatrick)) ##### Migration Guide from v1 to v2 ##### Proxies The proxy option has been removed from the JwksClient. Support for it was a little spotty through Axios, and we wanted to allow users to have more control over the flow. Now you can specify your proxy by overriding the `requestAgent` used with an [agent with built-in proxy support](https://redirect.github.com/TooTallNate/node-https-proxy-agent), or by completely overriding the request library with the `fetcher` option. ```js // OLD const oldClient = jwksClient({ jwksUri: 'https://sandrino.auth0.com/.well-known/jwks.json', proxy: 'https://username:pass@address:port' }); // NEW const HttpsProxyAgent = require('https-proxy-agent'); const newClient = jwksClient({ jwksUri: 'https://sandrino.auth0.com/.well-known/jwks.json', requestAgent: new HttpsProxyAgent('https://username:pass@address:port') }); ``` ##### Request Agent Options The library no longer gates what http(s) Agent is used, so we have removed `requestAgentOptions` and now expose the `requestAgent` option when creating a `jwksClient`. ```js // OLD const oldClient = jwksClient({ jwksUri: 'https://sandrino.auth0.com/.well-known/jwks.json', requestAgentOptions: { ca: fs.readFileSync(caFile) } }); // NEW const newClient = jwksClient({ jwksUri: 'https://sandrino.auth0.com/.well-known/jwks.json', requestAgent: new https.Agent({ ca: fs.readFileSync(caFile) }) }); ``` ##### Migrated Callbacks to Async/Await The library no longer supports callbacks. We have migrated to async/await(promises). ```js // OLD client.getSigningKey(kid, (err, key) => { const signingKey = key.getPublicKey(); }); // NEW const key = await client.getSigningKey(kid); const signingKey = key.getPublicKey(); ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - "every weekday" (UTC). 🚦 **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 [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzkuMTkuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJpbXBhY3Qvbm8tY2hhbmdlbG9nLXJlcXVpcmVkIl19--> Co-authored-by: pulumi-renovate[bot] <189166143+pulumi-renovate[bot]@users.noreply.github.com>
1 parent 2c8b0f7 commit a1fb9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-ts-apigateway-auth0/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@types/auth0-js": "^9.10.1",
1212
"@types/jsonwebtoken": "^9.0.0",
1313
"jsonwebtoken": "9.0.2",
14-
"jwks-rsa": "^1.4.0",
14+
"jwks-rsa": "^3.0.0",
1515
"typescript": "^5.0.0"
1616
}
1717
}

0 commit comments

Comments
 (0)