Skip to content

Commit f2f1b23

Browse files
authored
build: upgrade uuid and add cooldown period (#2834) [70.1.x] (#2839)
build: upgrade `uuid` and add cooldown period (#2834) * upgrade `uuid` to latest * add cooldown to 3rd party deps * remove `.github/dependabot.yml` * chore: update Jest configuration to support ESM-only uuid package - Added `transformIgnorePatterns` to include `uuid` for Jest transformation. - Configured Babel to compile `uuid`'s JavaScript files to CommonJS for Jest's runtime. - Updated `package.json` to include `babel-jest` as a dependency. - Updated `yarn.lock` to reflect the new dependencies and versions. # Conflicts: # package.json
1 parent a3b7773 commit f2f1b23

4 files changed

Lines changed: 183 additions & 6 deletions

File tree

jest.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,29 @@ module.exports = {
2222
'/node_modules/',
2323
],
2424
clearMocks: true,
25+
// uuid v10+ ships ESM-only; Jest does not transform node_modules by default.
26+
transformIgnorePatterns: ['/node_modules/(?!uuid/)'],
2527
transform: {
2628
'^.+\\.tsx?$': [
2729
'ts-jest',
2830
{
2931
tsconfig: 'tsconfig.jest.json',
3032
},
3133
],
34+
// Compile uuid's .js under node_modules to CJS for Jest's runtime.
35+
'[/\\\\]node_modules[/\\\\]uuid[/\\\\].+\\.js$': [
36+
'babel-jest',
37+
{
38+
presets: [
39+
[
40+
'@babel/preset-env',
41+
{
42+
targets: { node: 'current' },
43+
modules: 'commonjs',
44+
},
45+
],
46+
],
47+
},
48+
],
3249
},
3350
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
"@types/uuid": "^8.3.4",
109109
"@typescript-eslint/eslint-plugin": "^7.16.1",
110110
"@typescript-eslint/parser": "^7.16.1",
111+
"babel-jest": "^30.0.0",
111112
"babel-loader": "^8.3.0",
112113
"autoprefixer": "^9.0.0",
113114
"backport": "^5.6.6",

packages/charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"redux": "^4.2.1",
5151
"ts-debounce": "^4.0.0",
5252
"utility-types": "^3.10.0",
53-
"uuid": "^9",
53+
"uuid": "^14.0.0",
5454
"luxon": "^1.25.0"
5555
},
5656
"peerDependencies": {

yarn.lock

Lines changed: 164 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3788,6 +3788,14 @@
37883788
"@types/node" "*"
37893789
jest-regex-util "30.0.0"
37903790

3791+
"@jest/pattern@30.4.0":
3792+
version "30.4.0"
3793+
resolved "https://registry.yarnpkg.com/@jest/pattern/-/pattern-30.4.0.tgz#fcb519eeacc25caa3768f787595a27afa15302ae"
3794+
integrity sha512-RAWn3+f9u8BsHijKJ71uHcFp6vmyEt6VvoWXkl6hKF3qVIuWNmudVjg12DlBPGup/frIl5UcUlH5HfEuvHpEXg==
3795+
dependencies:
3796+
"@types/node" "*"
3797+
jest-regex-util "30.4.0"
3798+
37913799
"@jest/reporters@30.0.0":
37923800
version "30.0.0"
37933801
resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-30.0.0.tgz#a384cc5692e3288617f6993c3267314f8f865781"
@@ -3824,6 +3832,13 @@
38243832
dependencies:
38253833
"@sinclair/typebox" "^0.34.0"
38263834

3835+
"@jest/schemas@30.4.1":
3836+
version "30.4.1"
3837+
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-30.4.1.tgz#c3703fdd71357e2c83aa59bd38469e60a11529c6"
3838+
integrity sha512-i6b4qw5qnP8c5FEeBJg/uZQ4ddrkN6Ca8qISJh0pr7a5hfn3h3v5x60BEbOC7OYAGZNMs1LfFLwnW2CuK8F57Q==
3839+
dependencies:
3840+
"@sinclair/typebox" "^0.34.0"
3841+
38273842
"@jest/schemas@^29.0.0":
38283843
version "29.0.0"
38293844
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a"
@@ -3891,6 +3906,26 @@
38913906
slash "^3.0.0"
38923907
write-file-atomic "^5.0.1"
38933908

3909+
"@jest/transform@30.4.1":
3910+
version "30.4.1"
3911+
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-30.4.1.tgz#1646cddb800d38d9c4e30fecfd4a6eba0fa8acfa"
3912+
integrity sha512-Wz0LyktlTvRefoymh+n64hQ84KNXsRGcwdoZ8CSa0Ea+fgYcHZlnk+hDP7v2MS7il2bQ5uTEIxf4/NNfhMN4KQ==
3913+
dependencies:
3914+
"@babel/core" "^7.27.4"
3915+
"@jest/types" "30.4.1"
3916+
"@jridgewell/trace-mapping" "^0.3.25"
3917+
babel-plugin-istanbul "^7.0.1"
3918+
chalk "^4.1.2"
3919+
convert-source-map "^2.0.0"
3920+
fast-json-stable-stringify "^2.1.0"
3921+
graceful-fs "^4.2.11"
3922+
jest-haste-map "30.4.1"
3923+
jest-regex-util "30.4.0"
3924+
jest-util "30.4.1"
3925+
pirates "^4.0.7"
3926+
slash "^3.0.0"
3927+
write-file-atomic "^5.0.1"
3928+
38943929
"@jest/transform@^26.6.2":
38953930
version "26.6.2"
38963931
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b"
@@ -3925,6 +3960,19 @@
39253960
"@types/yargs" "^17.0.33"
39263961
chalk "^4.1.2"
39273962

3963+
"@jest/types@30.4.1":
3964+
version "30.4.1"
3965+
resolved "https://registry.yarnpkg.com/@jest/types/-/types-30.4.1.tgz#f79b647a85cb2ff4a90cc55984b31dae820db1f7"
3966+
integrity sha512-f1x/vJXIfjOlEmejYpbkbgw1gOqpPECwMvMEtBqe47j7H2Hg8h8w3o3ikhSXq3MI15kg+oQ0exWO0uCtTNJLoQ==
3967+
dependencies:
3968+
"@jest/pattern" "30.4.0"
3969+
"@jest/schemas" "30.4.1"
3970+
"@types/istanbul-lib-coverage" "^2.0.6"
3971+
"@types/istanbul-reports" "^3.0.4"
3972+
"@types/node" "*"
3973+
"@types/yargs" "^17.0.33"
3974+
chalk "^4.1.2"
3975+
39283976
"@jest/types@^26.6.2":
39293977
version "26.6.2"
39303978
resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e"
@@ -8576,6 +8624,19 @@ babel-jest@30.0.0:
85768624
graceful-fs "^4.2.11"
85778625
slash "^3.0.0"
85788626

8627+
babel-jest@^30.0.0:
8628+
version "30.4.1"
8629+
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-30.4.1.tgz#63cba904438bbe64c4cf0acdea87b0a45cb809fc"
8630+
integrity sha512-fATAbM8piYxkiXQp3RBXmZHxZVNJZAVXXfyeyCN2Tida3+qJ8ea9UxhiJ2y4fLO90ZImKt6k9FlcH2+rLkJGhw==
8631+
dependencies:
8632+
"@jest/transform" "30.4.1"
8633+
"@types/babel__core" "^7.20.5"
8634+
babel-plugin-istanbul "^7.0.1"
8635+
babel-preset-jest "30.4.0"
8636+
chalk "^4.1.2"
8637+
graceful-fs "^4.2.11"
8638+
slash "^3.0.0"
8639+
85798640
babel-loader@^8.0.0, babel-loader@^8.3.0:
85808641
version "8.3.0"
85818642
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.3.0.tgz#124936e841ba4fe8176786d6ff28add1f134d6a8"
@@ -8708,6 +8769,17 @@ babel-plugin-istanbul@^7.0.0:
87088769
istanbul-lib-instrument "^6.0.2"
87098770
test-exclude "^6.0.0"
87108771

8772+
babel-plugin-istanbul@^7.0.1:
8773+
version "7.0.1"
8774+
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.1.tgz#d8b518c8ea199364cf84ccc82de89740236daf92"
8775+
integrity sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==
8776+
dependencies:
8777+
"@babel/helper-plugin-utils" "^7.0.0"
8778+
"@istanbuljs/load-nyc-config" "^1.0.0"
8779+
"@istanbuljs/schema" "^0.1.3"
8780+
istanbul-lib-instrument "^6.0.2"
8781+
test-exclude "^6.0.0"
8782+
87118783
babel-plugin-jest-hoist@30.0.0:
87128784
version "30.0.0"
87138785
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.0.0.tgz#76c9bf58316ebb7026d671d71d26138ae415326b"
@@ -8717,6 +8789,13 @@ babel-plugin-jest-hoist@30.0.0:
87178789
"@babel/types" "^7.27.3"
87188790
"@types/babel__core" "^7.20.5"
87198791

8792+
babel-plugin-jest-hoist@30.4.0:
8793+
version "30.4.0"
8794+
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.4.0.tgz#f7d6a6d8f435808b56b45a81dc4b61a39e36794a"
8795+
integrity sha512-9EdtWM/sSfXLOGLwSn+GS6pIXyBnL07/8gyJlwFXjWy4DxMOyItqyUT29d4lQiS380EZwYlX7/At4PgBS+m2aA==
8796+
dependencies:
8797+
"@types/babel__core" "^7.20.5"
8798+
87208799
babel-plugin-macros@^2.0.0, babel-plugin-macros@^2.8.0:
87218800
version "2.8.0"
87228801
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138"
@@ -8831,6 +8910,27 @@ babel-preset-current-node-syntax@^1.1.0:
88318910
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
88328911
"@babel/plugin-syntax-top-level-await" "^7.14.5"
88338912

8913+
babel-preset-current-node-syntax@^1.2.0:
8914+
version "1.2.0"
8915+
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz#20730d6cdc7dda5d89401cab10ac6a32067acde6"
8916+
integrity sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==
8917+
dependencies:
8918+
"@babel/plugin-syntax-async-generators" "^7.8.4"
8919+
"@babel/plugin-syntax-bigint" "^7.8.3"
8920+
"@babel/plugin-syntax-class-properties" "^7.12.13"
8921+
"@babel/plugin-syntax-class-static-block" "^7.14.5"
8922+
"@babel/plugin-syntax-import-attributes" "^7.24.7"
8923+
"@babel/plugin-syntax-import-meta" "^7.10.4"
8924+
"@babel/plugin-syntax-json-strings" "^7.8.3"
8925+
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
8926+
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
8927+
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
8928+
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
8929+
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
8930+
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
8931+
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
8932+
"@babel/plugin-syntax-top-level-await" "^7.14.5"
8933+
88348934
babel-preset-jest@30.0.0:
88358935
version "30.0.0"
88368936
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-30.0.0.tgz#54b16c96c1b687b9c72baa37a00b01fe9be4c4f3"
@@ -8839,6 +8939,14 @@ babel-preset-jest@30.0.0:
88398939
babel-plugin-jest-hoist "30.0.0"
88408940
babel-preset-current-node-syntax "^1.1.0"
88418941

8942+
babel-preset-jest@30.4.0:
8943+
version "30.4.0"
8944+
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-30.4.0.tgz#295486c2ec1127b3dc7d0d2adaa72a1dcaaafccd"
8945+
integrity sha512-lBY4jxsNmCnSiu7kquw8ZC9F4+XLMOKypT3RnNHPvU2Kpd4W0xaPuLr5ZkRyOsvLYAY4yaW1ZwTW4xB7NIiZzg==
8946+
dependencies:
8947+
babel-plugin-jest-hoist "30.4.0"
8948+
babel-preset-current-node-syntax "^1.2.0"
8949+
88428950
backport@^5.6.6:
88438951
version "5.6.6"
88448952
resolved "https://registry.yarnpkg.com/backport/-/backport-5.6.6.tgz#cb03f948a36386734fa491343b93f4ca280e00f3"
@@ -15961,6 +16069,24 @@ jest-haste-map@30.0.0:
1596116069
optionalDependencies:
1596216070
fsevents "^2.3.3"
1596316071

16072+
jest-haste-map@30.4.1:
16073+
version "30.4.1"
16074+
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-30.4.1.tgz#6d80d09d668c20bf3944977e50acac94fcd672fe"
16075+
integrity sha512-rFrcONd8jeFsyw+Z9CrScJgglRf2+NFmNam8dKu7n+SoHqNYT47mn0DdEcVUZJpvh7Iz6/si7f7yUH7GJHVgnw==
16076+
dependencies:
16077+
"@jest/types" "30.4.1"
16078+
"@types/node" "*"
16079+
anymatch "^3.1.3"
16080+
fb-watchman "^2.0.2"
16081+
graceful-fs "^4.2.11"
16082+
jest-regex-util "30.4.0"
16083+
jest-util "30.4.1"
16084+
jest-worker "30.4.1"
16085+
picomatch "^4.0.3"
16086+
walker "^1.0.8"
16087+
optionalDependencies:
16088+
fsevents "^2.3.3"
16089+
1596416090
jest-haste-map@^26.6.2:
1596516091
version "26.6.2"
1596616092
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa"
@@ -16034,6 +16160,11 @@ jest-regex-util@30.0.0:
1603416160
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-30.0.0.tgz#031f385ebb947e770e409ede703d200b3405413e"
1603516161
integrity sha512-rT84010qRu/5OOU7a9TeidC2Tp3Qgt9Sty4pOZ/VSDuEmRupIjKZAb53gU3jr4ooMlhwScrgC9UixJxWzVu9oQ==
1603616162

16163+
jest-regex-util@30.4.0:
16164+
version "30.4.0"
16165+
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-30.4.0.tgz#f75ccc43857633df2563a03588b5cb45c7c2941b"
16166+
integrity sha512-mWlvLviKIgIQ8VCuM1xRdD0TWp3zlzionlmDBjuXVBs+VkmXq6FgW9T4Emr7oGz/Rk6feDCGyiugolcQEyp3mg==
16167+
1603716168
jest-regex-util@^26.0.0:
1603816169
version "26.0.0"
1603916170
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28"
@@ -16164,6 +16295,18 @@ jest-util@30.0.0:
1616416295
graceful-fs "^4.2.11"
1616516296
picomatch "^4.0.2"
1616616297

16298+
jest-util@30.4.1:
16299+
version "30.4.1"
16300+
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-30.4.1.tgz#979c9d014fdd12bb95d3dcde0192e1a9e0bc93d6"
16301+
integrity sha512-vjQb1sACEiv13DKJMDToJpzVW0joCsIQrmbg0fi7CyOOt+g9jTuQl2A216pWRBYhOVt53XbL/2LbMKg1BECWOw==
16302+
dependencies:
16303+
"@jest/types" "30.4.1"
16304+
"@types/node" "*"
16305+
chalk "^4.1.2"
16306+
ci-info "^4.2.0"
16307+
graceful-fs "^4.2.11"
16308+
picomatch "^4.0.3"
16309+
1616716310
jest-util@^26.6.2:
1616816311
version "26.6.2"
1616916312
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1"
@@ -16213,6 +16356,17 @@ jest-worker@30.0.0:
1621316356
merge-stream "^2.0.0"
1621416357
supports-color "^8.1.1"
1621516358

16359+
jest-worker@30.4.1:
16360+
version "30.4.1"
16361+
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-30.4.1.tgz#ac010eb6c512425748a39e2d6bf05b2c4866ca4f"
16362+
integrity sha512-SHynN/q/QD++iNyvMdy+WMmbCGk8jIsNcRxycXbWubSOhvo6T+j2afcfUSl+3hYsiBebOTo0cT7c2H7CXugu1g==
16363+
dependencies:
16364+
"@types/node" "*"
16365+
"@ungap/structured-clone" "^1.3.0"
16366+
jest-util "30.4.1"
16367+
merge-stream "^2.0.0"
16368+
supports-color "^8.1.1"
16369+
1621616370
jest-worker@^26.5.0, jest-worker@^26.6.2:
1621716371
version "26.6.2"
1621816372
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed"
@@ -19519,6 +19673,11 @@ picomatch@^4.0.2:
1951919673
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.2.tgz#77c742931e8f3b8820946c76cd0c1f13730d1dab"
1952019674
integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==
1952119675

19676+
picomatch@^4.0.3:
19677+
version "4.0.4"
19678+
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.4.tgz#fd6f5e00a143086e074dffe4c924b8fb293b0589"
19679+
integrity sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==
19680+
1952219681
pify@^2.3.0:
1952319682
version "2.3.0"
1952419683
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
@@ -24237,6 +24396,11 @@ uuid-browser@^3.1.0:
2423724396
resolved "https://registry.yarnpkg.com/uuid-browser/-/uuid-browser-3.1.0.tgz#0f05a40aef74f9e5951e20efbf44b11871e56410"
2423824397
integrity sha1-DwWkCu90+eWVHiDvv0SxGHHlZBA=
2423924398

24399+
uuid@^14.0.0:
24400+
version "14.0.0"
24401+
resolved "https://registry.yarnpkg.com/uuid/-/uuid-14.0.0.tgz#0af883220163d264ffe0c084f6b8a89b9666966d"
24402+
integrity sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==
24403+
2424024404
uuid@^3.1.0, uuid@^3.3.2, uuid@^3.4.0:
2424124405
version "3.4.0"
2424224406
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
@@ -24247,11 +24411,6 @@ uuid@^8.3.0, uuid@^8.3.2:
2424724411
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
2424824412
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
2424924413

24250-
uuid@^9:
24251-
version "9.0.0"
24252-
resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5"
24253-
integrity sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==
24254-
2425524414
v8-compile-cache@2.3.0, v8-compile-cache@^2.2.0:
2425624415
version "2.3.0"
2425724416
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"

0 commit comments

Comments
 (0)