Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .changeset/h3-srvx-stable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@tanstack/start-server-core': patch
'@tanstack/start-plugin-core': patch
---

Update `h3` to 2.0.1 and `srvx` to 1.0.5. Requests with malformed percent-encoded paths (e.g. `/%80`) still respond with 400 Bad Request.

Behavior changes from h3 2.0.1:

- `getRequestProtocol()` and `getRequestUrl()` only read `x-forwarded-proto` when called with `{ xForwardedProto: true }`.
- Session cookies default to `SameSite=Lax`, and `getSession()` no longer sets a cookie for a new session until the session is updated.
- Sessions are sealed with more PBKDF2 iterations. Existing session cookies are still accepted and re-sealed on the next request.
10 changes: 8 additions & 2 deletions e2e/e2e-utils/mock-api.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { setupServer } from 'msw/node'
import { FetchInterceptor } from '@mswjs/interceptors/fetch'
import { SetupServerApi } from 'msw/node'
import { apiHandlers } from './src/api-handlers.ts'

setupServer(...apiHandlers).listen({ onUnhandledRequest: 'bypass' })
// The apps only call the API with `fetch`, so only `fetch` is intercepted. MSW 2's
// default `http` interceptor replaces the global `Headers` and drops entries when
// one `Headers` is copied into another (mswjs/interceptors#850).
new SetupServerApi(apiHandlers, [new FetchInterceptor()]).listen({
onUnhandledRequest: 'bypass',
})
1 change: 1 addition & 0 deletions e2e/e2e-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"devDependencies": {
"@msw/playwright": "0.6.7",
"@mswjs/interceptors": "0.41.9",
"msw": "2.15.0",
"rimraf": "catalog:",
"vite": "^8.0.14",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/basic-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/basic-tsr-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/node": "^22.10.2",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"combinate": "^1.1.11",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/csp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/node": "^22.10.2",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14"
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/css-inline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"express": "^5.2.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"srvx": "^0.11.9"
"srvx": "^1.0.5"
},
"devDependencies": {
"@playwright/test": "^1.61.0",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/css-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@vitejs/plugin-react": "^6.0.1",
"nitro": "^3.0.260903-beta",
"sass": "^1.97.2",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/custom-basepath/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"cross-env": "^10.0.0",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"tsx": "^4.20.3",
"@typescript/native": "npm:typescript@^7.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/custom-server-rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"cross-env": "^10.0.0",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"tsx": "^4.20.3",
"@typescript/native": "npm:typescript@^7.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/deferred-hydration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14"
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/dev-ssr-styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"nitro": "^3.0.260903-beta",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/early-hints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"node-forge": "^1.3.1",
"srvx": "0.11.15",
"srvx": "1.0.5",
"tsx": "4.20.3",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/flamegraph-bench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@tanstack/react-start": "workspace:*",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"srvx": "^0.11.9"
"srvx": "^1.0.5"
},
"devDependencies": {
"@platformatic/flame": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14"
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/import-protection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14"
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/root-document-hydration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14"
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/node": "^22.10.2",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"srvx": "^0.10.0",
"srvx": "^1.0.5",
"typescript": "^5.7.2"
}
}
4 changes: 2 additions & 2 deletions e2e/react-start/rsc-deferred-hydration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"@vitejs/plugin-rsc": "^0.5.30",
"srvx": "^0.11.9",
"@vitejs/plugin-rsc": "^0.5.36",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14"
Expand Down
4 changes: 2 additions & 2 deletions e2e/react-start/rsc-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"@vitejs/plugin-rsc": "^0.5.30",
"srvx": "^0.10.0",
"@vitejs/plugin-rsc": "^0.5.36",
"srvx": "^1.0.5",
"typescript": "^5.7.2",
"vite": "^8.0.14"
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/rsc-rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/node": "^22.10.2",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"srvx": "^0.10.0",
"srvx": "^1.0.5",
"typescript": "^5.7.2"
}
}
4 changes: 2 additions & 2 deletions e2e/react-start/rsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"@types/react-dom": "^19.0.3",
"@typescript-eslint/parser": "^8.23.0",
"@vitejs/plugin-react": "^6.0.1",
"@vitejs/plugin-rsc": "^0.5.30",
"@vitejs/plugin-rsc": "^0.5.36",
"eslint": "^9.22.0",
"srvx": "^0.10.0",
"srvx": "^1.0.5",
"typescript": "^5.7.2",
"vite": "^8.0.14"
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/scroll-restoration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"combinate": "^1.1.11",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/selective-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/serialization-adapters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/server-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"combinate": "^1.1.11",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/server-routes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"combinate": "^1.1.11",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/split-base-and-basepath/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14"
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/streaming-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14"
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/transform-asset-urls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14"
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/virtual-routes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"combinate": "^1.1.11",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-start/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/solid-start/basic-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/node": "^22.10.2",
"dotenv": "^17.2.3",
"prisma": "^7.0.0",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/solid-start/basic-solid-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@tailwindcss/vite": "^4.2.2",
"@tanstack/router-e2e-utils": "workspace:^",
"@types/node": "^22.10.2",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/solid-start/basic-tsr-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"@tanstack/router-e2e-utils": "workspace:^",
"@types/node": "^22.10.2",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14",
Expand Down
2 changes: 1 addition & 1 deletion e2e/solid-start/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@types/js-cookie": "^3.0.6",
"@types/node": "^22.10.2",
"combinate": "^1.1.11",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion e2e/solid-start/csp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@playwright/test": "^1.61.0",
"@tanstack/router-e2e-utils": "workspace:^",
"@types/node": "^22.10.2",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14",
Expand Down
2 changes: 1 addition & 1 deletion e2e/solid-start/css-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@tanstack/router-e2e-utils": "workspace:*",
"@types/node": "^22.10.2",
"sass": "^1.97.2",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.14",
Expand Down
2 changes: 1 addition & 1 deletion e2e/solid-start/custom-basepath/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/express": "^5.0.6",
"@types/node": "^22.10.2",
"cross-env": "^10.0.0",
"srvx": "^0.11.9",
"srvx": "^1.0.5",
"tailwindcss": "^4.2.2",
"tsx": "^4.20.3",
"@typescript/native": "npm:typescript@^7.0.2",
Expand Down
Loading