@quenty/datastore 11.0.0 → 11.0.1-canary.445.ee7e5d6.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
|
+
## [11.0.1-canary.445.ee7e5d6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@11.0.0...@quenty/datastore@11.0.1-canary.445.ee7e5d6.0) (2024-02-14)
|
|
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
|
+
|
|
6
17
|
# [11.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@10.0.0...@quenty/datastore@11.0.0) (2024-02-13)
|
|
7
18
|
|
|
8
19
|
**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": "11.0.0",
|
|
3
|
+
"version": "11.0.1-canary.445.ee7e5d6.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.445.ee7e5d6.0",
|
|
30
|
+
"@quenty/bindtocloseservice": "6.0.1-canary.445.ee7e5d6.0",
|
|
31
|
+
"@quenty/loader": "8.0.1-canary.445.ee7e5d6.0",
|
|
32
|
+
"@quenty/maid": "3.0.0",
|
|
33
|
+
"@quenty/math": "2.5.0",
|
|
34
|
+
"@quenty/promise": "8.0.1-canary.445.ee7e5d6.0",
|
|
35
|
+
"@quenty/rx": "11.0.1-canary.445.ee7e5d6.0",
|
|
36
|
+
"@quenty/servicebag": "9.0.1-canary.445.ee7e5d6.0",
|
|
37
|
+
"@quenty/signal": "5.0.1-canary.445.ee7e5d6.0",
|
|
38
|
+
"@quenty/symbol": "3.0.0",
|
|
39
|
+
"@quenty/table": "3.4.0",
|
|
40
|
+
"@quenty/valueobject": "11.0.1-canary.445.ee7e5d6.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ee7e5d6ada857eba67b462aa37a00de9f430ae97"
|
|
46
46
|
}
|
|
@@ -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.
|