@rbxts/covenant 1.3.3 → 1.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/covenant",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "main": "src/init.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",
package/src/covenant.luau CHANGED
@@ -593,6 +593,7 @@ do
593
593
  local parentEntityTrackerComponent = self:worldInternalComponent()
594
594
  local parentComponent = self:worldInternalComponent()
595
595
  self:defineComponentNetworkBehavior(parentComponent, replicated, predictionValidator)
596
+ self:defineComponentNetworkBehavior(parentEntityTrackerComponent, replicated, predictionValidator)
596
597
  local queryParentComponent = self:worldQuery(parentComponent):cached()
597
598
  local willUpdate = true
598
599
  local function indicateUpdate()
@@ -686,9 +687,10 @@ do
686
687
  local key = _param_1.key
687
688
  local value = _param_1.value
688
689
  local childEntity = entityTracker[key]
689
- assert(childEntity ~= 0 and childEntity == childEntity and childEntity)
690
- local _arg0 = self:worldContains(childEntity)
690
+ local _arg0 = childEntity ~= nil
691
691
  assert(_arg0)
692
+ local _arg0_1 = self:worldContains(childEntity)
693
+ assert(_arg0_1)
692
694
  self:worldSet(childEntity, childIdentityComponent, value)
693
695
  end
694
696
  for _k, _v in entriesChanged do
@@ -700,9 +702,10 @@ do
700
702
  local _entityTracker = entityTracker
701
703
  local _key = key
702
704
  local childEntity = _entityTracker[_key]
703
- assert(childEntity ~= 0 and childEntity == childEntity and childEntity)
704
- local _arg0 = self:worldContains(childEntity)
705
+ local _arg0 = childEntity ~= nil
705
706
  assert(_arg0)
707
+ local _arg0_1 = self:worldContains(childEntity)
708
+ assert(_arg0_1)
706
709
  self:worldDelete(childEntity)
707
710
  local _entityTracker_1 = entityTracker
708
711
  local _key_1 = key
package/src/helpers.luau CHANGED
@@ -7,7 +7,7 @@ local function turnArrayWithIdentifierToMap(array, getIdentifier)
7
7
  local _value = value
8
8
  newMap[identifier] = _value
9
9
  end
10
- for _k, _v in pairs(array) do
10
+ for _k, _v in array do
11
11
  _callback(_v)
12
12
  end
13
13
  -- ▲ ReadonlyArray.forEach ▲