Releases: web-infra-dev/rslib
v0.12.3
What's Changed
New Features 🎉
- feat: do not print detailed file size in bundleless mode by @Timeless0911 in #1191
Bug Fixes 🐞
- fix(css): prevent adding empty css rule by @Timeless0911 in #1182
- fix(dts): should redirect extension if filename contains dots by @Timeless0911 in #1189
Other Changes
- chore(deps): bump Rsbuild 1.5.0-rc.0 by @Timeless0911 in #1183
- chore(deps): update all non-major dependencies by @renovate[bot] in #1186
- chore(dts): use
color.dimto print environment name by @Timeless0911 in #1187 - chore(deps): bump Rsbuild 1.5.0 by @Timeless0911 in #1190
- test: add more APIPlugin interception by @fi3ework in #1184
- Release v0.12.3 by @Timeless0911 in #1192
Full Changelog: v0.12.2...v0.12.3
v0.12.2
What's Changed
New Features 🎉
- feat(dts): support emitting
.d.cts.mapand.d.mts.mapfiles by @Timeless0911 in #1176
Document 📖
- docs: code splitting doc links by @Timeless0911 in #1175
- docs: remove unnecessary paragraphs in modernjs-module migration docs by @Timeless0911 in #1177
- docs: fix various documentation errors: grammar, spelling, and formatting issues by @Copilot in #1179
Other Changes
- chore(deps): update all non-major dependencies by @renovate[bot] in #1172
- chore(deps): bump Rsbuild 1.5.0-beta.4 by @Timeless0911 in #1178
- Release v0.12.2 by @Timeless0911 in #1180
New Contributors
- @Copilot made their first contribution in #1179
Full Changelog: v0.12.1...v0.12.2
v0.12.1
What's Changed
New Features 🎉
Other Changes
- chore(deps): bump Rslib v0.12 by @Timeless0911 in #1165
- chore(deps): bump Rsbuild 1.5.0-beta.3 by @Timeless0911 in #1169
- Release v0.12.1 by @Timeless0911 in #1170
Full Changelog: v0.12.0...v0.12.1
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.pollto 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
.nvmrcfor development by @Timeless0911 in #1162 - Release v0.12.0 by @Timeless0911 in #1164
Full Changelog: v0.11.2...v0.12.0
v0.11.2
What's Changed
Trusted Publishing
All Rslib npm packages are now published based on npm's trusted publishing, making Rslib's npm packages more secure and transparent.
See:
- https://github.blog/changelog/2025-07-31-npm-trusted-publishing-with-oidc-is-generally-available/
- https://docs.npmjs.com/trusted-publishers
Document 📖
- docs: add llms copy button by @Timeless0911 in #1146
Other Changes
- chore(deps): update all non-major dependencies by @renovate[bot] in #1145
- chore: enable trusted publishing for npm packages by @Timeless0911 in #1147
- chore(deps): update dependency heading-case to v1 by @renovate[bot] in #1149
- chore(deps): update all non-major dependencies by @renovate[bot] in #1148
- Release v0.11.2 by @Timeless0911 in #1150
Full Changelog: v0.11.1...v0.11.2
v0.11.1
What's Changed
New Features 🎉
- feat(dts): support
dts.aliasby @Timeless0911 in #1135
Bug Fixes 🐞
- fix: should not throw minify error when using import.meta in iife output by @Timeless0911 in #1125
- fix: determine wasmLoading by target by @fi3ework in #1136
- fix(dts): clean correct tsbuildinfo file by @Timeless0911 in #1138
Other Changes
- chore: add open collective funding link by @chenjiahan in #1126
- chore(deps): bump Rsbuild 1.4.10 and Rstest 0.0.10 by @Timeless0911 in #1127
- chore(deps): update all non-major dependencies by @renovate[bot] in #1132
- chore(deps): update dependency cross-env to v10 by @renovate[bot] in #1133
- chore(deps): bump Rsbuild 1.4.12 by @Timeless0911 in #1139
- chore(deps): update all non-major dependencies by @renovate[bot] in #1141
- Release v0.11.1 by @Timeless0911 in #1142
Full Changelog: v0.11.0...v0.11.1
v0.11.0
Breaking changes 🚨
redirect.asset
Boolean values are no longer supported for redirect.asset, see the documentation of redirect.asset for more details. (#1119)
Please note the following changes that may require adjustments to your configurations:
export default defineConfig({
lib: [
{
redirect: {
- asset: true,
+ asset: {
+ path: true,
+ extension: true,
+ },
},
},
],
});export default defineConfig({
lib: [
{
redirect: {
- asset: false,
+ asset: {
+ path: false,
+ extension: false,
+ },
},
},
],
});What's Changed
New Features 🎉
- feat!: support
redirect.asset.pathandredirect.asset.extensionby @Timeless0911 in #1119
Bug Fixes 🐞
- fix(dts): error log of set declarationDir when
dts.buildis true by @Timeless0911 in #1120
Other Changes
- chore(deps): update all non-major dependencies by @renovate[bot] in #1121
- chore: fix pnpm dedupe by @Timeless0911 in #1123
- chore(deps): update all non-major dependencies by @renovate[bot] in #1122
- Release v0.11.0 by @Timeless0911 in #1124
Full Changelog: v0.10.6...v0.11.0
v0.10.6
What's Changed
Bug Fixes 🐞
- fix: improve formatting of minutes in build time by @Timeless0911 in #1112
- fix(dts): preserve importer if resolved to node_modules folder by @Timeless0911 in #1115
- fix(dts): get pre-emit diagnostics before emit by @Timeless0911 in #1116
Other Changes
- chore(deps): bump Rsbuild 1.4.5 by @Timeless0911 in #1109
- chore(deps): update all non-major dependencies by @renovate[bot] in #1114
- chore(deps): update all non-major dependencies by @renovate[bot] in #1117
- Release v0.10.6 by @Timeless0911 in #1118
Full Changelog: v0.10.5...v0.10.6
v0.10.5
What's Changed
Bug Fixes 🐞
- fix: svgr should not work in css file by @Timeless0911 in #1106
Document 📖
- docs: add deepwiki badge by @Timeless0911 in #1100
Other Changes
- chore: move pnpm config from
.npmrctopnpm-workspace.yamlby @Timeless0911 in #1098 - chore(deps): update all non-major dependencies by @renovate in #1097
- chore(deps): update dependency vue-tsc to v3 by @renovate in #1102
- test: use Rstest as Rslib's test framework by @fi3ework in #1090
- chore(deps): update all non-major dependencies by @renovate in #1105
- chore: correct check-dependency-version script by @Timeless0911 in #1107
- Release v0.10.5 by @Timeless0911 in #1108
Full Changelog: v0.10.4...v0.10.5
v0.10.4
What's Changed
New Features 🎉
In order to fix an issue where
require.cachecaused unexpected ESM output
Document 📖
- docs: modify ESM and CJS mdx component by @Timeless0911 in #1095
Other Changes
- chore(deps): bump Rspress 2.0.0-beta.17 by @Timeless0911 in #1089
- chore(deps): bump Rsbuild 1.4.0 by @Timeless0911 in #1091
- chore(pnpm): bump pnpm and move settings to
pnpm-workspace.yamlby @Timeless0911 in #1092 - chore(deps): update all non-major dependencies by @renovate in #1093
- chore(deps): update dependency @vitejs/plugin-vue to v6 by @renovate in #1094
- Release v0.10.4 by @Timeless0911 in #1096
Full Changelog: v0.10.3...v0.10.4