Skip to content

Commit 28fee03

Browse files
committed
build: upgrade uuid and add cooldown period (#2834) [71.5.x] (#2840)
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.
1 parent 7880589 commit 28fee03

5 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
@@ -23,12 +23,29 @@ module.exports = {
2323
'/node_modules/',
2424
],
2525
clearMocks: true,
26+
// uuid v10+ ships ESM-only; Jest does not transform node_modules by default.
27+
transformIgnorePatterns: ['/node_modules/(?!uuid/)'],
2628
transform: {
2729
'^.+\\.tsx?$': [
2830
'ts-jest',
2931
{
3032
tsconfig: 'tsconfig.jest.json',
3133
},
3234
],
35+
// Compile uuid's .js under node_modules to CJS for Jest's runtime.
36+
'[/\\\\]node_modules[/\\\\]uuid[/\\\\].+\\.js$': [
37+
'babel-jest',
38+
{
39+
presets: [
40+
[
41+
'@babel/preset-env',
42+
{
43+
targets: { node: 'current' },
44+
modules: 'commonjs',
45+
},
46+
],
47+
],
48+
},
49+
],
3350
},
3451
};

package.json

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

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": {

renovate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
},
3535
{
3636
"groupName": "@elastic/eui",
37+
"minimumReleaseAge": "14 days",
3738
"matchPackageNames": ["@elastic/eui", "@elastic/datemath"],
3839
"matchUpdateTypes": ["major"],
3940
"schedule": ["every 1 week on monday"],
@@ -43,6 +44,7 @@
4344
},
4445
{
4546
"groupName": "typescript",
47+
"minimumReleaseAge": "14 days",
4648
"automerge": true,
4749
"enabled": true,
4850
"matchPackageNames": [
@@ -57,6 +59,7 @@
5759
},
5860
{
5961
"groupName": "eslint",
62+
"minimumReleaseAge": "14 days",
6063
"matchPackageNames": [
6164
"prettier",
6265
"pretty-quick",
@@ -69,12 +72,14 @@
6972
},
7073
{
7174
"groupName": "jest",
75+
"minimumReleaseAge": "14 days",
7276
"automerge": true,
7377
"enabled": true,
7478
"matchPackageNames": ["/.*jest.*/"]
7579
},
7680
{
7781
"groupName": "playwright",
82+
"minimumReleaseAge": "14 days",
7883
"matchPackageNames": ["@playwright/test"],
7984
"automerge": true,
8085
"enabled": true

yarn.lock

Lines changed: 159 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3840,6 +3840,14 @@
38403840
"@types/node" "*"
38413841
jest-regex-util "30.0.0"
38423842

3843+
"@jest/pattern@30.4.0":
3844+
version "30.4.0"
3845+
resolved "https://registry.yarnpkg.com/@jest/pattern/-/pattern-30.4.0.tgz#fcb519eeacc25caa3768f787595a27afa15302ae"
3846+
integrity sha512-RAWn3+f9u8BsHijKJ71uHcFp6vmyEt6VvoWXkl6hKF3qVIuWNmudVjg12DlBPGup/frIl5UcUlH5HfEuvHpEXg==
3847+
dependencies:
3848+
"@types/node" "*"
3849+
jest-regex-util "30.4.0"
3850+
38433851
"@jest/reporters@30.0.0":
38443852
version "30.0.0"
38453853
resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-30.0.0.tgz#a384cc5692e3288617f6993c3267314f8f865781"
@@ -3876,6 +3884,13 @@
38763884
dependencies:
38773885
"@sinclair/typebox" "^0.34.0"
38783886

3887+
"@jest/schemas@30.4.1":
3888+
version "30.4.1"
3889+
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-30.4.1.tgz#c3703fdd71357e2c83aa59bd38469e60a11529c6"
3890+
integrity sha512-i6b4qw5qnP8c5FEeBJg/uZQ4ddrkN6Ca8qISJh0pr7a5hfn3h3v5x60BEbOC7OYAGZNMs1LfFLwnW2CuK8F57Q==
3891+
dependencies:
3892+
"@sinclair/typebox" "^0.34.0"
3893+
38793894
"@jest/schemas@^29.0.0":
38803895
version "29.0.0"
38813896
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a"
@@ -3943,6 +3958,26 @@
39433958
slash "^3.0.0"
39443959
write-file-atomic "^5.0.1"
39453960

3961+
"@jest/transform@30.4.1":
3962+
version "30.4.1"
3963+
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-30.4.1.tgz#1646cddb800d38d9c4e30fecfd4a6eba0fa8acfa"
3964+
integrity sha512-Wz0LyktlTvRefoymh+n64hQ84KNXsRGcwdoZ8CSa0Ea+fgYcHZlnk+hDP7v2MS7il2bQ5uTEIxf4/NNfhMN4KQ==
3965+
dependencies:
3966+
"@babel/core" "^7.27.4"
3967+
"@jest/types" "30.4.1"
3968+
"@jridgewell/trace-mapping" "^0.3.25"
3969+
babel-plugin-istanbul "^7.0.1"
3970+
chalk "^4.1.2"
3971+
convert-source-map "^2.0.0"
3972+
fast-json-stable-stringify "^2.1.0"
3973+
graceful-fs "^4.2.11"
3974+
jest-haste-map "30.4.1"
3975+
jest-regex-util "30.4.0"
3976+
jest-util "30.4.1"
3977+
pirates "^4.0.7"
3978+
slash "^3.0.0"
3979+
write-file-atomic "^5.0.1"
3980+
39463981
"@jest/transform@^26.6.2":
39473982
version "26.6.2"
39483983
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b"
@@ -3977,6 +4012,19 @@
39774012
"@types/yargs" "^17.0.33"
39784013
chalk "^4.1.2"
39794014

4015+
"@jest/types@30.4.1":
4016+
version "30.4.1"
4017+
resolved "https://registry.yarnpkg.com/@jest/types/-/types-30.4.1.tgz#f79b647a85cb2ff4a90cc55984b31dae820db1f7"
4018+
integrity sha512-f1x/vJXIfjOlEmejYpbkbgw1gOqpPECwMvMEtBqe47j7H2Hg8h8w3o3ikhSXq3MI15kg+oQ0exWO0uCtTNJLoQ==
4019+
dependencies:
4020+
"@jest/pattern" "30.4.0"
4021+
"@jest/schemas" "30.4.1"
4022+
"@types/istanbul-lib-coverage" "^2.0.6"
4023+
"@types/istanbul-reports" "^3.0.4"
4024+
"@types/node" "*"
4025+
"@types/yargs" "^17.0.33"
4026+
chalk "^4.1.2"
4027+
39804028
"@jest/types@^26.6.2":
39814029
version "26.6.2"
39824030
resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e"
@@ -8934,6 +8982,19 @@ babel-jest@30.0.0:
89348982
graceful-fs "^4.2.11"
89358983
slash "^3.0.0"
89368984

8985+
babel-jest@^30.0.0:
8986+
version "30.4.1"
8987+
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-30.4.1.tgz#63cba904438bbe64c4cf0acdea87b0a45cb809fc"
8988+
integrity sha512-fATAbM8piYxkiXQp3RBXmZHxZVNJZAVXXfyeyCN2Tida3+qJ8ea9UxhiJ2y4fLO90ZImKt6k9FlcH2+rLkJGhw==
8989+
dependencies:
8990+
"@jest/transform" "30.4.1"
8991+
"@types/babel__core" "^7.20.5"
8992+
babel-plugin-istanbul "^7.0.1"
8993+
babel-preset-jest "30.4.0"
8994+
chalk "^4.1.2"
8995+
graceful-fs "^4.2.11"
8996+
slash "^3.0.0"
8997+
89378998
babel-loader@^8.0.0, babel-loader@^8.3.0:
89388999
version "8.3.0"
89399000
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.3.0.tgz#124936e841ba4fe8176786d6ff28add1f134d6a8"
@@ -9066,6 +9127,17 @@ babel-plugin-istanbul@^7.0.0:
90669127
istanbul-lib-instrument "^6.0.2"
90679128
test-exclude "^6.0.0"
90689129

9130+
babel-plugin-istanbul@^7.0.1:
9131+
version "7.0.1"
9132+
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.1.tgz#d8b518c8ea199364cf84ccc82de89740236daf92"
9133+
integrity sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==
9134+
dependencies:
9135+
"@babel/helper-plugin-utils" "^7.0.0"
9136+
"@istanbuljs/load-nyc-config" "^1.0.0"
9137+
"@istanbuljs/schema" "^0.1.3"
9138+
istanbul-lib-instrument "^6.0.2"
9139+
test-exclude "^6.0.0"
9140+
90699141
babel-plugin-jest-hoist@30.0.0:
90709142
version "30.0.0"
90719143
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.0.0.tgz#76c9bf58316ebb7026d671d71d26138ae415326b"
@@ -9075,6 +9147,13 @@ babel-plugin-jest-hoist@30.0.0:
90759147
"@babel/types" "^7.27.3"
90769148
"@types/babel__core" "^7.20.5"
90779149

9150+
babel-plugin-jest-hoist@30.4.0:
9151+
version "30.4.0"
9152+
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.4.0.tgz#f7d6a6d8f435808b56b45a81dc4b61a39e36794a"
9153+
integrity sha512-9EdtWM/sSfXLOGLwSn+GS6pIXyBnL07/8gyJlwFXjWy4DxMOyItqyUT29d4lQiS380EZwYlX7/At4PgBS+m2aA==
9154+
dependencies:
9155+
"@types/babel__core" "^7.20.5"
9156+
90789157
babel-plugin-macros@^2.0.0, babel-plugin-macros@^2.8.0:
90799158
version "2.8.0"
90809159
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138"
@@ -9189,6 +9268,27 @@ babel-preset-current-node-syntax@^1.1.0:
91899268
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
91909269
"@babel/plugin-syntax-top-level-await" "^7.14.5"
91919270

9271+
babel-preset-current-node-syntax@^1.2.0:
9272+
version "1.2.0"
9273+
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz#20730d6cdc7dda5d89401cab10ac6a32067acde6"
9274+
integrity sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==
9275+
dependencies:
9276+
"@babel/plugin-syntax-async-generators" "^7.8.4"
9277+
"@babel/plugin-syntax-bigint" "^7.8.3"
9278+
"@babel/plugin-syntax-class-properties" "^7.12.13"
9279+
"@babel/plugin-syntax-class-static-block" "^7.14.5"
9280+
"@babel/plugin-syntax-import-attributes" "^7.24.7"
9281+
"@babel/plugin-syntax-import-meta" "^7.10.4"
9282+
"@babel/plugin-syntax-json-strings" "^7.8.3"
9283+
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
9284+
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
9285+
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
9286+
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
9287+
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
9288+
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
9289+
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
9290+
"@babel/plugin-syntax-top-level-await" "^7.14.5"
9291+
91929292
babel-preset-jest@30.0.0:
91939293
version "30.0.0"
91949294
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-30.0.0.tgz#54b16c96c1b687b9c72baa37a00b01fe9be4c4f3"
@@ -9197,6 +9297,14 @@ babel-preset-jest@30.0.0:
91979297
babel-plugin-jest-hoist "30.0.0"
91989298
babel-preset-current-node-syntax "^1.1.0"
91999299

9300+
babel-preset-jest@30.4.0:
9301+
version "30.4.0"
9302+
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-30.4.0.tgz#295486c2ec1127b3dc7d0d2adaa72a1dcaaafccd"
9303+
integrity sha512-lBY4jxsNmCnSiu7kquw8ZC9F4+XLMOKypT3RnNHPvU2Kpd4W0xaPuLr5ZkRyOsvLYAY4yaW1ZwTW4xB7NIiZzg==
9304+
dependencies:
9305+
babel-plugin-jest-hoist "30.4.0"
9306+
babel-preset-current-node-syntax "^1.2.0"
9307+
92009308
backport@^5.6.6:
92019309
version "5.6.6"
92029310
resolved "https://registry.yarnpkg.com/backport/-/backport-5.6.6.tgz#cb03f948a36386734fa491343b93f4ca280e00f3"
@@ -16571,6 +16679,24 @@ jest-haste-map@30.0.0:
1657116679
optionalDependencies:
1657216680
fsevents "^2.3.3"
1657316681

16682+
jest-haste-map@30.4.1:
16683+
version "30.4.1"
16684+
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-30.4.1.tgz#6d80d09d668c20bf3944977e50acac94fcd672fe"
16685+
integrity sha512-rFrcONd8jeFsyw+Z9CrScJgglRf2+NFmNam8dKu7n+SoHqNYT47mn0DdEcVUZJpvh7Iz6/si7f7yUH7GJHVgnw==
16686+
dependencies:
16687+
"@jest/types" "30.4.1"
16688+
"@types/node" "*"
16689+
anymatch "^3.1.3"
16690+
fb-watchman "^2.0.2"
16691+
graceful-fs "^4.2.11"
16692+
jest-regex-util "30.4.0"
16693+
jest-util "30.4.1"
16694+
jest-worker "30.4.1"
16695+
picomatch "^4.0.3"
16696+
walker "^1.0.8"
16697+
optionalDependencies:
16698+
fsevents "^2.3.3"
16699+
1657416700
jest-haste-map@^26.6.2:
1657516701
version "26.6.2"
1657616702
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa"
@@ -16644,6 +16770,11 @@ jest-regex-util@30.0.0:
1664416770
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-30.0.0.tgz#031f385ebb947e770e409ede703d200b3405413e"
1664516771
integrity sha512-rT84010qRu/5OOU7a9TeidC2Tp3Qgt9Sty4pOZ/VSDuEmRupIjKZAb53gU3jr4ooMlhwScrgC9UixJxWzVu9oQ==
1664616772

16773+
jest-regex-util@30.4.0:
16774+
version "30.4.0"
16775+
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-30.4.0.tgz#f75ccc43857633df2563a03588b5cb45c7c2941b"
16776+
integrity sha512-mWlvLviKIgIQ8VCuM1xRdD0TWp3zlzionlmDBjuXVBs+VkmXq6FgW9T4Emr7oGz/Rk6feDCGyiugolcQEyp3mg==
16777+
1664716778
jest-regex-util@^26.0.0:
1664816779
version "26.0.0"
1664916780
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28"
@@ -16774,6 +16905,18 @@ jest-util@30.0.0:
1677416905
graceful-fs "^4.2.11"
1677516906
picomatch "^4.0.2"
1677616907

16908+
jest-util@30.4.1:
16909+
version "30.4.1"
16910+
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-30.4.1.tgz#979c9d014fdd12bb95d3dcde0192e1a9e0bc93d6"
16911+
integrity sha512-vjQb1sACEiv13DKJMDToJpzVW0joCsIQrmbg0fi7CyOOt+g9jTuQl2A216pWRBYhOVt53XbL/2LbMKg1BECWOw==
16912+
dependencies:
16913+
"@jest/types" "30.4.1"
16914+
"@types/node" "*"
16915+
chalk "^4.1.2"
16916+
ci-info "^4.2.0"
16917+
graceful-fs "^4.2.11"
16918+
picomatch "^4.0.3"
16919+
1677716920
jest-util@^26.6.2:
1677816921
version "26.6.2"
1677916922
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1"
@@ -16823,6 +16966,17 @@ jest-worker@30.0.0:
1682316966
merge-stream "^2.0.0"
1682416967
supports-color "^8.1.1"
1682516968

16969+
jest-worker@30.4.1:
16970+
version "30.4.1"
16971+
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-30.4.1.tgz#ac010eb6c512425748a39e2d6bf05b2c4866ca4f"
16972+
integrity sha512-SHynN/q/QD++iNyvMdy+WMmbCGk8jIsNcRxycXbWubSOhvo6T+j2afcfUSl+3hYsiBebOTo0cT7c2H7CXugu1g==
16973+
dependencies:
16974+
"@types/node" "*"
16975+
"@ungap/structured-clone" "^1.3.0"
16976+
jest-util "30.4.1"
16977+
merge-stream "^2.0.0"
16978+
supports-color "^8.1.1"
16979+
1682616980
jest-worker@^26.5.0, jest-worker@^26.6.2:
1682716981
version "26.6.2"
1682816982
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed"
@@ -25317,6 +25471,11 @@ uuid-browser@^3.1.0:
2531725471
resolved "https://registry.yarnpkg.com/uuid-browser/-/uuid-browser-3.1.0.tgz#0f05a40aef74f9e5951e20efbf44b11871e56410"
2531825472
integrity sha1-DwWkCu90+eWVHiDvv0SxGHHlZBA=
2531925473

25474+
uuid@^14.0.0:
25475+
version "14.0.0"
25476+
resolved "https://registry.yarnpkg.com/uuid/-/uuid-14.0.0.tgz#0af883220163d264ffe0c084f6b8a89b9666966d"
25477+
integrity sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==
25478+
2532025479
uuid@^3.1.0, uuid@^3.3.2, uuid@^3.4.0:
2532125480
version "3.4.0"
2532225481
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
@@ -25327,11 +25486,6 @@ uuid@^8.3.0, uuid@^8.3.2:
2532725486
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
2532825487
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
2532925488

25330-
uuid@^9:
25331-
version "9.0.0"
25332-
resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5"
25333-
integrity sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==
25334-
2533525489
v8-compile-cache@2.3.0, v8-compile-cache@^2.2.0:
2533625490
version "2.3.0"
2533725491
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"

0 commit comments

Comments
 (0)