@quenty/undostack 1.13.0 → 1.14.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
+ # [1.14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/undostack@1.13.0...@quenty/undostack@1.14.0) (2023-05-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * Initial refactor of guis to use ValueObject instead of ValueObject ([723aba0](https://github.com/Quenty/NevermoreEngine/commit/723aba0208cae7e06c9d8bf2d8f0092d042d70ea))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/undostack@1.12.0...@quenty/undostack@1.13.0) (2023-05-08)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/undostack
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/undostack",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Generalized undo stack for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,12 +26,12 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@quenty/baseobject": "^6.2.1",
29
- "@quenty/instanceutils": "^7.13.0",
29
+ "@quenty/instanceutils": "^7.14.0",
30
30
  "@quenty/loader": "^6.2.1",
31
31
  "@quenty/promise": "^6.5.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "2ad8cea7dd3ad79a39afd7d7b785b489b90553fd"
36
+ "gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
37
37
  }
@@ -7,7 +7,7 @@ local require = require(script.Parent.loader).load(script)
7
7
  local BaseObject = require("BaseObject")
8
8
  local Promise = require("Promise")
9
9
  local UndoStackEntry = require("UndoStackEntry")
10
- local RxInstanceUtils = require("RxInstanceUtils")
10
+ local ValueObject = require("ValueObject")
11
11
 
12
12
  local DEFAULT_MAX_SIZE = 25
13
13
 
@@ -25,16 +25,13 @@ function UndoStack.new(maxSize)
25
25
  self._undoStack = {}
26
26
  self._redoStack = {}
27
27
 
28
- self._hasUndoEntries = Instance.new("BoolValue")
29
- self._hasUndoEntries.Value = false
28
+ self._hasUndoEntries = ValueObject.new(false, "boolean")
30
29
  self._maid:GiveTask(self._hasUndoEntries)
31
30
 
32
- self._hasRedoEntries = Instance.new("BoolValue")
33
- self._hasRedoEntries.Value = false
31
+ self._hasRedoEntries = ValueObject.new(false, "boolean")
34
32
  self._maid:GiveTask(self._hasRedoEntries)
35
33
 
36
- self._isActionExecuting = Instance.new("BoolValue")
37
- self._isActionExecuting.Value = false
34
+ self._isActionExecuting = ValueObject.new(false, "boolean")
38
35
  self._maid:GiveTask(self._isActionExecuting)
39
36
 
40
37
  return self
@@ -63,7 +60,7 @@ end
63
60
  @return Observable<boolean>
64
61
  ]=]
65
62
  function UndoStack:ObserveHasUndoEntries()
66
- return RxInstanceUtils.observeProperty(self._hasUndoEntries, "Value")
63
+ return self._hasUndoEntries:Observe()
67
64
  end
68
65
 
69
66
  --[=[
@@ -71,7 +68,7 @@ end
71
68
  @return Observable<boolean>
72
69
  ]=]
73
70
  function UndoStack:ObserveHasRedoEntries()
74
- return RxInstanceUtils.observeProperty(self._hasRedoEntries, "Value")
71
+ return self._hasRedoEntries:Observe()
75
72
  end
76
73
 
77
74
  --[=[