Skip to content

Commit f025640

Browse files
committed
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 1928582 commit f025640

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
@@ -111,6 +111,7 @@
111111
"@typescript-eslint/eslint-plugin": "^7.16.1",
112112
"@typescript-eslint/parser": "^7.16.1",
113113
"autoprefixer": "^9.0.0",
114+
"babel-jest": "^30.0.0",
114115
"babel-loader": "^8.3.0",
115116
"backport": "^5.6.6",
116117
"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
@@ -3798,6 +3798,14 @@
37983798
"@types/node" "*"
37993799
jest-regex-util "30.0.0"
38003800

3801+
"@jest/pattern@30.4.0":
3802+
version "30.4.0"
3803+
resolved "https://registry.yarnpkg.com/@jest/pattern/-/pattern-30.4.0.tgz#fcb519eeacc25caa3768f787595a27afa15302ae"
3804+
integrity sha512-RAWn3+f9u8BsHijKJ71uHcFp6vmyEt6VvoWXkl6hKF3qVIuWNmudVjg12DlBPGup/frIl5UcUlH5HfEuvHpEXg==
3805+
dependencies:
3806+
"@types/node" "*"
3807+
jest-regex-util "30.4.0"
3808+
38013809
"@jest/reporters@30.0.0":
38023810
version "30.0.0"
38033811
resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-30.0.0.tgz#a384cc5692e3288617f6993c3267314f8f865781"
@@ -3834,6 +3842,13 @@
38343842
dependencies:
38353843
"@sinclair/typebox" "^0.34.0"
38363844

3845+
"@jest/schemas@30.4.1":
3846+
version "30.4.1"
3847+
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-30.4.1.tgz#c3703fdd71357e2c83aa59bd38469e60a11529c6"
3848+
integrity sha512-i6b4qw5qnP8c5FEeBJg/uZQ4ddrkN6Ca8qISJh0pr7a5hfn3h3v5x60BEbOC7OYAGZNMs1LfFLwnW2CuK8F57Q==
3849+
dependencies:
3850+
"@sinclair/typebox" "^0.34.0"
3851+
38373852
"@jest/schemas@^29.0.0":
38383853
version "29.0.0"
38393854
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a"
@@ -3901,6 +3916,26 @@
39013916
slash "^3.0.0"
39023917
write-file-atomic "^5.0.1"
39033918

3919+
"@jest/transform@30.4.1":
3920+
version "30.4.1"
3921+
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-30.4.1.tgz#1646cddb800d38d9c4e30fecfd4a6eba0fa8acfa"
3922+
integrity sha512-Wz0LyktlTvRefoymh+n64hQ84KNXsRGcwdoZ8CSa0Ea+fgYcHZlnk+hDP7v2MS7il2bQ5uTEIxf4/NNfhMN4KQ==
3923+
dependencies:
3924+
"@babel/core" "^7.27.4"
3925+
"@jest/types" "30.4.1"
3926+
"@jridgewell/trace-mapping" "^0.3.25"
3927+
babel-plugin-istanbul "^7.0.1"
3928+
chalk "^4.1.2"
3929+
convert-source-map "^2.0.0"
3930+
fast-json-stable-stringify "^2.1.0"
3931+
graceful-fs "^4.2.11"
3932+
jest-haste-map "30.4.1"
3933+
jest-regex-util "30.4.0"
3934+
jest-util "30.4.1"
3935+
pirates "^4.0.7"
3936+
slash "^3.0.0"
3937+
write-file-atomic "^5.0.1"
3938+
39043939
"@jest/transform@^26.6.2":
39053940
version "26.6.2"
39063941
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b"
@@ -3935,6 +3970,19 @@
39353970
"@types/yargs" "^17.0.33"
39363971
chalk "^4.1.2"
39373972

3973+
"@jest/types@30.4.1":
3974+
version "30.4.1"
3975+
resolved "https://registry.yarnpkg.com/@jest/types/-/types-30.4.1.tgz#f79b647a85cb2ff4a90cc55984b31dae820db1f7"
3976+
integrity sha512-f1x/vJXIfjOlEmejYpbkbgw1gOqpPECwMvMEtBqe47j7H2Hg8h8w3o3ikhSXq3MI15kg+oQ0exWO0uCtTNJLoQ==
3977+
dependencies:
3978+
"@jest/pattern" "30.4.0"
3979+
"@jest/schemas" "30.4.1"
3980+
"@types/istanbul-lib-coverage" "^2.0.6"
3981+
"@types/istanbul-reports" "^3.0.4"
3982+
"@types/node" "*"
3983+
"@types/yargs" "^17.0.33"
3984+
chalk "^4.1.2"
3985+
39383986
"@jest/types@^26.6.2":
39393987
version "26.6.2"
39403988
resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e"
@@ -8586,6 +8634,19 @@ babel-jest@30.0.0:
85868634
graceful-fs "^4.2.11"
85878635
slash "^3.0.0"
85888636

8637+
babel-jest@^30.0.0:
8638+
version "30.4.1"
8639+
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-30.4.1.tgz#63cba904438bbe64c4cf0acdea87b0a45cb809fc"
8640+
integrity sha512-fATAbM8piYxkiXQp3RBXmZHxZVNJZAVXXfyeyCN2Tida3+qJ8ea9UxhiJ2y4fLO90ZImKt6k9FlcH2+rLkJGhw==
8641+
dependencies:
8642+
"@jest/transform" "30.4.1"
8643+
"@types/babel__core" "^7.20.5"
8644+
babel-plugin-istanbul "^7.0.1"
8645+
babel-preset-jest "30.4.0"
8646+
chalk "^4.1.2"
8647+
graceful-fs "^4.2.11"
8648+
slash "^3.0.0"
8649+
85898650
babel-loader@^8.0.0, babel-loader@^8.3.0:
85908651
version "8.3.0"
85918652
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.3.0.tgz#124936e841ba4fe8176786d6ff28add1f134d6a8"
@@ -8718,6 +8779,17 @@ babel-plugin-istanbul@^7.0.0:
87188779
istanbul-lib-instrument "^6.0.2"
87198780
test-exclude "^6.0.0"
87208781

8782+
babel-plugin-istanbul@^7.0.1:
8783+
version "7.0.1"
8784+
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.1.tgz#d8b518c8ea199364cf84ccc82de89740236daf92"
8785+
integrity sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==
8786+
dependencies:
8787+
"@babel/helper-plugin-utils" "^7.0.0"
8788+
"@istanbuljs/load-nyc-config" "^1.0.0"
8789+
"@istanbuljs/schema" "^0.1.3"
8790+
istanbul-lib-instrument "^6.0.2"
8791+
test-exclude "^6.0.0"
8792+
87218793
babel-plugin-jest-hoist@30.0.0:
87228794
version "30.0.0"
87238795
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.0.0.tgz#76c9bf58316ebb7026d671d71d26138ae415326b"
@@ -8727,6 +8799,13 @@ babel-plugin-jest-hoist@30.0.0:
87278799
"@babel/types" "^7.27.3"
87288800
"@types/babel__core" "^7.20.5"
87298801

8802+
babel-plugin-jest-hoist@30.4.0:
8803+
version "30.4.0"
8804+
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.4.0.tgz#f7d6a6d8f435808b56b45a81dc4b61a39e36794a"
8805+
integrity sha512-9EdtWM/sSfXLOGLwSn+GS6pIXyBnL07/8gyJlwFXjWy4DxMOyItqyUT29d4lQiS380EZwYlX7/At4PgBS+m2aA==
8806+
dependencies:
8807+
"@types/babel__core" "^7.20.5"
8808+
87308809
babel-plugin-macros@^2.0.0, babel-plugin-macros@^2.8.0:
87318810
version "2.8.0"
87328811
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138"
@@ -8841,6 +8920,27 @@ babel-preset-current-node-syntax@^1.1.0:
88418920
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
88428921
"@babel/plugin-syntax-top-level-await" "^7.14.5"
88438922

8923+
babel-preset-current-node-syntax@^1.2.0:
8924+
version "1.2.0"
8925+
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz#20730d6cdc7dda5d89401cab10ac6a32067acde6"
8926+
integrity sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==
8927+
dependencies:
8928+
"@babel/plugin-syntax-async-generators" "^7.8.4"
8929+
"@babel/plugin-syntax-bigint" "^7.8.3"
8930+
"@babel/plugin-syntax-class-properties" "^7.12.13"
8931+
"@babel/plugin-syntax-class-static-block" "^7.14.5"
8932+
"@babel/plugin-syntax-import-attributes" "^7.24.7"
8933+
"@babel/plugin-syntax-import-meta" "^7.10.4"
8934+
"@babel/plugin-syntax-json-strings" "^7.8.3"
8935+
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
8936+
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
8937+
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
8938+
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
8939+
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
8940+
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
8941+
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
8942+
"@babel/plugin-syntax-top-level-await" "^7.14.5"
8943+
88448944
babel-preset-jest@30.0.0:
88458945
version "30.0.0"
88468946
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-30.0.0.tgz#54b16c96c1b687b9c72baa37a00b01fe9be4c4f3"
@@ -8849,6 +8949,14 @@ babel-preset-jest@30.0.0:
88498949
babel-plugin-jest-hoist "30.0.0"
88508950
babel-preset-current-node-syntax "^1.1.0"
88518951

8952+
babel-preset-jest@30.4.0:
8953+
version "30.4.0"
8954+
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-30.4.0.tgz#295486c2ec1127b3dc7d0d2adaa72a1dcaaafccd"
8955+
integrity sha512-lBY4jxsNmCnSiu7kquw8ZC9F4+XLMOKypT3RnNHPvU2Kpd4W0xaPuLr5ZkRyOsvLYAY4yaW1ZwTW4xB7NIiZzg==
8956+
dependencies:
8957+
babel-plugin-jest-hoist "30.4.0"
8958+
babel-preset-current-node-syntax "^1.2.0"
8959+
88528960
backport@^5.6.6:
88538961
version "5.6.6"
88548962
resolved "https://registry.yarnpkg.com/backport/-/backport-5.6.6.tgz#cb03f948a36386734fa491343b93f4ca280e00f3"
@@ -15863,6 +15971,24 @@ jest-haste-map@30.0.0:
1586315971
optionalDependencies:
1586415972
fsevents "^2.3.3"
1586515973

15974+
jest-haste-map@30.4.1:
15975+
version "30.4.1"
15976+
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-30.4.1.tgz#6d80d09d668c20bf3944977e50acac94fcd672fe"
15977+
integrity sha512-rFrcONd8jeFsyw+Z9CrScJgglRf2+NFmNam8dKu7n+SoHqNYT47mn0DdEcVUZJpvh7Iz6/si7f7yUH7GJHVgnw==
15978+
dependencies:
15979+
"@jest/types" "30.4.1"
15980+
"@types/node" "*"
15981+
anymatch "^3.1.3"
15982+
fb-watchman "^2.0.2"
15983+
graceful-fs "^4.2.11"
15984+
jest-regex-util "30.4.0"
15985+
jest-util "30.4.1"
15986+
jest-worker "30.4.1"
15987+
picomatch "^4.0.3"
15988+
walker "^1.0.8"
15989+
optionalDependencies:
15990+
fsevents "^2.3.3"
15991+
1586615992
jest-haste-map@^26.6.2:
1586715993
version "26.6.2"
1586815994
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa"
@@ -15936,6 +16062,11 @@ jest-regex-util@30.0.0:
1593616062
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-30.0.0.tgz#031f385ebb947e770e409ede703d200b3405413e"
1593716063
integrity sha512-rT84010qRu/5OOU7a9TeidC2Tp3Qgt9Sty4pOZ/VSDuEmRupIjKZAb53gU3jr4ooMlhwScrgC9UixJxWzVu9oQ==
1593816064

16065+
jest-regex-util@30.4.0:
16066+
version "30.4.0"
16067+
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-30.4.0.tgz#f75ccc43857633df2563a03588b5cb45c7c2941b"
16068+
integrity sha512-mWlvLviKIgIQ8VCuM1xRdD0TWp3zlzionlmDBjuXVBs+VkmXq6FgW9T4Emr7oGz/Rk6feDCGyiugolcQEyp3mg==
16069+
1593916070
jest-regex-util@^26.0.0:
1594016071
version "26.0.0"
1594116072
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28"
@@ -16066,6 +16197,18 @@ jest-util@30.0.0:
1606616197
graceful-fs "^4.2.11"
1606716198
picomatch "^4.0.2"
1606816199

16200+
jest-util@30.4.1:
16201+
version "30.4.1"
16202+
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-30.4.1.tgz#979c9d014fdd12bb95d3dcde0192e1a9e0bc93d6"
16203+
integrity sha512-vjQb1sACEiv13DKJMDToJpzVW0joCsIQrmbg0fi7CyOOt+g9jTuQl2A216pWRBYhOVt53XbL/2LbMKg1BECWOw==
16204+
dependencies:
16205+
"@jest/types" "30.4.1"
16206+
"@types/node" "*"
16207+
chalk "^4.1.2"
16208+
ci-info "^4.2.0"
16209+
graceful-fs "^4.2.11"
16210+
picomatch "^4.0.3"
16211+
1606916212
jest-util@^26.6.2:
1607016213
version "26.6.2"
1607116214
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1"
@@ -16115,6 +16258,17 @@ jest-worker@30.0.0:
1611516258
merge-stream "^2.0.0"
1611616259
supports-color "^8.1.1"
1611716260

16261+
jest-worker@30.4.1:
16262+
version "30.4.1"
16263+
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-30.4.1.tgz#ac010eb6c512425748a39e2d6bf05b2c4866ca4f"
16264+
integrity sha512-SHynN/q/QD++iNyvMdy+WMmbCGk8jIsNcRxycXbWubSOhvo6T+j2afcfUSl+3hYsiBebOTo0cT7c2H7CXugu1g==
16265+
dependencies:
16266+
"@types/node" "*"
16267+
"@ungap/structured-clone" "^1.3.0"
16268+
jest-util "30.4.1"
16269+
merge-stream "^2.0.0"
16270+
supports-color "^8.1.1"
16271+
1611816272
jest-worker@^26.5.0, jest-worker@^26.6.2:
1611916273
version "26.6.2"
1612016274
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed"
@@ -24009,6 +24163,11 @@ uuid-browser@^3.1.0:
2400924163
resolved "https://registry.yarnpkg.com/uuid-browser/-/uuid-browser-3.1.0.tgz#0f05a40aef74f9e5951e20efbf44b11871e56410"
2401024164
integrity sha1-DwWkCu90+eWVHiDvv0SxGHHlZBA=
2401124165

24166+
uuid@^14.0.0:
24167+
version "14.0.0"
24168+
resolved "https://registry.yarnpkg.com/uuid/-/uuid-14.0.0.tgz#0af883220163d264ffe0c084f6b8a89b9666966d"
24169+
integrity sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==
24170+
2401224171
uuid@^3.1.0, uuid@^3.3.2, uuid@^3.4.0:
2401324172
version "3.4.0"
2401424173
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
@@ -24019,11 +24178,6 @@ uuid@^8.3.0, uuid@^8.3.2:
2401924178
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
2402024179
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
2402124180

24022-
uuid@^9:
24023-
version "9.0.0"
24024-
resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5"
24025-
integrity sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==
24026-
2402724181
v8-compile-cache@2.3.0, v8-compile-cache@^2.2.0:
2402824182
version "2.3.0"
2402924183
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"

0 commit comments

Comments
 (0)