@colyseus/schema 3.0.41 → 3.0.42
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.
- package/build/cjs/index.js +7 -0
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +7 -0
- package/build/esm/index.mjs.map +1 -1
- package/build/umd/index.js +7 -0
- package/lib/encoder/StateView.js +7 -0
- package/lib/encoder/StateView.js.map +1 -1
- package/package.json +1 -1
- package/src/encoder/StateView.ts +8 -0
package/build/esm/index.mjs
CHANGED
|
@@ -5016,6 +5016,13 @@ class StateView {
|
|
|
5016
5016
|
changes = {};
|
|
5017
5017
|
this.changes.set(parentChangeTree.refId, changes);
|
|
5018
5018
|
}
|
|
5019
|
+
else if (changes[changeTree.parentIndex] === OPERATION.ADD) {
|
|
5020
|
+
//
|
|
5021
|
+
// SAME PATCH ADD + REMOVE:
|
|
5022
|
+
// The 'changes' of deleted structure should be ignored.
|
|
5023
|
+
//
|
|
5024
|
+
this.changes.delete(changeTree.refId);
|
|
5025
|
+
}
|
|
5019
5026
|
// DELETE / DELETE BY REF ID
|
|
5020
5027
|
changes[changeTree.parentIndex] = OPERATION.DELETE;
|
|
5021
5028
|
// Remove child schema from visible set
|