v0.12.0
Highlights 💡
Drop support for Node 16
Node.js 16 reached its end-of-life on September 11, 2023. Many other npm packages in the ecosystem have also dropped support for Node 16, including webpack-dev-server
, css-loader
, sass-loader
, and so on, which makes maintaining compatibility increasingly challenging. Therefore, we have decided to drop Node 16 support starting from Rslib v0.12 to ensure better compatibility with the modern ecosystem.
Package | v0.11 | v0.12 |
---|---|---|
@rslib/core | >=16.7.0 | >=18.12.0 |
Rslib v0.11 based on Rsbuild/Rspack v1.4 and Rslib v0.12 based on Rsbuild/Rspack v1.5:
Package | v1.4 | v1.5 |
---|---|---|
@rspack/core | >=16.0.0 | >=18.12.0 |
@rsbuild/core | >=16.10.0 | >=18.12.0 |
⚠️ This is a breaking change for users still running Node.js 16. Users will need to upgrade to Node.js 18.12.0 or later to use Rslib v0.12.
For users currently using Node.js 16:
- Upgrade to Node.js 18.12.0 or later (Node.js 22 LTS is recommended)
- Update your CI/CD pipelines to use the new Node.js version
What's Changed
New Features 🎉
- feat!: update minimum Node.js version to 18.12.0 by @Timeless0911 in #1159
- feat: update tsconfig.json and build configs to ES2022 by @Timeless0911 in #1160
Bug Fixes 🐞
- fix: only force split async chunks when format is esm or cjs by @Timeless0911 in #1152
- fix(dts): should keep watch if bundle dts failed by @Timeless0911 in #1156
- fix(nx): correct input config files by @Timeless0911 in #1163
Document 📖
- docs: add version badges to Rstack tools table by @chenjiahan in #1153
Other Changes
- chore: integrate Rslint for type-aware linting by @fi3ework in #1151
- test: replace npx with a faster helper by @Timeless0911 in #1154
- chore(deps): update all non-major dependencies by @renovate[bot] in #1155
- test: use
expect.poll
to avoid flaky watching file changes test cases by @Timeless0911 in #1157 - chore(deps): bump Rsbuild 1.5.0-beta.0 by @Timeless0911 in #1158
- chore(deps): update actions/checkout action to v5 by @renovate[bot] in #1161
- chore: update Node.js to v24.5.0 in
.nvmrc
for development by @Timeless0911 in #1162 - Release v0.12.0 by @Timeless0911 in #1164
Full Changelog: v0.11.2...v0.12.0