What's Changed
New Features 🎉
- feat(core): add setupMiddlewares support for preview mode by @T9-Forever in #7145
- feat: rename
preview.setupMiddlewarestoserver.setupMiddlewaresby @chenjiahan in #7192 - feat: add new
server.setupconfig by @chenjiahan in #7197 - feat: add environments to prod server setup context by @chenjiahan in #7201
- feat: extend onBeforeStartProdServer hook with params by @chenjiahan in #7206
- feat: expose
portin prod server API by @chenjiahan in #7209 - feat: export full server API for
startDevServerby @chenjiahan in #7215 - feat: expose
httpServerfor prod server by @chenjiahan in #7216 - feat: expose
closemethod for prod server by @chenjiahan in #7217 - feat: expose preview server instance for
rsbuild.previewby @chenjiahan in #7219 - feat: export more server types by @chenjiahan in #7221
- feat(server)!: rename prod server hooks to preview server by @chenjiahan in #7222
- feat: add
openandprintUrlsmethods to preview server by @chenjiahan in #7224
Performance 🚀
- perf(server): reduce redundant html fallback check by @chenjiahan in #7228
Bug Fixes 🐞
- fix: set
client.overlay.runtimeby environments by @chenjiahan in #7189 - fix(devServer): move buildManager declaration to top level by @chenjiahan in #7199
- fix: allow async cleanup in onBeforeStartDevServer hook by @chenjiahan in #7200
- fix(plugin-solid): fix missing parameter types by @snatvb in #7202
- fix(server): failed to open https URL when previewing by @chenjiahan in #7214
- fix: deprecate
dev.setupMiddlewaresin favor ofserver.setupby @chenjiahan in #7229 - fix: add lang attribute to Lit html templates by @chenjiahan in #7233
Refactor 🔨
- refactor(server): simplify server types and options structure by @chenjiahan in #7208
- refactor(server): convert ProdServer class to functional implementation by @chenjiahan in #7210
- refactor(server): simplify server config handling by @chenjiahan in #7213
- refactor: rename prod server to preview server for clarity by @chenjiahan in #7220
Document 📖
- docs: add security warning about public dir configuration by @chenjiahan in #7188
- docs: update OnBeforeStartDevServerFn return type by @chenjiahan in #7193
- docs(dev-server): update dev server API documentation by @chenjiahan in #7194
- docs: update documentation for
server.setupconfig by @chenjiahan in #7198 - docs: enhance onBeforeStartProdServer hook by @chenjiahan in #7207
- docs: improve server API docs by @chenjiahan in #7223
- docs: restructure server API documentation by @chenjiahan in #7226
- docs: update dev.setupMiddlewares references by @chenjiahan in #7230
Other Changes
- chore(deps): update dependency create-rstack to v1.8.0 by @renovate[bot] in #7176
- test(e2e): consolidate test cases using runDevAndBuild helper by @chenjiahan in #7179
- test(e2e): merging duplicate dev/build tests by @chenjiahan in #7180
- test(e2e): consolidate test cases using helper by @chenjiahan in #7181
- chore(deps): update dependency rsbuild-plugin-arethetypeswrong to v0.2.0 by @renovate[bot] in #7184
- chore(deps): update dependency nx to ^22.5.1 by @renovate[bot] in #7183
- test(e2e): rename test helpers for consistency by @chenjiahan in #7182
- test: refactor e2e tests to use runBoth helper by @chenjiahan in #7187
- chore(deps): update dependency svelte to ^5.51.1 by @renovate[bot] in #7190
- chore(deps): update dependency svelte-check to ^4.4.0 - autoclosed by @renovate[bot] in #7191
- chore(deps): update dependency @biomejs/biome to ^2.4.0 by @renovate[bot] in #7196
- chore(deps): update all patch dependencies by @renovate[bot] in #7195
- release: @rsbuild/plugin-solid v1.0.8 by @chenjiahan in #7203
- chore(deps): update dependency launch-editor-middleware to ^2.13.0 by @renovate[bot] in #7204
- chore(deps): update tailwindcss monorepo to ^4.2.0 by @renovate[bot] in #7205
- chore(deps): update dependency svelte to ^5.53.0 by @renovate[bot] in #7211
- chore(deps): update pnpm to v10.30.0 by @renovate[bot] in #7212
- chore(deps): update swc monorepo to ^12.6.0 by @renovate[bot] in #7218
- chore(deps): update dependency happy-dom to ^20.7.0 by @renovate[bot] in #7227
- test(e2e): migrate setupMiddlewares to server.setup by @chenjiahan in #7231
- chore(deps): update all patch dependencies by @renovate[bot] in #7232
- chore: update @rslint/core to 0.2.1 and fix lint issues by @chenjiahan in #7234
- test(e2e): add test case for tailwindcss loader by @chenjiahan in #7235
- release: 2.0.0-beta.5 by @chenjiahan in #7236
New Contributors
- @T9-Forever made their first contribution in #7145
- @snatvb made their first contribution in #7202
Full Changelog: v2.0.0-beta.4...v2.0.0-beta.5