diff --git a/.changeset/README.md b/.changeset/README.md deleted file mode 100644 index e5b6d8d6a67..00000000000 --- a/.changeset/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Changesets - -Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works -with multi-package repos, or single-package repos to help you version and publish your code. You can -find the full documentation for it [in our repository](https://github.com/changesets/changesets) - -We have a quick list of common questions to get you started engaging with this project in -[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/.changeset/config.json b/.changeset/config.json deleted file mode 100644 index e709a12c967..00000000000 --- a/.changeset/config.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@2.1.1/schema.json", - "changelog": "@changesets/cli/changelog", - "commit": false, - "fixed": [["@rspack/*"]], - "linked": [], - "access": "public", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": ["example-*"], - "snapshot": { - "prereleaseTemplate": "{tag}-{commit}-{datetime}" - }, - "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { - "onlyUpdatePeerDependentsWhenOutOfRange": true - } -} diff --git a/.changeset/twelve-dots-repair.md b/.changeset/twelve-dots-repair.md deleted file mode 100644 index d7e60cd9b4a..00000000000 --- a/.changeset/twelve-dots-repair.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@rspack/cli": patch ---- - -Use devServer proxy configs for the preview command diff --git a/.github/workflows/release-pull-request.yml b/.github/workflows/release-pull-request.yml index 24f667c54ff..6ef4a9e63d1 100644 --- a/.github/workflows/release-pull-request.yml +++ b/.github/workflows/release-pull-request.yml @@ -9,10 +9,10 @@ on: required: true default: "latest" options: - - canary - - alpha - - beta - - latest + - major + - minor + - patch + - snapshot schedule: # 08:00 AM Beijing Time on every Tuesday - cron: "0 0 * * 2" @@ -32,12 +32,10 @@ jobs: uses: ./.github/actions/pnpm-cache - name: Create Release Pull Request - uses: web-infra-dev/actions@v2 + uses: hardfist/rspack-action@rspack with: - version: ${{ inputs.version || 'latest' }} - versionNumber: "auto" - type: "pull request" - tools: "changeset" + version: node ./x version ${{inputs.version || 'canary'}} + createGithubReleases: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/crates/node_binding/package.json b/crates/node_binding/package.json index 0884f95a7c0..531f19ed3fd 100644 --- a/crates/node_binding/package.json +++ b/crates/node_binding/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/binding", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Node binding for rspack", "main": "binding.js", diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index a368a987792..ea22d79efe1 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/binding-darwin-arm64", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Node binding for rspack", "main": "rspack.darwin-arm64.node", diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index 6e68c80f19e..236cc58760c 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/binding-darwin-x64", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Node binding for rspack", "main": "rspack.darwin-x64.node", diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index 06b7cbdf403..6f2c23d392a 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/binding-linux-x64-gnu", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Node binding for rspack", "main": "rspack.linux-x64-gnu.node", diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json index 75339a60a6e..bb747cd47b7 100644 --- a/npm/win32-x64-msvc/package.json +++ b/npm/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/binding-win32-x64-msvc", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Node binding for rspack", "main": "rspack.win32-x64-msvc.node", diff --git a/package.json b/package.json index 6cad936ac87..cb31c4267d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "monorepo", - "version": "1.0.0", + "version": "0.1.13", "license": "MIT", "description": "A Fast Rust-based web bundler", "private": true, diff --git a/packages/create-rspack/package.json b/packages/create-rspack/package.json index 5f44eb6b3e7..3a962a8d84b 100644 --- a/packages/create-rspack/package.json +++ b/packages/create-rspack/package.json @@ -1,6 +1,6 @@ { "name": "create-rspack", - "version": "0.1.4", + "version": "0.1.13", "license": "MIT", "main": "index.js", "bin": { diff --git a/packages/postcss-loader/package.json b/packages/postcss-loader/package.json index 33ae63a6e2c..db5001f20cf 100644 --- a/packages/postcss-loader/package.json +++ b/packages/postcss-loader/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/postcss-loader", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "PostCSS loader for rspack", "main": "src/index.js", @@ -16,8 +16,8 @@ }, "dependencies": { "@rspack/binding": "workspace:*", + "postcss": "^8.4.16", "postcss-modules": "^5.0.0", - "postcss-pxtorem": "^6.0.0", - "postcss": "^8.4.16" + "postcss-pxtorem": "^6.0.0" } } diff --git a/packages/rspack-cli/package.json b/packages/rspack-cli/package.json index d52a4dc73ff..b84935e7fc5 100644 --- a/packages/rspack-cli/package.json +++ b/packages/rspack-cli/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/cli", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "CLI for rspack", "bin": { @@ -46,8 +46,8 @@ "@rspack/core": "workspace:*", "@rspack/dev-server": "workspace:*", "colorette": "2.0.19", + "semver": "6.3.0", "webpack-bundle-analyzer": "4.6.1", - "yargs": "17.6.2", - "semver": "6.3.0" + "yargs": "17.6.2" } } diff --git a/packages/rspack-dev-client/package.json b/packages/rspack-dev-client/package.json index f5b603a4832..e458ec40db5 100644 --- a/packages/rspack-dev-client/package.json +++ b/packages/rspack-dev-client/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/dev-client", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Development client for rspack", "scripts": { diff --git a/packages/rspack-dev-middleware/package.json b/packages/rspack-dev-middleware/package.json index a058cd0d7bd..849a97de462 100644 --- a/packages/rspack-dev-middleware/package.json +++ b/packages/rspack-dev-middleware/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/dev-middleware", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Development middleware for rspack", "main": "dist/index.js", @@ -18,8 +18,8 @@ }, "dependencies": { "@rspack/core": "workspace:*", - "webpack-dev-middleware": "6.0.2", - "mime-types": "2.1.35" + "mime-types": "2.1.35", + "webpack-dev-middleware": "6.0.2" }, "devDependencies": { "@types/mime-types": "2.1.1" diff --git a/packages/rspack-dev-server/package.json b/packages/rspack-dev-server/package.json index 3de61eb919a..88a7742d43a 100644 --- a/packages/rspack-dev-server/package.json +++ b/packages/rspack-dev-server/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/dev-server", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Development server for rspack", "main": "./dist/index.js", @@ -19,23 +19,23 @@ }, "devDependencies": { "@rspack/core": "workspace:*", - "@types/ws": "8.5.3", - "@types/express": "4.17.14", "@types/connect-history-api-fallback": "1.3.5", + "@types/express": "4.17.14", + "@types/ws": "8.5.3", "fs-extra": "11.1.0", "puppeteer": "19.4.0" }, "dependencies": { - "express": "4.18.1", - "chokidar": "3.5.3", - "ws": "8.8.1", "@rspack/dev-client": "workspace:*", "@rspack/dev-middleware": "workspace:*", "@rspack/dev-server": "workspace:*", + "chokidar": "3.5.3", + "connect-history-api-fallback": "2.0.0", + "express": "4.18.1", + "http-proxy-middleware": "2.0.6", "webpack": "5.76.0", "webpack-dev-server": "4.13.1", - "connect-history-api-fallback": "2.0.0", - "http-proxy-middleware": "2.0.6" + "ws": "8.8.1" }, "peerDependencies": { "@rspack/core": "*" diff --git a/packages/rspack-plugin-html/package.json b/packages/rspack-plugin-html/package.json index 574308b82c1..527d23bd5e6 100644 --- a/packages/rspack-plugin-html/package.json +++ b/packages/rspack-plugin-html/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/plugin-html", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "HTML plugin for rspack", "main": "dist/index.js", diff --git a/packages/rspack-plugin-minify/package.json b/packages/rspack-plugin-minify/package.json index 2e4f419d524..0bbc7d32833 100644 --- a/packages/rspack-plugin-minify/package.json +++ b/packages/rspack-plugin-minify/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/plugin-minify", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Minify plugin for rspack", "main": "src/index.js", @@ -17,8 +17,8 @@ }, "dependencies": { "esbuild": "0.16.3", - "terser": "5.16.1", "jest-worker": "29.3.1", + "terser": "5.16.1", "webpack-sources": "3.2.3" } } diff --git a/packages/rspack-plugin-node-polyfill/package.json b/packages/rspack-plugin-node-polyfill/package.json index 6fd003f0516..0eab38a3f8f 100644 --- a/packages/rspack-plugin-node-polyfill/package.json +++ b/packages/rspack-plugin-node-polyfill/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/plugin-node-polyfill", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "description": "Node polyfill plugin for rspack", "main": "src/index.js", @@ -17,6 +17,7 @@ }, "dependencies": { "assert": "^2.0.0", + "browserify-fs": "1.0.0", "browserify-zlib": "^0.2.0", "buffer": "^6.0.3", "console-browserify": "^1.2.0", @@ -40,7 +41,6 @@ "type-fest": "^2.14.0", "url": "^0.11.0", "util": "^0.12.4", - "vm-browserify": "^1.1.2", - "browserify-fs": "1.0.0" + "vm-browserify": "^1.1.2" } } diff --git a/packages/rspack/package.json b/packages/rspack/package.json index 9351e399d8f..997622c6b27 100644 --- a/packages/rspack/package.json +++ b/packages/rspack/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/core", - "version": "0.1.12", + "version": "0.1.13", "webpackVersion": "5.75.0", "license": "MIT", "description": "A Fast Rust-based Web Bundler", @@ -58,9 +58,9 @@ "dependencies": { "@rspack/binding": "workspace:*", "@rspack/dev-client": "workspace:*", - "compare-versions": "6.0.0-rc.1", "@swc/helpers": "0.5.1", "browserslist": "^4.21.3", + "compare-versions": "6.0.0-rc.1", "enhanced-resolve": "5.12.0", "graceful-fs": "4.2.10", "neo-async": "2.6.2", diff --git a/scripts/release/version.mjs b/scripts/release/version.mjs index efc92fd4240..e699056e342 100644 --- a/scripts/release/version.mjs +++ b/scripts/release/version.mjs @@ -30,7 +30,6 @@ export async function version_handler(version) { `version must be one of ${allowedVersion}, but you passed ${version}` ); } - await import("../check_changeset.js"); const root = process.cwd(); const lastVersion = await getLastVersion(root); @@ -45,7 +44,8 @@ export async function version_handler(version) { // skip all example upgrade if ( workspace.manifest.name?.includes("example-") || - workspace.manifest.private === true + (workspace.manifest.private === true && + workspace.manifest.name !== "monorepo") ) { continue; } diff --git a/webpack-test/package.json b/webpack-test/package.json index 7df22b05ff5..699a01cafb7 100644 --- a/webpack-test/package.json +++ b/webpack-test/package.json @@ -1,7 +1,7 @@ { "name": "webpack-test", - "private": "true", - "version": "0.0.7", + "private": true, + "version": "0.2.0", "license": "MIT", "main": "./dist/index.d.ts", "scripts": { @@ -119,4 +119,4 @@ "json" ] } -} +} \ No newline at end of file