@quenty/datastore 8.4.0 → 9.0.0-canary.439.eb597ee.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
+ # [9.0.0-canary.439.eb597ee.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@8.4.0...@quenty/datastore@9.0.0-canary.439.eb597ee.0) (2024-01-17)
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": "9.0.0-canary.439.eb597ee.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": "^7.2.0",
30
- "@quenty/bindtocloseservice": "^3.4.0",
31
- "@quenty/loader": "^7.3.0",
32
- "@quenty/maid": "^2.6.0",
33
- "@quenty/math": "^2.5.0",
34
- "@quenty/promise": "^7.2.0",
35
- "@quenty/rx": "^8.4.0",
36
- "@quenty/servicebag": "^7.2.0",
37
- "@quenty/signal": "^3.2.0",
38
- "@quenty/symbol": "^2.2.0",
39
- "@quenty/table": "^3.4.0",
40
- "@quenty/valueobject": "^8.4.0"
29
+ "@quenty/baseobject": "8.0.0-canary.439.eb597ee.0",
30
+ "@quenty/bindtocloseservice": "4.0.0-canary.439.eb597ee.0",
31
+ "@quenty/loader": "8.0.0-canary.439.eb597ee.0",
32
+ "@quenty/maid": "2.6.0",
33
+ "@quenty/math": "2.5.0",
34
+ "@quenty/promise": "8.0.0-canary.439.eb597ee.0",
35
+ "@quenty/rx": "9.0.0-canary.439.eb597ee.0",
36
+ "@quenty/servicebag": "8.0.0-canary.439.eb597ee.0",
37
+ "@quenty/signal": "4.0.0-canary.439.eb597ee.0",
38
+ "@quenty/symbol": "3.0.0-canary.439.eb597ee.0",
39
+ "@quenty/table": "3.4.0",
40
+ "@quenty/valueobject": "9.0.0-canary.439.eb597ee.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "075fb03a03f12ade8758f667767ba738204e0c4b"
45
+ "gitHead": "eb597ee01e62e4dd91190bb7abd1d1404652d5ff"
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"