@quenty/datastore 13.23.0 → 13.23.1-canary.0eb85f3.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 +11 -0
- package/package.json +16 -16
- package/src/Server/DataStore.lua +8 -1
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.23.1-canary.0eb85f3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@13.23.0...@quenty/datastore@13.23.1-canary.0eb85f3.0) (2025-08-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix new player data ([0eb85f3](https://github.com/Quenty/NevermoreEngine/commit/0eb85f31214e6ea7a7d5a2ea954fe120aa073c2c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [13.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@13.22.1...@quenty/datastore@13.23.0) (2025-08-29)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/datastore",
|
|
3
|
-
"version": "13.23.0",
|
|
3
|
+
"version": "13.23.1-canary.0eb85f3.0",
|
|
4
4
|
"description": "Quenty's Datastore implementation for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/baseobject": "
|
|
30
|
-
"@quenty/bindtocloseservice": "
|
|
31
|
-
"@quenty/loader": "
|
|
32
|
-
"@quenty/maid": "
|
|
33
|
-
"@quenty/math": "
|
|
34
|
-
"@quenty/pagesutils": "
|
|
35
|
-
"@quenty/promise": "
|
|
36
|
-
"@quenty/promisemaid": "
|
|
37
|
-
"@quenty/rx": "
|
|
38
|
-
"@quenty/servicebag": "
|
|
39
|
-
"@quenty/signal": "
|
|
40
|
-
"@quenty/symbol": "
|
|
41
|
-
"@quenty/table": "
|
|
42
|
-
"@quenty/valueobject": "
|
|
29
|
+
"@quenty/baseobject": "10.9.0",
|
|
30
|
+
"@quenty/bindtocloseservice": "8.19.0",
|
|
31
|
+
"@quenty/loader": "10.9.0",
|
|
32
|
+
"@quenty/maid": "3.5.0",
|
|
33
|
+
"@quenty/math": "2.7.3",
|
|
34
|
+
"@quenty/pagesutils": "5.13.0",
|
|
35
|
+
"@quenty/promise": "10.12.0",
|
|
36
|
+
"@quenty/promisemaid": "5.12.0",
|
|
37
|
+
"@quenty/rx": "13.19.0",
|
|
38
|
+
"@quenty/servicebag": "11.13.1",
|
|
39
|
+
"@quenty/signal": "7.11.1",
|
|
40
|
+
"@quenty/symbol": "3.5.0",
|
|
41
|
+
"@quenty/table": "3.8.0",
|
|
42
|
+
"@quenty/valueobject": "13.19.0"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "0eb85f31214e6ea7a7d5a2ea954fe120aa073c2c"
|
|
48
48
|
}
|
package/src/Server/DataStore.lua
CHANGED
|
@@ -538,7 +538,7 @@ function DataStore._promiseGetAsyncNoCache(self: DataStore): Promise.Promise<()>
|
|
|
538
538
|
print(string.format("DataStorePromises.updateAsync(%q) -> Got ", tostring(self._key)), data)
|
|
539
539
|
end
|
|
540
540
|
|
|
541
|
-
if data.lock then
|
|
541
|
+
if type(data) == "table" and data.lock then
|
|
542
542
|
local isInvalidLock = false
|
|
543
543
|
if type(data.lock) == "number" then
|
|
544
544
|
local timeElapsed = os.time() - data.lock
|
|
@@ -570,6 +570,13 @@ function DataStore._promiseGetAsyncNoCache(self: DataStore): Promise.Promise<()>
|
|
|
570
570
|
-- TODO: Retry
|
|
571
571
|
loadPromise:Resolve(data)
|
|
572
572
|
|
|
573
|
+
if data == nil then
|
|
574
|
+
data = {}
|
|
575
|
+
elseif type(data) ~= "table" then
|
|
576
|
+
warn("[DataStore] - Data session locking is not available for non-table entries")
|
|
577
|
+
return data, userIdList, metadata
|
|
578
|
+
end
|
|
579
|
+
|
|
573
580
|
data.lock = os.time()
|
|
574
581
|
|
|
575
582
|
return data, userIdList, metadata
|