Skip to content

Add acceptTrackedChangesInDoc: one accept request, no listing - #67

Merged
aloth merged 2 commits into
aloth:mainfrom
fredericosantos:feat/accept-in-doc
Nov 15, 2026
Merged

aloth merged 2 commits into
aloth:mainfrom
fredericosantos:feat/accept-in-doc

Conversation

@fredericosantos

Copy link
Copy Markdown
Contributor

acceptTrackedChanges reads the whole project before (to resolve the ids) and after (to check they're gone). That's right for the CLI, but it costs two passes over every doc per accept. An editor integration that already holds the changes with their doc id, and re-reads the project after every write anyway, pays that twice for nothing.

Change

acceptTrackedChangesInDoc(projectId, docId, ids) sends just the editor's accept request for one doc. acceptTrackedChanges now calls it for each doc, so the request is built in one place; its behavior doesn't change.

Tests

npm test goes from 240 to 241. The new test checks the single POST and that no doc is joined. The existing acceptTrackedChanges tests pass unchanged. Lint is unchanged. CHANGELOG entry included.

@aloth
aloth merged commit 327f70a into aloth:main Nov 15, 2026
2 checks passed
@aloth

aloth commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Thanks, merged. acceptTrackedChanges still checks before and after, so the CLI behaves as before. Ships in 0.17.0.

Each merged PR added its own [Unreleased] section to the CHANGELOG, so I combined the entries.

aloth added a commit that referenced this pull request Nov 15, 2026
Set version 0.17.0 in package.json, package-lock.json, CITATION.cff and server.json, and fold the Unreleased CHANGELOG entries of #63, #64, #65 and #67 into the 0.17.0 section dated 2026-11-15.
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.

2 participants