@quenty/selectionutils 8.30.0-canary.678.24427877603.0 → 8.30.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,9 +3,12 @@
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
- # [8.30.0-canary.678.24427877603.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/selectionutils@8.29.0...@quenty/selectionutils@8.30.0-canary.678.24427877603.0) (2026-04-14)
6
+ # [8.30.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/selectionutils@8.29.0...@quenty/selectionutils@8.30.0) (2026-04-23)
7
7
 
8
- **Note:** Version bump only for package @quenty/selectionutils
8
+
9
+ ### Features
10
+
11
+ * Additional improvments ([44896ef](https://github.com/Quenty/NevermoreEngine/commit/44896efe8dd9506ad6002bc41f816b9b2b482ebc))
9
12
 
10
13
 
11
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/selectionutils",
3
- "version": "8.30.0-canary.678.24427877603.0",
3
+ "version": "8.30.0",
4
4
  "description": "Utility methods around Selection service. Useful for plugins and stories.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,17 +28,17 @@
28
28
  "Quenty"
29
29
  ],
30
30
  "dependencies": {
31
- "@quenty/baseobject": "10.12.0",
32
- "@quenty/brio": "14.29.0-canary.678.24427877603.0",
33
- "@quenty/loader": "10.10.0",
34
- "@quenty/maid": "3.8.0",
35
- "@quenty/rx": "13.28.0-canary.678.24427877603.0",
36
- "@quenty/signal": "7.12.0",
31
+ "@quenty/baseobject": "10.13.0",
32
+ "@quenty/brio": "14.29.0",
33
+ "@quenty/loader": "10.11.0",
34
+ "@quenty/maid": "3.9.0",
35
+ "@quenty/rx": "13.28.0",
36
+ "@quenty/signal": "7.13.0",
37
37
  "@quenty/table": "3.9.2",
38
- "@quenty/valueobject": "13.30.0-canary.678.24427877603.0"
38
+ "@quenty/valueobject": "13.30.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "ac87c7f47e9a5801392a70d586ed449463a725b8"
43
+ "gitHead": "9413391da8b6f9026762285b601fd1d37d385a54"
44
44
  }
@@ -101,18 +101,16 @@ end
101
101
  @param where callback
102
102
  @return Observable<Instance?>
103
103
  ]=]
104
- function RxSelectionUtils.observeFirstSelection(where: Rx.Predicate<Instance>): Observable.Observable<Instance?>
105
- assert(type(where) == "function", "Bad where")
104
+ function RxSelectionUtils.observeFirstSelection(where: Rx.Predicate<Instance>?): Observable.Observable<Instance?>
105
+ assert(type(where) == "function" or where == nil, "Bad where")
106
106
 
107
107
  return Observable.new(function(sub)
108
108
  local maid = Maid.new()
109
-
110
- local current = ValueObject.new(nil)
111
- maid:GiveTask(current)
109
+ local current = maid:Add(ValueObject.new(nil))
112
110
 
113
111
  local function handleSelectionChanged()
114
112
  for _, item in Selection:Get() do
115
- if where(item) then
113
+ if where == nil or where(item) then
116
114
  current.Value = item
117
115
  return
118
116
  end
@@ -141,9 +139,9 @@ end
141
139
  @return Observable<Brio<Instance>>
142
140
  ]=]
143
141
  function RxSelectionUtils.observeFirstSelectionBrio(
144
- where: Rx.Predicate<Instance>
142
+ where: Rx.Predicate<Instance>?
145
143
  ): Observable.Observable<Brio.Brio<Instance>>
146
- assert(type(where) == "function", "Bad where")
144
+ assert(type(where) == "function" or where == nil, "Bad where")
147
145
 
148
146
  return RxSelectionUtils.observeFirstSelection(where):Pipe({
149
147
  RxBrioUtils.toBrio() :: any,