Skip to content

Develop - #5

Merged
anuoua merged 7 commits into
mainfrom
develop
Jun 7, 2026
Merged

Develop#5
anuoua merged 7 commits into
mainfrom
develop

Conversation

@anuoua

@anuoua anuoua commented Jun 7, 2026

Copy link
Copy Markdown
Owner

No description provided.

anuoua added 7 commits May 27, 2026 09:38
… use #private

- Add TransactionInternal interface exposing engine-internal API
- Migrate _commit, _rollback, _rollbackActiveDescendants, _cleanupIfDone
  to true #private methods; expose classifyRollback as engine-internal
- Add finalize() to TransactionHandle (rollbackActiveDescendants + commit)
- Add commitAll() / rollbackAll() to TransactionalReducer
- Replace all engine-internal _rollbackActiveDescendants+_commit pairs
  with finalize(); use rollback()/classifyRollback() instead of
  internal methods where appropriate
- Update EN and ZH_CN README with new API docs
…ucer

BREAKING CHANGE: useTransactionalReducer now returns [state, engine]
instead of [state, api]. The second element is the TransactionalReducer
instance itself — use engine.state, engine.dispatch, engine.run, etc.
api.getDraft() is replaced by engine.state.
@anuoua
anuoua merged commit 7a4c1c9 into main Jun 7, 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