workflow 5.0.0-beta.37 → 5.0.0-beta.38

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
@@ -28,22 +28,6 @@ The Workflow SDK community can be found on [GitHub Discussions](https://github.c
28
28
 
29
29
  Contributions to Workflow SDK are welcome and highly appreciated. Please use GitHub [issues](https://github.com/vercel/workflow/issues) and [discussions](https://github.com/vercel/workflow/discussions) to collaborate with the team and wider community.
30
30
 
31
- ## Author list
32
-
33
- Workflow SDK was built by engineers at [Vercel](https://vercel.com) and the [Open Source Community](https://github.com/vercel/workflow/graphs/contributors).
34
-
35
- The initial core contributing engineers are:
36
-
37
- - Adrian Lam ([@adriandlam](https://github.com/adriandlam))
38
- - Dillon Mulroy ([@dmmulroy](https://github.com/dmmulroy))
39
- - Gal Schlezinger ([@Schniz](https://github.com/Schniz))
40
- - JJ Kasper ([@ijjk](https://github.com/ijjk))
41
- - Nathan Rajlich ([@TooTallNate](https://github.com/TooTallNate))
42
- - Peter Wielander ([@VaguelySerious](https://github.com/VaguelySerious))
43
- - Pranay Prakash ([@pranaygp](https://github.com/pranaygp))
44
-
45
- The Workflow SDK logo was designed by Cecilio Ruiz [@ceciliorz](https://x.com/ceciliorz)
46
-
47
31
  ---
48
32
 
49
33
  ## Security
@@ -115,6 +115,14 @@ For example, a workflow can run a 10-minute inline step even with `WORKFLOW_REPL
115
115
  - Debug log filter with wildcards and negation.
116
116
  - Examples: `workflow:*`, `workflow:*,-workflow:telemetry:*`.
117
117
 
118
+ ## Transport
119
+
120
+ ### `WORKFLOW_H2_MULTIPLEX`
121
+
122
+ - Default: enabled
123
+ - On the Vercel World, lets concurrent event-log requests share one HTTP/2 connection instead of one connection per in-flight request.
124
+ - Set `0` to send one event request per connection.
125
+
118
126
  ## Queue namespace
119
127
 
120
128
  ### `WORKFLOW_QUEUE_NAMESPACE`
@@ -21,11 +21,11 @@ A [World](/docs/deploying) stores workflow state and delivers queue messages.
21
21
 
22
22
  Outside Vercel, Workflow defaults to the Local World. On Vercel, leave `WORKFLOW_TARGET_WORLD` unset for the normal case; Workflow detects the Vercel deployment and selects the Vercel World automatically.
23
23
 
24
- The World is selected when your app is **built**, not when it runs, and compiled into the server bundles. Detection therefore reads the build environment: `VERCEL_DEPLOYMENT_ID` when it is available, otherwise `VERCEL=1` for builds where no deployment exists yet. A dev server is never affected, because `VERCEL_ENV=development` and `NODE_ENV=development` both keep the Local World selected — including when `vercel env pull` has written `VERCEL=1` into `.env.local`.
24
+ The World is selected when your app **runs**, from the environment of the process serving it, so changing `WORKFLOW_TARGET_WORLD` takes effect on the next start without a rebuild. Detection keys off `VERCEL_DEPLOYMENT_ID`, which Vercel sets in every deployed function and nothing else sets: with it, the Vercel World; without it, the Local World.
25
25
 
26
- If your build environment does not expose Vercel's system environment variables for example a build that runs in a container of your own before uploading, or one where [system environment variables](https://vercel.com/docs/environment-variables/system-environment-variables) are disabled for the project set `WORKFLOW_TARGET_WORLD=vercel` in the build environment. Without it, the deployment is built against the Local World and every run fails writing to a read-only filesystem. Switching this value requires a rebuild; changing it at runtime has no effect.
26
+ Broader signals are deliberately ignored. `vercel env pull` writes `VERCEL=1` into `.env.local`, so a dev server or a production server started on your own machine sees it while running against a writable filesystem where the Local World is the right choice. Set `WORKFLOW_TARGET_WORLD=vercel` explicitly if you want such a process to talk to the Vercel World; starting a run then fails with an error naming the missing `VERCEL_DEPLOYMENT_ID`.
27
27
 
28
- The mirror image applies when a build that looks like Vercel is served somewhere else: a production server started locally or in CI with an env file from `vercel env pull` has `VERCEL=1`, so it is built against the Vercel World and then has no `VERCEL_DEPLOYMENT_ID` at runtime. Starting a run in that server fails with an error saying so. To run the same code against your filesystem, set `WORKFLOW_TARGET_WORLD=local` and rebuild.
28
+ A deployment that pins `WORKFLOW_TARGET_WORLD=local` warns at startup and fails on its first write, because a Vercel deployment's filesystem is read-only.
29
29
 
30
30
  Set `WORKFLOW_TARGET_WORLD` only when you want to use a custom or self-hosted World:
31
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow",
3
- "version": "5.0.0-beta.37",
3
+ "version": "5.0.0-beta.38",
4
4
  "description": "Workflow SDK - Build durable, resilient, and observable workflows",
5
5
  "main": "dist/typescript-plugin.cjs",
6
6
  "type": "module",
@@ -59,18 +59,18 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "ms": "2.1.3",
62
- "@workflow/astro": "5.0.0-beta.37",
63
- "@workflow/cli": "5.0.0-beta.37",
64
- "@workflow/core": "5.0.0-beta.37",
65
- "@workflow/errors": "5.0.0-beta.13",
62
+ "@workflow/astro": "5.0.0-beta.38",
63
+ "@workflow/cli": "5.0.0-beta.38",
64
+ "@workflow/core": "5.0.0-beta.38",
65
+ "@workflow/errors": "5.0.0-beta.14",
66
66
  "@workflow/typescript-plugin": "5.0.0-beta.5",
67
- "@workflow/utils": "5.0.0-beta.7",
68
- "@workflow/next": "5.0.0-beta.37",
69
- "@workflow/nest": "5.0.0-beta.37",
70
- "@workflow/nitro": "5.0.0-beta.37",
71
- "@workflow/nuxt": "5.0.0-beta.37",
72
- "@workflow/sveltekit": "5.0.0-beta.37",
73
- "@workflow/rollup": "5.0.0-beta.37"
67
+ "@workflow/utils": "5.0.0-beta.8",
68
+ "@workflow/next": "5.0.0-beta.38",
69
+ "@workflow/nest": "5.0.0-beta.38",
70
+ "@workflow/nitro": "5.0.0-beta.38",
71
+ "@workflow/nuxt": "5.0.0-beta.38",
72
+ "@workflow/sveltekit": "5.0.0-beta.38",
73
+ "@workflow/rollup": "5.0.0-beta.38"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/ms": "2.1.0",