Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
AirBorne04 authored Jun 21, 2024
2 parents fdfe3f9 + 74ceb80 commit df2cc6a
Show file tree
Hide file tree
Showing 29 changed files with 209 additions and 205 deletions.
5 changes: 0 additions & 5 deletions .changeset/calm-rocks-sleep.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clever-jars-explode.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cold-needles-peel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-shrimps-cross.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/flat-mugs-travel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/friendly-donkeys-pretend.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/new-glasses-march.md

This file was deleted.

3 changes: 3 additions & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export default defineConfig({
// experimental: { islands: true },
server: {
preset: "cloudflare_module",
alias: {
"_mime": "mime/index.js"
},
rollupConfig: {
external: ["__STATIC_CONTENT_MANIFEST", "node:async_hooks"]
}
Expand Down
4 changes: 2 additions & 2 deletions examples/bare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"start": "vinxi start"
},
"dependencies": {
"@solidjs/start": "^1.0.1",
"@solidjs/start": "^1.0.2",
"solid-js": "^1.8.17",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
},
"dependencies": {
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"solid-js": "^1.8.17",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/experiments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
},
"dependencies": {
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"solid-js": "^1.8.17",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"start": "vinxi start"
},
"dependencies": {
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"solid-js": "^1.8.17",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"start": "vinxi start"
},
"dependencies": {
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"date-fns": "^3.6.0",
"solid-js": "^1.8.17",
"marked": "^12.0.1",
"unstorage": "1.10.2",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/todomvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"start": "vinxi start"
},
"dependencies": {
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"solid-js": "^1.8.17",
"unstorage": "1.10.2",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/with-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"@types/node": "^20.12.7"
},
"dependencies": {
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"solid-js": "^1.8.17",
"unstorage": "1.10.2",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/with-authjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"@babel/core": "7.24.4",
"@solid-mediakit/auth": "^2.0.11",
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"solid-js": "^1.8.17",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
4 changes: 2 additions & 2 deletions examples/with-drizzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"drizzle-kit": "^0.21.4"
},
"dependencies": {
"@solidjs/router": "^0.13.3",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.0",
"better-sqlite3": "^10.0.0",
"drizzle-orm": "^0.30.10",
"solid-js": "^1.8.17",
"vinxi": "0.3.11"
"vinxi": "0.3.12"
},
"engines": {
"node": ">=20"
Expand Down
6 changes: 3 additions & 3 deletions examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"dependencies": {
"@mdx-js/mdx": "^2.3.0",
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"@vinxi/plugin-mdx": "^3.7.1",
"solid-js": "^1.8.17",
"vinxi": "^0.3.11",
"vinxi": "^0.3.12",
"solid-mdx": "^0.0.7"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions examples/with-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"dependencies": {
"@prisma/client": "^5.12.1",
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"prisma": "^5.12.1",
"solid-js": "^1.8.17",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/with-solid-styled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"dependencies": {
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"solid-js": "^1.8.17",
"solid-styled": "^0.11.1",
"vinxi": "^0.3.11",
"vinxi": "^0.3.12",
"vite-plugin-solid-styled": "^0.11.1"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"start": "vinxi start"
},
"dependencies": {
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"solid-js": "^1.8.17",
"tailwindcss": "^3.4.3",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/with-trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"dependencies": {
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"@trpc/client": "^10.45.2",
"@trpc/server": "^10.45.2",
"@typeschema/valibot": "^0.13.4",
"solid-js": "^1.8.17",
"valibot": "^0.29.0",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/with-unocss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"start": "vinxi start"
},
"dependencies": {
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"@unocss/reset": "^0.59.2",
"solid-js": "^1.8.17",
"unocss": "^0.59.2",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions examples/with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"type": "module",
"devDependencies": {
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.13.3",
"@solidjs/start": "^1.0.1",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "^1.0.2",
"@solidjs/testing-library": "^0.8.7",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/user-event": "^14.5.2",
"@vitest/ui": "^1.5.0",
"jsdom": "^24.0.0",
"solid-js": "^1.8.17",
"typescript": "^5.4.5",
"vinxi": "^0.3.11",
"vinxi": "^0.3.12",
"vite": "^5.2.8",
"vite-plugin-solid": "^2.10.2",
"vitest": "^1.5.0"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@kobalte/core": "^0.13.1",
"@kobalte/utils": "^0.9.0",
"@solidjs/meta": "^0.29.0",
"@solidjs/router": "^0.13.3",
"@solidjs/router": "^0.13.6",
"@solidjs/start": "workspace:*",
"@tailwindcss/typography": "^0.5.9",
"@vinxi/plugin-mdx": "^3.7.1",
Expand All @@ -56,7 +56,7 @@
"turbo": "^1.10.7",
"typescript": "5.3.3",
"valibot": "~0.29.0",
"vinxi": "^0.3.11",
"vinxi": "^0.3.12",
"vite": "^5.1.1"
},
"dependencies": {
Expand Down
13 changes: 13 additions & 0 deletions packages/start/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @solidjs/start

## 1.0.2

### Patch Changes

- 9da8b18: fix #1547 add noscript tags to asset rendering
- d932ebd: Omit some keys from Vite server config
- b02151f: Add new response type in middleware function
- ae6ca2e: fix #1514 error header sanitization
- a52cea5: Pass event to getResponseStatus in set statusCode
- b47ab2c: Set X-Error for thrown Responses
- bfdd099: better fix for #1552 error propagation with nojs
- 23ee2de: fix #1550, add "X-Content-Raw" header

## 1.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/start/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solidjs/start",
"version": "1.0.1",
"version": "1.0.2",
"type": "module",
"author": "Ryan Carniato",
"license": "MIT",
Expand Down Expand Up @@ -60,7 +60,7 @@
},
"devDependencies": {
"solid-js": "^1.8.17",
"vinxi": "^0.3.11",
"vinxi": "^0.3.12",
"typescript": "^5.4.2"
},
"dependencies": {
Expand Down
22 changes: 11 additions & 11 deletions packages/start/src/runtime/server-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import { crossSerializeStream, fromJSON, getCrossReferenceHeader } from "seroval";
// @ts-ignore
import {
CustomEventPlugin,
DOMExceptionPlugin,
EventPlugin,
FormDataPlugin,
HeadersPlugin,
ReadableStreamPlugin,
RequestPlugin,
ResponsePlugin,
URLPlugin,
URLSearchParamsPlugin
CustomEventPlugin,
DOMExceptionPlugin,
EventPlugin,
FormDataPlugin,
HeadersPlugin,
ReadableStreamPlugin,
RequestPlugin,
ResponsePlugin,
URLPlugin,
URLSearchParamsPlugin
} from "seroval-plugins/web";
import { sharedConfig } from "solid-js";
import { renderToString } from "solid-js/web";
Expand Down Expand Up @@ -202,7 +202,7 @@ async function handleServerFunction(h3Event: HTTPEvent) {
setHeader(h3Event, "X-Error", "true");
} else if (instance) {
const error = x instanceof Error ? x.message : typeof x === "string" ? x : "true";
setHeader(h3Event, "X-Error", error);
setHeader(h3Event, "X-Error", error.replace(/[\r\n]+/g, ""));
} else {
x = handleNoJS(x, request, parsed, true);
}
Expand Down
Loading

0 comments on commit df2cc6a

Please sign in to comment.