@quenty/observablecollection 6.1.0 → 6.1.1
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 +2 -2
- package/src/Shared/ObservableMapList.lua +10 -4
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
|
+
## [6.1.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/observablecollection@6.1.0...@quenty/observablecollection@6.1.1) (2023-10-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix function implementations/names in ObservableList ([#423](https://github.com/Quenty/NevermoreEngine/issues/423)) ([cf3ece3](https://github.com/Quenty/NevermoreEngine/commit/cf3ece3866564f3f6af71815939ce0d984d9c3b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [6.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/observablecollection@6.0.0...@quenty/observablecollection@6.1.0) (2023-10-12)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/observablecollection",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "A set of observable collections, such as sets, maps, sorted lists, and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "f9e89d411631b3392f954e4431f9a6629ddcd6f5"
|
|
48
48
|
}
|
|
@@ -204,7 +204,7 @@ end
|
|
|
204
204
|
@param key TKey
|
|
205
205
|
@return { TValue }
|
|
206
206
|
]=]
|
|
207
|
-
function ObservableMapList:
|
|
207
|
+
function ObservableMapList:GetListFromKey(key)
|
|
208
208
|
assert(key ~= nil, "Bad key")
|
|
209
209
|
|
|
210
210
|
local observableList = self:GetListForKey(key)
|
|
@@ -226,12 +226,18 @@ function ObservableMapList:GetListForKey(key)
|
|
|
226
226
|
return self._observableMapOfLists:Get(key)
|
|
227
227
|
end
|
|
228
228
|
|
|
229
|
-
function ObservableMapList:
|
|
229
|
+
function ObservableMapList:ObserveList(key)
|
|
230
230
|
assert(key ~= nil, "Bad key")
|
|
231
231
|
|
|
232
232
|
return self._observableMapOfLists:ObserveAtKey(key)
|
|
233
233
|
end
|
|
234
234
|
|
|
235
|
+
function ObservableMapList:ObserveListBrio(key)
|
|
236
|
+
assert(key ~= nil, "Bad key")
|
|
237
|
+
|
|
238
|
+
return self._observableMapOfLists:ObserveAtKeyBrio(key)
|
|
239
|
+
end
|
|
240
|
+
|
|
235
241
|
function ObservableMapList:ObserveCountForKey(key)
|
|
236
242
|
assert(key ~= nil, "Bad key")
|
|
237
243
|
|
|
@@ -269,9 +275,9 @@ function ObservableMapList:_removeFromList(key, entry)
|
|
|
269
275
|
end
|
|
270
276
|
|
|
271
277
|
function ObservableMapList:_removeList(key)
|
|
272
|
-
local list = self.
|
|
278
|
+
local list = self._observableMapOfLists:Get(key)
|
|
273
279
|
if list then
|
|
274
|
-
self.
|
|
280
|
+
self._observableMapOfLists:Set(key, nil)
|
|
275
281
|
self._maid[list] = nil
|
|
276
282
|
end
|
|
277
283
|
end
|