diff --git a/.changepacks/changepack_log_engines_peer_ranges.json b/.changepacks/changepack_log_engines_peer_ranges.json new file mode 100644 index 000000000..83c851be9 --- /dev/null +++ b/.changepacks/changepack_log_engines_peer_ranges.json @@ -0,0 +1 @@ +{"changes":{"packages/plugin-utils/package.json":"Patch","packages/webpack-plugin/package.json":"Patch","packages/next-plugin/package.json":"Patch","packages/rsbuild-plugin/package.json":"Patch","packages/vite-plugin/package.json":"Patch","packages/eslint-plugin/package.json":"Patch"},"note":"Declare the Node.js versions the build-time packages need (Node 22 for the Vite plugin, which calls Promise.withResolvers) and replace the unrestricted vite, next, @rsbuild/core and typescript-eslint peers with the oldest major each plugin is written against: Vite 5, Next.js 13, Rsbuild 1 and typescript-eslint 8.","date":"2026-11-15T00:00:00.000Z"} diff --git a/bun.lock b/bun.lock index ebe3d52e0..64d63fdc3 100644 --- a/bun.lock +++ b/bun.lock @@ -679,8 +679,8 @@ "typescript": "npm:@typescript/typescript6@^6.0.2", }, "peerDependencies": { - "@typescript-eslint/utils": "*", - "typescript-eslint": "*", + "@typescript-eslint/utils": ">=8.0.0", + "typescript-eslint": ">=8.0.0", }, }, "packages/next-plugin": { @@ -697,7 +697,7 @@ }, "peerDependencies": { "@devup-ui/webpack-plugin": "*", - "next": "*", + "next": ">=13.0.0", }, }, "packages/plugin-utils": { @@ -757,7 +757,7 @@ "typescript": "^7.0.2", }, "peerDependencies": { - "@rsbuild/core": "*", + "@rsbuild/core": ">=1.0.0", }, }, "packages/vite-plugin": { @@ -773,7 +773,7 @@ "vite": "^8.3.8", }, "peerDependencies": { - "vite": "*", + "vite": ">=5.0.0", }, }, "packages/webpack-plugin": { diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 537707be4..6aa0933b7 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -26,6 +26,9 @@ "publishConfig": { "access": "public" }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -42,8 +45,8 @@ "@typescript-eslint/utils": "^8.72.2" }, "peerDependencies": { - "typescript-eslint": "*", - "@typescript-eslint/utils": "*" + "typescript-eslint": ">=8.0.0", + "@typescript-eslint/utils": ">=8.0.0" }, "devDependencies": { "@typescript-eslint/rule-tester": "^8.72.2", diff --git a/packages/next-plugin/package.json b/packages/next-plugin/package.json index fc8bd81e1..fcd81c620 100644 --- a/packages/next-plugin/package.json +++ b/packages/next-plugin/package.json @@ -27,6 +27,9 @@ "publishConfig": { "access": "public" }, + "engines": { + "node": ">=18.0.0" + }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", "exports": { @@ -61,6 +64,6 @@ }, "peerDependencies": { "@devup-ui/webpack-plugin": "*", - "next": "*" + "next": ">=13.0.0" } } diff --git a/packages/plugin-utils/package.json b/packages/plugin-utils/package.json index 7859b2745..082ddd915 100644 --- a/packages/plugin-utils/package.json +++ b/packages/plugin-utils/package.json @@ -24,6 +24,9 @@ "publishConfig": { "access": "public" }, + "engines": { + "node": ">=18.0.0" + }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", diff --git a/packages/rsbuild-plugin/package.json b/packages/rsbuild-plugin/package.json index b4e15adfc..f5d1dfe22 100644 --- a/packages/rsbuild-plugin/package.json +++ b/packages/rsbuild-plugin/package.json @@ -26,6 +26,9 @@ "publishConfig": { "access": "public" }, + "engines": { + "node": ">=18.0.0" + }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -44,7 +47,7 @@ "@devup-ui/wasm": "workspace:^" }, "peerDependencies": { - "@rsbuild/core": "*" + "@rsbuild/core": ">=1.0.0" }, "devDependencies": { "@rsbuild/core": "^2.3.2", diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index c21e5c273..067ca519d 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -26,6 +26,9 @@ "publishConfig": { "access": "public" }, + "engines": { + "node": ">=22.0.0" + }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -49,6 +52,6 @@ "vite": "^8.3.8" }, "peerDependencies": { - "vite": "*" + "vite": ">=5.0.0" } } diff --git a/packages/webpack-plugin/package.json b/packages/webpack-plugin/package.json index 98925e7d5..ea1ebfdb7 100644 --- a/packages/webpack-plugin/package.json +++ b/packages/webpack-plugin/package.json @@ -25,6 +25,9 @@ "publishConfig": { "access": "public" }, + "engines": { + "node": ">=18.0.0" + }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts",