@lvce-editor/editor-worker 19.60.0 → 19.60.1

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.
@@ -15792,7 +15792,7 @@ const applyRender = (oldState, newState, diffResult) => {
15792
15792
  return commands;
15793
15793
  };
15794
15794
 
15795
- const render2 = (uid, diffResult) => {
15795
+ const render2 = (uid, _diffResult) => {
15796
15796
  const editor = get$8(uid);
15797
15797
  if (!editor) {
15798
15798
  return [];
@@ -15801,6 +15801,8 @@ const render2 = (uid, diffResult) => {
15801
15801
  newState,
15802
15802
  oldState
15803
15803
  } = editor;
15804
+ // Diagnostics can change after the caller calculated its diff in a separate RPC.
15805
+ const diffResult = diff(oldState, newState);
15804
15806
  set$8(uid, newState, newState);
15805
15807
  const commands = applyRender(oldState, newState, diffResult);
15806
15808
  return commands;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.60.0",
3
+ "version": "19.60.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"