@quenty/datastore 8.4.0 → 8.4.1-canary.439.4c654fa.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,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
|
+
## [8.4.1-canary.439.4c654fa.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@8.4.0...@quenty/datastore@8.4.1-canary.439.4c654fa.0) (2024-02-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* DataStoreStage:StoreOnValueChange() can error ([79ba2fb](https://github.com/Quenty/NevermoreEngine/commit/79ba2fb15d33f8db73b7f2203910b58ef5565683))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [8.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@8.3.0...@quenty/datastore@8.4.0) (2024-01-08)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/datastore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/datastore",
|
|
3
|
-
"version": "8.4.0",
|
|
3
|
+
"version": "8.4.1-canary.439.4c654fa.0",
|
|
4
4
|
"description": "Quenty's Datastore implementation for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,21 +26,21 @@
|
|
|
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/promise": "
|
|
35
|
-
"@quenty/rx": "
|
|
36
|
-
"@quenty/servicebag": "
|
|
37
|
-
"@quenty/signal": "
|
|
38
|
-
"@quenty/symbol": "
|
|
39
|
-
"@quenty/table": "
|
|
40
|
-
"@quenty/valueobject": "
|
|
29
|
+
"@quenty/baseobject": "7.2.1-canary.439.4c654fa.0",
|
|
30
|
+
"@quenty/bindtocloseservice": "3.4.1-canary.439.4c654fa.0",
|
|
31
|
+
"@quenty/loader": "7.3.1-canary.439.4c654fa.0",
|
|
32
|
+
"@quenty/maid": "2.6.1-canary.439.4c654fa.0",
|
|
33
|
+
"@quenty/math": "2.5.0",
|
|
34
|
+
"@quenty/promise": "7.2.1-canary.439.4c654fa.0",
|
|
35
|
+
"@quenty/rx": "8.4.1-canary.439.4c654fa.0",
|
|
36
|
+
"@quenty/servicebag": "7.2.1-canary.439.4c654fa.0",
|
|
37
|
+
"@quenty/signal": "3.2.1-canary.439.4c654fa.0",
|
|
38
|
+
"@quenty/symbol": "2.2.1-canary.439.4c654fa.0",
|
|
39
|
+
"@quenty/table": "3.4.0",
|
|
40
|
+
"@quenty/valueobject": "8.4.1-canary.439.4c654fa.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "4c654faf9c66c5c9bcb277a24bf13c70719d3531"
|
|
46
46
|
}
|
|
@@ -588,6 +588,13 @@ function DataStoreStage:StoreOnValueChange(name, valueObj)
|
|
|
588
588
|
self:_storeAtKey(name, valueObj.Value)
|
|
589
589
|
end))
|
|
590
590
|
|
|
591
|
+
-- Hopefully this doesn't result in data-loss when writing as
|
|
592
|
+
-- the user leaves.
|
|
593
|
+
self._maid[maid] = maid
|
|
594
|
+
maid:GiveTask(function()
|
|
595
|
+
self._maid[maid] = nil
|
|
596
|
+
end)
|
|
597
|
+
|
|
591
598
|
return maid
|
|
592
599
|
end
|
|
593
600
|
|
|
@@ -27,8 +27,7 @@ function PlayerDataStoreService:Init(serviceBag)
|
|
|
27
27
|
-- External
|
|
28
28
|
self._bindToCloseService = self._serviceBag:GetService(require("BindToCloseService"))
|
|
29
29
|
|
|
30
|
-
self._started = Promise.new()
|
|
31
|
-
self._maid:GiveTask(self._started)
|
|
30
|
+
self._started = self._maid:Add(Promise.new())
|
|
32
31
|
|
|
33
32
|
self._dataStoreName = "PlayerData"
|
|
34
33
|
self._dataStoreScope = "SaveData"
|