@quenty/saveslot 1.2.0 → 1.3.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 +10 -0
- package/package.json +7 -7
- package/src/Server/Binders/HasSaveSlots.lua +11 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
# [1.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/saveslot@1.2.1...@quenty/saveslot@1.3.0) (2026-07-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/saveslot
|
|
9
|
+
|
|
10
|
+
## [1.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/saveslot@1.2.0...@quenty/saveslot@1.2.1) (2026-06-20)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- Flush deletions ([ad6c821](https://github.com/Quenty/NevermoreEngine/commit/ad6c821ac21b12db120c01e02d4f2a95d3c10616))
|
|
15
|
+
|
|
6
16
|
# [1.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/saveslot@1.1.2...@quenty/saveslot@1.2.0) (2026-06-10)
|
|
7
17
|
|
|
8
18
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/saveslot",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "PlayerDataStoreService wrapper for save slots",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@quenty/adorneedata": "7.34.1",
|
|
32
32
|
"@quenty/baseobject": "10.13.0",
|
|
33
|
-
"@quenty/binder": "14.
|
|
33
|
+
"@quenty/binder": "14.37.0",
|
|
34
34
|
"@quenty/brio": "14.30.1",
|
|
35
|
-
"@quenty/cmdrservice": "13.
|
|
36
|
-
"@quenty/datastore": "13.
|
|
35
|
+
"@quenty/cmdrservice": "13.46.0",
|
|
36
|
+
"@quenty/datastore": "13.40.0",
|
|
37
37
|
"@quenty/instanceutils": "13.30.1",
|
|
38
38
|
"@quenty/loader": "10.11.0",
|
|
39
39
|
"@quenty/maid": "3.9.0",
|
|
40
|
-
"@quenty/playerbinder": "14.
|
|
40
|
+
"@quenty/playerbinder": "14.37.0",
|
|
41
41
|
"@quenty/promise": "10.18.1",
|
|
42
42
|
"@quenty/propertyvalue": "7.30.1",
|
|
43
43
|
"@quenty/remoting": "12.32.1",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@quenty/servicebag": "11.18.1",
|
|
46
46
|
"@quenty/signal": "7.13.1",
|
|
47
47
|
"@quenty/table": "3.9.2",
|
|
48
|
-
"@quenty/tie": "10.
|
|
48
|
+
"@quenty/tie": "10.41.0",
|
|
49
49
|
"@quenty/valueobject": "13.31.1"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "13f0162f4971a77378e55e9b7236aea94f0dd3a8"
|
|
55
55
|
}
|
|
@@ -207,9 +207,10 @@ function HasSaveSlots.PromiseDeleteSlot(self: HasSaveSlots, slotId: SaveSlotData
|
|
|
207
207
|
|
|
208
208
|
-- Wipe default slot
|
|
209
209
|
local slotIndex = SaveSlotData.SlotIndex:Get(slot)
|
|
210
|
+
local deletePromise = nil
|
|
210
211
|
|
|
211
212
|
if slotIndex == SaveSlotConstants.DEFAULT_SLOT_INDEX then
|
|
212
|
-
|
|
213
|
+
deletePromise = self._dataStore:PromiseKeyList():Then(function(keys)
|
|
213
214
|
for _, key in keys do
|
|
214
215
|
if key ~= SaveSlotConstants.SYSTEM_STORE_KEY then
|
|
215
216
|
self._dataStore:Delete(key)
|
|
@@ -217,11 +218,17 @@ function HasSaveSlots.PromiseDeleteSlot(self: HasSaveSlots, slotId: SaveSlotData
|
|
|
217
218
|
end
|
|
218
219
|
self._metadataStore:Delete(slotId)
|
|
219
220
|
end)
|
|
221
|
+
else
|
|
222
|
+
-- Or delete slot from substore
|
|
223
|
+
self._systemStore:GetSubStore(SaveSlotConstants.SLOT_STORE_KEY):Delete(slotId)
|
|
224
|
+
self._metadataStore:Delete(slotId)
|
|
225
|
+
deletePromise = (Promise :: any).resolved()
|
|
220
226
|
end
|
|
221
227
|
|
|
222
|
-
--
|
|
223
|
-
|
|
224
|
-
|
|
228
|
+
-- Flush the deletion to prevent stale reads
|
|
229
|
+
return deletePromise:Then(function()
|
|
230
|
+
return self._dataStore:Save()
|
|
231
|
+
end)
|
|
225
232
|
end)
|
|
226
233
|
end
|
|
227
234
|
|