@quenty/rx 13.12.0 → 13.13.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [13.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@13.12.0...@quenty/rx@13.13.0) (2024-11-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Fix pending count ([7414df3](https://github.com/Quenty/NevermoreEngine/commit/7414df389c4d481673b0afee78fd6b20e332d8d2))
12
+
13
+
14
+
15
+
16
+
6
17
  # [13.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@13.11.1...@quenty/rx@13.12.0) (2024-11-06)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/rx",
3
- "version": "13.12.0",
3
+ "version": "13.13.0",
4
4
  "description": "Quenty's reactive library for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -35,11 +35,11 @@
35
35
  "@quenty/promise": "^10.8.0",
36
36
  "@quenty/signal": "^7.9.0",
37
37
  "@quenty/symbol": "^3.3.0",
38
- "@quenty/table": "^3.6.0",
38
+ "@quenty/table": "^3.7.0",
39
39
  "@quenty/throttle": "^10.8.1"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "00e6f71716216dd6ecbc8505ad898a1ab7f72756"
44
+ "gitHead": "451334becfa36a10b55fa53cbdd88091cdf9ddbf"
45
45
  }
package/src/Shared/Rx.lua CHANGED
@@ -1448,14 +1448,12 @@ function Rx.combineLatest(observables)
1448
1448
  assert(type(observables) == "table", "Bad observables")
1449
1449
 
1450
1450
  return Observable.new(function(sub)
1451
- local pending = 0
1452
1451
  local unset = 0
1453
1452
  local latest = {}
1454
1453
 
1455
1454
  -- Instead of caching this, use extra compute here
1456
1455
  for key, value in pairs(observables) do
1457
1456
  if Observable.isObservable(value) then
1458
- pending += 1
1459
1457
  unset += 1
1460
1458
  latest[key] = UNSET_VALUE
1461
1459
  else
@@ -1463,12 +1461,13 @@ function Rx.combineLatest(observables)
1463
1461
  end
1464
1462
  end
1465
1463
 
1466
- if pending == 0 then
1464
+ if unset == 0 then
1467
1465
  sub:Fire(latest)
1468
1466
  sub:Complete()
1469
1467
  return
1470
1468
  end
1471
1469
 
1470
+ local pending = unset
1472
1471
  local maid = Maid.new()
1473
1472
 
1474
1473
  local function failOnFirst(...)