@quenty/datastore 9.0.0 → 10.0.1-canary.444.4f02c27.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,69 @@
|
|
|
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
|
+
## [10.0.1-canary.444.4f02c27.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@10.0.0...@quenty/datastore@10.0.1-canary.444.4f02c27.0) (2024-02-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix bootstrap of test environments and loader samples ([441e4a9](https://github.com/Quenty/NevermoreEngine/commit/441e4a90d19fcc203da2fdedc08e532c20d52f99))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [10.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@9.0.0...@quenty/datastore@10.0.0) (2024-02-13)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* New loader (breaking changes), fixing loader issues ([#439](https://github.com/Quenty/NevermoreEngine/issues/439)) ([3534345](https://github.com/Quenty/NevermoreEngine/commit/353434522918812953bd9f13fece73e27a4d034d))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### BREAKING CHANGES
|
|
26
|
+
|
|
27
|
+
* Standard loader
|
|
28
|
+
|
|
29
|
+
Adds new loader version which replicates full structure instead of some partial structure. This allows us to have hot-reloading (in the future), as well as generally do less computation, handle dependencies more carefully, and other changes.
|
|
30
|
+
|
|
31
|
+
This means you'll need to change you how require client-side modules, as we export a simple `loader` module instead of all modules available.
|
|
32
|
+
|
|
33
|
+
Signed-off-by: James Onnen <jonnen0@gmail.com>
|
|
34
|
+
|
|
35
|
+
* fix: Fix missing dependency in ResetService
|
|
36
|
+
|
|
37
|
+
* feat: Add RxPhysicsUtils.observePartMass
|
|
38
|
+
|
|
39
|
+
* fix: Fix package discovery for games
|
|
40
|
+
|
|
41
|
+
* feat: Add UIAlignmentUtils.verticalToHorizontalAlignment(verticalAlignment) and UIAlignmentUtils.horizontalToVerticalAlignment(horizontalAlignment)
|
|
42
|
+
|
|
43
|
+
* feat: AdorneeData:InitAttributes() does not require data as a secondparameter
|
|
44
|
+
|
|
45
|
+
* ci: Upgrade to new rojo 7.4.0
|
|
46
|
+
|
|
47
|
+
* fix: Update loader to handle hoarcekat properly
|
|
48
|
+
|
|
49
|
+
* docs: Fix spacing in Maid
|
|
50
|
+
|
|
51
|
+
* fix: Add new ragdoll constants
|
|
52
|
+
|
|
53
|
+
* fix: Compress influxDB sends
|
|
54
|
+
|
|
55
|
+
* style: Errors use string.format
|
|
56
|
+
|
|
57
|
+
* fix: Handle motor animations
|
|
58
|
+
|
|
59
|
+
* ci: Upgrade rojo version
|
|
60
|
+
|
|
61
|
+
* feat!: Maid no longer is includd in ValueObject.Changed event
|
|
62
|
+
|
|
63
|
+
* docs: Fix docs
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
6
69
|
# [9.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@8.4.0...@quenty/datastore@9.0.0) (2024-01-10)
|
|
7
70
|
|
|
8
71
|
**Note:** Version bump only for package @quenty/datastore
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014-
|
|
3
|
+
Copyright (c) 2014-2024 James Onnen (Quenty)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/datastore",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1-canary.444.4f02c27.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": "8.0.1-canary.444.4f02c27.0",
|
|
30
|
+
"@quenty/bindtocloseservice": "5.0.1-canary.444.4f02c27.0",
|
|
31
|
+
"@quenty/loader": "8.0.1-canary.444.4f02c27.0",
|
|
32
|
+
"@quenty/maid": "3.0.0",
|
|
33
|
+
"@quenty/math": "2.5.0",
|
|
34
|
+
"@quenty/promise": "8.0.1-canary.444.4f02c27.0",
|
|
35
|
+
"@quenty/rx": "10.0.1-canary.444.4f02c27.0",
|
|
36
|
+
"@quenty/servicebag": "9.0.1-canary.444.4f02c27.0",
|
|
37
|
+
"@quenty/signal": "5.0.1-canary.444.4f02c27.0",
|
|
38
|
+
"@quenty/symbol": "3.0.0",
|
|
39
|
+
"@quenty/table": "3.4.0",
|
|
40
|
+
"@quenty/valueobject": "10.0.1-canary.444.4f02c27.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "4f02c27e96314724c58778e8c113c0d362e16ae4"
|
|
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"
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
@class ClientMain
|
|
3
3
|
]]
|
|
4
4
|
|
|
5
|
-
local
|
|
5
|
+
local loader = game:GetService("ReplicatedStorage"):WaitForChild("datastore"):WaitForChild("loader")
|
|
6
|
+
local require = require(loader).bootstrapGame(loader.Parent)
|
|
6
7
|
|
|
7
|
-
local serviceBag = require(
|
|
8
|
+
local serviceBag = require("ServiceBag").new()
|
|
8
9
|
|
|
9
10
|
serviceBag:Init()
|
|
10
11
|
serviceBag:Start()
|
|
@@ -6,19 +6,19 @@ local ServerScriptService = game:GetService("ServerScriptService")
|
|
|
6
6
|
local HttpService = game:GetService("HttpService")
|
|
7
7
|
|
|
8
8
|
local loader = ServerScriptService:FindFirstChild("LoaderUtils", true).Parent
|
|
9
|
-
local
|
|
9
|
+
local require = require(loader).bootstrapGame(ServerScriptService.datastore)
|
|
10
10
|
|
|
11
|
-
local Maid = require(
|
|
12
|
-
local Promise = require(
|
|
11
|
+
local Maid = require("Maid")
|
|
12
|
+
local Promise = require("Promise")
|
|
13
13
|
|
|
14
14
|
local TURN_TIME = 8
|
|
15
15
|
|
|
16
16
|
local function spinUpGameCopy(prefix)
|
|
17
17
|
assert(type(prefix) == "string", "Bad prefix")
|
|
18
18
|
|
|
19
|
-
local serviceBag = require(
|
|
20
|
-
serviceBag:GetService(require(
|
|
21
|
-
serviceBag:GetService(require(
|
|
19
|
+
local serviceBag = require("ServiceBag").new()
|
|
20
|
+
serviceBag:GetService(require("GameDataStoreService"))
|
|
21
|
+
serviceBag:GetService(require("PlayerDataStoreService"))
|
|
22
22
|
|
|
23
23
|
serviceBag:Init()
|
|
24
24
|
serviceBag:Start()
|
|
@@ -26,8 +26,8 @@ local function spinUpGameCopy(prefix)
|
|
|
26
26
|
local guid = prefix .. " " .. HttpService:GenerateGUID(false)
|
|
27
27
|
local maid = Maid.new()
|
|
28
28
|
|
|
29
|
-
local gameDataStore = serviceBag:GetService(require(
|
|
30
|
-
local bindToCloseService = serviceBag:GetService(require(
|
|
29
|
+
local gameDataStore = serviceBag:GetService(require("GameDataStoreService"))
|
|
30
|
+
local bindToCloseService = serviceBag:GetService(require("BindToCloseService"))
|
|
31
31
|
|
|
32
32
|
-- This would be an aggressive usage of this area, it probably won't scale well enough.
|
|
33
33
|
-- But writing some shared code or something like API keys should scale fine.
|