Skip to content
Draft
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
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@workflow/example-nitro-v2",
"@workflow/example-nuxt",
"@workflow/example-vite",
"@workflow/example-sveltekit"
"@workflow/example-sveltekit",
"@workflow/example-tanstack"
]
}
3 changes: 2 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"@workflow/example-sveltekit": "0.0.0",
"@workflow/builders": "4.0.1-beta.3",
"@workflow/sveltekit": "4.0.0-beta.1",
"@workflow/nuxt": "4.0.1-beta.6"
"@workflow/nuxt": "4.0.1-beta.6",
"@workflow/example-tanstack": "0.0.0"
},
"changesets": [
"add-documentation",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/e2e/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ describe('e2e', () => {
method: 'POST',
body: JSON.stringify({ token: 'invalid' }),
});
expect(res.status).toBe(404);
// Tanstack Start intercepts 404s from route handlers and converts them to HTML error pages
// Other frameworks don't intercept 404s, so we check for both.
expect([400, 404]).toContain(res.status);
body = await res.json();
expect(body).toBeNull();

Expand Down Expand Up @@ -288,8 +290,6 @@ describe('e2e', () => {
body: JSON.stringify({}),
});
expect(res.status).toBe(404);
const body = await res.text();
expect(body).toBe('');
});

test('sleepingWorkflow', { timeout: 60_000 }, async () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/nitro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
},
"dependencies": {
"@swc/core": "1.11.24",
"@workflow/swc-plugin": "workspace:*",
"@workflow/builders": "workspace:*",
"@workflow/core": "workspace:*",
"@workflow/swc-plugin": "workspace:*",
"exsolve": "^1.0.7",
"pathe": "^2.0.3"
},
"devDependencies": {
"@types/node": "catalog:",
"@workflow/tsconfig": "workspace:*",
"nitro": "catalog:",
"vite": "^7.1.12"
"vite": "catalog:"
}
}
7 changes: 7 additions & 0 deletions packages/nitro/src/builders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ export class LocalBuilder extends BaseBuilder {
outfile: join(this.#outDir, 'webhook.mjs'),
bundle: false,
});
let webhookRouteContent = await readFile(
join(this.#outDir, 'webhook.mjs'),
'utf-8'
);
webhookRouteContent = `process.on('unhandledRejection', (reason) => { if (reason !== undefined) console.error('Unhandled rejection detected', reason); });
${webhookRouteContent}`;
await writeFile(join(this.#outDir, 'webhook.mjs'), webhookRouteContent);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
"@swc/core": "1.11.24",
"@workflow/builders": "workspace:*",
"@workflow/swc-plugin": "workspace:*",
"fs-extra": "^11.3.2",
"exsolve": "^1.0.7",
"fs-extra": "^11.3.2",
"pathe": "^2.0.3"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": "catalog:",
"@workflow/tsconfig": "workspace:*",
"vite": "^7.1.11"
"vite": "catalog:"
}
}
4,045 changes: 2,788 additions & 1,257 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ catalog:
ai: 5.0.76
esbuild: ^0.25.11
typescript: ^5.9.3
"vite": ^7.2.2
vitest: ^3.2.4
zod: 4.1.11
onlyBuiltDependencies:
Expand Down
2 changes: 1 addition & 1 deletion workbench/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"svelte": "^5.39.5",
"svelte-check": "^4.3.2",
"typescript": "^5.9.2",
"vite": "^7.1.7",
"vite": "catalog:",
"vite-plugin-devtools-json": "^1.0.0"
},
"dependencies": {
Expand Down
12 changes: 12 additions & 0 deletions workbench/tanstack/.cta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"projectName": "tanstack",
"mode": "file-router",
"typescript": true,
"tailwind": true,
"packageManager": "pnpm",
"addOnOptions": {},
"git": true,
"version": 1,
"framework": "react-cra",
"chosenAddOns": ["biome", "start"]
}
13 changes: 13 additions & 0 deletions workbench/tanstack/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
count.txt
.env
.nitro
.tanstack
.wrangler
.output
.vinxi
todos.json
Loading
Loading