@quenty/memorystoreutils 6.10.0 → 6.10.1

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,14 @@
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
+ ## [6.10.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/memorystoreutils@6.10.0...@quenty/memorystoreutils@6.10.1) (2025-03-21)
7
+
8
+ **Note:** Version bump only for package @quenty/memorystoreutils
9
+
10
+
11
+
12
+
13
+
6
14
  # [6.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/memorystoreutils@6.9.0...@quenty/memorystoreutils@6.10.0) (2025-02-18)
7
15
 
8
16
  **Note:** Version bump only for package @quenty/memorystoreutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/memorystoreutils",
3
- "version": "6.10.0",
3
+ "version": "6.10.1",
4
4
  "description": "Utility functions for memory store srevice",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@quenty/loader": "^10.8.0",
30
- "@quenty/promise": "^10.10.0"
30
+ "@quenty/promise": "^10.10.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@quenty/loader": "file:../loader"
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "184a407d8d7366c39009444c3c9a7023cb176471"
38
+ "gitHead": "6b7c3e15e60cdb185986207b574e2b5591261e7a"
39
39
  }
@@ -21,7 +21,7 @@ local DEBUG_QUEUE = false
21
21
  @param priority number?
22
22
  @return Promise
23
23
  ]=]
24
- function MemoryStoreUtils.promiseAdd(queue, value, expirationSeconds, priority)
24
+ function MemoryStoreUtils.promiseAdd(queue: MemoryStoreQueue, value: any, expirationSeconds: number, priority: number?)
25
25
  assert(typeof(queue) == "Instance" and queue:IsA("MemoryStoreQueue"), "Bad queue")
26
26
  assert(type(expirationSeconds) == "number", "Bad expirationSeconds")
27
27
  assert(type(priority) == "number" or priority == nil, "Bad priority")
@@ -53,7 +53,12 @@ end
53
53
  @param waitTimeout number
54
54
  @return Promise<(any?, string?)>
55
55
  ]=]
56
- function MemoryStoreUtils.promiseRead(queue, count, allOrNothing, waitTimeout)
56
+ function MemoryStoreUtils.promiseRead(
57
+ queue: MemoryStoreQueue,
58
+ count: number,
59
+ allOrNothing: boolean,
60
+ waitTimeout: number
61
+ )
57
62
  assert(typeof(queue) == "Instance" and queue:IsA("MemoryStoreQueue"), "Bad queue")
58
63
  assert(type(count) == "number", "Bad count")
59
64
  assert(type(allOrNothing) == "boolean", "Bad allOrNothing")
@@ -69,7 +74,6 @@ function MemoryStoreUtils.promiseRead(queue, count, allOrNothing, waitTimeout)
69
74
  values, removeId = queue:ReadAsync(count, allOrNothing, waitTimeout)
70
75
  end)
71
76
 
72
-
73
77
  if not ok then
74
78
  if DEBUG_QUEUE then
75
79
  print("[MemoryStoreUtils.promiseRead] - Read from queue", ok, values, removeId)
@@ -93,7 +97,7 @@ end
93
97
  @param id string
94
98
  @return Promise
95
99
  ]=]
96
- function MemoryStoreUtils.promiseRemove(queue, id)
100
+ function MemoryStoreUtils.promiseRemove(queue: MemoryStoreQueue, id: string)
97
101
  assert(typeof(queue) == "Instance" and queue:IsA("MemoryStoreQueue"), "Bad queue")
98
102
  assert(type(id) == "string", "Bad id")
99
103
 
@@ -117,4 +121,4 @@ function MemoryStoreUtils.promiseRemove(queue, id)
117
121
  end)
118
122
  end
119
123
 
120
- return MemoryStoreUtils
124
+ return MemoryStoreUtils