v2.1.9
What's Changed
New Features 🎉
- feat: warn on unknown import.meta properties by @intellild in https://github.com/web-infra-dev/rspack/pull/14785
- feat: add builds for binding-linux-(ppc64,s390x)-gnu by @logonoff in https://github.com/web-infra-dev/rspack/pull/14962
- feat(create-rspack): support --no-git by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15133
- feat: support caseSensitive in import.meta.glob by @intellild in https://github.com/web-infra-dev/rspack/pull/14811
Performance 🚀
- perf(copy-plugin): cache and order static patterns by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15051
- perf: limit incremental HMR asset processing by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15063
- perf: avoid unnecessary call wrappers for runtime helpers by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15065
- perf: cache compilation assets proxy by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15070
- perf(cache): avoid copying aligned archive buffers by @matthewdavis-oai in https://github.com/web-infra-dev/rspack/pull/15024
- perf(json): avoid duplicating export dependency data by @matthewdavis-oai in https://github.com/web-infra-dev/rspack/pull/15023
- perf: improve source map convert performance by @intellild in https://github.com/web-infra-dev/rspack/pull/15138
Bug Fixes 🐞
- fix: improve circular real content hash error diagnostics by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/14973
- fix: keep compilation dependency iterators disjoint by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15072
- fix(cache): align cache version semantics with webpack by @hardfist in https://github.com/web-infra-dev/rspack/pull/15000
- fix: preserve ignored URL when import.meta.url is disabled by @intellild in https://github.com/web-infra-dev/rspack/pull/15075
- fix(napi): avoid runtime lock deadlock by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15077
- fix(lazy): match compiler prefixes exactly by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15073
- fix(mf): avoid injecting shared providers into worker entrypoints by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15059
- fix: handle optional chains in member hook traversal by @zhsama in https://github.com/web-infra-dev/rspack/pull/15076
- fix: support loader context APIs in parallel loaders by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15092
- fix: warn on invalid chunk names by @HashemKhalifa in https://github.com/web-infra-dev/rspack/pull/14854
- fix: preserve imports in impure class expressions by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15098
- fix: preserve worker entrypoints when async chunks are disabled by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15096
- fix: align loader context docs and types with implementation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15095
- fix(rstest): make import.meta.rstest resolver optional by @9aoy in https://github.com/web-infra-dev/rspack/pull/15097
- fix: handle context changes in import.meta.glob hooks by @intellild in https://github.com/web-infra-dev/rspack/pull/14897
- fix(types): align public API docs with declarations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15107
- fix: preserve worker entrypoints during module deduplication by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/14902
- fix(cli): restore config key completions in defineConfig by @upupming in https://github.com/web-infra-dev/rspack/pull/15140
- fix: deduplicate parse errors by source range by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15146
Refactor 🔨
- refactor: extract parser options with AstObject derive by @intellild in https://github.com/web-infra-dev/rspack/pull/14886
- refactor: remove dead Rust code with Hawk by @hardfist in https://github.com/web-infra-dev/rspack/pull/15139
Document 📖
- docs: document loaderContext.addBuildDependency by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15082
- docs: document loaderContext.loaders and remainingRequest by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15084
- docs: migrate loaderContext examples to ESM by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15085
- docs: document loader dependency getters by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15087
- docs(release): group release targets by Node.js support tier by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15088
- docs: document loader context environment by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15090
- docs: correct loader context callback and clearDependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15091
- docs: fix invalid code examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15104
- docs: align more API type docs with declarations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15109
- docs: correct Module Federation documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15111
- docs: align stats hooks docs with implementation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15126
- docs: improve Stats API documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15132
Other Changes
- test: ensure Rsdoctor reports tree-shaken JSON sizes by @yifancong in https://github.com/web-infra-dev/rspack/pull/15055
- chore: migrate formatting to rs fmt by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15068
- chore(deps): replace create-rstack with create-toolkit by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15094
- chore(deps): update dependency mermaid to v11.16.1 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15099
- chore(binding): use system allocator for debug builds by @hardfist in https://github.com/web-infra-dev/rspack/pull/15103
- chore(binding): use native binaryen for wasm-opt by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15100
- chore: update skill metadata and testing guidance by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15105
- chore(deps): update dependency @rspack/dev-server to ^2.2.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15115
- chore(deps): update rust crate swc_ecma_minifier to 57.0.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15113
- chore(deps): update dependency @playwright/test to v1.62.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15114
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15112
- chore(deps): update rstack to v0.4.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15125
- chore(deps): update dependency happy-dom to ^20.11.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15120
- chore(deps): update dependency acorn to ^8.18.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15118
- chore: bump
swc_corefrom 72 to 76 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/15122 - chore(deps): update dependency core-js to v3.50.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15119
- chore(deps): update rust crate fast-glob to 1.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15116
- chore(deps): update rust crate tokio to 1.53.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15117
- chore(deps): update dependency commander to v15 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15129
- chore(deps): update dependency @testing-library/jest-dom to v7 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15128
- chore(deps): update dependency jsdom to v30 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15130
- chore(deps): update dependency less-loader to v13 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15131
- chore(deps): update yarn to v4.18.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15127
- chore: document memory profiling workflows by @hardfist in https://github.com/web-infra-dev/rspack/pull/15108
- chore: upgrade rspack-resolver to 0.10.0 by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15149
New Contributors
- @zhsama made their first contribution in https://github.com/web-infra-dev/rspack/pull/15076
- @HashemKhalifa made their first contribution in https://github.com/web-infra-dev/rspack/pull/14854
- @upupming made their first contribution in https://github.com/web-infra-dev/rspack/pull/15140
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.1.8...v2.1.9