diff --git a/.yarn/cache/@babel-parser-npm-7.29.8-d8ac19f8b3-dbd14ebbba.zip b/.yarn/cache/@babel-parser-npm-7.29.8-d8ac19f8b3-dbd14ebbba.zip new file mode 100644 index 00000000000..250fc125d80 Binary files /dev/null and b/.yarn/cache/@babel-parser-npm-7.29.8-d8ac19f8b3-dbd14ebbba.zip differ diff --git a/.yarn/cache/@babel-types-npm-7.29.8-3f9597fc63-ff2becf0f8.zip b/.yarn/cache/@babel-types-npm-7.29.8-3f9597fc63-ff2becf0f8.zip new file mode 100644 index 00000000000..6427f1eece8 Binary files /dev/null and b/.yarn/cache/@babel-types-npm-7.29.8-3f9597fc63-ff2becf0f8.zip differ diff --git a/.yarn/cache/eslint-plugin-react-hooks-npm-5.2.0-1c4af50caf-ebb79e9cf6.zip b/.yarn/cache/eslint-plugin-react-hooks-npm-5.2.0-1c4af50caf-ebb79e9cf6.zip deleted file mode 100644 index dbed4bdddda..00000000000 Binary files a/.yarn/cache/eslint-plugin-react-hooks-npm-5.2.0-1c4af50caf-ebb79e9cf6.zip and /dev/null differ diff --git a/.yarn/cache/eslint-plugin-react-hooks-npm-7.1.1-cf5b028313-9dfe543af9.zip b/.yarn/cache/eslint-plugin-react-hooks-npm-7.1.1-cf5b028313-9dfe543af9.zip new file mode 100644 index 00000000000..10dddd46915 Binary files /dev/null and b/.yarn/cache/eslint-plugin-react-hooks-npm-7.1.1-cf5b028313-9dfe543af9.zip differ diff --git a/.yarn/cache/hermes-estree-npm-0.25.1-d7752f3952-7b1eca98b2.zip b/.yarn/cache/hermes-estree-npm-0.25.1-d7752f3952-7b1eca98b2.zip new file mode 100644 index 00000000000..8d849204d9b Binary files /dev/null and b/.yarn/cache/hermes-estree-npm-0.25.1-d7752f3952-7b1eca98b2.zip differ diff --git a/.yarn/cache/hermes-parser-npm-0.25.1-832deac23b-805efc0569.zip b/.yarn/cache/hermes-parser-npm-0.25.1-832deac23b-805efc0569.zip new file mode 100644 index 00000000000..5aa23e6ff31 Binary files /dev/null and b/.yarn/cache/hermes-parser-npm-0.25.1-832deac23b-805efc0569.zip differ diff --git a/.yarn/cache/uuid-npm-13.0.1-b54511305d-da190a58eb.zip b/.yarn/cache/uuid-npm-13.0.1-b54511305d-da190a58eb.zip deleted file mode 100644 index 37443dbcdd9..00000000000 Binary files a/.yarn/cache/uuid-npm-13.0.1-b54511305d-da190a58eb.zip and /dev/null differ diff --git a/.yarn/cache/zod-npm-4.4.3-36e81f791e-804b9a42aa.zip b/.yarn/cache/zod-npm-4.4.3-36e81f791e-804b9a42aa.zip new file mode 100644 index 00000000000..ad56d987768 Binary files /dev/null and b/.yarn/cache/zod-npm-4.4.3-36e81f791e-804b9a42aa.zip differ diff --git a/.yarn/cache/zod-validation-error-npm-4.0.2-1b963160c8-5e35ca8ebb.zip b/.yarn/cache/zod-validation-error-npm-4.0.2-1b963160c8-5e35ca8ebb.zip new file mode 100644 index 00000000000..c39a3b27f51 Binary files /dev/null and b/.yarn/cache/zod-validation-error-npm-4.0.2-1b963160c8-5e35ca8ebb.zip differ diff --git a/package.json b/package.json index 103bab908f4..9ebcc1cc2d3 100644 --- a/package.json +++ b/package.json @@ -153,7 +153,7 @@ "eslint-plugin-no-only-tests": "^3.3.0", "eslint-plugin-prettier": "5.5.4", "eslint-plugin-react": "7.37.5", - "eslint-plugin-react-hooks": "5.2.0", + "eslint-plugin-react-hooks": "7.1.1", "happy-dom": "20.11.1", "husky": "9.1.7", "identity-obj-proxy": "3.0.0", diff --git a/yarn.lock b/yarn.lock index 7c2f86eb150..f619ce9d6aa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -121,7 +121,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.18.9, @babel/core@npm:^7.23.0, @babel/core@npm:^7.23.9, @babel/core@npm:^7.27.4, @babel/core@npm:^7.28.0": +"@babel/core@npm:^7.18.9, @babel/core@npm:^7.23.0, @babel/core@npm:^7.23.9, @babel/core@npm:^7.24.4, @babel/core@npm:^7.27.4, @babel/core@npm:^7.28.0": version: 7.29.7 resolution: "@babel/core@npm:7.29.7" dependencies: @@ -705,6 +705,17 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.24.4": + version: 7.29.8 + resolution: "@babel/parser@npm:7.29.8" + dependencies: + "@babel/types": "npm:^7.29.8" + bin: + parser: ./bin/babel-parser.js + checksum: 10/dbd14ebbba0fa3019acd2712b0db3ffd594d0850d4fc487667287b5702893f54a7911570ea842f0cff4dc492a2412e3287dfabfe00c6b78efa7becb1255f3f86 + languageName: node + linkType: hard + "@babel/parser@npm:^7.27.0": version: 7.27.0 resolution: "@babel/parser@npm:7.27.0" @@ -2213,6 +2224,16 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:^7.29.8": + version: 7.29.8 + resolution: "@babel/types@npm:7.29.8" + dependencies: + "@babel/helper-string-parser": "npm:^7.29.7" + "@babel/helper-validator-identifier": "npm:^7.29.7" + checksum: 10/ff2becf0f8b432f0820f286fb9319d7f3819b2d0eb95bc26957fbc6250a3ca0ae3656feb98ecb5f171f9e04b34a4c08f5036447f17459ed7bfc32ff649d9b71e + languageName: node + linkType: hard + "@bbc/reverb-url-helper@https://mybbc-analytics.files.bbci.co.uk/reverb-url-helper/bbc-reverb-url-helper-2.5.0.tgz": version: 2.5.0 resolution: "@bbc/reverb-url-helper@https://mybbc-analytics.files.bbci.co.uk/reverb-url-helper/bbc-reverb-url-helper-2.5.0.tgz" @@ -10411,12 +10432,18 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-react-hooks@npm:5.2.0": - version: 5.2.0 - resolution: "eslint-plugin-react-hooks@npm:5.2.0" +"eslint-plugin-react-hooks@npm:7.1.1": + version: 7.1.1 + resolution: "eslint-plugin-react-hooks@npm:7.1.1" + dependencies: + "@babel/core": "npm:^7.24.4" + "@babel/parser": "npm:^7.24.4" + hermes-parser: "npm:^0.25.1" + zod: "npm:^3.25.0 || ^4.0.0" + zod-validation-error: "npm:^3.5.0 || ^4.0.0" peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - checksum: 10/ebb79e9cf69ae06e3a7876536653c5e556b5fd8cd9dc49577f10a6e728360e7b6f5ce91f4339b33e93b26e3bb23805418f8b5e75db80baddd617b1dffe73bed1 + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0 + checksum: 10/9dfe543af9813343f7cc7c5079b02da94a3b4c15df5cefdeef731f220120df26471d0db24c943222d2d9c6b43c3b78faea47ada9acc9dfd9c28492153cbc6902 languageName: node linkType: hard @@ -11603,6 +11630,22 @@ __metadata: languageName: node linkType: hard +"hermes-estree@npm:0.25.1": + version: 0.25.1 + resolution: "hermes-estree@npm:0.25.1" + checksum: 10/7b1eca98b264a25632064cffa5771360d30cf452e77db1e191f9913ee45cf78c292b2dbca707e92fb71b0870abb97e94b506a5ab80abd96ba237fee169b601fe + languageName: node + linkType: hard + +"hermes-parser@npm:^0.25.1": + version: 0.25.1 + resolution: "hermes-parser@npm:0.25.1" + dependencies: + hermes-estree: "npm:0.25.1" + checksum: 10/805efc05691420f236654349872c70731121791fa54de521c7ee51059eae34f84dd19f22ee846741dcb60372f8fb5335719b96b4ecb010d2aed7d872f2eff9cc + languageName: node + linkType: hard + "hoist-non-react-statics@npm:^3.3.1, hoist-non-react-statics@npm:^3.3.2": version: 3.3.2 resolution: "hoist-non-react-statics@npm:3.3.2" @@ -17087,7 +17130,7 @@ __metadata: eslint-plugin-no-only-tests: "npm:^3.3.0" eslint-plugin-prettier: "npm:5.5.4" eslint-plugin-react: "npm:7.37.5" - eslint-plugin-react-hooks: "npm:5.2.0" + eslint-plugin-react-hooks: "npm:7.1.1" happy-dom: "npm:20.11.1" husky: "npm:9.1.7" identity-obj-proxy: "npm:3.0.0" @@ -19511,9 +19554,25 @@ __metadata: languageName: node linkType: hard +"zod-validation-error@npm:^3.5.0 || ^4.0.0": + version: 4.0.2 + resolution: "zod-validation-error@npm:4.0.2" + peerDependencies: + zod: ^3.25.0 || ^4.0.0 + checksum: 10/5e35ca8ebb4602dcb526e122d7e9fca695c4a479bd97535f3400a732d49160f24f7213a9ed64986fc9dc3a2e8a6c4e1241ec0c4d8a4e3e69ea91a0328ded2192 + languageName: node + linkType: hard + "zod@npm:^3.24.1": version: 3.25.76 resolution: "zod@npm:3.25.76" checksum: 10/f0c963ec40cd96858451d1690404d603d36507c1fc9682f2dae59ab38b578687d542708a7fdbf645f77926f78c9ed558f57c3d3aa226c285f798df0c4da16995 languageName: node linkType: hard + +"zod@npm:^3.25.0 || ^4.0.0": + version: 4.4.3 + resolution: "zod@npm:4.4.3" + checksum: 10/804b9a42aa8f35f2b3c5a8dff906291cb749115f83ee2afe3576d70b5b5c53c965365c7f4967690647a9c54af9838ff232a85ff9577a0a36c44b68bc6cdefe36 + languageName: node + linkType: hard