@quenty/gameproductservice 8.3.1 → 8.4.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
+ # [8.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/gameproductservice@8.3.1...@quenty/gameproductservice@8.4.0) (2023-12-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * Support GameProductServiceClient not having a local player ([c9fd7a6](https://github.com/Quenty/NevermoreEngine/commit/c9fd7a684d3295fc62a7cfd34474642a2a51a430))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [8.3.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/gameproductservice@8.3.0...@quenty/gameproductservice@8.3.1) (2023-10-28)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/gameproductservice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/gameproductservice",
3
- "version": "8.3.1",
3
+ "version": "8.4.0",
4
4
  "description": "Generalized monetization system for handling products and purchases correctly.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,30 +27,31 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@quenty/attributeutils": "^9.1.1",
31
- "@quenty/baseobject": "^7.0.0",
32
- "@quenty/binder": "^9.1.1",
33
- "@quenty/brio": "^9.1.1",
30
+ "@quenty/attributeutils": "^9.2.0",
31
+ "@quenty/baseobject": "^7.1.0",
32
+ "@quenty/binder": "^9.2.0",
33
+ "@quenty/brio": "^9.2.0",
34
34
  "@quenty/enumutils": "^3.1.0",
35
- "@quenty/gameconfig": "^6.3.1",
36
- "@quenty/instanceutils": "^8.1.1",
37
- "@quenty/loader": "^7.0.0",
35
+ "@quenty/gameconfig": "^6.4.0",
36
+ "@quenty/instanceutils": "^8.2.0",
37
+ "@quenty/loader": "^7.1.0",
38
38
  "@quenty/maid": "^2.6.0",
39
- "@quenty/marketplaceutils": "^7.0.0",
40
- "@quenty/observablecollection": "^6.2.1",
41
- "@quenty/playerbinder": "^9.1.1",
42
- "@quenty/promise": "^7.0.0",
43
- "@quenty/promisemaid": "^2.0.0",
44
- "@quenty/receiptprocessing": "^2.1.1",
45
- "@quenty/remoting": "^7.1.1",
46
- "@quenty/rx": "^8.1.1",
47
- "@quenty/rxbinderutils": "^9.1.1",
48
- "@quenty/servicebag": "^7.0.0",
49
- "@quenty/signal": "^3.0.0",
50
- "@quenty/statestack": "^9.1.1",
39
+ "@quenty/marketplaceutils": "^7.1.0",
40
+ "@quenty/observablecollection": "^6.3.0",
41
+ "@quenty/playerbinder": "^9.2.0",
42
+ "@quenty/playerutils": "^3.3.0",
43
+ "@quenty/promise": "^7.1.0",
44
+ "@quenty/promisemaid": "^2.1.0",
45
+ "@quenty/receiptprocessing": "^2.2.0",
46
+ "@quenty/remoting": "^7.2.0",
47
+ "@quenty/rx": "^8.2.0",
48
+ "@quenty/rxbinderutils": "^9.2.0",
49
+ "@quenty/servicebag": "^7.1.0",
50
+ "@quenty/signal": "^3.1.0",
51
+ "@quenty/statestack": "^9.2.0",
51
52
  "@quenty/string": "^3.1.0",
52
- "@quenty/table": "^3.3.0",
53
- "@quenty/valueobject": "^8.1.1"
53
+ "@quenty/table": "^3.4.0",
54
+ "@quenty/valueobject": "^8.2.0"
54
55
  },
55
- "gitHead": "440aca7ce2b50b74317ee05fdc0b8d1e58001af3"
56
+ "gitHead": "2c2dbbc0cb2fbb46b4f3270c559c63890fe18b26"
56
57
  }
@@ -22,6 +22,8 @@ local RxBinderUtils = require("RxBinderUtils")
22
22
  local Signal = require("Signal")
23
23
  local GameProductServiceHelper = require("GameProductServiceHelper")
24
24
  local GameConfigAssetTypeUtils = require("GameConfigAssetTypeUtils")
25
+ local RxPlayerUtils = require("RxPlayerUtils")
26
+ local RxBrioUtils = require("RxBrioUtils")
25
27
 
26
28
  local GameProductServiceClient = {}
27
29
  GameProductServiceClient.ServiceName = "GameProductServiceClient"
@@ -62,7 +64,11 @@ end
62
64
  Starts the service. Should be done via [ServiceBag]
63
65
  ]=]
64
66
  function GameProductServiceClient:Start()
65
- self._maid:GiveTask(RxBinderUtils.observeBoundClassBrio(self._binders.PlayerProductManager, Players.LocalPlayer):Subscribe(function(brio)
67
+ self._maid:GiveTask(RxPlayerUtils.observeLocalPlayerBrio():Pipe({
68
+ RxBrioUtils.switchMapBrio(function(localPlayer)
69
+ return RxBinderUtils.observeBoundClassBrio(self._binders.PlayerProductManager, localPlayer)
70
+ end)
71
+ }):Subscribe(function(brio)
66
72
  if brio:IsDead() then
67
73
  return
68
74
  end