Skip to content

chore: version packages - #15

Merged
bcheung merged 1 commit into
mainfrom
changeset-release/main
Nov 6, 2026
Merged

bcheung merged 1 commit into
mainfrom
changeset-release/main

Conversation

@bcheung

@bcheung bcheung commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@useflow/core@0.6.0

Minor Changes

  • 778299f: Report every persistence failure once, with the flow it came from.

    • onPersistenceError now receives (error, { flowId, operation, instanceId, variantId }), where operation is "save", "restore" or "remove". One-argument handlers keep working.
    • onPersistenceError now also receives store failures that createPersister catches itself. Previously those only reached the persister's onError. When a Flow or provider handler is set, it replaces the persister's onError for that flow instead of both firing.
    • persister.save(), restore() and remove() accept a per-call onError that replaces the persister's onError. Custom persisters should call it when an operation fails.
    • incompatible_state is reported once: to onDiscard when one is set, otherwise to onPersistenceError. Previously it went to both.
    • kvStorageAdapter (and the localStorage, sessionStorage and AsyncStorage stores built on it) now throws from get when the storage read fails or stored data can't be deserialized, instead of returning null. The persister reports the error and restores nothing, so corrupted state is no longer indistinguishable from missing state.

@useflow/react@0.6.0

Minor Changes

  • 778299f: Report every persistence failure once, with the flow it came from.

    • onPersistenceError now receives (error, { flowId, operation, instanceId, variantId }), where operation is "save", "restore" or "remove". One-argument handlers keep working.
    • onPersistenceError now also receives store failures that createPersister catches itself. Previously those only reached the persister's onError. When a Flow or provider handler is set, it replaces the persister's onError for that flow instead of both firing.
    • persister.save(), restore() and remove() accept a per-call onError that replaces the persister's onError. Custom persisters should call it when an operation fails.
    • incompatible_state is reported once: to onDiscard when one is set, otherwise to onPersistenceError. Previously it went to both.
    • kvStorageAdapter (and the localStorage, sessionStorage and AsyncStorage stores built on it) now throws from get when the storage read fails or stored data can't be deserialized, instead of returning null. The persister reports the error and restores nothing, so corrupted state is no longer indistinguishable from missing state.

Patch Changes

  • Updated dependencies [778299f]
    • @useflow/core@0.6.0

@bcheung
bcheung merged commit e205abf into main Nov 6, 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