@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 CHANGED
@@ -1366,14 +1366,13 @@ class ChangeTree {
1366
1366
  || this.root.types.parentFiltered[key]
1367
1367
  || fieldHasViewTag;
1368
1368
  //
1369
- // "isFiltered" may not be imedialely available during `change()` due to the instance not being attached to the root yet.
1369
+ // "isFiltered" may not be immediately available during `change()` due to the instance not being attached to the root yet.
1370
1370
  // when it's available, we need to enqueue the "changes" changeset into the "filteredChanges" changeset.
1371
1371
  //
1372
1372
  if (this.isFiltered) {
1373
1373
  this.isVisibilitySharedWithParent = (parentChangeTree.isFiltered &&
1374
1374
  typeof (refType) !== "string" &&
1375
- !fieldHasViewTag &&
1376
- parentIsCollection);
1375
+ !fieldHasViewTag);
1377
1376
  if (!this.filteredChanges) {
1378
1377
  this.filteredChanges = createChangeSet();
1379
1378
  this.allFilteredChanges = createChangeSet();