@quenty/undostack 2.4.0 → 3.0.0-canary.439.eb597ee.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,14 @@
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.0.0-canary.439.eb597ee.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/undostack@2.4.0...@quenty/undostack@3.0.0-canary.439.eb597ee.0) (2024-01-17)
7
+
8
+ **Note:** Version bump only for package @quenty/undostack
9
+
10
+
11
+
12
+
13
+
6
14
  # [2.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/undostack@2.3.0...@quenty/undostack@2.4.0) (2024-01-08)
7
15
 
8
16
  **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": "2.4.0",
3
+ "version": "3.0.0-canary.439.eb597ee.0",
4
4
  "description": "Generalized undo stack for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,16 +25,17 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/baseobject": "^7.2.0",
29
- "@quenty/instanceutils": "^8.4.0",
30
- "@quenty/loader": "^7.3.0",
31
- "@quenty/maid": "^2.6.0",
32
- "@quenty/promise": "^7.2.0",
33
- "@quenty/signal": "^3.2.0",
34
- "@quenty/valueobject": "^8.4.0"
28
+ "@quenty/baseobject": "8.0.0-canary.439.eb597ee.0",
29
+ "@quenty/ducktype": "3.0.0-canary.439.eb597ee.0",
30
+ "@quenty/instanceutils": "9.0.0-canary.439.eb597ee.0",
31
+ "@quenty/loader": "8.0.0-canary.439.eb597ee.0",
32
+ "@quenty/maid": "2.6.0",
33
+ "@quenty/promise": "8.0.0-canary.439.eb597ee.0",
34
+ "@quenty/signal": "4.0.0-canary.439.eb597ee.0",
35
+ "@quenty/valueobject": "9.0.0-canary.439.eb597ee.0"
35
36
  },
36
37
  "publishConfig": {
37
38
  "access": "public"
38
39
  },
39
- "gitHead": "075fb03a03f12ade8758f667767ba738204e0c4b"
40
+ "gitHead": "eb597ee01e62e4dd91190bb7abd1d1404652d5ff"
40
41
  }
@@ -26,14 +26,9 @@ function UndoStack.new(maxSize)
26
26
  self._undoStack = {}
27
27
  self._redoStack = {}
28
28
 
29
- self._hasUndoEntries = ValueObject.new(false, "boolean")
30
- self._maid:GiveTask(self._hasUndoEntries)
31
-
32
- self._hasRedoEntries = ValueObject.new(false, "boolean")
33
- self._maid:GiveTask(self._hasRedoEntries)
34
-
35
- self._isActionExecuting = ValueObject.new(false, "boolean")
36
- self._maid:GiveTask(self._isActionExecuting)
29
+ self._hasUndoEntries = self._maid:Add(ValueObject.new(false, "boolean"))
30
+ self._hasRedoEntries = self._maid:Add(ValueObject.new(false, "boolean"))
31
+ self._isActionExecuting = self._maid:Add(ValueObject.new(false, "boolean"))
37
32
 
38
33
  return self
39
34
  end
@@ -9,6 +9,7 @@ local Promise = require("Promise")
9
9
  local Maid = require("Maid")
10
10
  local BaseObject = require("BaseObject")
11
11
  local Signal = require("Signal")
12
+ local DuckTypeUtils = require("DuckTypeUtils")
12
13
 
13
14
  local UndoStackEntry = setmetatable({}, BaseObject)
14
15
  UndoStackEntry.ClassName = "UndoStackEntry"
@@ -38,7 +39,7 @@ end
38
39
  @return boolean
39
40
  ]=]
40
41
  function UndoStackEntry.isUndoStackEntry(value)
41
- return type(value) == "table" and getmetatable(value) == UndoStackEntry
42
+ return DuckTypeUtils.isImplementation(UndoStackEntry, value)
42
43
  end
43
44
 
44
45
  --[=[