From 174be68e84337fc90cb8761f39de2726ed416644 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:40:10 +0000 Subject: [PATCH 1/3] build(deps): bump nanoid from 3.3.4 to 5.0.9 Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.4 to 5.0.9. - [Release notes](https://github.com/ai/nanoid/releases) - [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](https://github.com/ai/nanoid/compare/3.3.4...5.0.9) --- updated-dependencies: - dependency-name: nanoid dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 121d0ea77..95ac5ce5a 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "i18next-parser": "^9.0.2", "js-base64": "3.7.7", "lodash": "^4.17.21", - "nanoid": "^3.3.8", + "nanoid": "^5.0.9", "react": "^17.0.2", "react-dom": "^17.0.2", "react-i18next": "^15.1.0", diff --git a/yarn.lock b/yarn.lock index a3aeb9caf..f8b672d2a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4392,7 +4392,7 @@ __metadata: mini-css-extract-plugin: ^2.9.1 miragejs: ^0.1.48 mock-socket: ^9.3.1 - nanoid: ^3.3.8 + nanoid: ^5.0.9 npm-run-all: ^4.1.5 prettier: ^3.3.3 prop-types: ^15.7.2 @@ -10030,12 +10030,12 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:^3.3.8": - version: 3.3.8 - resolution: "nanoid@npm:3.3.8" +"nanoid@npm:^5.0.9": + version: 5.0.9 + resolution: "nanoid@npm:5.0.9" bin: - nanoid: bin/nanoid.cjs - checksum: dfe0adbc0c77e9655b550c333075f51bb28cfc7568afbf3237249904f9c86c9aaaed1f113f0fddddba75673ee31c758c30c43d4414f014a52a7a626efc5958c9 + nanoid: bin/nanoid.js + checksum: 8a3f9104f81095e3e4785f58caae47a05755599824b8611b9730cbf73db706b664f100e6189f8303f08764f144d499613d8e4a39e83125c53f4b4986d6576621 languageName: node linkType: hard From 6145d6d105f415c5a3f46b1074efe29c777229fc Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Tue, 7 Jan 2025 15:33:26 -0500 Subject: [PATCH 2/3] build(deps): bump nanoid from 3.3.8 to 5.0.9 --- jest.config.js | 2 +- test-setup.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/jest.config.js b/jest.config.js index 611b7b559..31324876b 100644 --- a/jest.config.js +++ b/jest.config.js @@ -56,7 +56,7 @@ module.exports = { } }, - // An array of regexp pattern strings that are matched against all source file paths before transformation. + // An array of regexp pattern strings that are matched against all source file paths before transformation. // If the file path matches any of the patterns, it will not be transformed. transformIgnorePatterns: [ "/node_modules/(?!@patternfly|d3|d3-array|internmap|delaunator|robust-predicates)", diff --git a/test-setup.js b/test-setup.js index a58055ebc..f98d214ca 100644 --- a/test-setup.js +++ b/test-setup.js @@ -1,4 +1,4 @@ -// Mock out the services shared across the app in order to help isolate +// Mock out the services shared across the app in order to help isolate // components from the ServiceContext import '@i18n/config'; @@ -27,7 +27,7 @@ jest.mock('@i18n/datetime', () => ({ short: 'EST', }, ], - defaultDatetimeFormat: + defaultDatetimeFormat: { dateLocale: { key: 'en', @@ -51,3 +51,6 @@ jest.mock('@i18n/datetime', () => ({ } ] })); +jest.mock('nanoid', () => { + return { nanoid: () => '1234' }; +}); From 0b8dfd5fd87134681d8441bf11e245b7b97f2b13 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Tue, 7 Jan 2025 15:48:21 -0500 Subject: [PATCH 3/3] comment --- test-setup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test-setup.js b/test-setup.js index f98d214ca..bd98d206c 100644 --- a/test-setup.js +++ b/test-setup.js @@ -51,6 +51,7 @@ jest.mock('@i18n/datetime', () => ({ } ] })); +// https://github.com/ai/nanoid/issues/365#issuecomment-2035498047 jest.mock('nanoid', () => { return { nanoid: () => '1234' }; });