Releases: web-infra-dev/rslib
v0.21.3
What's Changed
New Features 🎉
- feat(deps): upgrade Rsbuild to 2.0.0 by @Timeless0911 in #1608
- feat(deps): upgrade Rsbuild plugins to v2 by @Timeless0911 in #1610
Other Changes
- chore: align rslint defaults and rstest commands by @chenjiahan in #1603
- chore: replace changeset release flow with release skill by @Timeless0911 in #1604
- chore(deps): update rstackjs/rstack-ecosystem-ci digest to 6680c15 by @renovate[bot] in #1605
- chore(deps): update all non-major dependencies by @renovate[bot] in #1606
- chore: remove Netlify configuration and add redirects file by @Timeless0911 in #1607
- chore(deps): update actions/setup-node digest to 48b55a0 by @renovate[bot] in #1609
- release: v0.21.3 by @Timeless0911 in #1611
Full Changelog: v0.21.2...v0.21.3
v0.21.2
What's Changed
New Features 🎉
- feat(create-rslib): add conditional optional skills by @Timeless0911 in #1600
Bug Fixes 🐞
- fix(core): only rewrite requests whose context is in outBase in bundleless mode by @Timeless0911 in #1599
Other Changes
- chore(deps): update all non-major dependencies by @renovate[bot] in #1601
- Release v0.21.2 by @Timeless0911 in #1602
Full Changelog: v0.21.1...v0.21.2
v0.21.1
What's Changed
Bug Fixes 🐞
- fix(create-rslib): add rootDir to tsconfig templates for TypeScript 6.0 compatibility by @intellild in #1589
- fix(dts): align tinyglobby root resolution by @Timeless0911 in #1591
- fix(create-rslib): add env.d.ts to React/Vue templates by @Timeless0911 in #1594
Other Changes
- chore(deps): update rslib to 0.21.0 by @Timeless0911 in #1583
- chore(deps): enable pnpm dedupePeers by @Timeless0911 in #1584
- chore(deps): update rstackjs/rstack-ecosystem-ci digest to 45a8018 by @renovate[bot] in #1585
- chore(deps): update dependency nano-staged to v1 by @renovate[bot] in #1587
- chore(deps): upgrade rslint to v0.4.2 by @Timeless0911 in #1592
- chore(deps): upgrade security-related dependencies by @Timeless0911 in #1593
- chore(deps): update all non-major dependencies by @renovate[bot] in #1586
- test(create-rslib): remove slow skills-related test cases by @colinaaa in #1597
- Release v0.21.1 by @Timeless0911 in #1598
New Contributors
- @intellild made their first contribution in #1589
Full Changelog: v0.21.0...v0.21.1
v0.21.0
Highlights 💡
Single Executable Applications
Rslib now supports building Node.js single executable applications with the experimental experiments.exe option.
export default {
lib: [
{
format: 'esm',
experiments: {
exe: true,
},
},
],
};More details: experiments.exe
Best Practices Skill
Rslib now provides a best practices skill, which can be used when writing, reviewing, or troubleshooting Rslib projects.
- In an existing project:
npx skills add rstackjs/agent-skills --skill rslib-best-practices- When creating a new project:
npx -y create-rslib@latest my-project -t react --skill rslib-best-practicesMore details: AI - Agent Skills
What's Changed
New Features 🎉
- feat(core): add
experiments.exesupport by @Timeless0911 in #1572 - feat(create-rslib): add optional rslib best practices skill by @colinaaa in #1575
- feat: upgrade rsbuild and sync node builtin handling by @Timeless0911 in #1581
Bug Fixes 🐞
- fix(core): improve nodenext type declarations by @Timeless0911 in #1559
- fix(core): align Vue bundleless externals with plugin-vue by @Timeless0911 in #1579
Document 📖
- docs: correct experiments.exe seaOptions version history by @Timeless0911 in #1580
Other Changes
- chore(deps): update dependency lodash to v4.18.1 [security] by @renovate[bot] in #1569
- test: keep rspack eco ci passing after mangle output change by @Timeless0911 in #1574
- chore(deps): update rstackjs/rstack-ecosystem-ci digest to f6ea537 by @renovate[bot] in #1576
- chore(deps): update all non-major dependencies by @renovate[bot] in #1577
- Release v0.21.0 by @Timeless0911 in #1582
New Contributors
Full Changelog: v0.20.3...v0.21.0
v0.20.3
What's Changed
Other Changes
- chore(deps): update Rsbuild 2.0.0-rc.0 by @Timeless0911 in #1568
- chore(deps): update all non-major dependencies by @renovate[bot] in #1570
- Release v0.20.3 by @Timeless0911 in #1571
Full Changelog: v0.20.2...v0.20.3
v0.20.2
What's Changed
New Features 🎉
- feat: use rslib as the default build command by @chenjiahan in #1560
Bug Fixes 🐞
- fix(deps): broken lockfile by @Timeless0911 in #1558
- fix(dts): redirect dts files for prebundled paths by @Timeless0911 in #1561
Document 📖
- docs: polish README by @Timeless0911 in #1565
Other Changes
- chore(lint): migrate rslint to flat config by @chenjiahan in #1556
- chore(deps): bump rslib to 0.20.1 by @Timeless0911 in #1557
- chore(deps): upgrade Rsbuild 2.0.0-beta.11 and update decorators tests by @Timeless0911 in #1564
- chore(deps): pin rstackjs/rstack-ecosystem-ci action to df5ea7e by @renovate[bot] in #1562
- chore(deps): update all non-major dependencies by @renovate[bot] in #1563
- chore(deps): update vulnerable dependencies by @Timeless0911 in #1566
- Release v0.20.2 by @Timeless0911 in #1567
Full Changelog: v0.20.1...v0.20.2
v0.20.1
What's Changed
New Features 🎉
- feat(deps): update typescript to v6 and peer ranges by @Timeless0911 in #1553
Performance 🚀
- perf: upgrade rslog and bundle into to main chunk by @Timeless0911 in #1541
- perf(deps): replace picocolors with styleText from node:util by @Timeless0911 in #1543
- perf(deps): upgrade tinyglobby and use dynamic import by @Timeless0911 in #1544
- perf(dts): switch plugin-dts to multi-entry build by @Timeless0911 in #1547
Bug Fixes 🐞
- fix(dts): add extensions for non-rootDir relative imports by @Timeless0911 in #1536
- fix(core): support numbered preprocessor css rules by @Timeless0911 in #1538
- fix(deps): upgrade rsbuild-plugin-unplugin-vue by @Timeless0911 in #1540
- fix(core): update runtime chunk config for multiple entries by @Timeless0911 in #1551
- fix(core): use esm-aware node built-in externals by @Timeless0911 in #1552
Document 📖
- docs: add AI documentation by @Timeless0911 in #1528
- docs(docs): polish AI documentation content by @Timeless0911 in #1529
- docs: remove docs scope from create-pr skill by @Timeless0911 in #1530
- docs(website): generate description for all documentations by @Timeless0911 in #1537
Other Changes
- chore(deps): update @rslib/core to 0.20.0 by @Timeless0911 in #1527
- chore(CI): speed up playwright browser setup by @Timeless0911 in #1531
- chore(deps): update dorny/paths-filter action to v4 by @renovate[bot] in #1534
- chore(deps): update all non-major dependencies by @renovate[bot] in #1533
- chore(deps): remove jsdom from renovate ignore list by @Timeless0911 in #1539
- chore(deps): upgrade chokidar to v5 by @Timeless0911 in #1542
- chore(deps): update module federation (major) by @renovate[bot] in #1493
- chore(deps): update Rsbuild 2.0.0-beta.9 by @Timeless0911 in #1545
- chore(deps): update all non-major dependencies by @renovate[bot] in #1546
- chore: convert prebundle config files to ts by @Timeless0911 in #1548
- chore(deps): update all non-major dependencies by @renovate[bot] in #1549
- chore(deps): upgrade rspack canary by @Timeless0911 in #1550
- chore(deps): update Rsbuild 2.0.0-beta.10 by @Timeless0911 in #1554
- Release v0.20.1 by @Timeless0911 in #1555
Full Changelog: v0.20.0...v0.20.1
v0.20.0
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
v0.19.6
What's Changed
Document 📖
- docs: clarify
dts.buildrequirement by @Timeless0911 in #1482 - docs: update output format guide by @Timeless0911 in #1483
Other Changes
- chore(deps): update actions/checkout digest to de0fac2 by @renovate[bot] in #1477
- chore(deps): update @typescript/native-preview by @Timeless0911 in #1479
- chore: update @rslint/core to 0.2.1 and refactor some codes by @Timeless0911 in #1480
- chore(deps): update all non-major dependencies by @renovate[bot] in #1478
- refactor(create-rslib): remove vitest template by @Timeless0911 in #1481
- chore(deps): update all non-major dependencies by @renovate[bot] in #1484
- Release v0.19.6 by @Timeless0911 in #1486
Full Changelog: v0.19.5...v0.19.6
v0.19.5
What's Changed
Document 📖
- docs: add guide for using Rspress with Rslib by @SoonIter in #1471
- docs: add Rsdoctor guide by @Timeless0911 in #1472
- docs: fix Rspress plugin URLs to official-plugins path by @SoonIter in #1474
Other Changes
- chore(deps): update all non-major dependencies by @renovate[bot] in #1470
- chore(deps): upgrade Rspack to v1.7.5 by @Timeless0911 in #1473
- chore(deps): bump Rsbuild 1.7.3 by @Timeless0911 in #1475
- Release v0.19.5 by @Timeless0911 in #1476
Full Changelog: v0.19.4...v0.19.5