@quenty/datastore 13.42.0 → 13.43.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 +6 -0
- package/package.json +2 -2
- package/src/Server/GameDataStoreService.lua +10 -2
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
|
+
# [13.43.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@13.42.0...@quenty/datastore@13.43.0) (2026-07-20)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- Datastore keys and error messages ([0fb1380](https://github.com/Quenty/NevermoreEngine/commit/0fb1380735d601b4a8ced180c38d3470aa1b1916))
|
|
11
|
+
|
|
6
12
|
# [13.42.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@13.41.0...@quenty/datastore@13.42.0) (2026-07-18)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/datastore",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.43.0",
|
|
4
4
|
"description": "Quenty's Datastore implementation for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d2d7ae433f3fa756e038522986144b4f5c616756"
|
|
54
54
|
}
|
|
@@ -25,6 +25,7 @@ export type GameDataStoreService = typeof(setmetatable(
|
|
|
25
25
|
_dataStorePromise: Promise.Promise<DataStore.DataStore>?,
|
|
26
26
|
_robloxDataStorePromise: Promise.Promise<any>?,
|
|
27
27
|
_bindToCloseService: any,
|
|
28
|
+
_key: string?,
|
|
28
29
|
},
|
|
29
30
|
{} :: typeof({ __index = GameDataStoreService })
|
|
30
31
|
))
|
|
@@ -107,8 +108,15 @@ function GameDataStoreService._promiseRobloxDataStore(self: GameDataStoreService
|
|
|
107
108
|
return self._robloxDataStorePromise
|
|
108
109
|
end
|
|
109
110
|
|
|
110
|
-
function GameDataStoreService.
|
|
111
|
-
|
|
111
|
+
function GameDataStoreService.SetDataStoreKey(self: GameDataStoreService, key: string): ()
|
|
112
|
+
assert(type(key) == "string", "Bad key")
|
|
113
|
+
assert(not self._dataStorePromise, "Cannot set key after datastore has been promised")
|
|
114
|
+
|
|
115
|
+
self._key = key
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
function GameDataStoreService._getKey(self: GameDataStoreService): string
|
|
119
|
+
return self._key or "version1"
|
|
112
120
|
end
|
|
113
121
|
|
|
114
122
|
function GameDataStoreService.Destroy(self: GameDataStoreService)
|