|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 3.0.0-next.18 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- cdb19bf: update to solid 2.0.0-beta.28 and @dom-expressions/compiler 0.50.0-next.33 |
| 8 | +- 98fd955: Three extension points for composing the plugin with host environments |
| 9 | + (e.g. @cloudflare/vite-plugin) without giving up the turnkey option forms: |
| 10 | + |
| 11 | + - New `serverFunctions.devMiddleware` option (default `true`): set `false` |
| 12 | + to keep the plugin's dev middleware off the endpoint so a host's server |
| 13 | + environment owns dispatch in dev — functions then run where the bindings |
| 14 | + live (e.g. workerd), exactly like production. Compilation and the |
| 15 | + manifest/handler virtual modules keep working; the host loads |
| 16 | + `virtual:solid-server-function-handler` itself and calls its |
| 17 | + `handleServerFunctionRequest(request)` export (and should side-effect |
| 18 | + import `virtual:solid-server-function-manifest` in its server entry to |
| 19 | + cover functions referenced only by client code, since the middleware's |
| 20 | + on-demand loading is off too). |
| 21 | + - Client-before-server build ordering in builder-mode (environments API) |
| 22 | + app builds, absorbed into the plugin: with `ssr` enabled, a pre-order |
| 23 | + `buildApp` hook (Vite 7.1+) builds the client environment (manifest and |
| 24 | + all) before any other orchestrator runs, so setups whose orchestrator |
| 25 | + builds server environments first — @cloudflare/vite-plugin builds workers |
| 26 | + before the client — no longer need a hand-written ordering plugin for the |
| 27 | + server bundle to bake real hashed assets. A post-order hook reinstates |
| 28 | + Vite's build-everything fallback when no other orchestrator built |
| 29 | + anything, so plain `builder: {}` setups (turnkey included) behave exactly |
| 30 | + as before, just explicitly client-first. |
| 31 | + - New `serverFunctions.configure` option: path to a server-only module |
| 32 | + (resolved against the Vite root) that the generated |
| 33 | + `virtual:solid-server-function-handler` module side-effect imports before |
| 34 | + any dispatch. The guaranteed pre-dispatch home for server-side runtime |
| 35 | + registration — e.g. `configureServerFunctionsServer({ collectFlightData })` |
| 36 | + for a router's single-flight collector — effective on both dispatch |
| 37 | + surfaces (dev middleware and production handler, where it bundles into |
| 38 | + the handler chunk), immune to the dev-restart race where app-graph |
| 39 | + registration only loads with the first page render, and hot-invalidating |
| 40 | + the handler when edited in dev. |
| 41 | + |
| 42 | +- 62d9a89: Send non-client server environments their own full-reload signal during hot |
| 43 | + updates. Environment-runner based servers now re-evaluate changed modules |
| 44 | + instead of serving stale SSR output, while client HMR remains unaffected. |
| 45 | + |
3 | 46 | ## 3.0.0-next.17 |
4 | 47 |
|
5 | 48 | ### Patch Changes |
|
0 commit comments