Skip to content

Commit

Permalink
feat(rspack): migrate to latest rspack versions (#29004)
Browse files Browse the repository at this point in the history
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
We're currently installing Rspack 1.0.5. The latest is 1.1.2.


## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
Ensure we install the latest for users, and migrate existing users to
latest

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
  • Loading branch information
Coly010 authored Nov 20, 2024
1 parent c6784b2 commit 79855a5
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 97 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-url": "^8.0.2",
"@rspack/core": "1.0.5",
"@rspack/dev-server": "1.0.5",
"@rspack/core": "1.1.2",
"@rspack/dev-server": "1.0.9",
"@rspack/plugin-minify": "^0.7.5",
"@rspack/plugin-react-refresh": "^1.0.0",
"@schematics/angular": "~18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/module-federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"picocolors": "^1.1.0",
"@module-federation/sdk": "0.7.6",
"webpack": "5.88.0",
"@rspack/core": "1.0.5",
"@rspack/core": "1.1.2",
"@module-federation/enhanced": "0.7.6",
"express": "^4.19.2",
"http-proxy-middleware": "^3.0.3"
Expand Down
13 changes: 13 additions & 0 deletions packages/rspack/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@
"alwaysAddToPackageJson": false
}
}
},
"20.2.0": {
"version": "20.2.0-beta.3",
"packages": {
"@rspack/core": {
"version": "^1.1.2",
"alwaysAddToPackageJson": false
},
"@rspack/dev-server": {
"version": "^1.0.9",
"alwaysAddToPackageJson": false
}
}
}
},
"version": "0.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"@nx/web": "file:../web",
"@nx/module-federation": "file:../module-federation",
"@phenomnomnominal/tsquery": "~5.0.1",
"@rspack/core": "^1.0.4",
"@rspack/dev-server": "^1.0.4",
"@rspack/core": "^1.1.2",
"@rspack/dev-server": "^1.0.9",
"@rspack/plugin-react-refresh": "^1.0.0",
"autoprefixer": "^10.4.9",
"browserslist": "^4.21.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/rspack/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const nxVersion = require('../../package.json').version;
export const rspackCoreVersion = '1.0.5';
export const rspackDevServerVersion = '1.0.5';
export const rspackCoreVersion = '1.1.2';
export const rspackDevServerVersion = '1.0.9';

export const rspackPluginMinifyVersion = '^0.7.5';
export const rspackPluginReactRefreshVersion = '^1.0.0';
Expand Down
Loading

0 comments on commit 79855a5

Please sign in to comment.