workflow 5.0.0-beta.25 → 5.0.0-beta.27

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.
@@ -27,6 +27,7 @@ When enabled, the module:
27
27
  - Registers the workflow runtime routes under `/.well-known/workflow/v1/`.
28
28
  - Serves a redirect to the local observability dashboard at `/_workflow` in development.
29
29
  - Configures Vercel function rules (queue triggers and `maxDuration`) for the workflow routes when deploying to Vercel.
30
+ - Uses Nitro's `workspaceDir` as the workflow project root so monorepo apps can import sibling workspace packages without extra workflow config.
30
31
 
31
32
  ## Module Options
32
33
 
@@ -25,6 +25,7 @@ When enabled, the module:
25
25
  - Registers the [`workflow/nitro`](/docs/api-reference/workflow-nitro) module on Nuxt's Nitro server, which transforms `"use workflow"` and `"use step"` directives, builds the workflow bundles, and registers the workflow runtime routes under `/.well-known/workflow/v1/`.
26
26
  - Configures Vite to bundle (rather than externalize) the Workflow SDK packages in SSR mode so workflow code is transformed correctly.
27
27
  - Enables the `workflow` TypeScript plugin by default for IDE IntelliSense.
28
+ - Uses Nuxt/Nitro's detected `workspaceDir` so monorepo apps can import sibling workspace packages without extra workflow config.
28
29
 
29
30
  ## Module Options
30
31
 
@@ -22,6 +22,15 @@ Install the Postgres World package in your workflow project:
22
22
  @workflow/world-postgres
23
23
  ```
24
24
 
25
+ <Callout type="info">
26
+ Use the same release channel for `workflow` and `@workflow/world-postgres`. If
27
+ your app uses a beta or other prerelease Workflow version, install the matching
28
+ prerelease Postgres World package, such as
29
+ `npm install @workflow/world-postgres@beta`. Mismatched versions fail before
30
+ starting a run with an error that says the runtime requires a World with a
31
+ matching spec version.
32
+ </Callout>
33
+
25
34
  Configure the required environment variables to use the world and point it to your PostgreSQL database:
26
35
 
27
36
  ```bash title=".env"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow",
3
- "version": "5.0.0-beta.25",
3
+ "version": "5.0.0-beta.27",
4
4
  "description": "Workflow SDK - Build durable, resilient, and observable workflows",
5
5
  "main": "dist/typescript-plugin.cjs",
6
6
  "type": "module",
@@ -57,18 +57,18 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "ms": "2.1.3",
60
- "@workflow/astro": "5.0.0-beta.25",
61
- "@workflow/cli": "5.0.0-beta.25",
62
- "@workflow/core": "5.0.0-beta.25",
63
- "@workflow/errors": "5.0.0-beta.8",
64
- "@workflow/typescript-plugin": "5.0.0-beta.4",
65
- "@workflow/utils": "5.0.0-beta.4",
66
- "@workflow/next": "5.0.0-beta.25",
67
- "@workflow/nest": "5.0.0-beta.25",
68
- "@workflow/nitro": "5.0.0-beta.25",
69
- "@workflow/nuxt": "5.0.0-beta.25",
70
- "@workflow/sveltekit": "5.0.0-beta.25",
71
- "@workflow/rollup": "5.0.0-beta.25"
60
+ "@workflow/astro": "5.0.0-beta.27",
61
+ "@workflow/cli": "5.0.0-beta.27",
62
+ "@workflow/core": "5.0.0-beta.27",
63
+ "@workflow/errors": "5.0.0-beta.9",
64
+ "@workflow/typescript-plugin": "5.0.0-beta.5",
65
+ "@workflow/utils": "5.0.0-beta.5",
66
+ "@workflow/next": "5.0.0-beta.27",
67
+ "@workflow/nest": "5.0.0-beta.27",
68
+ "@workflow/nitro": "5.0.0-beta.27",
69
+ "@workflow/nuxt": "5.0.0-beta.27",
70
+ "@workflow/sveltekit": "5.0.0-beta.27",
71
+ "@workflow/rollup": "5.0.0-beta.27"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@types/ms": "2.1.0",