@quenty/valueobject 13.20.0 → 13.20.1-canary.97cfa97.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
+ ## [13.20.1-canary.97cfa97.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/valueobject@13.20.0...@quenty/valueobject@13.20.1-canary.97cfa97.0) (2025-10-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add GetValue() method to ValueObject ([e9d1909](https://github.com/Quenty/NevermoreEngine/commit/e9d1909a5377130cf10bd3bdc4a0d6c0ba813b6b))
12
+
13
+
14
+
15
+
16
+
6
17
  # [13.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/valueobject@13.19.0...@quenty/valueobject@13.20.0) (2025-09-26)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/valueobject
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/valueobject",
3
- "version": "13.20.0",
3
+ "version": "13.20.1-canary.97cfa97.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": "^14.20.0",
30
- "@quenty/ducktype": "^5.9.0",
31
- "@quenty/loader": "^10.9.0",
32
- "@quenty/maid": "^3.5.0",
33
- "@quenty/rx": "^13.20.0",
34
- "@quenty/signal": "^7.11.1",
35
- "@quenty/valuebaseutils": "^13.20.0"
29
+ "@quenty/brio": "14.20.0",
30
+ "@quenty/ducktype": "5.9.0",
31
+ "@quenty/loader": "10.9.0",
32
+ "@quenty/maid": "3.5.0",
33
+ "@quenty/rx": "13.20.0",
34
+ "@quenty/signal": "7.11.1",
35
+ "@quenty/valuebaseutils": "13.20.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "0ecdc6807f4ad638ffd49b056bceec4353895b82"
40
+ "gitHead": "97cfa9787cc2d93e90e6d9a9f1a3c3c57b87a8a5"
41
41
  }
@@ -281,6 +281,20 @@ function ValueObject.SetValue<T>(self: ValueObject<T>, value: T, ...)
281
281
  end
282
282
  end
283
283
 
284
+ --[=[
285
+ Gets the value and then the additional args from the last event
286
+ ]=]
287
+ function ValueObject.GetValue<T>(self: ValueObject<T>): (T, ...any)
288
+ local value = rawget(self :: any, "_value")
289
+ local args = rawget(self :: any, "_lastEventContext")
290
+
291
+ if args then
292
+ return value, table.unpack(args, 1, args.n)
293
+ else
294
+ return value
295
+ end
296
+ end
297
+
284
298
  function ValueObject._applyValue<T>(self: ValueObject<T>, value: T, ...)
285
299
  local previous = rawget(self :: any, "_value")
286
300
  local checkType = rawget(self :: any, "_checkType")