@quenty/rx 13.4.0 → 13.5.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.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@13.4.0...@quenty/rx@13.5.0) (2024-09-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Fx.defaultsTo() ensures emission of event at least once ([c03f1ef](https://github.com/Quenty/NevermoreEngine/commit/c03f1ef72a339d6196e3067c0dd44f9700e5ff85))
12
+
13
+
14
+
15
+
16
+
6
17
  # [13.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@13.3.0...@quenty/rx@13.4.0) (2024-08-09)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/rx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/rx",
3
- "version": "13.4.0",
3
+ "version": "13.5.0",
4
4
  "description": "Quenty's reactive library for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,18 +28,18 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@quenty/cancellabledelay": "^3.5.0",
31
- "@quenty/canceltoken": "^11.3.0",
32
- "@quenty/ducktype": "^5.3.0",
33
- "@quenty/loader": "^10.3.0",
34
- "@quenty/maid": "^3.2.0",
35
- "@quenty/promise": "^10.3.0",
36
- "@quenty/signal": "^7.3.0",
31
+ "@quenty/canceltoken": "^11.4.0",
32
+ "@quenty/ducktype": "^5.4.0",
33
+ "@quenty/loader": "^10.4.0",
34
+ "@quenty/maid": "^3.3.0",
35
+ "@quenty/promise": "^10.4.0",
36
+ "@quenty/signal": "^7.4.0",
37
37
  "@quenty/symbol": "^3.1.0",
38
38
  "@quenty/table": "^3.5.0",
39
- "@quenty/throttle": "^10.4.0"
39
+ "@quenty/throttle": "^10.5.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "ba466bdbc05c42fb607cf5e228c16339201d21d7"
44
+ "gitHead": "fb172906f3ee725269ec1e5f4daf9dca227e729d"
45
45
  }
package/src/Shared/Rx.lua CHANGED
@@ -665,6 +665,8 @@ end
665
665
  }):Subscribe(print) --> Hello
666
666
  ```
667
667
 
668
+ If empty (or failed) the the sub will fire with the value before it completes.
669
+
668
670
  @param value any
669
671
  @return (source: Observable) -> Observable
670
672
  ]=]
@@ -682,7 +684,16 @@ function Rx.defaultsTo(value)
682
684
  fired = true
683
685
  sub:Fire(...)
684
686
  end,
685
- sub:GetFailComplete()))
687
+ function(...)
688
+ fired = true
689
+ sub:Fire(value)
690
+ sub:Fail(...)
691
+ end,
692
+ function(...)
693
+ fired = true
694
+ sub:Fire(value)
695
+ sub:Complete(...)
696
+ end))
686
697
 
687
698
  if not fired then
688
699
  sub:Fire(value)