Breaking changes 🚨
Drop Node.js 18 support
Rslib v0.20 requires Node.js 20.19+ or 22.12+, Node.js 18 is no longer supported.
Rsbuild / Rspack v2
Rslib v0.20 now depends on beta version of @rsbuild/core v2 and @rspack/core v2. If you use custom Rsbuild / Rspack configurations or plugins, you may need to make corresponding adjustments.
See the Rsbuild v2 upgrade guide for all breaking changes.
Deprecate experiments.advancedEsm
experiments.advancedEsm is now deprecated and effectively ignored. Advanced ESM behavior is the default in both bundle and bundleless mode.
What you need to do:
- Remove
experiments.advancedEsmfrom your config - Verify the output behaviour
Rename type StartServerResult
The exported type StartServerResult has been renamed to StartDevServerResult.
What's Changed
New Features 🎉
- feat!: upgrade Rsbuild to v2 and deprecate
experiments.advancedEsmby @Timeless0911 in #1513 - feat: updates the default contenthash length in filenames from 8 to 10 by @Timeless0911 in #1515
Bug Fixes 🐞
- fix: validate glob entry correctness in bundle mode by @9aoy in #1512
- fix(core): allow preserve jsx in bundleless mode to coexist with bundle mode by @Timeless0911 in #1523
Document 📖
- docs: add comprehensive CSS guide by @Timeless0911 in #1495
- docs: add tsc migration guide by @Timeless0911 in #1503
- docs: enhance tsup migration guide with detailed examples by @Timeless0911 in #1504
- docs: add agent skill guide to tsc and tsup migration docs by @Timeless0911 in #1505
- docs: polish create-pr skill by @Timeless0911 in #1518
- docs: update create-pr skill guidelines by @Timeless0911 in #1524
Other Changes
- test: cleanup create-rslib unnecessary tests and suppress logs by @Timeless0911 in #1490
- chore(deps): update all non-major dependencies by @renovate[bot] in #1488
- chore(deps): update all non-major dependencies by @renovate[bot] in #1494
- chore: use pnpm to run build scripts by @Timeless0911 in #1499
- chore(deps): update dependency @shikijs/transformers to v4 by @renovate[bot] in #1501
- chore(deps): update all non-major dependencies by @renovate[bot] in #1500
- chore: add Copilot review instuctions by @fi3ework in #1507
- chore: add create-pr skill by @Timeless0911 in #1506
- chore: add internal metadata to create-pr skill by @Timeless0911 in #1508
- refactor!: drop support for Node 18 by @Timeless0911 in #1509
- chore(deps): update dependency cac to v7 by @renovate[bot] in #1502
- test(create-rslib): split parseTemplateName into separate module by @Timeless0911 in #1514
- chore(deps): bump rspress to 2.0.4 and align migration docs by @Timeless0911 in #1516
- chore(deps): update actions/setup-node digest to 53b8394 by @renovate[bot] in #1520
- chore(deps): update all non-major dependencies by @renovate[bot] in #1521
- chore(deps): update dependency @shikijs/transformers to ^4.0.2 by @renovate[bot] in #1522
- chore(deps): upgrade latest Rslib/Rsbuild canary version by @Timeless0911 in #1517
- chore(deps): update @rsbuild/core to 2.0.0-beta.8 by @Timeless0911 in #1525
- Release v0.20.0 by @Timeless0911 in #1526
Full Changelog: v0.19.6...v0.20.0