@quenty/observablecollection 5.19.1 → 5.20.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 +5 -5
- package/src/Shared/ObservableSet.lua +8 -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
|
+
# [5.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/observablecollection@5.19.1...@quenty/observablecollection@5.20.0) (2023-07-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add :Observe() API calls to a variety of systems and allow Blend to :Observe() stuff ([ca29c68](https://github.com/Quenty/NevermoreEngine/commit/ca29c68164dfdaf136e9168faf48f487bed26088))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [5.19.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/observablecollection@5.19.0...@quenty/observablecollection@5.19.1) (2023-07-11)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/observablecollection
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/observablecollection",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.20.0",
|
|
4
4
|
"description": "A set of observable collections, such as sets, maps, sorted lists, and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@quenty/baseobject": "^6.2.1",
|
|
31
|
-
"@quenty/brio": "^8.
|
|
31
|
+
"@quenty/brio": "^8.15.0",
|
|
32
32
|
"@quenty/loader": "^6.2.1",
|
|
33
33
|
"@quenty/maid": "^2.5.0",
|
|
34
34
|
"@quenty/promise": "^6.6.0",
|
|
35
|
-
"@quenty/rx": "^7.
|
|
35
|
+
"@quenty/rx": "^7.13.0",
|
|
36
36
|
"@quenty/signal": "^2.4.0",
|
|
37
37
|
"@quenty/symbol": "^2.2.0",
|
|
38
|
-
"@quenty/valueobject": "^7.
|
|
38
|
+
"@quenty/valueobject": "^7.18.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "af7a623f58fe7ec96b47c80e385b71f820fd4cb8"
|
|
44
44
|
}
|
|
@@ -75,6 +75,10 @@ end
|
|
|
75
75
|
]=]
|
|
76
76
|
function ObservableSet:ObserveItemsBrio()
|
|
77
77
|
return Observable.new(function(sub)
|
|
78
|
+
if not self.Destroy then
|
|
79
|
+
return sub:Fail("ObservableSet is already cleaned up")
|
|
80
|
+
end
|
|
81
|
+
|
|
78
82
|
local maid = Maid.new()
|
|
79
83
|
|
|
80
84
|
local function handleItem(item)
|
|
@@ -113,6 +117,10 @@ function ObservableSet:ObserveContains(item)
|
|
|
113
117
|
assert(item ~= nil, "Bad item")
|
|
114
118
|
|
|
115
119
|
return Observable.new(function(sub)
|
|
120
|
+
if not self.Destroy then
|
|
121
|
+
return sub:Fail("ObservableSet is already cleaned up")
|
|
122
|
+
end
|
|
123
|
+
|
|
116
124
|
local maid = Maid.new()
|
|
117
125
|
|
|
118
126
|
if self._set[item] then
|