Zum Inhalt springen

Workflow Development Kit Updates & Release Notes

Einträge
53
Quellen
1
Zuletzt aktualisiert

Folge Workflow Development Kit, um die Release Notes in deinen Feed zu holen.

Workflow Development Kit von Vercel

workflow@5.9.0

@workflow/core@5.9.0

  • #5821 ea6b3f5 @pranaygp - Hook retention and idempotent start settings are now stable. Renamed start(workflow, args, { experimental_hook }) to start(workflow, args, { hook }), and Hook retention experimental_minRetention to minRetention on both start({ hook }) and createHook(). The old names keep working as deprecated aliases; passing both names with different values throws.
  • #5827 dcd915c @TooTallNate - Add a runtime option to start() that chooses the engine (node or quickjs) for a single run. It takes precedence over WORKFLOW_VM in the calling process. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.8.2

@workflow/core@5.8.2

  • #5784 a80ddd1 @TooTallNate - Update quickjs-wasi to 3.7.1, so with WORKFLOW_VM=quickjs distinct doubles no longer collapse into one another and bigints outside int64 stay exact at workflow and step boundaries.

@workflow/cli@5.3.5

  • #5399 2a1f643 @TooTallNate - Install the Workflow CLI as a vercel-workflow bin too, so Vercel CLI runs it from the project's node_modules as vercel workflow (vc workflow). Run this way, --backend defaults to vercel, and Vercel API requests go through Vercel CLI's extension API proxy, which authenticates them with the Vercel CLI login.

@workflow/world-postgres@5.5.2

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.8.1

@workflow/core@5.8.1

  • #5682 a306cb1 @pranaygp - Decode a legacy unframed abort packet once per pause in the stream instead of once per chunk read.
  • #5777 e6a08b6 @NishitaSikka - Fix replay divergence when a force-claimed hook's rejection races an earlier step result
  • #5699 294de1b @ruiconti - Deliver events such as hook resumes to a run whose inline step is still running past the invocation's inline budget.
  • #5756 67e7ebe @VaguelySerious - Run.returnValue does not count a wait that failed with a transient World error toward WORKFLOW_RETURN_VALUE_MAX_LONG_POLLS. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@4.8.19

@workflow/world-postgres@4.4.2

  • #5753 4deb28a @VaguelySerious - Live stream readers no longer drop or repeat chunks when several writers write one stream at the same time.

@workflow/web@4.1.35

@workflow/nitro@4.1.25

@workflow/nuxt@4.0.35

@workflow/sveltekit@4.0.34 …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.8.0

@workflow/core@5.8.0

  • #5538 03b8d82 @elliotdauber - Add burst to experimental_rateLimit(): an idle key admits up to burst calls at once (default 1, and up to a day of the rate, so it may exceed limit), then refills one per interval, like a token bucket.
  • #5538 03b8d82 @elliotdauber - Add experimental_rateLimit() for spec 10 runs on both the node:vm and QuickJS engines, driven by the single orchestrator like sleep().
  • #5622 09a1f93 @VaguelySerious - New runs on the Vercel, Local and Postgres Worlds now use a new execution engine that supports speculative execution, and vastly reduces engine overhead. WORKFLOW_SPEC_VERSION=8 opts out. Runs on third-party worlds use the old engine (spec 8) unless they implement the prerequisites. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.7.2

@workflow/core@5.7.2

  • #5649 3b86e28 @VaguelySerious - Fix a spec 9 run sometimes requiring a full event log reload when an incremental read of the event log moved its position past an event it did not take in when merging speculative writes.

@workflow/cli@5.3.2

  • #5446 9fb1ab2 @NishitaSikka - Count a run's usage on the Local World (its events by type, each step function and hook, and its storage, counted the way Vercel's Data Written counts it) and print it with workflow inspect run <id> --usage.
  • #5671 c989836 @VaguelySerious - The web UI (standalone and embedded at /_workflow) only accepts requests addressed to localhost or an IP address; if you reach it under another host name, such as behind a reverse proxy, allow it with --webAllowedHosts, WORKFLOW_WEB_ALLOWED_HOSTS, or Nitro's dashboard.allowedHosts.

@workflow/world@5.3.1 …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@4.8.18

@workflow/cli@4.3.22

  • #5672 0acc0dd @VaguelySerious - The web UI only accepts requests addressed to localhost or an IP address unless more host names are allowed with --webAllowedHosts or WORKFLOW_WEB_ALLOWED_HOSTS.

@workflow/web@4.1.34

  • #5672 0acc0dd @VaguelySerious - The web UI only accepts requests addressed to localhost or an IP address unless more host names are allowed with --webAllowedHosts or WORKFLOW_WEB_ALLOWED_HOSTS.

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.7.1

@workflow/core@5.7.1

  • #5502 16c62b4 @pranaygp - Throw DynamicWorkflowsNotEnabledError instead of WorkflowRuntimeError when dynamic workflows are not enabled, at start() and on delivery, so a run that fails on it is recorded as USER_ERROR instead of RUNTIME_ERROR. Code that caught this refusal with WorkflowRuntimeError.is(err) should check DynamicWorkflowsNotEnabledError.is(err) instead.
  • #5618 bad8cf0 @VaguelySerious - An abort published by a workflow or a step reaches the inline steps running in the same process directly, so a race's loser on a zero-retention run is still aborted when the run's end clears the abort stream before the step reads it. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@4.8.17

@workflow/core@4.8.17

  • #5330 f665a0e @TooTallNate - Bump zod to 4.6.7 and undici to 7.30.2 to pick up security fixes.
  • #5285 bc78ec6 @VaguelySerious - Fix an unhandled rejection that could end the process when a stream passed across a workflow boundary (a step return value, a workflow argument, or a stream written into getWritable()) failed before its pipe was awaited, such as a returned fetch() body whose socket closed (TypeError: terminated). The pipe's error still surfaces to the runtime's stream-op handling.
  • #4334 5fb02cd @pranaygp - Fail a live stream read with an error naming the index when consecutive reads stall at a chunk the stream reports but never serves, instead of reconnecting to it until the reconnect budget runs out …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.7.0

@workflow/core@5.7.0

  • #5353 5668d4b @VaguelySerious - Add an optional runs.deleteDataMany method to the World interface, which deletes the stored data (payloads, not metadata) of finished runs on demand, and implement it in the Vercel, Local and Postgres Worlds. Exposed as run.delete() and deleteRuns() (workflow/api), deleteRuns(world, runIds) (@workflow/core/runtime), and pnpx workflow delete <runId> in the CLI. workflow cancel and workflow start no longer accept listing flags they ignored, such as --limit on start or --cursor and --sort on either. workflow delete, workflow cancel and workflow start now print the error they fail with, such as an unknown flag, instead of exiting with no output.
  • #5577 036e1a8 @TooTallNate - Snapshot QuickJS runs that have no encryption key without an opt-in. Runs with an encryption key are unchanged: their snapshots are encrypted, and a plaintext snapshot is still rejected on restore. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.6.1

@workflow/core@5.6.1

  • #5426 bb100a9 @VaguelySerious - Name the attempt that never recorded a result in a step's "exceeded max retries" error
  • #5263 fde2482 @pranaygp - Mint the compute instance id on first use instead of at module load, so the runtime can be loaded where random values are forbidden in global scope (Cloudflare Workers).
  • #5285 f957b8e @VaguelySerious - Fix an unhandled rejection that could end the process when a stream passed across a workflow boundary (a step return value, a workflow argument, or a stream written into getWritable()) failed before its pipe was awaited, such as a returned fetch() body whose socket closed (TypeError: terminated). The pipe's error still surfaces to the runtime's stream-op handling. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.5.0

@workflow/core@5.5.0

  • #5227 e866ab9 @VaguelySerious - Remove opt-out and test-only environment variables that are no longer needed. The runtime no longer reads WORKFLOW_INLINE_EARLY_ADVANCE, WORKFLOW_RETURN_VALUE_LONG_POLL, WORKFLOW_SLOT_GAP_CHECK, WORKFLOW_LOG_ORDER_DRAWS, WORKFLOW_INLINE_OWNERSHIP or WORKFLOW_BATCH_TRANSITIONS, and the behavior they could switch off is always on. WORKFLOW_SEALED_LOG (deprecated) is no longer read, and @workflow/world no longer exports SEALED_LOG_ENV_VAR: set WORKFLOW_SPEC_VERSION=6 to create new runs without the sealed log. The Vercel World no longer reads WORKFLOW_MAX_CHUNKS_PER_REQUEST or WORKFLOW_TEST_LIMIT_OVERRIDES, and the Local and Postgres Worlds no longer read WORKFLOW_LOCAL_RUN_STATUS_POLL_INTERVAL_MS and WORKFLOW_POSTGRES_RUN_STATUS_POLL_INTERVAL_MS. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.4.0

@workflow/core@5.4.0

  • #5048 e1bce44 @pranaygp - Awaiting run.returnValue of a child run from the workflow that started it now suspends on one system hook per parent, which each child resumes when it finishes, instead of polling inside a step.
  • #5226 50d425f @pranaygp - Removed: reading response.body with getReader(), values() or for await inside workflow functions (added in 5.3.0) throws again. Use response.json(), response.text() or response.arrayBuffer(), or make the request and read the response in a step function. If you assigned globalThis.fetch = fetch to run AI SDK calls in a workflow function, move those calls into a step function, or use AI SDK's WorkflowAgent for agents. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@4.8.16

@workflow/cli@4.3.20

  • #5182 f3d6142 @VaguelySerious - Respect --project and --team over the inferred .vercel link, and prefer the nearest .vercel/project.json in monorepos

@workflow/world-local@4.4.5

  • #5069 ceaaa5c @AndrewBarba - Deliver stream chunks in the order they were written. A reader that opened, or polled, while chunks were being written could get a later chunk before an earlier one, and could get a chunk twice. Writes to one stream now land in order, including a writeToStreamMulti group and concurrent writes, and the reader holds live chunks while it reads from disk.
  • #4909 b065b0b @fazxes - Name each stream chunk as it lands, after every chunk already in the stream, so a write that stalled before landing no longer lands ahead of chunks a reader already read.

@workflow/world-postgres@4.4.0 …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.3.0

@workflow/core@5.3.0

  • #5100 2be58c2 @VaguelySerious - Let a parallel branch start its next inline step without waiting for its slower siblings (spec 8 runs on the Node.js VM). A run now ends as soon as the workflow returns or throws, even while a Promise.race loser is still running inline; that loser gets only its current attempt, and its step events can follow run_completed. Set WORKFLOW_INLINE_EARLY_ADVANCE=0 to restore the previous behavior.
  • #5091 b8e1f1b @karthikscale3 - Reuse the Hook returned by getHookByToken() with resumeHook() to skip the token lookup on later deliveries, including across JSON or other ordinary serialization. Capable Worlds enforce atomic deduplication on cached deliveries. The SDK falls back internally after definite pre-write refusals, retries admission throttles, and never re-sends an uncertain resolved write. Trace attributes identify resolved deliveries and fallback refusals. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@4.8.15

@workflow/core@4.8.15

  • #5028 0f518c6 @karthikscale3 - Queue the workflow continuation when a step completion or failure retry reports an already finished step, preventing runs from remaining stuck in the running state.

@workflow/builders@4.1.20

  • #4999 e01fe25 @joelfickson - Fix module error reporting when the offending import spans multiple lines, and fix multi-line imports not being checked for modules correctly.

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@4.8.14

@workflow/core@4.8.14

  • #4336 79796a0 @pranaygp - Security: remove the nanoid dependency (pinned at 5.1.6, affected by GHSA-28wg-ghj8-5hjv). Default hook tokens now come from a built-in copy of the same generator, so tokens and seeded random values stay identical for runs recorded on earlier versions. Upgrading nanoid itself would have changed them, because nanoid@5.1.16 draws a different number of random bytes per id.

@workflow/cli@4.3.18

  • #4760 b276686 @pranaygp - workflow inspect stream exits 1 when it cannot read or decode a stream, and workflow inspect st lists streams instead of steps.

@workflow/world-local@4.4.4

  • #4754 12cf587 @pranaygp - Register a run's stream names under a lock so listStreamsByRunId no longer drops a stream when several of the run's streams first write at once. A stream written again after clear() is listed again.

@workflow/world-postgres@4.3.11 …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

workflow@5.2.3

@workflow/core@5.2.3

  • #4335 91297ab @pranaygp - Security: remove the nanoid dependency (pinned at 5.1.6, affected by GHSA-28wg-ghj8-5hjv). Default hook tokens now come from a built-in copy of the same generator, so tokens and seeded random values stay identical for runs recorded on earlier versions. Upgrading nanoid itself would have changed them, because nanoid@5.1.16 draws a different number of random bytes per id.
  • #4758 0bc17d7 @pranaygp - Resolve a run's encryption key from metadata only, so Run#getReadable() and resuming a hook stored without a resume context no longer make the server resolve the run's whole input and output first.
  • #4916 42077f2 @VaguelySerious - Fix cross-deployment start() to 4.x deployments being misread as a run invocation, and keep replayed runs in the original run's region. …

Originalquelle(öffnet in neuem Tab)Problem melden

Workflow Development Kit von Vercel

Workflow Development Kit 5.2.2

@workflow/core@5.2.2

  • #4861 afdc68b @pranaygp - Order setAttributes() resolution with the replay delivery barriers so a branch awaiting it can no longer resume out of event-log order, which could fail the run with REPLAY_DIVERGENCE or hand concurrent branches each other's step results
  • #4856 a04ecaa @http-samc - Upgrade devalue to 6.0.3, which escapes large strings with native JSON.stringify instead of a per-character loop. Strings containing unpaired surrogates now round-trip exactly instead of being replaced with U+FFFD.
  • #4818 0948b0a @VaguelySerious - Remove the experimental WORKFLOW_RESILIENT_STEP_DISPATCH option

@workflow/world-vercel@5.2.2 …

Originalquelle(öffnet in neuem Tab)Problem melden