v1.2.2
- revert: fix: align
amd
option behavior with webpack by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9103 - fix: resolve the inconsistent type issue in
JsModule
by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8939
- chore: release packages 1.2.1 by @SyMind in https://github.com/web-infra-dev/rspack/pull/9090
- feat: add runtime plugin hooks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9084
- feat(incremental): don't use has_module_import_export_change when incremental code splitting enabled by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9062
- fix: should not have warnings for cjs when using dll by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9091
- fix: should not cache tracing instance by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9086
- perf(options): replace
Regexp
withends_with
match by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9081 - fix: render module id as number if we can by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9099
- test(benchmark): add basic sourcemap bench case by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9100
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.1...v1.2.2
v1.2.1
- refactor: split compiler hook registers into multiple files by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9061
- feat: improve compatibility with compiler options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9067
- chore(deps): update dependency commander to v13 by @renovate in https://github.com/web-infra-dev/rspack/pull/9074
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.22 by @renovate in https://github.com/web-infra-dev/rspack/pull/9071
- chore(deps): update pnpm to v9.15.4 by @renovate in https://github.com/web-infra-dev/rspack/pull/9073
- feat: integrate rspack_dojang for enhanced template rendering by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9079
- docs: polish some documentations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9085
- fix: amd define in function params by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/9088
- revert: rspack sources substring heuristic algorithm by @SyMind in https://github.com/web-infra-dev/rspack/pull/9082
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.0...v1.2.1
v1.2.0
See Announcing Rspack 1.2 for more details.
- perf: ignore watching files in node_modules by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8645
- perf: remove tokio-console to reduce binary size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8681
- perf: bump miette v7 to reduce binary size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8694
- perf(incremental): compute affected cgm incrementally by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8688
- perf: reduce memory consumption of
CachedSource
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8666 - perf: faster
substring
ofrspack-sources
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8731 - perf: side effects when there aren't too many optimizable dependencies by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8746
- perf: parallelize side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8781
- perf(deps): bump
fast-glob
to v0.4.1 by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8800 - perf: improve FlagDependencyExportsPlugin for large JSON by depth by @hai-x in https://github.com/web-infra-dev/rspack/pull/8802
- perf(incremental): better parallel for side effects plugin rebuild by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8848
- perf(cli): remove Node.js semver checker by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8855
- perf(cli): lazy import rechoir and interpret by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8856
- perf: persistent cache regenerate artifact.*_dependencies from module_graph by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9004
- perf: persistent cache use multi-thread by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9010
- perf: add iterator consumer to improve performance by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9014
- feat: pass compiler_path to rust Compiler by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8665
- feat: cache storage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8466
- feat(incremental): named chunk ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8652
- feat: support additional-pass hook by @SyMind in https://github.com/web-infra-dev/rspack/pull/8672
- feat: improve cache storage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8675
- feat: exports info binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8677
- feat: chunkGraph.getModuleId binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8680
- feat: persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8687
- feat: support
size
option for optimization.chunkIds config by @inottn in https://github.com/web-infra-dev/rspack/pull/8642 - feat: do not cleanup Rust instance by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8702
- feat: export
WarnCaseSensitiveModulesPlugin
and disable it by default by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8697 - feat: cache storage move lock file by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8686
- feat: addInclude binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8713
- feat: update experiments.cache signature by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8729
- feat(mf): bump @module-federation/runtime-tools to 0.8.4 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8728
- feat!: align AssetGeneratorDataUrlFunction with webpack by @inottn in https://github.com/web-infra-dev/rspack/pull/8614
- feat: support module.generator.outputPath by @inottn in https://github.com/web-infra-dev/rspack/pull/8554
- feat: add macro to get rspack version by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8760
- feat: persistent cache expose error to compilation.diagnostic by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8765
- feat: persistent cache in production mode wait for save to complete by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8777
- feat: split big chunks based on modules path similarities by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8775
- feat: add help message for version check by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8774
- feat: splitChunks.cacheGroups.filename supports function by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8779
- feat: bench js api by codspeed by @SyMind in https://github.com/web-infra-dev/rspack/pull/8808
- feat: support module graph connection js api by @SyMind in https://github.com/web-infra-dev/rspack/pull/8812
- feat: support
match_when_empty
for rule condition by @CPunisher in https://github.com/web-infra-dev/rspack/pull/8809 - feat: add context info issuer layer for external function by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8832
- feat: add new optimization.avoidEntryIife config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8814
- feat(incremental): side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8799
- feat: set default SWC minimizer passes to
2
to reduce bundle size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8853 - feat: initialize compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8857
- feat(storage): improve storage memory by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8847
- feat: support set build info in js side by @SyMind in https://github.com/web-infra-dev/rspack/pull/8893
- feat: support invalidate persistent cache using
config.mode
andconfig.name
by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8920 - feat: support
devtool
to compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8940 - feat(plugin-css-extract): add
enforceRelative
plugin option to preserve './' by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8946 - feat: initialize builtin plugins in compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8954
- feat: support externals in compiler builder options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8959
- feat: support chunkGroup.getModulePreOrderIndex by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8588
- feat(core): bump swc_core to 9.0.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8639
- feat(core): bump swc_core to 10.0.1 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8967
- feat(core): add Yarn PnP support by @hardfist in https://github.com/web-infra-dev/rspack/pull/7639
- feat: support
optimization
in compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8979 - feat: make builtin plugin options ordered in compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8980
- feat: support custom parser for
json
type by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8947 - feat(core): bump swc_core to 10.1.0 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8995
- feat: add tracing instrument for persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9001
- feat: mark
@rspack/tracing
as peer dependency by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9008 - feat: initial support for compiler builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9015
- feat(plugin-asset): support
generator['asset'].importMode
for Rslib by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8724 - feat: Add support for debug IDs by @timfish in https://github.com/web-infra-dev/rspack/pull/8943
- fix: external module move out initial chunk by @SyMind in https://github.com/web-infra-dev/rspack/pull/8644
- fix: escape css by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8698
- fix: the wrong filename was passed when calling the assetEmitted hook by @inottn in https://github.com/web-infra-dev/rspack/pull/8709
- fix: module concatenation for dynamic export info by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8730
- fix: duplicate move lock files by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8732
- fix: fix nightly release compare-before-emit-disable test failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8739
- fix: mf parse range not compat with safari by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8749
- fix: incremental rebuild are compatible with empty artifact by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8758
- fix: correct type for
loaderContext.importModule
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8766 - fix: allow empty persistent cache options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8813
- fix: use cgm hash to verify rename inline modules cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8820
- fix: Rspack cssParser will parse failed when url(' ') by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8824
- fix(diagnostic): improve diagnostics for swc wasm plugins when mismatch by @SyMind in https://github.com/web-infra-dev/rspack/pull/8001
- fix!: handle glob patterns ending with /** in CopyRspackPlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8803
- fix(exernals): add hash to distinguish conflict id by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8834
- fix: importModule should receive error correctly by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8827
- fix(rspack-test-tools): use
process.cwd()
when outside Rspack by @colinaaa in https://github.com/web-infra-dev/rspack/pull/8845 - fix(incremental): build chunk graph with runtime chunk true by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8866
- fix: persistent cache save ModuleArgumentDependency.id by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8870
- fix(incremental): activate inactive module not codegen by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8871
- fix: should recognize negative preload value by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8862
- fix: correct css modules hashing to match Webpack when leading digit #8735 by @daveskybet in https://github.com/web-infra-dev/rspack/pull/8778
- fix: rspack_version macro support match alpha version by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8880
- fix: rspack_version macro use json to parse package.json by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8883
- fix: channal error when using sync externals function by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8884
- fix: add stdout draw target to multi progress by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8889
- fix: source-map-devtool-plugin file context option by @SyMind in https://github.com/web-infra-dev/rspack/pull/8888
- fix: transform nested webpack require with innerGraph enabled by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8908
- fix: get resolved module by @SyMind in https://github.com/web-infra-dev/rspack/pull/8906
- fix: include versions in error message for version mismatch by @haocheng6 in https://github.com/web-infra-dev/rspack/pull/8899
- fix: allow custom
lazyCompilation.backend.client
by @colinaaa in https://github.com/web-infra-dev/rspack/pull/8934 - fix: lazy compilation use persistent cache restart failure by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8952
- fix: removal of unecessary underscore logic in escape job #8735 by @daveskybet in https://github.com/web-infra-dev/rspack/pull/8958
- fix: should recalculate order indices in outdated entrypoint by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8970
- fix(type): Add missing OptimizationSplitChunksNameFunction param by @Lemonexe in https://github.com/web-infra-dev/rspack/pull/8707
- fix: merge global parser and generator options by @inottn in https://github.com/web-infra-dev/rspack/pull/8984
- fix(core): calculate pkgJson from configPath dir by @hardfist in https://github.com/web-infra-dev/rspack/pull/8985
- fix: should run invalidation when watching is invalid by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8966
- fix(types): missing
lazyCompilation.backend.server
option by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9009
- docs: invite @GiveMe-A-Name @nyqykk to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8684
- docs: clarify support for JavaScriptModulesPlugin as partial by @steverep in https://github.com/web-infra-dev/rspack/pull/8678
- docs: fix webpack plugins overview docs panic for zh lang by @SyMind in https://github.com/web-infra-dev/rspack/pull/8689
- docs: fix link for bundle size link in English locale by @31piy in https://github.com/web-infra-dev/rspack/pull/8692
- docs: improve
resolve.mainFields
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8703 - docs: React Compiler for React 17 and 18 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8708
- docs: persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8725
- docs: rewrite
SwcJsMinimizerRspackPlugin
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8745 - docs: add
loaderContext.importModule()
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8821 - docs: update output.clean type declaration by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8826
- docs: add FAQ for SWC plugin version unmatched by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8829
- docs: add Google and DeepSeek to who is using by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8865
- docs: make LoaderContext documentation more friendly by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8869
- docs: update persistent cache available version and configuration by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8886
- docs: correct
avoidEntryIife
added version by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8892 - docs: persistent cache example set root.cache to true by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8894
- docs: fix typo in builtin-plugin.md by @stormslowly in https://github.com/web-infra-dev/rspack/pull/8897
- docs: complete
WarnCaseSensitiveModulesPlugin
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8898 - docs: add warning about hmr fails when filename has hash by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8917
- docs: add loader API overview page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8928
- docs(glossary): use "module specifier" instead of "request" by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8933
- docs: add persistent cache invalidation notes by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8921
- docs: fix canary package name by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8969
- docs: update blog list by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8971
- docs: unify title capitalization style by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8973
- docs: unify title capitalization style for more docs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8983
- docs: fix loader API getLogger types documentation by @JamesNimlos in https://github.com/web-infra-dev/rspack/pull/8982
- docs: add persistent cache migration by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8978
- docs: add
invalid
compiler hook by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9003 - docs: prefer to use named import and destructuring require by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9005
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.16 by @renovate in https://github.com/web-infra-dev/rspack/pull/8656
- chore(deps): update dependency prettier to v3.4.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8660
- chore(deps): update pnpm to v9.15.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8662
- chore(workflow): set Issue types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8663
- chore(deps): update dependency @rspack/dev-server to v1.0.10 by @renovate in https://github.com/web-infra-dev/rspack/pull/8659
- refactor: chunk graph binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8648
- refactor: simplify file system code by @nilptr in https://github.com/web-infra-dev/rspack/pull/8654
- chore: update API change by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8700
- chore(deps): bump textwrap 0.16 for deduplication by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8699
- refactor: unify the logic of
span_to_location
into traitSourcePosition
by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8640 - chore: upgrade Rust to 1.83.0 nightly by @andersk in https://github.com/web-infra-dev/rspack/pull/8712
- chore(renovate): Enable lockFileMaintenance by @andersk in https://github.com/web-infra-dev/rspack/pull/8715
- chore(deps): update rspress to v1.38.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8719
- chore(deps): update dependency mermaid to v11 by @renovate in https://github.com/web-infra-dev/rspack/pull/8720
- revert: Revert "chore: sanitize file paths" by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8721
- chore(deps): update dependency check-dependency-version-consistency to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8718
- chore(deps): update dependency is-ci to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8723
- chore(ci): only trim-paths on release and enable renovate update Cargo.lock by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8722
- chore(deps): update rust crate rspack_resolver to 0.3.6 by @renovate in https://github.com/web-infra-dev/rspack/pull/8717
- chore(deps): update rust crate napi to 3.0.0-alpha.23 by @renovate in https://github.com/web-infra-dev/rspack/pull/8661
- chore(deps): update dependency rimraf to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8727
- chore(deps): remove dependency internal-ip by @renovate in https://github.com/web-infra-dev/rspack/pull/8733
- chore(deps): remove dependency mkdirp by @renovate in https://github.com/web-infra-dev/rspack/pull/8734
- chore(deps): update dependency glob to v11 by @renovate in https://github.com/web-infra-dev/rspack/pull/8738
- chore(deps): update typescript and @microsoft/api-extractor by @renovate in https://github.com/web-infra-dev/rspack/pull/8737
- chore(deps): stop updating inventory with renovate ci by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8742
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8657
- ci: linux-musl build failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8743
- ci: build linux debug binary directly for CI purpose to speedup PR check by @xc2 in https://github.com/web-infra-dev/rspack/pull/7243
- ci: should skip trim paths for doc changes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8750
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8752
- refactor: improve storage error message by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8740
- refactor: merge binding crates into
rspack_binding_values
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8761 - ci: use ubuntu-22.04 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8776
- chore: remove all unnecessary workflow by @hardfist in https://github.com/web-infra-dev/rspack/pull/8783
- chore: remove issue_comment trigger from CI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8784
- ci: remove useless variable in release-pull-request.yml by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8787
- refactor: remove as much
getRawOptions
as possible by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8773 - chore(deps): update napi by @renovate in https://github.com/web-infra-dev/rspack/pull/8771
- chore(napi/build): disable dts cache of napi build by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8795
- ci: disable pkg preview by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8794
- ci: disable miri, eco-ci and benchmark check by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8797
- ci: add security pr type by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8796
- ci: add @GiveMe-A-Name to team label by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8810
- build: remove no-dts-cache by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8819
- chore: split canary to separate scope by @hardfist in https://github.com/web-infra-dev/rspack/pull/8828
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8840
- chore(deps): update pnpm to v9.15.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8841
- chore: remove unnecessary TODOs by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8850
- chore(deps): update rspress to v1.39.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8842
- style: use inlined args for
format!
by @hamirmahal in https://github.com/web-infra-dev/rspack/pull/8228 - chore: ignore style changes in git blame #8228 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8852
- test: add cache test cases by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8854
- chore(deps): bump Rslib to v0.2.2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8859
- test: split incremental test cases to run in parallel by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8860
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8858
- test: refresh modified file mtime when run NEXT_START by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8863
- chore(deps): upgrade miette 7.2.0 to 7.4.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8864
- chore(deps): lock file maintenance by @renovate in https://github.com/web-infra-dev/rspack/pull/8805
- ci: add ecosystem benchmark by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8868
- chore: update version to match the latest release by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8872
- chore(deps): Upgrade @types/node 20.12.7 to 20.17.10 by @andersk in https://github.com/web-infra-dev/rspack/pull/8867
- chore: add profile choice for release canary by @hardfist in https://github.com/web-infra-dev/rspack/pull/8874
- chore(deps): update dependency css-loader to v7 by @renovate in https://github.com/web-infra-dev/rspack/pull/8024
- chore: change input_filesystem to ReadableFileSystem by @hardfist in https://github.com/web-infra-dev/rspack/pull/8878
- test: easier way to write hmr test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8849
- ci: remove nightly release by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8885
- refactor(incremental): introduce mutation update module by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8891
- test: add persistent cache test by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8890
- ci: fix ecosystem-benchmark test pr failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8902
- refactor: better storage error format by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8909
- chore(deps): update pnpm to v9.15.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8913
- chore(deps): update rspress to v1.39.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8914
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8912
- ci: fix documentation coverage check by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8907
- test: clean up unused dev dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8919
- fix(modern-module): skip the asset entry module concaten for Rslib by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8837
- ci: ecosystem-benchmark checkout failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8923
- chore(deps): Upgrade and pin webpack to 5.95.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8918
- ci: use corepack instead of pnpm/action-setup by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8926
- ci: pnpm cache install pnpm/exe when node16 by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8929
- ci: add ecosystem ci by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8931
- ci: enable ecosystem-ci on main branch by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8932
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8911
- refactor: move compiler options builder to new crate by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8941
- ci: ecosystem-ci runs on ubuntu-22.04 by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8955
- chore:
run_loaders
takes a single plugin only by @wtlin1228 in https://github.com/web-infra-dev/rspack/pull/8968 - refactor: tracing by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8195
- chore: fix typo in rspack_core/src/module.rs by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8986
- chore(deps): update pnpm to v9.15.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8989
- chore(deps): update rspress to v1.39.4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8990
- chore(deps): update dependency jsdom to v26 by @renovate in https://github.com/web-infra-dev/rspack/pull/8991
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/9013
- chore(deps): update lightningcss to v1.0.0-alpha.63 by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8997
- ci: declare minimal permissions for Actions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9018
- ci: fix workflow permission issues by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9021
- feat: hoist compiler options builder to
Compiler::builder
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9020 - docs: rewrite CLI documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9028
- chore(deps): bump prebundle v1.2.7 to disable CI cache by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9029
- perf: persistent cache recovery use consumer mode by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9019
- docs: improve hot module replacement by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/9036
- ci: ecosystem ci shows errors only on comment by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9032
- fix: patched mimalloc to use
MADV_DONTNEED
thanMADV_FREE
on Linux by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9037 - chore(deps): update rspress to v1.40.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/9039
- perf: disable js tracing in non-profile mode by @hardfist in https://github.com/web-infra-dev/rspack/pull/9046
- refactor: introducing the faster code-splitting algorithm by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8823
- fix: skip mf tests for new code splitting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9047
- fix(core): upgrade rspack_resolver to 0.5.0 by @hardfist in https://github.com/web-infra-dev/rspack/pull/9048
- chore(deps): update dependency zx to v8 by @renovate in https://github.com/web-infra-dev/rspack/pull/9044
- fix: align
amd
option behavior with webpack by @nilptr in https://github.com/web-infra-dev/rspack/pull/9011 - docs: add parallel code splitting docs by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/9051
- feat(stats): add module reason locations and module trace dependencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/9049
- feat: using runtime_template to support output.environment by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/9052
- feat: support more options in compiler builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9053
- fix: 🐛 align get provided exports with webpack by @stormslowly in https://github.com/web-infra-dev/rspack/pull/9050
- test: add basic rust benchmark by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/9054
- feat: add chunkGraph.getNumberOfEntryModules by @colinaaa in https://github.com/web-infra-dev/rspack/pull/9035
- fix: add issue permission for release workflow by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/9066
- @steverep made their first contribution in https://github.com/web-infra-dev/rspack/pull/8678
- @31piy made their first contribution in https://github.com/web-infra-dev/rspack/pull/8692
- @hamirmahal made their first contribution in https://github.com/web-infra-dev/rspack/pull/8228
- @daveskybet made their first contribution in https://github.com/web-infra-dev/rspack/pull/8778
- @haocheng6 made their first contribution in https://github.com/web-infra-dev/rspack/pull/8899
- @Lemonexe made their first contribution in https://github.com/web-infra-dev/rspack/pull/8707
- @JamesNimlos made their first contribution in https://github.com/web-infra-dev/rspack/pull/8982
- @timfish made their first contribution in https://github.com/web-infra-dev/rspack/pull/8943
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.8...v1.2.0
v1.2.0-beta.0
- feat: support set build info in js side by @SyMind in https://github.com/web-infra-dev/rspack/pull/8893
- feat: support invalidate persistent cache using
config.mode
andconfig.name
by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8920 - feat: support
devtool
to compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8940 - feat(plugin-css-extract): add
enforceRelative
plugin option to preserve './' by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8946
- fix: rspack_version macro use json to parse package.json by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8883
- fix: channal error when using sync externals function by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8884
- fix: add stdout draw target to multi progress by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8889
- fix: source-map-devtool-plugin file context option by @SyMind in https://github.com/web-infra-dev/rspack/pull/8888
- fix: transform nested webpack require with innerGraph enabled by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8908
- fix: get resolved module by @SyMind in https://github.com/web-infra-dev/rspack/pull/8906
- fix: include versions in error message for version mismatch by @haocheng6 in https://github.com/web-infra-dev/rspack/pull/8899
- fix: allow custom
lazyCompilation.backend.client
by @colinaaa in https://github.com/web-infra-dev/rspack/pull/8934 - fix: lazy compilation use persistent cache restart failure by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8952
- docs: update persistent cache available version and configuration by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8886
- docs: correct
avoidEntryIife
added version by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8892 - docs: persistent cache example set root.cache to true by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8894
- docs: fix typo in builtin-plugin.md by @stormslowly in https://github.com/web-infra-dev/rspack/pull/8897
- docs: complete
WarnCaseSensitiveModulesPlugin
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8898 - docs: add warning about hmr fails when filename has hash by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8917
- docs: add loader API overview page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8928
- docs(glossary): use "module specifier" instead of "request" by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8933
- ci: remove nightly release by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8885
- refactor(incremental): introduce mutation update module by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8891
- test: add persistent cache test by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8890
- ci: fix ecosystem-benchmark test pr failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8902
- refactor: better storage error format by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8909
- chore(deps): update pnpm to v9.15.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8913
- chore(deps): update rspress to v1.39.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8914
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8912
- ci: fix documentation coverage check by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8907
- test: clean up unused dev dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8919
- fix(modern-module): skip the asset entry module concaten for Rslib by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8837
- ci: ecosystem-benchmark checkout failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8923
- chore(deps): Upgrade and pin webpack to 5.95.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8918
- ci: use corepack instead of pnpm/action-setup by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8926
- ci: pnpm cache install pnpm/exe when node16 by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8929
- ci: add ecosystem ci by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8931
- ci: enable ecosystem-ci on main branch by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8932
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8911
- refactor: move compiler options builder to new crate by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8941
- @haocheng6 made their first contribution in https://github.com/web-infra-dev/rspack/pull/8899
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.0-alpha.0...v1.2.0-beta.0
v1.2.0-alpha.0
Rspack v1.2 no longer watching the node_modules
directory by default. This can greatly reduce the number of files to watch and improve performance.
According to our benchmark repo, this change will:
- Reduce memory usage by 120MB.
- Increase dev startup speed by 40%.
- Increase HMR speed by 20~30%.
This change will not affect symlinked resources in monorepo, as symlinked resources are resolved to their real path by default.
Related PR: perf: ignore watching files in node_modules by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8645
The Rust crate swc_core
has been upgraded to 9.0.0
. Users of the SWC Wasm plugin need to ensure version consistency with the swc_core
being used, otherwise, it may lead to unforeseen issues.
For more details, see SWC Plugin Version Unmatched.
Related PR: feat(core)!: bump swc_core to 9.0.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8639
We have optimized the data structure used to store strings during the rspack-sources
calculation process. Throughout the calculation, all string data point to the string heap memory of the root node, effectively avoiding the generation of new string allocations during the calculation.
Related PR: perf: reduce memory consumption of CachedSource by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8666
The implementation of side effects optimization has been refactored. The new implementation is simpler and more friendly for parallelism. It can make full use of parallelism to improve performance. In actual projects, there is usually about a 2x-3x performance improvement in this stage.
Related PR: perf: parallelize side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8781
The WarnCaseSensitiveModulesPlugin will check the paths of modules and issue warnings for modules that conflict when their paths are all in lowercase. Before we enable it by default, but since this is only a "linter" plugin and it has additional performance overhead especially in development mode. So now we disable it by default, and recommend users use plugins: [new rspack.WarnCaseSensitiveModulesPlugin()]
to add it themselves by their own needs.
Related PR: feat: export
WarnCaseSensitiveModulesPlugin
and disable it by default by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8697
- perf: remove tokio-console to reduce binary size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8681
- perf: bump miette v7 to reduce binary size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8694
- perf(incremental): compute affected cgm incrementally by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8688
- perf: reduce memory consumption of
CachedSource
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8666 - perf: faster
substring
ofrspack-sources
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8731 - perf: side effects when there aren't too many optimizable dependencies by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8746
- perf: parallelize side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8781
- perf(deps): bump
fast-glob
to v0.4.1 by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8800 - perf: improve FlagDependencyExportsPlugin for large JSON by depth by @hai-x in https://github.com/web-infra-dev/rspack/pull/8802
- perf(incremental): better parallel for side effects plugin rebuild by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8848
- perf(cli): remove Node.js semver checker by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8855
- perf(cli): lazy import rechoir and interpret by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8856
- feat: pass compiler_path to rust Compiler by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8665
- feat: cache storage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8466
- feat(incremental): named chunk ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8652
- feat: support additional-pass hook by @SyMind in https://github.com/web-infra-dev/rspack/pull/8672
- feat: improve cache storage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8675
- feat: exports info binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8677
- feat: chunkGraph.getModuleId binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8680
- feat: persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8687
- feat: support
size
option for optimization.chunkIds config by @inottn in https://github.com/web-infra-dev/rspack/pull/8642 - feat: do not cleanup Rust instance by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8702
- feat: export
WarnCaseSensitiveModulesPlugin
and disable it by default by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8697 - feat: cache storage move lock file by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8686
- feat: addInclude binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8713
- feat: update experiments.cache signature by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8729
- feat(mf): bump @module-federation/runtime-tools to 0.8.4 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8728
- feat!: align AssetGeneratorDataUrlFunction with webpack by @inottn in https://github.com/web-infra-dev/rspack/pull/8614
- feat: support module.generator.outputPath by @inottn in https://github.com/web-infra-dev/rspack/pull/8554
- feat: add macro to get rspack version by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8760
- feat: persistent cache expose error to compilation.diagnostic by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8765
- feat: persistent cache in production mode wait for save to complete by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8777
- feat: split big chunks based on modules path similarities by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8775
- feat: add help message for version check by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8774
- feat: splitChunks.cacheGroups.filename supports function by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8779
- feat: bench js api by codspeed by @SyMind in https://github.com/web-infra-dev/rspack/pull/8808
- feat: support module graph connection js api by @SyMind in https://github.com/web-infra-dev/rspack/pull/8812
- feat: support
match_when_empty
for rule condition by @CPunisher in https://github.com/web-infra-dev/rspack/pull/8809 - feat: add context info issuer layer for external function by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8832
- feat: add new optimization.avoidEntryIife config by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8814
- feat(incremental): side effects optimization by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8799
- feat: set default SWC minimizer passes to
2
to reduce bundle size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8853 - feat: initialize compiler options builder by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8857
- feat(storage): improve storage memory by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8847
- fix: external module move out initial chunk by @SyMind in https://github.com/web-infra-dev/rspack/pull/8644
- fix: escape css by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8698
- fix: the wrong filename was passed when calling the assetEmitted hook by @inottn in https://github.com/web-infra-dev/rspack/pull/8709
- fix: module concatenation for dynamic export info by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8730
- fix: duplicate move lock files by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8732
- fix: fix nightly release compare-before-emit-disable test failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8739
- fix: mf parse range not compat with safari by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8749
- fix: incremental rebuild are compatible with empty artifact by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8758
- fix: correct type for
loaderContext.importModule
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8766 - fix: allow empty persistent cache options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8813
- fix: use cgm hash to verify rename inline modules cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8820
- fix: Rspack cssParser will parse failed when url(' ') by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8824
- fix(diagnostic): improve diagnostics for swc wasm plugins when mismatch by @SyMind in https://github.com/web-infra-dev/rspack/pull/8001
- fix!: handle glob patterns ending with /** in CopyRspackPlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8803
- fix(exernals): add hash to distinguish conflict id by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8834
- fix: importModule should receive error correctly by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8827
- fix(rspack-test-tools): use
process.cwd()
when outside Rspack by @colinaaa in https://github.com/web-infra-dev/rspack/pull/8845 - fix(incremental): build chunk graph with runtime chunk true by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8866
- fix: persistent cache save ModuleArgumentDependency.id by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8870
- fix(incremental): activate inactive module not codegen by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8871
- fix: should recognize negative preload value by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8862
- fix: correct css modules hashing to match Webpack when leading digit #8735 by @daveskybet in https://github.com/web-infra-dev/rspack/pull/8778
- fix: rspack_version macro support match alpha version by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8880
- docs: invite @GiveMe-A-Name @nyqykk to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8684
- docs: clarify support for JavaScriptModulesPlugin as partial by @steverep in https://github.com/web-infra-dev/rspack/pull/8678
- docs: fix webpack plugins overview docs panic for zh lang by @SyMind in https://github.com/web-infra-dev/rspack/pull/8689
- docs: fix link for bundle size link in English locale by @31piy in https://github.com/web-infra-dev/rspack/pull/8692
- docs: improve
resolve.mainFields
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8703 - docs: React Compiler for React 17 and 18 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8708
- docs: persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8725
- docs: rewrite
SwcJsMinimizerRspackPlugin
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8745 - docs: add
loaderContext.importModule()
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8821 - docs: update output.clean type declaration by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8826
- docs: add FAQ for SWC plugin version unmatched by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8829
- docs: add Google and DeepSeek to who is using by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8865
- docs: make LoaderContext documentation more friendly by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8869
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.16 by @renovate in https://github.com/web-infra-dev/rspack/pull/8656
- chore(deps): update dependency prettier to v3.4.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8660
- chore(deps): update pnpm to v9.15.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8662
- chore(workflow): set Issue types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8663
- chore(deps): update dependency @rspack/dev-server to v1.0.10 by @renovate in https://github.com/web-infra-dev/rspack/pull/8659
- refactor: chunk graph binding API by @SyMind in https://github.com/web-infra-dev/rspack/pull/8648
- refactor: simplify file system code by @nilptr in https://github.com/web-infra-dev/rspack/pull/8654
- chore: update API change by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8700
- chore(deps): bump textwrap 0.16 for deduplication by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8699
- refactor: unify the logic of
span_to_location
into traitSourcePosition
by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8640 - chore: upgrade Rust to 1.83.0 nightly by @andersk in https://github.com/web-infra-dev/rspack/pull/8712
- chore(renovate): Enable lockFileMaintenance by @andersk in https://github.com/web-infra-dev/rspack/pull/8715
- chore(deps): update rspress to v1.38.0 by @renovate in https://github.com/web-infra-dev/rspack/pull/8719
- chore(deps): update dependency mermaid to v11 by @renovate in https://github.com/web-infra-dev/rspack/pull/8720
- revert: Revert "chore: sanitize file paths" by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8721
- chore(deps): update dependency check-dependency-version-consistency to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8718
- chore(deps): update dependency is-ci to v4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8723
- chore(ci): only trim-paths on release and enable renovate update Cargo.lock by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8722
- chore(deps): update rust crate rspack_resolver to 0.3.6 by @renovate in https://github.com/web-infra-dev/rspack/pull/8717
- chore(deps): update rust crate napi to 3.0.0-alpha.23 by @renovate in https://github.com/web-infra-dev/rspack/pull/8661
- chore(deps): update dependency rimraf to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8727
- chore(deps): remove dependency internal-ip by @renovate in https://github.com/web-infra-dev/rspack/pull/8733
- chore(deps): remove dependency mkdirp by @renovate in https://github.com/web-infra-dev/rspack/pull/8734
- chore(deps): update dependency glob to v11 by @renovate in https://github.com/web-infra-dev/rspack/pull/8738
- chore(deps): update typescript and @microsoft/api-extractor by @renovate in https://github.com/web-infra-dev/rspack/pull/8737
- chore(deps): stop updating inventory with renovate ci by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8742
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8657
- ci: linux-musl build failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8743
- ci: build linux debug binary directly for CI purpose to speedup PR check by @xc2 in https://github.com/web-infra-dev/rspack/pull/7243
- ci: should skip trim paths for doc changes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8750
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8752
- refactor: improve storage error message by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8740
- refactor: merge binding crates into
rspack_binding_values
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8761 - ci: use ubuntu-22.04 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8776
- chore: remove all unnecessary workflow by @hardfist in https://github.com/web-infra-dev/rspack/pull/8783
- chore: remove issue_comment trigger from CI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8784
- ci: remove useless variable in release-pull-request.yml by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8787
- refactor: remove as much
getRawOptions
as possible by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8773 - chore(deps): update napi by @renovate in https://github.com/web-infra-dev/rspack/pull/8771
- chore(napi/build): disable dts cache of napi build by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8795
- ci: disable pkg preview by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8794
- ci: disable miri, eco-ci and benchmark check by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8797
- ci: add security pr type by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8796
- ci: add @GiveMe-A-Name to team label by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8810
- build: remove no-dts-cache by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8819
- chore: split canary to separate scope by @hardfist in https://github.com/web-infra-dev/rspack/pull/8828
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8840
- chore(deps): update pnpm to v9.15.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8841
- chore: remove unnecessary TODOs by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8850
- chore(deps): update rspress to v1.39.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8842
- style: use inlined args for
format!
by @hamirmahal in https://github.com/web-infra-dev/rspack/pull/8228 - chore: ignore style changes in git blame #8228 by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8852
- test: add cache test cases by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8854
- chore(deps): bump Rslib to v0.2.2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8859
- test: split incremental test cases to run in parallel by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8860
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8858
- test: refresh modified file mtime when run NEXT_START by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8863
- chore(deps): upgrade miette 7.2.0 to 7.4.0 by @andersk in https://github.com/web-infra-dev/rspack/pull/8864
- chore(deps): lock file maintenance by @renovate in https://github.com/web-infra-dev/rspack/pull/8805
- ci: add ecosystem benchmark by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8868
- chore: update version to match the latest release by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8872
- chore(deps): Upgrade @types/node 20.12.7 to 20.17.10 by @andersk in https://github.com/web-infra-dev/rspack/pull/8867
- chore: add profile choice for release canary by @hardfist in https://github.com/web-infra-dev/rspack/pull/8874
- chore(deps): update dependency css-loader to v7 by @renovate in https://github.com/web-infra-dev/rspack/pull/8024
- chore: change input_filesystem to ReadableFileSystem by @hardfist in https://github.com/web-infra-dev/rspack/pull/8878
- test: easier way to write hmr test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8849
- @steverep made their first contribution in https://github.com/web-infra-dev/rspack/pull/8678
- @31piy made their first contribution in https://github.com/web-infra-dev/rspack/pull/8692
- @hamirmahal made their first contribution in https://github.com/web-infra-dev/rspack/pull/8228
- @daveskybet made their first contribution in https://github.com/web-infra-dev/rspack/pull/8778
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.8...v1.2.0-alpha.0
v1.1.8
This is a re-release version of 1.1.6
On 12/19/2024, 02:01 (UTC), we discovered that our npm packages @rspack/core
and @rspack/cli
were maliciously attacked. The attacker released v1.1.7
using a compromised npm token, which contained malicious code. We took immediate action upon discovering the issue.
- Affected versions:
@rspack/core
and@rspack/cli
v1.1.7
- Duration: 12/19/2024, 02:01 (UTC), lasting approximately 1 hour
- Malicious code impact: After npm install, the postinstall script in
package.json
runs malicious code indist/util/support.js
. We are currently analyzing the full impact of malicious code.
Upon discovery, we immediately deprecated the affected v1.1.7
, redirected the npm latest tag to v1.1.6
, and reset all related tokens. Subsequently, we released a secure new version v1.1.8
.
If you installed v1.1.7
during the affected period, please:
- Update to the latest safe version immediately:
@rspack/core
and@rspack/cli
to>= 1.1.8
- Check your system for any unusual activity
We deeply apologize for the risks caused by this incident. To prevent similar incidents from happening again, we will implement stricter token management protocols and enhance our security review processes. If you have any questions or discover any suspicious activity, please create an issue or send an email to: web-infra-security@bytedance.com We will continue to follow and respond to community feedback.
v1.1.6
Rspack's memory usage in large projects has been significantly reduced since v1.1.6:
Related PRs:
- perf: improve cached source data struct by @SyMind in https://github.com/web-infra-dev/rspack/pull/8602
- perf: reduce heap allocations for
RuntimeModule
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8620 - perf: avoid heap allocation for getting connections by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8625
- perf: replace
RawSource
with smallerRawStringSource
andRawBufferSource
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8629
- feat: implement output.clean.keep: Option by @ClSlaid in https://github.com/web-infra-dev/rspack/pull/8479
- feat: support
output.trustedTypes.onPolicyCreationFailure
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8619 - feat(incremental): named module ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8593
- feat: support
getResolve
in external function context by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8577 - feat: add intermediate file system by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8631
- feat(persistent cache): add make occasion by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8586
- fix: importModule should have err by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8590
- fix: trusted type should add module runtime requirements by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8617
- fix: source map file should use contenthash itself by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8623
- fix: sync minify file comments from SWC by @fi3ework in https://github.com/web-infra-dev/rspack/pull/8628
- fix: generate wrong chunk filename runtime code on win32 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/8622
- fix: avoid unnamed module ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8634
- fix: passively rebuild modules imported by
importModule
by @CPunisher in https://github.com/web-infra-dev/rspack/pull/8595
- docs: fix typo by @cbbfcd in https://github.com/web-infra-dev/rspack/pull/8607
- docs: rewrite
CopyRspackPlugin
documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8621 - docs: fix error links by @xuexb in https://github.com/web-infra-dev/rspack/pull/8635
- chore: add release-check task by @hardfist in https://github.com/web-infra-dev/rspack/pull/8578
- refactor: remove compilation.built_module by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8589
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8610
- chore(deps): update rspress to v1.37.3 by @renovate in https://github.com/web-infra-dev/rspack/pull/8613
- chore(deps): update pnpm to v9.14.4 by @renovate in https://github.com/web-infra-dev/rspack/pull/8612
- chore: remove tracking subjects by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8616
- test(snapshot): make snapshots cleaner and update path-serializer 0.3.4 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8161
- chore(deps): update napi by @renovate in https://github.com/web-infra-dev/rspack/pull/8611
- test: create issues for failed webpack test by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8618
- refactor: improve dependency location by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8606
- chore(deps): update crates by @renovate in https://github.com/web-infra-dev/rspack/pull/8198
- chore(deps): update crates (major) by @renovate in https://github.com/web-infra-dev/rspack/pull/6926
- ci: run miri on main by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8632
- chore: remove unnecessary code by @shulaoda in https://github.com/web-infra-dev/rspack/pull/8641
- @ClSlaid made their first contribution in https://github.com/web-infra-dev/rspack/pull/8479
- @cbbfcd made their first contribution in https://github.com/web-infra-dev/rspack/pull/8607
- @xuexb made their first contribution in https://github.com/web-infra-dev/rspack/pull/8635
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.5...v1.1.6
v1.1.5
- perf: create tsfn error resolver once by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8540
- perf: mem cache for chunk render source by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8528
- perf: move from
Buffer
to zero-copyBufferSlice
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8574 - perf: register cleanup hook on global by @SyMind in https://github.com/web-infra-dev/rspack/pull/8564
- perf: reduce memory consumption of paths by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8581
- feat(mf): recursive search for versions of shared dependencies by @inottn in https://github.com/web-infra-dev/rspack/pull/8388
- feat: support output.environment.nodePrefixForCoreModules by @inottn in https://github.com/web-infra-dev/rspack/pull/8516
- feat(rspack_cacheable):
as
attr support use with dyn trait by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8535 - feat: support analysing AMD module format by @nilptr in https://github.com/web-infra-dev/rspack/pull/8389
- feat(cli): set default
process.title
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8576 - feat: support chunksSortMode option to HtmlRspackPlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8585
- fix: reset the progress bar in the correct hook by @inottn in https://github.com/web-infra-dev/rspack/pull/8429
- fix: get encoded asset content correctly by @inottn in https://github.com/web-infra-dev/rspack/pull/8545
- fix: missing dependencies type in Module class by @SyMind in https://github.com/web-infra-dev/rspack/pull/8552
- fix: chunk render cache panic on css extract diagnostics by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8562
- fix: should report errors if stats was being accessed after the compiler was closed by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8561
- fix: add missing affectedHooks parameter to ProvidePlugin by @inottn in https://github.com/web-infra-dev/rspack/pull/8570
- fix: rule.issuerLayer by @SyMind in https://github.com/web-infra-dev/rspack/pull/8572
- fix: should have module-post-order-index when incremental build by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8559
- fix: rebuild should reset module.preOrderIndex by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8413
- fix(incremental): infer async modules test cases and add loggings for incremental by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8580
- fix: prevent from accessing outdated compilation by @SyMind in https://github.com/web-infra-dev/rspack/pull/8591
- fix(incremental): get affected modules with chunk graph perf regression by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8592
- docs: add examples for watchOptions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8532
- docs: polish Rule configuration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8565
- refactor: remove unnecessary filesystem trait by @hardfist in https://github.com/web-infra-dev/rspack/pull/8525
- chore(deps): update dependency prettier to v3.4.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8544
- chore(deps): update github-actions by @renovate in https://github.com/web-infra-dev/rspack/pull/8542
- chore(deps): update pnpm to v9.14.2 by @renovate in https://github.com/web-infra-dev/rspack/pull/8543
- refactor: css loading by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8534
- test: create issues for webpack-test failures by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8551
- chore: update rspress to v1.37.2, fix sass test case warnings by @renovate in https://github.com/web-infra-dev/rspack/pull/8514
- refactor: remove unused cssHeadDataCompression config by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8555
- chore: bump rspack crate to 0.2.0 by @hardfist in https://github.com/web-infra-dev/rspack/pull/8573
- chore: fix crate publish problems by @hardfist in https://github.com/web-infra-dev/rspack/pull/8575
- refactor: CSS HMR by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/8587
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.4...v1.1.5
v1.1.4
- feat(cacheable): add AsOwned by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8500
- feat: rspack_cacheable support
as
attr by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8521 - feat: rspack_cacheable support rspack_sources::BoxSource by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/8527
- fix(incremental): wrong runtime module when rebuild by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8504
- fix:
WebWorkerTemplatePlugin
should generate import-scripts chunk loading runtime by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/8523 - fix: handle DataURI without base64 word by @inottn in https://github.com/web-infra-dev/rspack/pull/8380
- fix: variable name conflict with concatenate and runtime code by @inottn in https://github.com/web-infra-dev/rspack/pull/8386
- docs: add examples for ESM loader by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8498
- docs: chunk level incremental by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8505
- docs: remove wrong short argument -w for --json in cli.mdx by @stefanseeger in https://github.com/web-infra-dev/rspack/pull/8507
- docs: update plugin compatible table by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8526
- chore(deps): update dependency @swc/plugin-remove-console to v5 by @renovate in https://github.com/web-infra-dev/rspack/pull/8515
- test: create issues for webpack-test failure cases by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/8491
- refactor: rename FileSystem to SyncFileSystem by @hardfist in https://github.com/web-infra-dev/rspack/pull/8520
- refactor: unify to filesystem in rspack_core by @hardfist in https://github.com/web-infra-dev/rspack/pull/8522
- chore: update error message for task loop by @wtlin1228 in https://github.com/web-infra-dev/rspack/pull/8418
- @stefanseeger made their first contribution in https://github.com/web-infra-dev/rspack/pull/8507
- @wtlin1228 made their first contribution in https://github.com/web-infra-dev/rspack/pull/8418
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.3...v1.1.4
v1.1.3
- perf: reduce source map json stringify by @SyMind in https://github.com/web-infra-dev/rspack/pull/8468
- perf: move matching logic in source map plugin to rust side by @inottn in https://github.com/web-infra-dev/rspack/pull/8481
- feat: js module graph api by @SyMind in https://github.com/web-infra-dev/rspack/pull/8470
- fix: unstable stats test snapshot by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8482
- fix(incremental): disappeared chunk panic in chunks render by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8492
- fix: css escape when consume string by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/8495
- chore(ci): add rust bench ci by @SoonIter in https://github.com/web-infra-dev/rspack/pull/8476
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.13 by @renovate in https://github.com/web-infra-dev/rspack/pull/8477
- chore(deps): update pnpm to v9.14.1 by @renovate in https://github.com/web-infra-dev/rspack/pull/8478
- test: move e2e to the test folder by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/8486
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.1.2...v1.1.3