@quenty/avatareditorutils 7.5.0 → 7.6.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,18 @@
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
+ # [7.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/avatareditorutils@7.5.0...@quenty/avatareditorutils@7.6.0) (2024-09-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add AccessoryTypeUtils ([dd92f34](https://github.com/Quenty/NevermoreEngine/commit/dd92f349d0331a92921046cdb3e446dad8052f10))
12
+ * Add CatalogSearchServiceCache ([b71203a](https://github.com/Quenty/NevermoreEngine/commit/b71203aabeabe614df60da1e74d7019b11525e8b))
13
+
14
+
15
+
16
+
17
+
6
18
  # [7.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/avatareditorutils@7.4.0...@quenty/avatareditorutils@7.5.0) (2024-08-09)
7
19
 
8
20
  **Note:** Version bump only for package @quenty/avatareditorutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/avatareditorutils",
3
- "version": "7.5.0",
3
+ "version": "7.6.0",
4
4
  "description": "Provides utility functions to work with the Roblox AvatarEditorService",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,16 +25,17 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/brio": "^14.4.0",
28
+ "@quenty/brio": "^14.5.0",
29
29
  "@quenty/enumutils": "^3.2.0",
30
- "@quenty/loader": "^10.3.0",
31
- "@quenty/maid": "^3.2.0",
32
- "@quenty/promise": "^10.3.0",
33
- "@quenty/rx": "^13.4.0",
30
+ "@quenty/loader": "^10.4.0",
31
+ "@quenty/maid": "^3.3.0",
32
+ "@quenty/memoize": "^1.2.0",
33
+ "@quenty/promise": "^10.4.0",
34
+ "@quenty/rx": "^13.5.0",
34
35
  "@quenty/symbol": "^3.1.0"
35
36
  },
36
37
  "publishConfig": {
37
38
  "access": "public"
38
39
  },
39
- "gitHead": "ba466bdbc05c42fb607cf5e228c16339201d21d7"
40
+ "gitHead": "fb172906f3ee725269ec1e5f4daf9dca227e729d"
40
41
  }
@@ -100,22 +100,6 @@ function AvatarEditorUtils.promiseItemDetails(itemId: number, itemType: AvatarIt
100
100
  end)
101
101
  end
102
102
 
103
- function AvatarEditorUtils.tryGetAccessoryType(avatarAssetType)
104
- if not avatarAssetType then
105
- return nil, "No avatarAssetType"
106
- end
107
-
108
- local accessoryType
109
- local ok, err = pcall(function()
110
- accessoryType = AvatarEditorService:GetAccessoryType(avatarAssetType)
111
- end)
112
- if not ok then
113
- return nil, err or "Failed to GetAccessoryType from avatarAssetType"
114
- end
115
-
116
- return accessoryType
117
- end
118
-
119
103
  --[=[
120
104
  Gets the item details for a list of items at once. More efficient than [AvatarEditorService.GetItemDetails]
121
105
  if you need to get all the item details of a list.
@@ -0,0 +1,29 @@
1
+ --[=[
2
+ @class CatalogSearchServiceCache
3
+ ]=]
4
+
5
+ local require = require(script.Parent.loader).load(script)
6
+
7
+ local MemorizeUtils = require("MemorizeUtils")
8
+ local AvatarEditorUtils = require("AvatarEditorUtils")
9
+
10
+ local CatalogSearchServiceCache = {}
11
+ CatalogSearchServiceCache.ServiceName = "CatalogSearchServiceCache"
12
+
13
+ function CatalogSearchServiceCache:Init(serviceBag)
14
+ assert(not self._serviceBag, "Already initialized")
15
+ self._serviceBag = assert(serviceBag, "No serviceBag")
16
+
17
+ self._promiseSearchCatalog = MemorizeUtils.memoize(function(params)
18
+ return AvatarEditorUtils.promiseSearchCatalog(params)
19
+ end)
20
+
21
+ end
22
+
23
+
24
+ function CatalogSearchServiceCache:PromiseSearchCatalog(params)
25
+ return self._promiseSearchCatalog(params)
26
+ end
27
+
28
+
29
+ return CatalogSearchServiceCache