diff --git a/.changeset/curvy-mice-thank.md b/.changeset/curvy-mice-thank.md deleted file mode 100644 index d1f3ff7c3..000000000 --- a/.changeset/curvy-mice-thank.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@solidjs/start": patch ---- - -Support client hydration and lazy virtual modules with Vite's experimental bundled development -mode. diff --git a/.changeset/expose-h3-request-event-decorators.md b/.changeset/expose-h3-request-event-decorators.md deleted file mode 100644 index d290020db..000000000 --- a/.changeset/expose-h3-request-event-decorators.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@solidjs/start": minor ---- - -Expose experimental `decorateHandler` and `decorateMiddleware` helpers from -`@solidjs/start/server` for providing Solid's request context to custom h3 handlers and -middleware. diff --git a/.changeset/fix-1874-unicode-error-header.md b/.changeset/fix-1874-unicode-error-header.md deleted file mode 100644 index 63a4dcdf5..000000000 --- a/.changeset/fix-1874-unicode-error-header.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/start": patch ---- - -fix: don't crash when a server function throws an error whose message contains non-latin1 characters. The message was assigned verbatim to the `X-Error` response header, and since header values must be ByteString-safe, a message like `"Ошибка 🚀"` made `Headers.set` throw inside the catch block — producing a bare 500 with no error propagated, so the client never threw and the route section hung empty instead of hitting the `ErrorBoundary`. The header value is now encoded when it contains such characters (the real error still travels in the serialized body). (#1874) diff --git a/.changeset/fix-2068-server-only-guard.md b/.changeset/fix-2068-server-only-guard.md deleted file mode 100644 index 895268b8c..000000000 --- a/.changeset/fix-2068-server-only-guard.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/start": patch ---- - -fix: mark `@solidjs/start/http` and `@solidjs/start/middleware` as `server-only` so importing them from client-reachable code fails loudly at dev/build time, instead of silently shipping them to the browser where they crashed hydration and broke unrelated actions/forms with no diagnostic (#2068) diff --git a/.changeset/fix-2100-exports-disappear.md b/.changeset/fix-2100-exports-disappear.md deleted file mode 100644 index c47e32ea9..000000000 --- a/.changeset/fix-2100-exports-disappear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/start": patch ---- - -fix: keep non-picked route exports that picked exports reference instead of deleting their bindings, so API handlers can call helpers exported from the same file (#2100); also fixes picked exports declared via `export { ... }` specifiers being dropped (#1659) diff --git a/.changeset/fix-2131-middleware-order.md b/.changeset/fix-2131-middleware-order.md deleted file mode 100644 index 718b9887e..000000000 --- a/.changeset/fix-2131-middleware-order.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@solidjs/start": patch ---- - -fix: run `onBeforeResponse` middleware in declared order (#2131) - -Applications that reversed their `onBeforeResponse` arrays as a workaround should restore the intended declaration order. diff --git a/.changeset/fix-2133-bun-deno-stream.md b/.changeset/fix-2133-bun-deno-stream.md deleted file mode 100644 index 82cbef61c..000000000 --- a/.changeset/fix-2133-bun-deno-stream.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@solidjs/start": patch ---- - -Return a cancellation-safe web `ReadableStream` for streaming SSR in development. Returning Solid's -raw stream only rendered on Node; Bun and Deno coerced it to `[object Object]`. diff --git a/.changeset/fix-dev-server-function-lookup.md b/.changeset/fix-dev-server-function-lookup.md deleted file mode 100644 index 0ea9bd5d8..000000000 --- a/.changeset/fix-dev-server-function-lookup.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/start": patch ---- - -fix: resolve server functions in dev when their route was reached through client-side navigation before its module was evaluated on the server diff --git a/.changeset/pre.json b/.changeset/pre.json index dcb159243..a4fd423f9 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -1,16 +1,8 @@ { "mode": "pre", - "tag": "beta", + "tag": "rc", "initialVersions": { - "@solidjs/start": "2.0.0-beta.7" + "@solidjs/start": "2.0.0-rc.1" }, - "changesets": [ - "curvy-mice-thank", - "fix-1874-unicode-error-header", - "fix-2068-server-only-guard", - "fix-2133-bun-deno-stream", - "fix-dev-server-function-lookup", - "support-server-client-only", - "tame-dingos-wave" - ] + "changesets": [] } diff --git a/.changeset/support-server-client-only.md b/.changeset/support-server-client-only.md deleted file mode 100644 index 935fe31ee..000000000 --- a/.changeset/support-server-client-only.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/start": minor ---- - -Add support for `server-only` and `client-only` modules diff --git a/.changeset/tame-dingos-wave.md b/.changeset/tame-dingos-wave.md deleted file mode 100644 index 9f98046db..000000000 --- a/.changeset/tame-dingos-wave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/start": patch ---- - -Use per-environment Vite plugin hook APIs for forward compatibility with Vite 9. diff --git a/.changeset/tidy-zebras-route.md b/.changeset/tidy-zebras-route.md deleted file mode 100644 index 2e2e522f8..000000000 --- a/.changeset/tidy-zebras-route.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/start": patch ---- - -Fix API route matching when `server.baseURL` is configured. diff --git a/packages/start/CHANGELOG.md b/packages/start/CHANGELOG.md index 677b7a211..d19348495 100644 --- a/packages/start/CHANGELOG.md +++ b/packages/start/CHANGELOG.md @@ -1,11 +1,28 @@ # @solidjs/start +## 2.0.0-rc.1 + +### Minor Changes + +- 02e561e: Expose experimental `decorateHandler` and `decorateMiddleware` helpers from + `@solidjs/start/server` for providing Solid's request context to custom h3 handlers and + middleware. + +### Patch Changes + +- f66b5a9: fix: keep non-picked route exports that picked exports reference instead of deleting their bindings, so API handlers can call helpers exported from the same file (#2100); also fixes picked exports declared via `export { ... }` specifiers being dropped (#1659) +- 1763296: fix: run `onBeforeResponse` middleware in declared order (#2131) + + Applications that reversed their `onBeforeResponse` arrays as a workaround should restore the intended declaration order. + +- cd98e7d: Fix API route matching when `server.baseURL` is configured. + ## 2.0.0-beta.10 ### Patch Changes - 8af6304: Support for Vite 8.1 Experimental Bundled Dev Mode -- 9d91484: fix: don't crash when a server function throws an error whose message contains non-latin1 characters. +- 9d91484: fix: don't crash when a server function throws an error whose message contains non-latin1 characters. - 068b64c: Return a cancellation-safe web `ReadableStream` for streaming SSR in development. Returning Solid's raw stream only rendered on Node; Bun and Deno coerced it to `[object Object]`. @@ -127,7 +144,6 @@ - 8256190: Rework `@solidjs/start/env` - 6cbba24: Fix multiple Set-Cookie headers being lost on redirect responses - d4cc548: ## Bump Seroval - - version `1.4.1` - dd40610: Handle base url in api routes diff --git a/packages/start/package.json b/packages/start/package.json index a846ee108..64fdfa759 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@solidjs/start", - "version": "2.0.0-beta.10", + "version": "2.0.0-rc.1", "type": "module", "files": [ "dist",