Skip to content

Commit 173e656

Browse files
authored
unpin eslint-config-next for Next.js framework tests (#45)
TLDR; This change changes our dev dependencies to use the latest version of `eslint-config-next`. We had a floating dependency on Next.js, which would grab the latest version to test against. However, we had pinned our `eslint-config-next` to a particular version. It turns out that particular version pulled in a Next.js dependency that contained a security vulnerability.
1 parent 30f7171 commit 173e656

File tree

2 files changed

+66
-29
lines changed

2 files changed

+66
-29
lines changed

js-sdk-framework-tests/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@types/node": "20.10.4",
2424
"@types/react": "latest",
2525
"eslint": "^8",
26-
"eslint-config-next": "15.5.2",
26+
"eslint-config-next": "latest",
2727
"typescript": "5.3.3"
2828
}
2929
}

yarn.lock

Lines changed: 65 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
json5 "^2.2.3"
344344
semver "^6.3.1"
345345

346-
"@babel/core@^7.12.3", "@babel/core@^7.23.9":
346+
"@babel/core@^7.12.3", "@babel/core@^7.23.9", "@babel/core@^7.24.4":
347347
version "7.28.5"
348348
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.28.5.tgz#4c81b35e51e1b734f510c99b07dfbc7bbbb48f7e"
349349
integrity sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==
@@ -445,7 +445,7 @@
445445
"@babel/template" "^7.27.2"
446446
"@babel/types" "^7.28.4"
447447

448-
"@babel/parser@^7.14.7", "@babel/parser@^7.23.9", "@babel/parser@^7.27.2", "@babel/parser@^7.27.7", "@babel/parser@^7.28.0", "@babel/parser@^7.28.5":
448+
"@babel/parser@^7.14.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.4", "@babel/parser@^7.27.2", "@babel/parser@^7.27.7", "@babel/parser@^7.28.0", "@babel/parser@^7.28.5":
449449
version "7.28.5"
450450
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.5.tgz#0b0225ee90362f030efd644e8034c99468893b08"
451451
integrity sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==
@@ -1914,10 +1914,10 @@
19141914
resolved "https://registry.yarnpkg.com/@next/env/-/env-16.0.7.tgz#eda56377a865d890d25122257d2b8a85b81d6d3d"
19151915
integrity sha512-gpaNgUh5nftFKRkRQGnVi5dpcYSKGcZZkQffZ172OrG/XkrnS7UBTQ648YY+8ME92cC4IojpI2LqTC8sTDhAaw==
19161916

1917-
"@next/eslint-plugin-next@15.5.2":
1918-
version "15.5.2"
1919-
resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-15.5.2.tgz#6fa6b78687dbbb6f5726acd81bcdfd87dc26b6f3"
1920-
integrity sha512-lkLrRVxcftuOsJNhWatf1P2hNVfh98k/omQHrCEPPriUypR6RcS13IvLdIrEvkm9AH2Nu2YpR5vLqBuy6twH3Q==
1917+
"@next/eslint-plugin-next@16.0.7":
1918+
version "16.0.7"
1919+
resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-16.0.7.tgz#f35558960ab7ca021db28f4a98c20cfd6fd33a54"
1920+
integrity sha512-hFrTNZcMEG+k7qxVxZJq3F32Kms130FAhG8lvw2zkKBgAcNOJIxlljNiCjGygvBshvaGBdf88q2CqWtnqezDHA==
19211921
dependencies:
19221922
fast-glob "3.3.1"
19231923

@@ -2779,11 +2779,6 @@
27792779
resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8"
27802780
integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==
27812781

2782-
"@rushstack/eslint-patch@^1.10.3":
2783-
version "1.15.0"
2784-
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.15.0.tgz#8184bcb37791e6d3c3c13a9bfbe4af263f66665f"
2785-
integrity sha512-ojSshQPKwVvSMR8yT2L/QtUkV5SXi/IfDiJ4/8d6UbTPjiHVmxZzUAzGD8Tzks1b9+qQkZa0isUOvYObedITaw==
2786-
27872782
"@schematics/[email protected]":
27882783
version "20.1.1"
27892784
resolved "https://registry.yarnpkg.com/@schematics/angular/-/angular-20.1.1.tgz#194dd0d7b94df13f4087d836948243dbc4f39d8c"
@@ -3066,7 +3061,7 @@
30663061
"@types/http-errors" "*"
30673062
"@types/node" "*"
30683063

3069-
"@typescript-eslint/eslint-plugin@^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0":
3064+
"@typescript-eslint/eslint-plugin@8.48.1":
30703065
version "8.48.1"
30713066
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.48.1.tgz#c772d1dbdd97cfddf85f5a161a97783233643631"
30723067
integrity sha512-X63hI1bxl5ohelzr0LY5coufyl0LJNthld+abwxpCoo6Gq+hSqhKwci7MUWkXo67mzgUK6YFByhmaHmUcuBJmA==
@@ -3081,7 +3076,7 @@
30813076
natural-compare "^1.4.0"
30823077
ts-api-utils "^2.1.0"
30833078

3084-
"@typescript-eslint/parser@^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0":
3079+
"@typescript-eslint/parser@8.48.1":
30853080
version "8.48.1"
30863081
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.48.1.tgz#4e3c66d9ec20683ec142417fafeadab61c479c3f"
30873082
integrity sha512-PC0PDZfJg8sP7cmKe6L3QIL8GZwU5aRvUFedqSIpw3B+QjRSUZeeITC2M5XKeMXEzL6wccN196iy3JLwKNvDVA==
@@ -4894,21 +4889,20 @@ escape-string-regexp@^4.0.0:
48944889
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
48954890
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
48964891

4897-
eslint-config-next@15.5.2:
4898-
version "15.5.2"
4899-
resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-15.5.2.tgz#9629ed1deaa131e8e80cbae20acf631c8595ca3e"
4900-
integrity sha512-3hPZghsLupMxxZ2ggjIIrat/bPniM2yRpsVPVM40rp8ZMzKWOJp2CGWn7+EzoV2ddkUr5fxNfHpF+wU1hGt/3g==
4892+
eslint-config-next@latest:
4893+
version "16.0.7"
4894+
resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-16.0.7.tgz#40bcccdd2eb39b3c0b12ce6a9869b4577553ff35"
4895+
integrity sha512-WubFGLFHfk2KivkdRGfx6cGSFhaQqhERRfyO8BRx+qiGPGp7WLKcPvYC4mdx1z3VhVRcrfFzczjjTrbJZOpnEQ==
49014896
dependencies:
4902-
"@next/eslint-plugin-next" "15.5.2"
4903-
"@rushstack/eslint-patch" "^1.10.3"
4904-
"@typescript-eslint/eslint-plugin" "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0"
4905-
"@typescript-eslint/parser" "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0"
4897+
"@next/eslint-plugin-next" "16.0.7"
49064898
eslint-import-resolver-node "^0.3.6"
49074899
eslint-import-resolver-typescript "^3.5.2"
4908-
eslint-plugin-import "^2.31.0"
4900+
eslint-plugin-import "^2.32.0"
49094901
eslint-plugin-jsx-a11y "^6.10.0"
49104902
eslint-plugin-react "^7.37.0"
4911-
eslint-plugin-react-hooks "^5.0.0"
4903+
eslint-plugin-react-hooks "^7.0.0"
4904+
globals "16.4.0"
4905+
typescript-eslint "^8.46.0"
49124906

49134907
eslint-import-resolver-node@^0.3.6, eslint-import-resolver-node@^0.3.9:
49144908
version "0.3.9"
@@ -4939,7 +4933,7 @@ eslint-module-utils@^2.12.1:
49394933
dependencies:
49404934
debug "^3.2.7"
49414935

4942-
eslint-plugin-import@^2.31.0:
4936+
eslint-plugin-import@^2.32.0:
49434937
version "2.32.0"
49444938
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz#602b55faa6e4caeaa5e970c198b5c00a37708980"
49454939
integrity sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==
@@ -4985,10 +4979,16 @@ eslint-plugin-jsx-a11y@^6.10.0:
49854979
safe-regex-test "^1.0.3"
49864980
string.prototype.includes "^2.0.1"
49874981

4988-
eslint-plugin-react-hooks@^5.0.0:
4989-
version "5.2.0"
4990-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz#1be0080901e6ac31ce7971beed3d3ec0a423d9e3"
4991-
integrity sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==
4982+
eslint-plugin-react-hooks@^7.0.0:
4983+
version "7.0.1"
4984+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz#66e258db58ece50723ef20cc159f8aa908219169"
4985+
integrity sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==
4986+
dependencies:
4987+
"@babel/core" "^7.24.4"
4988+
"@babel/parser" "^7.24.4"
4989+
hermes-parser "^0.25.1"
4990+
zod "^3.25.0 || ^4.0.0"
4991+
zod-validation-error "^3.5.0 || ^4.0.0"
49924992

49934993
eslint-plugin-react@^7.37.0:
49944994
version "7.37.5"
@@ -5724,6 +5724,11 @@ glob@^9.2.0:
57245724
minipass "^4.2.4"
57255725
path-scurry "^1.6.1"
57265726

5727+
5728+
version "16.4.0"
5729+
resolved "https://registry.yarnpkg.com/globals/-/globals-16.4.0.tgz#574bc7e72993d40cf27cf6c241f324ee77808e51"
5730+
integrity sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==
5731+
57275732
globals@^13.19.0:
57285733
version "13.24.0"
57295734
resolved "https://registry.yarnpkg.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171"
@@ -5819,6 +5824,18 @@ hasown@^2.0.2:
58195824
dependencies:
58205825
function-bind "^1.1.2"
58215826

5827+
5828+
version "0.25.1"
5829+
resolved "https://registry.yarnpkg.com/hermes-estree/-/hermes-estree-0.25.1.tgz#6aeec17d1983b4eabf69721f3aa3eb705b17f480"
5830+
integrity sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==
5831+
5832+
hermes-parser@^0.25.1:
5833+
version "0.25.1"
5834+
resolved "https://registry.yarnpkg.com/hermes-parser/-/hermes-parser-0.25.1.tgz#5be0e487b2090886c62bd8a11724cd766d5f54d1"
5835+
integrity sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==
5836+
dependencies:
5837+
hermes-estree "0.25.1"
5838+
58225839
hosted-git-info@^2.1.4:
58235840
version "2.8.9"
58245841
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9"
@@ -9835,6 +9852,16 @@ typedarray@^0.0.6:
98359852
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
98369853
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==
98379854

9855+
typescript-eslint@^8.46.0:
9856+
version "8.48.1"
9857+
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.48.1.tgz#436028540f5859755687b8b1b28e19ed9194aaad"
9858+
integrity sha512-FbOKN1fqNoXp1hIl5KYpObVrp0mCn+CLgn479nmu2IsRMrx2vyv74MmsBLVlhg8qVwNFGbXSp8fh1zp8pEoC2A==
9859+
dependencies:
9860+
"@typescript-eslint/eslint-plugin" "8.48.1"
9861+
"@typescript-eslint/parser" "8.48.1"
9862+
"@typescript-eslint/typescript-estree" "8.48.1"
9863+
"@typescript-eslint/utils" "8.48.1"
9864+
98389865
98399866
version "5.3.3"
98409867
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37"
@@ -10379,6 +10406,11 @@ zod-to-json-schema@^3.24.1:
1037910406
resolved "https://registry.yarnpkg.com/zod-to-json-schema/-/zod-to-json-schema-3.25.0.tgz#df504c957c4fb0feff467c74d03e6aab0b013e1c"
1038010407
integrity sha512-HvWtU2UG41LALjajJrML6uQejQhNJx+JBO9IflpSja4R03iNWfKXrj6W2h7ljuLyc1nKS+9yDyL/9tD1U/yBnQ==
1038110408

10409+
"zod-validation-error@^3.5.0 || ^4.0.0":
10410+
version "4.0.2"
10411+
resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-4.0.2.tgz#bc605eba49ce0fcd598c127fee1c236be3f22918"
10412+
integrity sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==
10413+
1038210414
1038310415
version "3.25.75"
1038410416
resolved "https://registry.yarnpkg.com/zod/-/zod-3.25.75.tgz#8ff9be2fbbcb381a9236f9f74a8879ca29dcc504"
@@ -10389,6 +10421,11 @@ zod@^3.23.8:
1038910421
resolved "https://registry.yarnpkg.com/zod/-/zod-3.25.76.tgz#26841c3f6fd22a6a2760e7ccb719179768471e34"
1039010422
integrity sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==
1039110423

10424+
"zod@^3.25.0 || ^4.0.0":
10425+
version "4.1.13"
10426+
resolved "https://registry.yarnpkg.com/zod/-/zod-4.1.13.tgz#93699a8afe937ba96badbb0ce8be6033c0a4b6b1"
10427+
integrity sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==
10428+
1039210429
zone.js@~0.15.0:
1039310430
version "0.15.1"
1039410431
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.15.1.tgz#1e109adb75f80e9e004ee8e0d4a0a52e0a336481"

0 commit comments

Comments
 (0)