Releases: web-infra-dev/rsbuild
Releases Β· web-infra-dev/rsbuild
v1.5.6
What's Changed
Bug Fixes π
- fix: temporarily disable enum inlining optimization by @chenjiahan in #6114
Document π
- docs: add CN documentation for Zephyr Cloud deployment by @chenjiahan in #6113
Other Changes
- release: v1.5.6 by @chenjiahan in #6115
Full Changelog: v1.5.5...v1.5.6
v1.5.5
What's Changed
New Features π
- feat(app-icon): add support for purpose field in web app manifest by @chenjiahan in #6096
Performance π
- perf: lazy loading memfs dependency by @chenjiahan in #6094
Bug Fixes π
- fix(server): correct URL message spacing for multiple routes by @chenjiahan in #6068
- fix(server): prints correct urls when configuring web and node environments by @chenjiahan in #6073
Refactor π¨
- refactor: merge rsbuild-dev-middleware to the core pacakge by @chenjiahan in #6092
- refactor(dev-middleware): clean up code by removing redundant type casts by @chenjiahan in #6099
- refactor(dev-middleware): clean up unused options by @chenjiahan in #6103
- refactor(dev-middleware): remove unnecessary type assertions by @chenjiahan in #6104
Document π
- docs: add native watcher example to build perf guide by @chenjiahan in #6070
- docs: improve documentation authenticity by @Copilot in #6069
- docs: add examples for server.strictPort config by @Copilot in #6075
- docs: improve documentation authenticity and naturalness by @Copilot in #6074
- docs: update JSDoc comments for Rsbuild configuration options by @chenjiahan in #6080
- docs(config): clarify HTTP/2 behavior by @chenjiahan in #6083
- docs: improve wording in docs by @chenjiahan in #6085
- docs: update AGENTS.md and remove copilot-instructions.md by @chenjiahan in #6095
- docs: add zephyr to docs page by @Nsttt in #6071
Other Changes
- chore: add JSON schemas for Rspress meta and nav files by @chenjiahan in #6067
- chore: update rspress and related dependencies to beta.31 by @chenjiahan in #6072
- test(e2e): improve tests for server url printing by @chenjiahan in #6076
- chore(deps): update actions/github-script digest to f28e40c by @renovate[bot] in #6078
- chore(deps): update all patch dependencies by @renovate[bot] in #6079
- chore(deps): update actions/github-script action to v8 by @renovate[bot] in #6081
- chore(deps): update actions/setup-node action to v5 by @renovate[bot] in #6082
- chore: update module-federation and syntax plugin to latest version by @chenjiahan in #6084
- chore(deps): update dependency create-rstack to v1.6.0 by @renovate[bot] in #6091
- release: create-rsbuild v1.5.2 by @chenjiahan in #6093
- chore: bump Rslib to v0.13 and enable tsgo in local by @Timeless0911 in #6087
- chore(deps): update dependency nx to ^21.5.1 by @renovate[bot] in #6101
- chore(workflow): remove experimental typescript setting by @chenjiahan in #6102
- chore(deps): update @rspack/core to v1.5.3 by @chenjiahan in #6106
- test(e2e): add cleanup for write to disk test by @chenjiahan in #6105
- chore: update source map type imports by @chenjiahan in #6110
- release: v1.5.5 by @chenjiahan in #6111
New Contributors
Full Changelog: v1.5.4...v1.5.5
v1.5.4
What's Changed
New Features π
- feat: enable inline const optimization by default by @chenjiahan in #6043
- feat(plugin): support for source map merging in transform hook by @chenjiahan in #6050
Bug Fixes π
- fix: improve error message for public directory copy failure by @chenjiahan in #6034
- fix(hmr): reset reconnect count when connection is established by @chenjiahan in #6047
- fix(client): prevent duplicate console logs during reconnection by @chenjiahan in #6048
- fix(core): only enable inline const in production mode by @chenjiahan in #6062
- fix(core): only enable inline enum in production mode by @chenjiahan in #6064
- fix(webpack): update default value of progress bar configuration by @chenjiahan in #6035
Document π
- docs: improve English documentation phrasing and clarity by @Copilot in #6028
- docs: add examples for CSS Modules exportLocalsConvention by @chenjiahan in #6033
- docs: improve documentation authenticity by @Copilot in #6039
- docs: Improve documentation authenticity and clarity by @Copilot in #6046
- docs: add HMR workaround for vanilla-extract-css plugin by @JSerFeng in #6053
- docs: improve documentation authenticity and natural flow by @Copilot in #6051
- docs(plugins): add source map introduction for transform hook by @chenjiahan in #6052
- docs: setup the AGENTS.md file by @chenjiahan in #6054
- docs: improve documentation authenticity and readability by @Copilot in #6057
- docs: fix various documentation errors by @Copilot in #6058
- docs: fix configuration code blocks with missing titles by @Copilot in #6056
Other Changes
- test(e2e): add CSS Modules export locals test cases by @chenjiahan in #6031
- test(e2e): add TypeScript optional chaining and nullish coalescing test by @Copilot in #6008
- test(e2e): simplify test helpers and default configurations by @chenjiahan in #6036
- test(e2e): enable more HMR tests on Windows by @chenjiahan in #6037
- test(e2e): enable more cases on Windows by @chenjiahan in #6038
- chore(deps): update SWC plugins to ^9.1.0 by @renovate[bot] in #6041
- chore(deps): update sass to ^1.92.0 by @renovate[bot] in #6042
- test(e2e): add test case for constant inlining optimization by @chenjiahan in #6044
- test(e2e): add HMR reconnect test case by @chenjiahan in #6045
- chore(deps): update dependency postcss-loader to v8.2.0 by @renovate[bot] in #6040
- chore(deps): update dependency rspack-chain to v1.4.1 by @chenjiahan in #6059
- test(e2e): improve inline const test case by @chenjiahan in #6063
- test(e2e): improve inline enum test case by @chenjiahan in #6065
- release: v1.5.4 by @chenjiahan in #6066
Full Changelog: v1.5.3...v1.5.4
v1.5.3
What's Changed
New Features π
- feat(deps): update dependency @rspack/core to v1.5.2 by @chenjiahan in #6029
Performance π
- perf: optimize pick function by replacing reduce with for...of loop by @Copilot in #6022
- perf: optimize
isPlainObject
with Object.prototype caching by @Copilot in #6021 - perf: optimize Object.values() call in nonce plugin to avoid redundant array conversion by @Copilot in #6023
Bug Fixes π
- fix: eliminate redundant getPlugin() call in plugin dependency sorting by @Copilot in #6002
Refactor π¨
- refactor(e2e): simplify test setup by using helper methods by @chenjiahan in #5998
Document π
- docs: fix grammar and terminology inconsistencies across documentation by @Copilot in #5997
- docs: adjust the links of rspack-splitChunks by @lxKylin in #6004
- docs: fix various documentation errors by @Copilot in #6005
- docs: improve authenticity of English documentation by @Copilot in #6006
- docs: fix terminology inconsistencies and grammar issues by @Copilot in #6016
- docs: improve documentation authenticity and naturalness by @Copilot in #6015
- docs: enhance performance.prefetch configuration examples by @Copilot in #6014
- docs: add examples for output.externals configuration by @Copilot in #6007
- docs(config): update externals documentation with axios example by @chenjiahan in #6027
Other Changes
- docs: Improve English documentation authenticity by @Copilot in #5996
- docs: add configuration examples for output.charset by @Copilot in #6003
- fix: incorrect target matching in isWebTarget function by @Copilot in #6013
- chore: resolve variable shadowing in transform environment scoping by @Copilot in #6012
- chore: improve formatFileList helper by @Copilot in #6018
- chore(deps): update all patch dependencies by @renovate[bot] in #6025
- ci: add pull-requests write permission to ecosystem workflow by @chenjiahan in #6026
- release: v1.5.3 by @chenjiahan in #6030
New Contributors
Full Changelog: v1.5.2...v1.5.3
v1.5.2
What's Changed
New Features π
- feat(deps): update dependency @rspack/core to v1.5.1 by @chenjiahan in #5971
- feat(plugin-react): improve transpilation scope of ReactRefreshPlugin by @chenjiahan in #5969
- feat: support for destructuring
import.meta.env
by @chenjiahan in #5979
Bug Fixes π
- fix: rerun onBeforeDevCompile hook correctly with multiple environments by @9aoy in #5980
- fix: failed to escape undefined template params by @chenjiahan in #5987
Refactor π¨
- refactor(types): use
LoaderDefinition
to declare loader types by @chenjiahan in #5975
Document π
- docs: improve authenticity and natural expression by @Copilot in #5964
- docs: improve documentation authenticity and readability by @Copilot in #5972
- docs: improve authenticity in documentation files by @Copilot in #5984
- docs: improve English authenticity in documentation by @Copilot in #5988
- docs: add example for
cssModules.auto
configuration by @chenjiahan in #5989 - docs: fix JavaScript syntax errors in static-assets.mdx by @Copilot in #5992
Other Changes
- chore(deps): update sass related packages by @renovate[bot] in #5965
- test(e2e): do not rely on building URL to verify lazy compilation by @JSerFeng in #5966
- chore(plugin-react): update @rspack/plugin-react-refresh to ^1.5.0 by @chenjiahan in #5968
- release: @rsbuild/plugin-react v1.4.0 by @chenjiahan in #5970
- Revert "fix: temporarily disable inline enum optimization (#5960)" by @chenjiahan in #5974
- test(e2e): add new cases to verify enum with property access by @chenjiahan in #5976
- chore(deps): update dependency @types/node to ^22.18.0 by @renovate[bot] in #5978
- chore(deps): update dependency @rsbuild/plugin-react to ^1.4.0 by @renovate[bot] in #5977
- chore(deps): update dependency @shikijs/transformers to ^3.12.0 by @renovate[bot] in #5991
- chore: remove duplicated dependencies via pnpm dedupe by @Copilot in #5990
- docs: fix various documentation errors including grammar, consistency and terminology by @Copilot in #5993
- docs: fix various documentation errors across website/docs directory by @Copilot in #5994
- release: v1.5.2 by @chenjiahan in #5995
Full Changelog: v1.5.1...v1.5.2
v1.5.1
What's Changed
Bug Fixes π
- fix: temporarily disable inline enum optimization by @chenjiahan in #5960
Document π
- docs: improve plugin type documentation by @chenjiahan in #5954
Other Changes
- chore(deps): update dependency @rsbuild/core to ^1.5.0 by @renovate[bot] in #5957
- chore(deps): update dependency @rstest/core to ^0.3.0 by @renovate[bot] in #5958
- release: 1.5.1 by @chenjiahan in #5961
Full Changelog: v1.5.0...v1.5.1
v1.5.0
π See Announcing Rspack 1.5 for more details.
What's Changed
Breaking changes π‘
- feat!: update minimum Node.js version to 18.12.0 by @chenjiahan in #5786
New Features π
- feat: add
onBeforeDevCompile
plugin hook by @9aoy in #5788 - feat: improve command descriptions and documentations by @chenjiahan in #5792
- feat(plugin-less): support for parallel loader execution by @chenjiahan in #5805
- feat: allow to custom Wasm filename hash by @chenjiahan in #5807
- feat(deps): update @rspack/core to v1.5.0-beta.0 by @chenjiahan in #5818
- feat: add experimental ESM output support for node target by @chenjiahan in #5823
- feat: enable lazyCompilation.imports by default by @GiveMe-A-Name in #5824
- feat(client): improve log messages for overlay and socket by @chenjiahan in #5849
- feat: add new
onAfterDevCompile
plugin hook by @chenjiahan in #5882 - feat(deps): update @rspack/core to v1.5.0-beta.1 by @chenjiahan in #5884
- feat(core): expose modifyRsbuildConfig method in instance by @chenjiahan in #5898
- feat(core): expose modifyEnvironmentConfig method in instance by @chenjiahan in #5899
- feat(core): add
expose
API to Rsbuild instance by @chenjiahan in #5910 - feat: support function type of
performance.printFileSize.total
by @Timeless0911 in #5915 - feat: add more params for
performance.printFileSize.total
by @Timeless0911 in #5943 - feat(deps): update @rspack/core to v1.5.0 by @chenjiahan in #5950
Performance π
- perf: update build configs to target ES2022 by @chenjiahan in #5790
- perf: remove pre-bundling of postcss-load-config by @chenjiahan in #5808
- perf: enable Rspack's barrel file optimization by default by @chenjiahan in #5840
- perf: enable Rspack's inline enum optimization by @chenjiahan in #5841
Bug Fixes π
- fix(cli): ensure consistent spacing for npx of node 20+ by @chenjiahan in #5791
- fix(cli): skip greeting when help is requested by @chenjiahan in #5794
- fix(cli): ensure consistent spacing for node run script by @chenjiahan in #5813
- fix(server): adjust indentation in debug log message by @chenjiahan in #5826
- fix(hmr): remove redundant condition check by @chenjiahan in #5828
- fix: update lazyCompilation config to fix deprecation warning by @chenjiahan in #5829
- fix(cache): handle fs operations errors by @chenjiahan in #5839
- fix(types): loosen plugin apply type to support older versions by @chenjiahan in #5842
- fix: failed to create multiple HMR connections by @chenjiahan in #5844
- fix(server): handle Deno compatibility in public dir copy by @chenjiahan in #5852
- fix: do not allow to disable filename hash of Wasm files by @chenjiahan in #5854
- fix: ensure inspectConfig properly initializes action before execution by @chenjiahan in #5859
- fix: add
OnDevCompileDoneFn
type for backward compatibility by @chenjiahan in #5913 - fix: floating promise in rspackProfile plugin by @chenjiahan in #5926
- fix(plugin-vue): allow CSS Modules with custom inject names by @escaton in #5931
- fix: enhance raw query regex to support more patterns by @chenjiahan in #5938
- fix: enhance inline query regex to support more patterns by @chenjiahan in #5939
Refactor π¨
- refactor: eliminate switch exhaustiveness checks by @chenjiahan in #5803
- refactor: rename connection to socket for clarity by @chenjiahan in #5850
- refactor: improve debug log messages for better clarity by @chenjiahan in #5902
- refactor(css-plugins): inherit CSS options from the built-in rule by @chenjiahan in #5940
- refactor(fileSize): simplify asset formatting and path handling by @chenjiahan in #5945
Document π
- docs: update JavaScript runtime installation instructions by @chenjiahan in #5787
- docs: add less parallel to build performance guide by @chenjiahan in #5809
- docs: add version info to onBeforeDevCompile hook by @chenjiahan in #5811
- docs: improve code splitting documentation clarity by @chenjiahan in #5816
- docs: mention Rspack's default split chunks strategy by @chenjiahan in #5821
- docs(lazy-compilation): update default value and version history by @chenjiahan in #5837
- docs: Add missing backtick to filename.mdx by @schu34 in #5848
- docs(config): add links to chunk splitting strategies by @chenjiahan in #5845
- docs: update awesome-rspack references to awesome-rstack by @chenjiahan in #5872
- docs: add version info for modifyHTML hook by @chenjiahan in #5886
- docs: fix grammar, spelling, and consistency errors in documentation by @Copilot in #5888
- docs: fix errors, contractions, terminology, and grammar improvements by @Copilot in #5889
- docs: fix documentation errors, grammar, typos, and file references by @Copilot in #5892
- docs: fix grammatical errors and terminology inconsistencies by @Copilot in #5893
- docs: fix various documentation errors including grammar and punctuation issues by @Copilot in #5894
- docs: fix terminology inconsistencies and grammar issues by @Copilot in #5895
- docs: update exclude documentation to clarify priority by @chenjiahan in #5900
- docs: fix various documentation errors by @Copilot in #5903
- docs: add code examples for html tags config options by @chenjiahan in #5904
- docs(plugin-svgr): add note about default exportType with mixedImport by @chenjiahan in #5907
- docs: add exclude option to
printFileSize
type by @chenjiahan in #5908 - docs: update types documentation to reference source file by @chenjiahan in #5912
- docs(config): add security warning about source maps in production by @chenjiahan in #5914
- docs: update Rspress to beta.28 and remove unused openGraph fields by @chenjiahan in #5919
- docs: add documentation for
output.module
config by @chenjiahan in #5923 - docs: update Rstack description and bump doc-ui version by @chenjiahan in #5924
- docs: fix various documentation errors by @Copilot in #5925
- docs: fix grammar and consistency errors in documentation by @Copilot in #5930
- docs: fix grammar issues and contractions by @Copilot in #5934
- docs: fix grammar, punctuation, and clarity issues by @Copilot in #5936
- docs: improve SSR error logging by @chenjiahan in #5947
- docs: rename onDevCompileDone hook to onAfterDevCompile by @chenjiahan in #5883
Other Changes
- test(e2e): replace execSync and npx with a faster helper by @chenjiahan in #5783
- test(e2e): replace direct exec calls with faster helper by @chenjiahan in https://github.com/web-...
v1.4.16
What's Changed
Bug Fixes π
- fix(deps): update launch-editor-middleware dependency to v2.11.1 by @chenjiahan in a26db53
Full Changelog: v1.4.15...v1.4.16
v1.5.0-rc.0
What's Changed
New Features π
- feat(core): add
expose
API to Rsbuild instance by @chenjiahan in #5910 - feat(core): expose
modifyRsbuildConfig
method in instance by @chenjiahan in #5898 - feat(core): expose
modifyEnvironmentConfig
method in instance by @chenjiahan in #5899 - feat: support function type of
performance.printFileSize.total
by @Timeless0911 in #5915
Bug Fixes π
- fix: add
OnDevCompileDoneFn
type for backward compatibility by @chenjiahan in #5913
Refactor π¨
- refactor: improve debug log messages for better clarity by @chenjiahan in #5902
Document π
- docs: add version info for modifyHTML hook by @chenjiahan in #5886
- docs: fix grammar, spelling, and consistency errors in documentation by @Copilot in #5888
- docs: fix errors, contractions, terminology, and grammar improvements by @Copilot in #5889
- docs: fix documentation errors, grammar, typos, and file references by @Copilot in #5892
- docs: fix grammatical errors and terminology inconsistencies by @Copilot in #5893
- docs: fix various documentation errors including grammar and punctuation issues by @Copilot in #5894
- docs: fix terminology inconsistencies and grammar issues by @Copilot in #5895
- docs: update exclude documentation to clarify priority by @chenjiahan in #5900
- docs: fix various documentation errors by @Copilot in #5903
- docs: add code examples for html tags config options by @chenjiahan in #5904
- docs(plugin-svgr): add note about default exportType with mixedImport by @chenjiahan in #5907
- docs: add exclude option to
printFileSize
type by @chenjiahan in #5908 - docs: update types documentation to reference source file by @chenjiahan in #5912
- docs(config): add security warning about source maps in production by @chenjiahan in #5914
Other Changes
- chore: remove unnecessary exports and helpers by @chenjiahan in #5887
- chore: add copilot-instructions.md for GitHub Copilot coding agent by @Copilot in #5891
- docs: fix various documentation errors by @Copilot in #5896
- chore(deps): update playwright monorepo to v1.55.0 by @renovate[bot] in #5897
- chore: change log suffix color from gray to dim by @chenjiahan in #5901
- docs: fix grammatical errors and spelling inconsistencies by @Copilot in #5911
- release: 1.5.0-rc.0 by @chenjiahan in #5918
New Contributors
- @Copilot made their first contribution in #5888
Full Changelog: v1.5.0-beta.4...v1.5.0-rc.0
v1.5.0-beta.4
What's Changed
New Features π
- feat(deps): update @rspack/core to v1.5.0-beta.1 by @chenjiahan in #5884
- feat: add new
onAfterDevCompile
plugin hook by @chenjiahan in #5882
Bug Fixes π
- fix: ensure inspectConfig properly initializes action before execution by @chenjiahan in #5859
Document π
- docs: update awesome-rspack references to awesome-rstack by @chenjiahan in #5872
Other Changes
- chore(deps): update dependency nx to ^21.4.0 by @renovate[bot] in #5858
- test: fix flaky watch files case by @chenjiahan in #5860
- test(e2e): fix flaky build watch case by @chenjiahan in #5861
- test(e2e): improve log pattern matching in test utils by @chenjiahan in #5863
- test(e2e): fix flaky CLI shortcuts cases by @chenjiahan in #5864
- test(e2e): simplify profile test cases by using helpers by @chenjiahan in #5865
- chore(deps): update all patch dependencies by @renovate[bot] in #5866
- test: fix flaky watch-files-array e2e test case by @chenjiahan in #5867
- test(e2e): reorganize test helpers into separate modules by @chenjiahan in #5868
- test(e2e): standardize log assertions and improving reliability by @chenjiahan in #5869
- test(e2e): fix flaky plugin hook tests by @chenjiahan in #5870
- test(e2e): add test case for using declaration syntax by @chenjiahan in #5873
- test(e2e): simplify runtime log assertions by @chenjiahan in #5874
- test(cli): fix flaky build watch options test by @chenjiahan in #5875
- test(e2e): add helper to assert no logs by @chenjiahan in #5877
- test(e2e): improve lazy compilation cases by @chenjiahan in #5878
- release: 1.5.0-beta.4 by @chenjiahan in #5885
Full Changelog: v1.5.0-beta.3...v1.5.0-beta.4