Update dependency workflow to v5.0.0-beta.20#77
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
834eb2b to
6b96385
Compare
6b96385 to
d9e9a14
Compare
d9e9a14 to
0bddf0c
Compare
0bddf0c to
6d88ff7
Compare
afdc396 to
3bdad60
Compare
3bdad60 to
1e2365c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.0.0-beta.12→5.0.0-beta.20Release Notes
vercel/workflow (workflow)
v5.0.0-beta.20Compare Source
Minor Changes
84ccd40Thanks @VaguelySerious! - Inline execution now runs up toWORKFLOW_MAX_INLINE_STEPS(default 3) steps in parallel per suspension, each lazily created. An opt-inWORKFLOW_OPTIMISTIC_INLINE_START(default off) additionally starts step bodies beforestep_startedis confirmed, reconciling the in-flight start before the terminal write so a lost create-claim is discarded; it is off by default because under contention a step body can run more than once (e.g. two runs writing to the workflow stream can corrupt it), so only enable it for idempotent steps.Patch Changes
#2475
2074f91Thanks @pranaygp! - Skip the per-step incrementalevents.listround-trip in the inline sequential loop by consuming an event-log delta returned from the step's terminal write (gated to the single-step case with no open hooks or waits).Add the opt-in
CreateEventParams.sinceCursorcontract so a step-terminalevents.createcan return the event-log delta since that cursor (viaEventResult.events/cursor/hasMore).Return the inline delta from a step-terminal write when
sinceCursoris supplied, computed identically toevents.listso the consumed prefix cannot skew from the server log.Forward
sinceCursorover the v4 wire in@workflow/world-vercelso the server can return the delta on a step-terminal response; older servers ignore it and the runtime falls back toevents.list.#2478
e7ef9d8Thanks @pranaygp! - Lazy inline step start: the owned-inline runtime path now sends a singlestep_startedcarrying the step input, letting the world create the step on the fly and saving one round-trip per inline step.@workflow/world:step_startedevent data accepts an optionalinput, andEventResultgains astepCreatedownership signal.@workflow/world-local:step_startedwith input atomically creates the step plus a syntheticstep_createdevent; a lazystep_startedfor an already-existing step throwsEntityConflictErrorso concurrent losers skip (exactly-once).@workflow/world-postgres: same lazy-create + exactly-once create-claim for the Postgres backend.@workflow/world-vercel: sends the step input onstep_startedover the v4 wire and threads the server'sstepCreatedsignal intoEventResult.Updated dependencies [
7aee0d4,16b3670,2074f91,e7ef9d8,722bb7c,de91f20,ab2e9b8,84ccd40,939890d,a92c16d,37312ed]:v5.0.0-beta.19Compare Source
Patch Changes
v5.0.0-beta.18Compare Source
Patch Changes
b92dfbb,cb18139,5f0b845,4b7a720,3c79c56,7440244,5f0b845,d4dd6f9]:v5.0.0-beta.17Compare Source
Minor Changes
#2363
926a5e7Thanks @karthikscale3! - AddWORKFLOW_TRACE_MODEwith a newlinkeddefault: each workflow/step invocation span is now its own trace root with span links to the delivery and run-origin contexts, instead of one trace spanning the entire run. world-vercel now explicitly injects W3Ctraceparent/tracestate/baggageheaders on outgoing workflow-server requests.Span names are also friendlier: workflow and step spans now use the short function name (e.g.
workflow.execute processOrder,step.execute chargeCard,workflow.start processOrder) instead of the uppercase prefixes and full machine names (WORKFLOW_V2 workflow//./src/jobs/order//processOrder). The full name remains available in theworkflow.name/step.namespan attributes, and newworkflowDisplayName/stepDisplayNamehelpers are exported from@workflow/utils.Behavioral changes to telemetry under the new default (set
WORKFLOW_TRACE_MODE=continuousto restore the previous trace shape exactly; the span-name change applies in both modes):start()no longer contains the workflow's execution spans — navigate via span links or theworkflow.run.idattribute instead.workflow.execute/step.executeinvocation spans (formerlyWORKFLOW_V2/STEP) become parentless roots, which changes parent/child-based queries and service-map edges.WORKFLOW_V2 .../STEP ...span names must switch to the new names.workflow.executespan kind changed frominternaltoconsumer, matching the queue-deliveredstep.executespan (this applies in both modes).Existing attributes and baggage keys are unchanged, and everything remains a no-op when no OpenTelemetry SDK is registered.
Patch Changes
1946718,926a5e7]:v5.0.0-beta.16Compare Source
Minor Changes
628795aThanks @pranaygp! - Add anallowReservedAttributesoption tostart()so framework-level callers can seed reserved$-prefixed run attributes at creation, matching the existingexperimental_setAttributesoption. The flag is carried through the resilient-start queue input so lazy run creation validates identically.Patch Changes
011d482,628795a]:v5.0.0-beta.15Compare Source
Minor Changes
#1853
303b6daThanks @TooTallNate! - Add opt-in wire-level framing for byte streams (type: 'bytes') so consumers can identify chunk boundaries — a prerequisite for transparent auto-reconnect. The framing decision is gated on a newframedByteStreamscapability and recorded per-stream in the serialized ref (framing: 'framed-v1'); legacy raw streams continue to work unchanged.#2373
01c8c08Thanks @pranaygp! - Replacehook.hasConflict(aPromise<boolean>property) withhook.getConflict(), a method returning a promise that suspends the workflow to commit hook registration and resolves with the conflictingRunwhen another active hook owns the token (ornullonce the hook is registered), without waiting for hook payload data. Code usingawait hook.hasConflictshould migrate toconst conflict = await hook.getConflict()and branch onconflict !== null.#2226
ae8d6feThanks @pranaygp! - Allow passing initial run attributes throughstart(), and speed up workflow-levelsetAttributecalls by using native events for recording attributes.Patch Changes
303b6da,b3279f8,01c8c08,ae8d6fe]:v5.0.0-beta.14Compare Source
Patch Changes
bf44d4d,f5f6d0e,4670c4b,eb976db,a813382]:v5.0.0-beta.13Compare Source
Minor Changes
8d75491Thanks @TooTallNate! - SurfaceworkflowCoreVersionfrom the responding deployment inhealthCheck()results.Patch Changes
#2292
aa628b7Thanks @pranaygp! - Bumpdevalueto 5.8.1 to address published security advisories.Updated dependencies [
a51910b,8d75491,0fd0891,0b8b077,ccd37e9,d674d6f,bb6ff9a,aa628b7]:Configuration
📅 Schedule: (in timezone Europe/Rome)
* 0-6 * * 6,0)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.