Skip to content

0.36.0.#214

Merged
b4rtaz merged 1 commit intomainfrom
v-0-36-0
Feb 19, 2026
Merged

0.36.0.#214
b4rtaz merged 1 commit intomainfrom
v-0-36-0

Conversation

@b4rtaz
Copy link
Copy Markdown
Collaborator

@b4rtaz b4rtaz commented Feb 19, 2026

This version introduces a change to the onDefinitionChanged event. Previously, the payload of this event was the workflow definition itself. Now, the payload has been extended to the following structure:

export interface DefinitionChangedEvent {
  definition: Definition;
  changeType: DefinitionChangeType;
  stepId: string | null;
  duplicatedStepIds?: DuplicatedStepId[];
}

This change is NOT backward compatible. If you are using the onDefinitionChanged event, you must update your code to read the definition from the definition property of the event payload.

// before
designer.onDefinitionChanged((definition) => { /* ... */ });

// now
designer.onDefinitionChanged((event) => {
  const definition = event.definition;
  // ...
});

This change also affects the Angular package. Previously, the onDefinitionChanged event emitted the definition directly, it now emits a DefinitionChangedEvent object.

The change has also been propagated to the React and Svelte packages. However, for those packages, the update is backward compatible.

@b4rtaz b4rtaz merged commit 8031f6b into main Feb 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant