@quenty/statestack 3.3.0 → 3.4.1-canary.245.97a91ca.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,25 @@
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
+ ## [3.4.1-canary.245.97a91ca.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/statestack@3.4.0...@quenty/statestack@3.4.1-canary.245.97a91ca.0) (2022-01-08)
7
+
8
+ **Note:** Version bump only for package @quenty/statestack
9
+
10
+
11
+
12
+
13
+
14
+ # [3.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/statestack@3.3.0...@quenty/statestack@3.4.0) (2022-01-07)
15
+
16
+
17
+ ### Features
18
+
19
+ * Add ValueObject:Observe() and StateStack:Observe() ([91af9f2](https://github.com/Quenty/NevermoreEngine/commit/91af9f25e41faddeaa2f02f31ddfb8b145d01068))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/statestack@3.2.1...@quenty/statestack@3.3.0) (2022-01-03)
7
26
 
8
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/statestack",
3
- "version": "3.3.0",
3
+ "version": "3.4.1-canary.245.97a91ca.0",
4
4
  "description": "Stack of values that allows multiple systems to enable or disable a state",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,12 +25,12 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/baseobject": "^3.3.0",
29
- "@quenty/loader": "^3.2.0",
30
- "@quenty/valueobject": "^3.6.0"
28
+ "@quenty/baseobject": "3.4.0",
29
+ "@quenty/loader": "3.3.0",
30
+ "@quenty/valueobject": "3.7.1-canary.245.97a91ca.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "d910da8f5c7e9a55a8bf76d8efbe5632713dd0fe"
35
+ "gitHead": "97a91ca3f8a2ccb75551912dc6424e9199050bfe"
36
36
  }
@@ -54,12 +54,20 @@ end
54
54
 
55
55
  --[=[
56
56
  Gets the current state
57
- @return T
57
+ @return T?
58
58
  ]=]
59
59
  function StateStack:GetState()
60
60
  return self._state.Value
61
61
  end
62
62
 
63
+ --[=[
64
+ Observes the current value of stack
65
+ @return Observable<T?>
66
+ ]=]
67
+ function StateStack:Observe()
68
+ return self._state:Observe()
69
+ end
70
+
63
71
  --[=[
64
72
  Pushes the current state onto the stack
65
73
  @param state T?