@colyseus/schema 4.0.20 → 4.0.21
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/index.cjs +2 -3
- package/build/index.cjs.map +1 -1
- package/build/index.js +2 -3
- package/build/index.mjs +2 -3
- package/build/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/encoder/ChangeTree.ts +2 -3
package/build/index.js
CHANGED
|
@@ -1370,14 +1370,13 @@
|
|
|
1370
1370
|
|| this.root.types.parentFiltered[key]
|
|
1371
1371
|
|| fieldHasViewTag;
|
|
1372
1372
|
//
|
|
1373
|
-
// "isFiltered" may not be
|
|
1373
|
+
// "isFiltered" may not be immediately available during `change()` due to the instance not being attached to the root yet.
|
|
1374
1374
|
// when it's available, we need to enqueue the "changes" changeset into the "filteredChanges" changeset.
|
|
1375
1375
|
//
|
|
1376
1376
|
if (this.isFiltered) {
|
|
1377
1377
|
this.isVisibilitySharedWithParent = (parentChangeTree.isFiltered &&
|
|
1378
1378
|
typeof (refType) !== "string" &&
|
|
1379
|
-
!fieldHasViewTag
|
|
1380
|
-
parentIsCollection);
|
|
1379
|
+
!fieldHasViewTag);
|
|
1381
1380
|
if (!this.filteredChanges) {
|
|
1382
1381
|
this.filteredChanges = createChangeSet();
|
|
1383
1382
|
this.allFilteredChanges = createChangeSet();
|
package/build/index.mjs
CHANGED
|
@@ -1364,14 +1364,13 @@ class ChangeTree {
|
|
|
1364
1364
|
|| this.root.types.parentFiltered[key]
|
|
1365
1365
|
|| fieldHasViewTag;
|
|
1366
1366
|
//
|
|
1367
|
-
// "isFiltered" may not be
|
|
1367
|
+
// "isFiltered" may not be immediately available during `change()` due to the instance not being attached to the root yet.
|
|
1368
1368
|
// when it's available, we need to enqueue the "changes" changeset into the "filteredChanges" changeset.
|
|
1369
1369
|
//
|
|
1370
1370
|
if (this.isFiltered) {
|
|
1371
1371
|
this.isVisibilitySharedWithParent = (parentChangeTree.isFiltered &&
|
|
1372
1372
|
typeof (refType) !== "string" &&
|
|
1373
|
-
!fieldHasViewTag
|
|
1374
|
-
parentIsCollection);
|
|
1373
|
+
!fieldHasViewTag);
|
|
1375
1374
|
if (!this.filteredChanges) {
|
|
1376
1375
|
this.filteredChanges = createChangeSet();
|
|
1377
1376
|
this.allFilteredChanges = createChangeSet();
|