diff --git a/.changeset/clear-action-on-early-return.md b/.changeset/clear-action-on-early-return.md deleted file mode 100644 index 8952c96..0000000 --- a/.changeset/clear-action-on-early-return.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@useflow/react": patch ---- - -Clear the internal action state on early return paths in `save()` and the persistence effect when the persister is disabled or non-navigation modes are active, preventing action ref leaks. diff --git a/.changeset/restore-action-tracking.md b/.changeset/restore-action-tracking.md deleted file mode 100644 index 1e51774..0000000 --- a/.changeset/restore-action-tracking.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@useflow/react": patch ---- - -Ensure the internal action state is set to `RESTORE` when loading saved state to properly update `previousStateRef` and prevent stale source values in navigation callbacks. diff --git a/bun.lock b/bun.lock index 9581092..52d0028 100644 --- a/bun.lock +++ b/bun.lock @@ -74,7 +74,7 @@ }, "packages/core": { "name": "@useflow/core", - "version": "0.3.1", + "version": "0.3.2", "devDependencies": { "@vitest/coverage-v8": "catalog:", "@vitest/ui": "catalog:", @@ -87,7 +87,7 @@ }, "packages/react": { "name": "@useflow/react", - "version": "0.3.1", + "version": "0.3.2", "dependencies": { "@useflow/core": "workspace:*", }, diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 963d492..7d8c21e 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,7 @@ # @useflow/core +## 0.3.2 + ## 0.3.1 ## 0.3.0 diff --git a/packages/core/package.json b/packages/core/package.json index c659d1b..6109235 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@useflow/core", - "version": "0.3.1", + "version": "0.3.2", "description": "Framework-agnostic state machine for multi-step flows", "author": "Brian Cheung (https://github.com/bcheung)", "license": "MIT", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 91308e9..a825c02 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,13 @@ # @useflow/react +## 0.3.2 + +### Patch Changes + +- ac56e70: Clear the internal action state on early return paths in `save()` and the persistence effect when the persister is disabled or non-navigation modes are active, preventing action ref leaks. +- a2d63ae: Ensure the internal action state is set to `RESTORE` when loading saved state to properly update `previousStateRef` and prevent stale source values in navigation callbacks. + - @useflow/core@0.3.2 + ## 0.3.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 9a60cdd..32bb292 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@useflow/react", - "version": "0.3.1", + "version": "0.3.2", "description": "Type-safe, declarative multi-step flows for React", "author": "Brian Cheung (https://github.com/bcheung)", "license": "MIT",