@quenty/binder 14.35.0 → 14.36.1
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,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
|
+
## [14.36.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@14.36.0...@quenty/binder@14.36.1) (2026-05-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/binder
|
|
9
|
+
|
|
10
|
+
# [14.36.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@14.35.0...@quenty/binder@14.36.0) (2026-05-29)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- Binder provider tests are self contained and safer ([9c90efb](https://github.com/Quenty/NevermoreEngine/commit/9c90efbe9972f88fb16f948937b4e0c18f45a531))
|
|
15
|
+
|
|
6
16
|
# [14.35.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@14.34.2...@quenty/binder@14.35.0) (2026-05-18)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @quenty/binder
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/binder",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.36.1",
|
|
4
4
|
"description": "Utility object to Bind a class to Roblox object, and associated helper methods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -29,23 +29,23 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@quenty/baseobject": "10.13.0",
|
|
32
|
-
"@quenty/brio": "14.
|
|
33
|
-
"@quenty/canceltoken": "11.19.
|
|
34
|
-
"@quenty/instanceutils": "13.
|
|
35
|
-
"@quenty/linkutils": "13.
|
|
32
|
+
"@quenty/brio": "14.30.1",
|
|
33
|
+
"@quenty/canceltoken": "11.19.1",
|
|
34
|
+
"@quenty/instanceutils": "13.30.1",
|
|
35
|
+
"@quenty/linkutils": "13.30.1",
|
|
36
36
|
"@quenty/loader": "10.11.0",
|
|
37
37
|
"@quenty/maid": "3.9.0",
|
|
38
38
|
"@quenty/nevermore-test-runner": "1.4.0",
|
|
39
|
-
"@quenty/promise": "10.18.
|
|
40
|
-
"@quenty/rx": "13.28.
|
|
41
|
-
"@quenty/servicebag": "11.18.
|
|
42
|
-
"@quenty/signal": "7.13.
|
|
39
|
+
"@quenty/promise": "10.18.1",
|
|
40
|
+
"@quenty/rx": "13.28.3",
|
|
41
|
+
"@quenty/servicebag": "11.18.1",
|
|
42
|
+
"@quenty/signal": "7.13.1",
|
|
43
43
|
"@quenty/table": "3.9.2",
|
|
44
|
-
"@quenty/valueobject": "13.
|
|
44
|
+
"@quenty/valueobject": "13.31.1",
|
|
45
45
|
"@quentystudios/jest-lua": "3.10.0-quenty.2"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "598b2b62b36bdcbdbbd56f7db10c399831cc6eba"
|
|
51
51
|
}
|
|
@@ -203,12 +203,22 @@ end
|
|
|
203
203
|
function BinderProvider:Destroy()
|
|
204
204
|
self._destroyed = true
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
local binders = rawget(self, "_binders")
|
|
207
|
+
rawset(self, "_binders", nil)
|
|
208
|
+
|
|
209
|
+
if binders then
|
|
210
|
+
for _, item in binders do
|
|
211
|
+
rawset(self, item:GetTag(), nil)
|
|
212
|
+
end
|
|
208
213
|
end
|
|
209
214
|
|
|
210
|
-
self
|
|
211
|
-
self
|
|
215
|
+
local maid = rawget(self, "_maid")
|
|
216
|
+
rawset(self, "_maid", nil)
|
|
217
|
+
|
|
218
|
+
if maid then
|
|
219
|
+
maid:DoCleaning()
|
|
220
|
+
maid = nil
|
|
221
|
+
end
|
|
212
222
|
end
|
|
213
223
|
|
|
214
224
|
return BinderProvider
|
|
@@ -16,33 +16,44 @@ local expect = Jest.Globals.expect
|
|
|
16
16
|
local it = Jest.Globals.it
|
|
17
17
|
|
|
18
18
|
describe("BinderProvider.new()", function()
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
it("should construct a provider", function()
|
|
20
|
+
local provider = BinderProvider.new("BinderServiceName", function(_self) end)
|
|
21
|
+
expect(provider).toEqual(expect.any("table"))
|
|
22
|
+
provider:Destroy()
|
|
23
|
+
end)
|
|
21
24
|
|
|
22
|
-
it("should
|
|
23
|
-
|
|
25
|
+
it("should initialize and call the init callback", function()
|
|
26
|
+
local initialized = false
|
|
27
|
+
|
|
28
|
+
local provider = BinderProvider.new("BinderServiceName", function(_self, arg)
|
|
24
29
|
initialized = true
|
|
25
30
|
assert(arg == 12345, "Bad arg")
|
|
26
|
-
|
|
27
|
-
self:Add(Binder.new("Test", function()
|
|
28
|
-
return { Destroy = function() end }
|
|
29
|
-
end))
|
|
30
31
|
end)
|
|
31
32
|
|
|
32
|
-
expect(provider).toEqual(expect.any("table"))
|
|
33
|
-
end)
|
|
34
|
-
|
|
35
|
-
it("should initialize", function()
|
|
36
33
|
expect(initialized).toEqual(false)
|
|
37
34
|
provider:Init(12345)
|
|
38
35
|
expect(initialized).toEqual(true)
|
|
36
|
+
|
|
37
|
+
provider:Destroy()
|
|
39
38
|
end)
|
|
40
39
|
|
|
41
|
-
it("should contain the binder", function()
|
|
40
|
+
it("should contain the binder after init", function()
|
|
41
|
+
local binder
|
|
42
|
+
|
|
43
|
+
local provider = BinderProvider.new("BinderServiceName", function(self)
|
|
44
|
+
binder = Binder.new("Test", function()
|
|
45
|
+
return { Destroy = function() end }
|
|
46
|
+
end)
|
|
47
|
+
self:Add(binder)
|
|
48
|
+
end)
|
|
49
|
+
|
|
50
|
+
provider:Init()
|
|
51
|
+
|
|
42
52
|
expect(provider.Test).toEqual(expect.any("table"))
|
|
43
|
-
end)
|
|
44
53
|
|
|
45
|
-
if provider then
|
|
46
54
|
provider:Destroy()
|
|
47
|
-
|
|
55
|
+
if binder then
|
|
56
|
+
binder:Destroy()
|
|
57
|
+
end
|
|
58
|
+
end)
|
|
48
59
|
end)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "BinderTest",
|
|
3
|
+
"globIgnorePaths": [
|
|
4
|
+
"**/.package-lock.json",
|
|
5
|
+
"**/.pnpm",
|
|
6
|
+
"**/.pnpm-workspace-state-v1.json",
|
|
7
|
+
"**/.modules.yaml",
|
|
8
|
+
"**/.ignored",
|
|
9
|
+
"**/.ignored_*"
|
|
10
|
+
],
|
|
11
|
+
"tree": {
|
|
12
|
+
"$className": "DataModel",
|
|
13
|
+
"ServerScriptService": {
|
|
14
|
+
"$properties": {
|
|
15
|
+
"LoadStringEnabled": true
|
|
16
|
+
},
|
|
17
|
+
"binder": {
|
|
18
|
+
"$path": ".."
|
|
19
|
+
},
|
|
20
|
+
"Script": {
|
|
21
|
+
"$path": "scripts/Server"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
--[[
|
|
2
|
+
@class ServerMain
|
|
3
|
+
]]
|
|
4
|
+
local ServerScriptService = game:GetService("ServerScriptService")
|
|
5
|
+
|
|
6
|
+
local root = ServerScriptService.binder
|
|
7
|
+
local loader = root:FindFirstChild("LoaderUtils", true).Parent
|
|
8
|
+
local require = require(loader).bootstrapGame(root)
|
|
9
|
+
|
|
10
|
+
local NevermoreTestRunnerUtils = require("NevermoreTestRunnerUtils")
|
|
11
|
+
if NevermoreTestRunnerUtils.runTestsIfNeededAsync(root) then
|
|
12
|
+
return
|
|
13
|
+
end
|