@quenty/valueobject 13.18.0 → 13.18.1-canary.39d0eda.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 +11 -0
- package/package.json +9 -9
- package/src/Shared/ValueObject.story.lua +48 -0
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
|
+
## [13.18.1-canary.39d0eda.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/valueobject@13.18.0...@quenty/valueobject@13.18.1-canary.39d0eda.0) (2025-08-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add some stories for debugging ([ce37c08](https://github.com/Quenty/NevermoreEngine/commit/ce37c08bacf7035e31d0b29ca525cb4521d762a9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [13.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/valueobject@13.17.3...@quenty/valueobject@13.18.0) (2025-05-10)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/valueobject",
|
|
3
|
-
"version": "13.18.0",
|
|
3
|
+
"version": "13.18.1-canary.39d0eda.0",
|
|
4
4
|
"description": "To work like value objects in Roblox and track a single item with .Changed events",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/brio": "
|
|
30
|
-
"@quenty/ducktype": "
|
|
31
|
-
"@quenty/loader": "
|
|
32
|
-
"@quenty/maid": "
|
|
33
|
-
"@quenty/rx": "
|
|
34
|
-
"@quenty/signal": "
|
|
35
|
-
"@quenty/valuebaseutils": "
|
|
29
|
+
"@quenty/brio": "14.18.1-canary.39d0eda.0",
|
|
30
|
+
"@quenty/ducktype": "5.9.0",
|
|
31
|
+
"@quenty/loader": "10.9.0",
|
|
32
|
+
"@quenty/maid": "3.5.0",
|
|
33
|
+
"@quenty/rx": "13.18.1-canary.39d0eda.0",
|
|
34
|
+
"@quenty/signal": "7.11.1-canary.39d0eda.0",
|
|
35
|
+
"@quenty/valuebaseutils": "13.18.1-canary.39d0eda.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "39d0edaa45d0c4812b43f2a64ad543fac3f79423"
|
|
41
41
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
--[[
|
|
2
|
+
@class ValueObject.story
|
|
3
|
+
]]
|
|
4
|
+
|
|
5
|
+
local require =
|
|
6
|
+
require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
7
|
+
|
|
8
|
+
local Maid = require("Maid")
|
|
9
|
+
local ValueObject = require("ValueObject")
|
|
10
|
+
|
|
11
|
+
return function()
|
|
12
|
+
local maid = Maid.new()
|
|
13
|
+
|
|
14
|
+
local valueObject = maid:Add(ValueObject.new())
|
|
15
|
+
|
|
16
|
+
local fireCount = 0
|
|
17
|
+
local conn = valueObject:Observe():Subscribe(function()
|
|
18
|
+
fireCount += 1
|
|
19
|
+
end)
|
|
20
|
+
|
|
21
|
+
assert(fireCount == 1, "fireCount should be 1")
|
|
22
|
+
|
|
23
|
+
valueObject.Value = {}
|
|
24
|
+
|
|
25
|
+
assert(fireCount == 2, "fireCount should be 2")
|
|
26
|
+
|
|
27
|
+
maid:GiveTask(valueObject:Observe():Subscribe(function()
|
|
28
|
+
fireCount += 1
|
|
29
|
+
end))
|
|
30
|
+
|
|
31
|
+
assert(fireCount == 3, "fireCount should be 3")
|
|
32
|
+
valueObject.Value = {}
|
|
33
|
+
assert(fireCount == 5, "fireCount should be 5")
|
|
34
|
+
|
|
35
|
+
conn:Disconnect()
|
|
36
|
+
|
|
37
|
+
assert(fireCount == 5, "fireCount should be 5")
|
|
38
|
+
|
|
39
|
+
valueObject.Value = {}
|
|
40
|
+
|
|
41
|
+
assert(fireCount == 6, "fireCount should be 5")
|
|
42
|
+
|
|
43
|
+
print("Done")
|
|
44
|
+
|
|
45
|
+
return function()
|
|
46
|
+
maid:DoCleaning()
|
|
47
|
+
end
|
|
48
|
+
end
|