From 7259f3c03115ced192159bc786325d2a36043841 Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Tue, 17 Nov 2026 15:14:04 +0900 Subject: [PATCH] fix(plugins): declare the eslint peer and bound the webpack-plugin peer The ESLint plugin ships rules that run inside ESLint but never said which ESLint it supports; it now takes the range its typescript-eslint 8 dependency supports. The Next.js plugin accepted any @devup-ui/webpack-plugin as a peer while depending on the matching one; the peer now asks for a compatible version too. Refs #691 Co-Authored-By: Claude Opus 5.5 --- .changepacks/changepack_log_eslint_next_peer_ranges.json | 1 + bun.lock | 3 ++- packages/eslint-plugin/package.json | 1 + packages/next-plugin/package.json | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changepacks/changepack_log_eslint_next_peer_ranges.json diff --git a/.changepacks/changepack_log_eslint_next_peer_ranges.json b/.changepacks/changepack_log_eslint_next_peer_ranges.json new file mode 100644 index 000000000..663625844 --- /dev/null +++ b/.changepacks/changepack_log_eslint_next_peer_ranges.json @@ -0,0 +1 @@ +{"changes":{"packages/eslint-plugin/package.json":"Patch","packages/next-plugin/package.json":"Patch"},"note":"Declare the ESLint versions the ESLint plugin runs on (the range typescript-eslint 8 supports) and require a compatible @devup-ui/webpack-plugin from the Next.js plugin instead of any version.","date":"2026-11-17T00:00:00.000Z"} \ No newline at end of file diff --git a/bun.lock b/bun.lock index 64d63fdc3..9ef885d32 100644 --- a/bun.lock +++ b/bun.lock @@ -680,6 +680,7 @@ }, "peerDependencies": { "@typescript-eslint/utils": ">=8.0.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript-eslint": ">=8.0.0", }, }, @@ -696,7 +697,7 @@ "typescript": "^7.0.2", }, "peerDependencies": { - "@devup-ui/webpack-plugin": "*", + "@devup-ui/webpack-plugin": "workspace:^", "next": ">=13.0.0", }, }, diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 6aa0933b7..10ffbef4b 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -45,6 +45,7 @@ "@typescript-eslint/utils": "^8.72.2" }, "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript-eslint": ">=8.0.0", "@typescript-eslint/utils": ">=8.0.0" }, diff --git a/packages/next-plugin/package.json b/packages/next-plugin/package.json index fcd81c620..d41421bec 100644 --- a/packages/next-plugin/package.json +++ b/packages/next-plugin/package.json @@ -63,7 +63,7 @@ "@types/webpack": "^5.28.5" }, "peerDependencies": { - "@devup-ui/webpack-plugin": "*", + "@devup-ui/webpack-plugin": "workspace:^", "next": ">=13.0.0" } }