@lvce-editor/editor-worker 19.71.5 → 19.71.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7709,7 +7709,10 @@ const wrapCommand$1 = (fn, preservesTypingCoalescing = false, returnState = true
7709
7709
  return returnState ? newEditor : undefined;
7710
7710
  }
7711
7711
  const newEditorWithDerivedState = await updateDerivedState(state, newEditor);
7712
- set$a(uid, state, newEditorWithDerivedState);
7712
+ // Another command can commit before the renderer consumes this edit.
7713
+ // Keep its last rendered baseline, including renders completed while we awaited derived state.
7714
+ const renderedState = get$8(uid)?.oldState ?? oldInstance.oldState;
7715
+ set$a(uid, renderedState, newEditorWithDerivedState);
7713
7716
  await dispose$3();
7714
7717
  if (editorDiagnosticEffect.isActive(state, newEditorWithDerivedState)) {
7715
7718
  void editorDiagnosticEffect.apply(newEditorWithDerivedState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.71.5",
3
+ "version": "19.71.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"