@colyseus/schema 3.0.18 → 3.0.19
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 +2 -4
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +2 -4
- package/build/esm/index.mjs.map +1 -1
- package/build/umd/index.js +2 -4
- package/lib/decoder/DecodeOperation.js +0 -1
- package/lib/decoder/DecodeOperation.js.map +1 -1
- package/lib/encoder/ChangeTree.js +2 -3
- package/lib/encoder/ChangeTree.js.map +1 -1
- package/package.json +1 -1
- package/src/decoder/DecodeOperation.ts +0 -1
- package/src/encoder/ChangeTree.ts +2 -4
package/build/esm/index.mjs
CHANGED
|
@@ -1356,9 +1356,8 @@ class ChangeTree {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
key += `-${parentIndex}`;
|
|
1358
1358
|
this.isFiltered = parent[$changes].isFiltered // in case parent is already filtered
|
|
1359
|
-
|| this.root.types.parentFiltered[key]
|
|
1360
|
-
|
|
1361
|
-
// this.isFiltered = parentMetadata?.[$viewFieldIndexes]?.includes(parentIndex) || this.root.types.parentFiltered[key];
|
|
1359
|
+
|| this.root.types.parentFiltered[key]
|
|
1360
|
+
|| parentConstructor?.[Symbol.metadata]?.[$viewFieldIndexes]?.includes(parentIndex);
|
|
1362
1361
|
//
|
|
1363
1362
|
// TODO: refactor this!
|
|
1364
1363
|
//
|
|
@@ -1573,7 +1572,6 @@ function decodeValue(decoder, operation, ref, index, type, bytes, it, allChanges
|
|
|
1573
1572
|
while ((iter = entries.next()) && !iter.done) {
|
|
1574
1573
|
const [key, value] = iter.value;
|
|
1575
1574
|
// if value is a schema, remove its reference
|
|
1576
|
-
// FIXME: not sure if this is necessary, add more tests to confirm
|
|
1577
1575
|
if (typeof (value) === "object") {
|
|
1578
1576
|
previousRefId = $root.refIds.get(value);
|
|
1579
1577
|
$root.removeRef(previousRefId);
|