Skip to content

Commit 1e982e9

Browse files
Version Packages (next)
1 parent 9ec2d57 commit 1e982e9

3 files changed

Lines changed: 47 additions & 1 deletion

File tree

.changeset/pre.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
"bump-solid-beta-24",
1111
"bump-solid-beta-25",
1212
"bump-solid-beta-26",
13+
"bump-solid-beta-28",
1314
"clean-lazy-entries",
1415
"client-manifest-outdir",
1516
"compiler-package-rename",
1617
"dev-css-and-client-manifest",
1718
"dev-ssr-entry-styles",
1819
"drop-vite-lt-6",
1920
"empty-dragons-grow",
21+
"host-integration-extension-points",
2022
"lazy-entry-eliminated-importers",
2123
"lazy-entry-rolldown-reclassify",
2224
"lazy-load-native-compiler",
@@ -27,6 +29,7 @@
2729
"sc-bootstrap-before-hydration-data",
2830
"scoped-server-function-dce",
2931
"server-components-option",
32+
"server-environments-reload",
3033
"server-functions-compiler",
3134
"server-functions-default-runtime",
3235
"server-functions-turnkey",

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# Changelog
22

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+
346
## 3.0.0-next.17
447

548
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-solid",
3-
"version": "3.0.0-next.17",
3+
"version": "3.0.0-next.18",
44
"description": "solid-js integration plugin for vite 6/7/8",
55
"type": "module",
66
"files": [

0 commit comments

Comments
 (0)