workflow 4.0.1-beta.12 → 4.0.1-beta.14

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/README.md CHANGED
@@ -32,7 +32,7 @@ Contributions to Workflow DevKit are welcome and highly appreciated. Please use
32
32
 
33
33
  Workflow DevKit was built by engineers at [Vercel](https://vercel.com) and the [Open Source Community](https://github.com/vercel/workflow/graphs/contributors).
34
34
 
35
- The initial core contributing engineers are
35
+ The initial core contributing engineers are:
36
36
 
37
37
  - Adrian Lam ([@adriandlam](https://github.com/adriandlam))
38
38
  - Dillon Mulroy ([@dmmulroy](https://github.com/dmmulroy))
@@ -0,0 +1,11 @@
1
+ export type { Event, StartOptions, WorkflowReadableStreamOptions, WorkflowRun, } from '@workflow/core/runtime';
2
+ export declare class Run {
3
+ constructor();
4
+ }
5
+ export declare const getRun: () => never;
6
+ export declare const getHookByToken: () => never;
7
+ export declare const resumeHook: () => never;
8
+ export declare const resumeWebhook: () => never;
9
+ export declare const runStep: () => never;
10
+ export declare const start: () => never;
11
+ //# sourceMappingURL=api-workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-workflow.d.ts","sourceRoot":"","sources":["../src/api-workflow.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,YAAY,EACZ,6BAA6B,EAC7B,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAQhC,qBAAa,GAAG;;CAIf;AACD,eAAO,MAAM,MAAM,aAA+B,CAAC;AACnD,eAAO,MAAM,cAAc,aAAuC,CAAC;AACnE,eAAO,MAAM,UAAU,aAAmC,CAAC;AAC3D,eAAO,MAAM,aAAa,aAAsC,CAAC;AACjE,eAAO,MAAM,OAAO,aAAgC,CAAC;AACrD,eAAO,MAAM,KAAK,aAA8B,CAAC"}
@@ -0,0 +1,15 @@
1
+ const workflowStub = (item) => {
2
+ throw new Error(`The workflow environment doesn't allow this runtime usage of ${item}.`);
3
+ };
4
+ export class Run {
5
+ constructor() {
6
+ workflowStub('Run');
7
+ }
8
+ }
9
+ export const getRun = () => workflowStub('getRun');
10
+ export const getHookByToken = () => workflowStub('getHookByToken');
11
+ export const resumeHook = () => workflowStub('resumeHook');
12
+ export const resumeWebhook = () => workflowStub('resumeWebhook');
13
+ export const runStep = () => workflowStub('runStep');
14
+ export const start = () => workflowStub('start');
15
+ //# sourceMappingURL=api-workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-workflow.js","sourceRoot":"","sources":["../src/api-workflow.ts"],"names":[],"mappings":"AAOA,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;IACpC,MAAM,IAAI,KAAK,CACb,gEAAgE,IAAI,GAAG,CACxE,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG;IACd;QACE,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;CACF;AACD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC"}
package/dist/next.cjs ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // The Next.js plugin needs to support CommonJS usage since
3
+ // `next.config.js` using CommonJS syntax is still common.
4
+ const nextPlugin = require("@workflow/next");
5
+ module.exports = nextPlugin;
6
+ //# sourceMappingURL=next.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next.cjs","sourceRoot":"","sources":["../src/next.cts"],"names":[],"mappings":";AAAA,2DAA2D;AAC3D,0DAA0D;AAC1D,6CAA8C;AAC9C,iBAAS,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ import nextPlugin = require('@workflow/next');
2
+ export = nextPlugin;
3
+ //# sourceMappingURL=next.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next.d.cts","sourceRoot":"","sources":["../src/next.cts"],"names":[],"mappings":"AAEA,OAAO,UAAU,GAAG,QAAQ,gBAAgB,CAAC,CAAC;AAC9C,SAAS,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow",
3
- "version": "4.0.1-beta.12",
3
+ "version": "4.0.1-beta.14",
4
4
  "description": "Workflow DevKit - Build durable, resilient, and observable workflows",
5
5
  "main": "dist/typescript-plugin.cjs",
6
6
  "type": "module",
@@ -28,12 +28,16 @@
28
28
  "require": "./dist/typescript-plugin.cjs",
29
29
  "default": "./dist/index.js"
30
30
  },
31
- "./api": "./dist/api.js",
31
+ "./api": {
32
+ "types": "./dist/api.d.ts",
33
+ "workflow": "./dist/api-workflow.js",
34
+ "default": "./dist/api.js"
35
+ },
32
36
  "./internal/errors": "./dist/internal/errors.js",
33
37
  "./internal/serialization": "./dist/internal/serialization.js",
34
38
  "./internal/builtins": "./dist/internal/builtins.js",
35
39
  "./internal/private": "./dist/internal/private.js",
36
- "./next": "./dist/next.js",
40
+ "./next": "./dist/next.cjs",
37
41
  "./nitro": "./dist/nitro.js",
38
42
  "./nuxt": "./dist/nuxt.js",
39
43
  "./sveltekit": "./dist/sveltekit.js",
@@ -43,17 +47,17 @@
43
47
  },
44
48
  "dependencies": {
45
49
  "ms": "2.1.3",
46
- "@workflow/cli": "4.0.1-beta.12",
47
- "@workflow/core": "4.0.1-beta.10",
50
+ "@workflow/cli": "4.0.1-beta.14",
51
+ "@workflow/errors": "4.0.1-beta.5",
52
+ "@workflow/core": "4.0.1-beta.12",
53
+ "@workflow/nitro": "4.0.1-beta.14",
48
54
  "@workflow/typescript-plugin": "4.0.1-beta.4",
49
- "@workflow/errors": "4.0.1-beta.4",
50
- "@workflow/nitro": "4.0.1-beta.12",
51
- "@workflow/next": "4.0.1-beta.12",
52
- "@workflow/nuxt": "4.0.1-beta.1",
53
- "@workflow/sveltekit": "4.0.0-beta.6"
55
+ "@workflow/next": "4.0.1-beta.14",
56
+ "@workflow/nuxt": "4.0.1-beta.3",
57
+ "@workflow/sveltekit": "4.0.0-beta.8"
54
58
  },
55
59
  "devDependencies": {
56
- "@types/ms": "^2.1.0",
60
+ "@types/ms": "2.1.0",
57
61
  "@types/node": "22.19.0",
58
62
  "@workflow/tsconfig": "4.0.1-beta.0"
59
63
  },
package/dist/next.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from '@workflow/next';
2
- //# sourceMappingURL=next.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
package/dist/next.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@workflow/next';
2
- //# sourceMappingURL=next.js.map
package/dist/next.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}