@workflow/sveltekit 4.0.0-beta.2 → 4.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder.d.ts.map +1 -1
- package/dist/builder.js +3 -29
- package/dist/builder.js.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +40 -69
- package/dist/plugin.js.map +1 -1
- package/package.json +8 -8
package/dist/builder.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgBvE,qBAAa,gBAAiB,SAAQ,WAAW;gBACnC,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgBvE,qBAAa,gBAAiB,SAAQ,WAAW;gBACnC,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC;IAc9B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YA8BvB,eAAe;YAyCf,mBAAmB;YAwCnB,iBAAiB;YAqDjB,mBAAmB;CA8BlC"}
|
package/dist/builder.js
CHANGED
|
@@ -17,14 +17,15 @@ async function convertSvelteKitRequest(request) {
|
|
|
17
17
|
`;
|
|
18
18
|
export class SvelteKitBuilder extends BaseBuilder {
|
|
19
19
|
constructor(config) {
|
|
20
|
+
const workingDir = config?.workingDir || process.cwd();
|
|
20
21
|
super({
|
|
21
22
|
...config,
|
|
22
|
-
dirs: ['workflows'],
|
|
23
|
+
dirs: ['workflows', 'src/workflows', 'routes', 'src/routes'],
|
|
23
24
|
buildTarget: 'sveltekit',
|
|
24
25
|
stepsBundlePath: '', // unused in base
|
|
25
26
|
workflowsBundlePath: '', // unused in base
|
|
26
27
|
webhookBundlePath: '', // unused in base
|
|
27
|
-
workingDir
|
|
28
|
+
workingDir,
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
async build() {
|
|
@@ -106,9 +107,6 @@ export const POST = async ({request}) => {
|
|
|
106
107
|
});
|
|
107
108
|
// Post-process the generated file to wrap with SvelteKit request converter
|
|
108
109
|
let webhookRouteContent = await readFile(webhookRouteFile, 'utf-8');
|
|
109
|
-
// For local dev (node), need this since context isn't available to waitUntil()
|
|
110
|
-
// Add SYMBOL_FOR_REQ_CONTEXT at the top after imports
|
|
111
|
-
webhookRouteContent = webhookRouteContent.replace(/(import.*?;)/, `$1\n\nconst SYMBOL_FOR_REQ_CONTEXT = Symbol.for('@vercel/request-context');`);
|
|
112
110
|
// Update handler signature to accept token as parameter
|
|
113
111
|
webhookRouteContent = webhookRouteContent.replace(/async function handler\(request\) \{[\s\S]*?const token = decodeURIComponent\(pathParts\[pathParts\.length - 1\]\);/, `async function handler(request, token) {`);
|
|
114
112
|
// Remove the URL parsing code since we get token from params
|
|
@@ -116,32 +114,8 @@ export const POST = async ({request}) => {
|
|
|
116
114
|
// Replace all HTTP method exports with SvelteKit-compatible handlers
|
|
117
115
|
webhookRouteContent = webhookRouteContent.replace(/export const GET = handler;\nexport const POST = handler;\nexport const PUT = handler;\nexport const PATCH = handler;\nexport const DELETE = handler;\nexport const HEAD = handler;\nexport const OPTIONS = handler;/, `${SVELTEKIT_REQUEST_CONVERTER}
|
|
118
116
|
const createSvelteKitHandler = (method) => async ({ request, params, platform }) => {
|
|
119
|
-
// Track background promises for local dev
|
|
120
|
-
const backgroundPromises = [];
|
|
121
|
-
|
|
122
|
-
// Set up context for @vercel/functions waitUntil
|
|
123
|
-
const context = {
|
|
124
|
-
waitUntil: platform?.waitUntil || ((promise) => {
|
|
125
|
-
// Fallback for local dev/tests: collect promises to await them
|
|
126
|
-
backgroundPromises.push(promise.catch(err => console.error('Background task error:', err)));
|
|
127
|
-
})
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
// Only set context if it doesn't already exist (Vercel sets it and makes it read-only)
|
|
131
|
-
if (!globalThis[SYMBOL_FOR_REQ_CONTEXT]) {
|
|
132
|
-
globalThis[SYMBOL_FOR_REQ_CONTEXT] = {
|
|
133
|
-
get: () => context
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
117
|
const normalRequest = await convertSvelteKitRequest(request);
|
|
138
118
|
const response = await handler(normalRequest, params.token);
|
|
139
|
-
|
|
140
|
-
// In local dev (no platform.waitUntil), await background tasks before returning
|
|
141
|
-
if (!platform?.waitUntil && backgroundPromises.length > 0) {
|
|
142
|
-
await Promise.all(backgroundPromises);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
119
|
return response;
|
|
146
120
|
};
|
|
147
121
|
|
package/dist/builder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAwB,MAAM,oBAAoB,CAAC;AAEvE,qFAAqF;AACrF,MAAM,2BAA2B,GAAG;;;;;;;;;;;CAWnC,CAAC;AAEF,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C,YAAY,MAAiC;QAC3C,KAAK,CAAC;YACJ,GAAG,MAAM;YACT,IAAI,EAAE,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AAAA,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CAAC;gBACP,MAAM,IAAI,KAAK,CACb,+FAA+F,CAChG,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
package/dist/plugin.d.ts
CHANGED
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,MAAM,EAAE,MAAM,MAAM,CAAC;AAKrD,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAkDzC"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,76 +1,47 @@
|
|
|
1
|
-
import { transform } from '@swc/core';
|
|
2
|
-
import { resolveModulePath } from 'exsolve';
|
|
3
1
|
import { SvelteKitBuilder } from './builder.js';
|
|
2
|
+
import { workflowTransformPlugin } from '@workflow/rollup';
|
|
3
|
+
import { createBuildQueue } from '@workflow/builders';
|
|
4
4
|
export function workflowPlugin() {
|
|
5
5
|
let builder;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
configResolved() {
|
|
43
|
-
builder = new SvelteKitBuilder();
|
|
44
|
-
},
|
|
45
|
-
async buildStart() {
|
|
46
|
-
await builder.build();
|
|
47
|
-
},
|
|
48
|
-
// TODO: Move this to @workflow/vite or something since this is vite specific
|
|
49
|
-
async handleHotUpdate(ctx) {
|
|
50
|
-
const { file, server, read } = ctx;
|
|
51
|
-
// Check if this is a TS/JS file that might contain workflow directives
|
|
52
|
-
const jsTsRegex = /\.(ts|tsx|js|jsx|mjs|cjs)$/;
|
|
53
|
-
if (!jsTsRegex.test(file)) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
// Read the file to check for workflow/step directives
|
|
57
|
-
const content = await read();
|
|
58
|
-
const useWorkflowPattern = /^\s*(['"])use workflow\1;?\s*$/m;
|
|
59
|
-
const useStepPattern = /^\s*(['"])use step\1;?\s*$/m;
|
|
60
|
-
if (!useWorkflowPattern.test(content) && !useStepPattern.test(content)) {
|
|
6
|
+
const enqueue = createBuildQueue();
|
|
7
|
+
return [
|
|
8
|
+
workflowTransformPlugin(),
|
|
9
|
+
{
|
|
10
|
+
name: 'workflow:sveltekit',
|
|
11
|
+
configResolved() {
|
|
12
|
+
builder = new SvelteKitBuilder();
|
|
13
|
+
},
|
|
14
|
+
// TODO: Move this to @workflow/vite or something since this is vite specific
|
|
15
|
+
async hotUpdate(options) {
|
|
16
|
+
const { file, read } = options;
|
|
17
|
+
// Check if this is a TS/JS file that might contain workflow directives
|
|
18
|
+
const jsTsRegex = /\.(ts|tsx|js|jsx|mjs|cjs)$/;
|
|
19
|
+
if (!jsTsRegex.test(file)) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
// Read the file to check for workflow/step directives
|
|
23
|
+
let content;
|
|
24
|
+
try {
|
|
25
|
+
content = await read();
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
// File might have been deleted - trigger rebuild to update generated routes
|
|
29
|
+
console.log('Workflow file changed, rebuilding...');
|
|
30
|
+
await enqueue(() => builder.build());
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const useWorkflowPattern = /^\s*(['"])use workflow\1;?\s*$/m;
|
|
34
|
+
const useStepPattern = /^\s*(['"])use step\1;?\s*$/m;
|
|
35
|
+
if (!useWorkflowPattern.test(content) &&
|
|
36
|
+
!useStepPattern.test(content)) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
console.log('Workflow file changed, rebuilding...');
|
|
40
|
+
await enqueue(() => builder.build());
|
|
41
|
+
// Let Vite handle the normal HMR for the changed file
|
|
61
42
|
return;
|
|
62
|
-
}
|
|
63
|
-
// Rebuild everything - simpler and more reliable than tracking individual files
|
|
64
|
-
console.log('Workflow file changed, regenerating routes...');
|
|
65
|
-
await builder.build();
|
|
66
|
-
// Trigger full reload of workflow routes
|
|
67
|
-
server.ws.send({
|
|
68
|
-
type: 'full-reload',
|
|
69
|
-
path: '*',
|
|
70
|
-
});
|
|
71
|
-
// Let Vite handle the normal HMR for the changed file
|
|
72
|
-
return;
|
|
43
|
+
},
|
|
73
44
|
},
|
|
74
|
-
|
|
45
|
+
];
|
|
75
46
|
}
|
|
76
47
|
//# sourceMappingURL=plugin.js.map
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,UAAU,cAAc;IAC5B,IAAI,OAAyB,CAAC;IAC9B,MAAM,OAAO,GAAG,gBAAgB,EAAE,CAAC;IAEnC,OAAO;QACL,uBAAuB,EAAE;QACzB;YACE,IAAI,EAAE,oBAAoB;YAC1B,cAAc;gBACZ,OAAO,GAAG,IAAI,gBAAgB,EAAE,CAAC;YACnC,CAAC;YAED,6EAA6E;YAC7E,KAAK,CAAC,SAAS,CAAC,OAAyB;gBACvC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;gBAE/B,uEAAuE;gBACvE,MAAM,SAAS,GAAG,4BAA4B,CAAC;gBAC/C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC1B,OAAO;gBACT,CAAC;gBAED,sDAAsD;gBACtD,IAAI,OAAe,CAAC;gBACpB,IAAI,CAAC;oBACH,OAAO,GAAG,MAAM,IAAI,EAAE,CAAC;gBACzB,CAAC;gBAAC,MAAM,CAAC;oBACP,4EAA4E;oBAC5E,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;oBACpD,MAAM,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;oBACrC,OAAO;gBACT,CAAC;gBAED,MAAM,kBAAkB,GAAG,iCAAiC,CAAC;gBAC7D,MAAM,cAAc,GAAG,6BAA6B,CAAC;gBAErD,IACE,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC;oBACjC,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,EAC7B,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;gBACpD,MAAM,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;gBACrC,sDAAsD;gBACtD,OAAO;YACT,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow/sveltekit",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.20",
|
|
4
4
|
"description": "SvelteKit integration for Workflow DevKit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
-
"license": "
|
|
13
|
+
"license": "Apache-2.0",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "https://github.com/vercel/workflow.git",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
".": "./dist/index.js"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@swc/core": "1.
|
|
24
|
-
"@sveltejs/kit": "^2.48.2",
|
|
23
|
+
"@swc/core": "1.15.3",
|
|
25
24
|
"fs-extra": "^11.3.2",
|
|
26
25
|
"exsolve": "^1.0.7",
|
|
27
26
|
"pathe": "^2.0.3",
|
|
28
|
-
"@workflow/builders": "4.0.1-beta.
|
|
29
|
-
"@workflow/swc-plugin": "4.0.1-beta.
|
|
27
|
+
"@workflow/builders": "4.0.1-beta.22",
|
|
28
|
+
"@workflow/swc-plugin": "4.0.1-beta.11",
|
|
29
|
+
"@workflow/rollup": "4.0.0-beta.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@types/fs-extra": "
|
|
32
|
+
"@types/fs-extra": "11.0.4",
|
|
33
33
|
"@types/node": "22.19.0",
|
|
34
|
-
"vite": "
|
|
34
|
+
"vite": "7.1.11",
|
|
35
35
|
"@workflow/tsconfig": "4.0.1-beta.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|