@quenty/marketplaceutils 11.20.1 → 11.21.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,12 @@
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
+ # [11.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@11.20.1...@quenty/marketplaceutils@11.21.0) (2026-07-14)
7
+
8
+ ### Features
9
+
10
+ - **marketplaceutils:** convert package to --!strict ([13671ec](https://github.com/Quenty/NevermoreEngine/commit/13671ec4352370464ddce6f2e0ee8bf815e8e01f))
11
+
6
12
  ## [11.20.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@11.20.0...@quenty/marketplaceutils@11.20.1) (2026-05-30)
7
13
 
8
14
  **Note:** Version bump only for package @quenty/marketplaceutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/marketplaceutils",
3
- "version": "11.20.1",
3
+ "version": "11.21.0",
4
4
  "description": "Provides utility methods for MarketplaceService",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -30,12 +30,12 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@quenty/loader": "10.11.0",
33
- "@quenty/memoize": "1.9.1",
33
+ "@quenty/memoize": "1.10.0",
34
34
  "@quenty/promise": "10.18.1",
35
35
  "@quenty/servicebag": "11.18.1"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "598b2b62b36bdcbdbbd56f7db10c399831cc6eba"
40
+ "gitHead": "13f0162f4971a77378e55e9b7236aea94f0dd3a8"
41
41
  }
@@ -1,4 +1,4 @@
1
- --!nonstrict
1
+ --!strict
2
2
  --[=[
3
3
  @class MarketplaceServiceCache
4
4
  ]=]
@@ -7,19 +7,37 @@ local require = require(script.Parent.loader).load(script)
7
7
 
8
8
  local MarketplaceUtils = require("MarketplaceUtils")
9
9
  local MemorizeUtils = require("MemorizeUtils")
10
+ local Promise = require("Promise")
10
11
  local ServiceBag = require("ServiceBag")
11
12
 
12
13
  local MarketplaceServiceCache = {}
13
14
  MarketplaceServiceCache.ServiceName = "MarketplaceServiceCache"
14
15
 
15
- function MarketplaceServiceCache:Init(serviceBag: ServiceBag.ServiceBag)
16
- assert(not self._serviceBag, "Already initialized")
16
+ export type MarketplaceServiceCache = typeof(setmetatable(
17
+ {} :: {
18
+ _serviceBag: ServiceBag.ServiceBag,
19
+ _promiseProductInfo: (
20
+ productId: number,
21
+ infoType: Enum.InfoType
22
+ ) -> Promise.Promise<MarketplaceUtils.AssetProductInfo | MarketplaceUtils.GamePassOrDeveloperProductInfo>,
23
+ },
24
+ {} :: typeof({ __index = MarketplaceServiceCache })
25
+ ))
26
+
27
+ function MarketplaceServiceCache.Init(self: MarketplaceServiceCache, serviceBag: ServiceBag.ServiceBag): ()
28
+ assert(not (self :: any)._serviceBag, "Already initialized")
17
29
  self._serviceBag = assert(serviceBag, "No serviceBag")
18
30
 
19
31
  self:_ensureInit()
20
32
  end
21
33
 
22
- function MarketplaceServiceCache:PromiseProductInfo(productId: number, infoType: Enum.InfoType)
34
+ function MarketplaceServiceCache.PromiseProductInfo(
35
+ self: MarketplaceServiceCache,
36
+ productId: number,
37
+ infoType: Enum.InfoType
38
+ ): Promise.Promise<
39
+ MarketplaceUtils.AssetProductInfo | MarketplaceUtils.GamePassOrDeveloperProductInfo
40
+ >
23
41
  assert(type(productId) == "number", "Bad productId")
24
42
 
25
43
  self:_ensureInit()
@@ -27,7 +45,7 @@ function MarketplaceServiceCache:PromiseProductInfo(productId: number, infoType:
27
45
  return self._promiseProductInfo(productId, infoType)
28
46
  end
29
47
 
30
- function MarketplaceServiceCache:_ensureInit()
48
+ function MarketplaceServiceCache._ensureInit(self: MarketplaceServiceCache): ()
31
49
  if self._promiseProductInfo then
32
50
  return
33
51
  end