Skip to content

Releases: web-infra-dev/rspack

v2.0.0-beta.7

17 Mar 12:06

Choose a tag to compare

What's Changed

Breaking Changes 🛠

  • feat!: default resolve roots to empty array by @stormslowly in #13273
  • feat!: remove .wasm from default js extensions by @hardfist in #13321
  • feat!: remove 'webpack' from default CSS import conditions by @chenjiahan in #13348
  • fix!: remove unconsumed useless optimization.removeAvailableModules config option by @JSerFeng in #13317
  • feat(swc-loader)!: move rspackExperiments.import to top-level transformImport by @JSerFeng in #13345

Performance Improvements ⚡

New Features 🎉

Bug Fixes 🐞

  • fix: restore panic backtrace for macOS arm64 bindings by @hardfist in #13283
  • fix(collections): use FxHasher for Ukey by @hardfist in #13293
  • fix(esm-lib): tree-shake unused exports, fix property_access name collision and get_binding panic by @JSerFeng in #13288
  • fix: cjs tree shaking used with named export by @ahabhgk in #13303
  • fix: huge file dependencies cause range error by @SyMind in #13305
  • fix: dynamic import tree shaking used with named export by @ahabhgk in #13307
  • fix: correct dev server types by @chenjiahan in #13313
  • fix(rstest): prevent the re-exports optimization for mocked modules by @9aoy in #13262
  • fix(esm-lib): render init fragments after import source by @JSerFeng in #13308
  • fix: normal runtime use should not contains require function by @JSerFeng in #13190
  • fix: strict this context for dynamic import and cjs require by @ahabhgk in #13328
  • fix(javascript): preserve live code after labeled breaks by @LingyuCoder in #13325
  • fix: WorkerPlugin should be inherented in children compiler by @stormslowly in #13310
  • fix(parser): avoid treating require.resolve chains as require by @Timeless0911 in #13341

Refactor 🔨

Document Updates 📖

Other Changes

Full Changelog: v2.0.0-beta.6...v2.0.0-beta.7

v1.7.9

17 Mar 09:18

Choose a tag to compare

What's Changed

New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: v1.7.8...v1.7.9

v2.0.0-beta.6

10 Mar 09:54

Choose a tag to compare

What's Changed

Breaking Changes 🛠

Performance Improvements ⚡

New Features 🎉

  • feat(esm-library): auto-name unnamed dynamic import chunks with deterministic module name by @JSerFeng in #13172
  • feat(deps): update @rspack/dev-server to 2.0.0-beta.1 by @chenjiahan in #13205
  • feat: cjs require variable property access tree shaking by @ahabhgk in #13155
  • feat: enable mangle exports for cjs full require by @ahabhgk in #13212
  • feat(esm-library): deduplicate non-concatenated external modules after scope hoisting by @JSerFeng in #13210
  • feat(esm): optimize dynamic import exports for namespace and tree-shaking by @JSerFeng in #13211
  • feat: support regex flags and JavaScript lookaheads in extractComments condition by @Copilot in #12990
  • feat(mf): shareScope support array type by @2heal1 in #13107
  • feat: add Node.js version check during initialization by @chenjiahan in #13261
  • feat: rsc support disable client api checks by @SyMind in #13263
  • feat: update devServer types for @rspack/dev-server v2 by @chenjiahan in #13278

Bug Fixes 🐞

  • fix: revert lastCompilation check for stats by @hardfist in #13214
  • fix(esm-library): fix dynamic import of same-chunk concatenated modules and external name deconfliction by @JSerFeng in #13220
  • fix: Fix stats artifact fallback warning test to use stale stats by @hardfist in #13219
  • fix: Remove DerefMut impl from ArcPath by @hardfist in #13235
  • fix(defaults): make module rules regex case-sensitive by @LingyuCoder in #13238
  • fix: dup external module declarations by @JSerFeng in #13231
  • fix: merge exports info when merging external modules by @JSerFeng in #13257
  • fix(create-rspack): update @rspack/dev-server to 2.0.0-beta.4 by @chenjiahan in #13268
  • fix: avoid import duplicate identifiers by @JSerFeng in #13267

Refactor 🔨

  • refactor: return empty artifact when access stats during artifact mutation by @hardfist in #13196
  • refactor: cache regex patterns for performance by @LingyuCoder in #13217
  • refactor: remove &mut Compilation in CompilationAddEntry hook by @hardfist in #13251
  • refactor: SourceSizeCache for module size cache by @CPunisher in #13258
  • refactor!: use strictThisContextOnImports to control ns obj as this by @ahabhgk in #13234
  • refactor(core): reduce identifier hashing in hot paths by @hardfist in #13269

Document Updates 📖

  • docs: fix html-rspack-plugin hook types of beforeEmit and afterEmit by @Gehbt in #13184
  • docs: update devServer.proxy documentation for v2 by @chenjiahan in #13206
  • docs: update webpack migration guide for minimizers by @chenjiahan in #13250
  • docs(dev-server): improve static files configuration documentation by @chenjiahan in #13253
  • docs: update descriptions to reflect refined webpack API by @chenjiahan in #13254

Other Changes

Full Changelog: v2.0.0-beta.5...v2.0.0-beta.6

v1.7.8

10 Mar 07:45

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: Add beforeModuleIds hook by @hamlim in #13223
  • feat: add the map of JSON data size to rspack_plugin_rsdoctor for use rsdoctor by @yifancong in #13194

Other Changes

Full Changelog: v1.7.7...v1.7.8

v2.0.0-beta.5

03 Mar 11:55

Choose a tag to compare

What's Changed

Performance Improvements ⚡

  • perf: Replace OverlayMap with RollbackAtomMap in exports artifact by @hardfist in #13143
  • perf: remove ProcessUnlazyDependenciesTask by @hardfist in #13151
  • perf: reduce content hash and lazy filename tempate ctx compute by @SyMind in #13156

New Features 🎉

Bug Fixes 🐞

Refactor 🔨

Document Updates 📖

Other Changes

Full Changelog: v2.0.0-beta.4...v2.0.0-beta.5

v1.7.7

03 Mar 09:52

Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix: should not treat module with module variable as esm compatible by @JSerFeng in #13128

Other Changes

Full Changelog: v1.7.6...v1.7.7

v2.0.0-beta.4

27 Feb 02:27

Choose a tag to compare

What's Changed

Performance Improvements ⚡

  • perf: optimize DependencyLocation computation with incremental caching by @SyMind in #13109
  • perf: Convert dependent full hash hook to sync with rayon support by @hardfist in #13130

New Features 🎉

Bug Fixes 🐞

  • fix: compile document fragments in HtmlRspackPlugin by @LingyuCoder in #13103
  • fix: should not treat module with module variable as esm compatible by @JSerFeng in #13129
  • fix: preserve optional chaining in CommonJS self-reference expressions by @LingyuCoder in #13132
  • fix(core): type issues when skipLibCheck is disabled by @chenjiahan in #13138

Refactor 🔨

  • refactor: Refactor Compilation runtime requirement hook by @hardfist in #13116

Document Updates 📖

  • docs: add agent skills section to migration guide and readme by @chenjiahan in #13124

Other Changes

Full Changelog: v2.0.0-beta.3...v2.0.0-beta.4

v2.0.0-beta.3

25 Feb 06:54

Choose a tag to compare

What's Changed

Performance Improvements ⚡

New Features 🎉

  • feat(progress-plugin)!: replace handler rest args with structured info object by @chenjiahan in #13049
  • feat!: Add pnp_manifest option to resolver by @smeng9 in #12417

Bug Fixes 🐞

  • fix: infinite loop in is_available_chunk when chunk groups form a cycle by @SyMind in #13042
  • fix: normalize file dependencies paths in CopyPlugin to prevent incorrect rebuild triggers by @SyMind in #13043
  • fix(module-federation): encode runtime data URI and support named wrappers by @BleedingDev in #12982
  • fix: generating correct types for @rspack/lite-tapable by @colinaaa in #13048
  • fix(rstest): hoist importActual ESM imports by @9aoy in #13025
  • fix(rstest): replace mockRequire to rstest_mock_require by @9aoy in #13056

Refactor 🔨

  • refactor: move exports info out of module graph by @ahabhgk in #13055
  • refactor: Bind ImportedByDeferModulesArtifact to optimize chunk modules pass by @hardfist in #13059
  • refactor: make finishModules readonly for compilation by @hardfist in #13058
  • refactor: Add iterators to module graph helpers to avoid cloning by @hardfist in #13067
  • refactor: replace collect api with iterator api by @hardfist in #13095
  • refactor: make compilation readonly for CompilationSeal hook by @hardfist in #13060

Document Updates 📖

  • docs: standardize heading case in documentation by @chenjiahan in #13051
  • docs: fix for words without space between them in the Introduction section by @arijitpatra in #13094

Other Changes

New Contributors

Full Changelog: v2.0.0-beta.2...v2.0.0-beta.3

v2.0.0-beta.2

11 Feb 03:57

Choose a tag to compare

What's Changed

Performance Improvements ⚡

  • perf: Cache default context regexp for parser plugins by @hardfist in #13024

Bug Fixes 🐞

Refactor 🔨

  • refactor: improve rspack_plugin_esm_library code style by @JSerFeng in #13009

Document Updates 📖

Other Changes

Full Changelog: v2.0.0-beta.1...v2.0.0-beta.2

v2.0.0-beta.1

10 Feb 09:43

Choose a tag to compare

What's Changed

Breaking Changes 🛠

  • feat!: change default value for devtool by @SyMind in #12934
  • fix!: enable requireAsExpression by default again and not to throw warning when requireAlias is disabled by @LingyuCoder in #12998

Performance Improvements ⚡

New Features 🎉

  • feat: add beforeModuleIds hook by @hamlim in #12809
  • feat: support import.defer() for context module by @ahabhgk in #12938
  • feat: support MF share treeshake by @2heal1 in #12250
  • feat: make license banner comment more concise by @chenjiahan in #12960
  • feat: preserve tla expr for EsmLibrary by @JSerFeng in #12942
  • feat: add support for readonly persistent cache by @cellison-figma in #12902
  • feat(css): introduce resolveImport parser option for css parser to choose whether to resolve @import syntax by @JSerFeng in #12672
  • feat: add the map of json data size to rspack_plugin_rsdoctor for use rsdoctor by @yifancong in #12950
  • feat!: change exports presence default to true by @ahabhgk in #13002

Bug Fixes 🐞

  • fix: rsc plugin stats should use AtomicRefCell by @SyMind in #12923
  • fix: context dependencies hash calculation use cache.snapshot configuration by @jerrykingxyz in #12937
  • fix!: remove debug hash algorithm by @chenjiahan in #12951
  • fix: RSC fails to properly handle Windows paths by @SyMind in #12969
  • fix: webpack_chunk_load api compile wrong by @SyMind in #12971
  • fix: Replace AtomicRefCell with Mutex in RSC Coordinator by @SyMind in #12972
  • fix: port webpack fix for webpack_module name collision by @Copilot in #12956
  • fix: preserve import external without modify mg by @JSerFeng in #12973
  • fix: allow to export the same name of same local, fix entry splitting algorithm by @JSerFeng in #13000
  • fix(esm-lib-plugin): support inline export for dyn import by @JSerFeng in #12949

Refactor 🔨

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v2.0.0-beta.0...v2.0.0-beta.1