@quenty/blend 4.3.1 → 5.0.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 +8 -8
- package/src/Shared/Blend/Blend.lua +30 -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.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@4.3.1...@quenty/blend@5.0.0) (2022-08-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add Blend.Shared and Blend.Throttled to optimize expensive blend scenarios. ([3073d57](https://github.com/Quenty/NevermoreEngine/commit/3073d57e5b52ef66c03c8fcd4a7dcd61aed22fda))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [4.3.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@4.3.0...@quenty/blend@4.3.1) (2022-08-11)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/blend
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/blend",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Declarative UI system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@quenty/acceltween": "^2.2.0",
|
|
31
|
-
"@quenty/brio": "^
|
|
32
|
-
"@quenty/instanceutils": "^
|
|
31
|
+
"@quenty/brio": "^7.0.0",
|
|
32
|
+
"@quenty/instanceutils": "^6.0.0",
|
|
33
33
|
"@quenty/loader": "^5.0.0",
|
|
34
34
|
"@quenty/maid": "^2.4.0",
|
|
35
35
|
"@quenty/promise": "^5.1.0",
|
|
36
|
-
"@quenty/rx": "^
|
|
36
|
+
"@quenty/rx": "^6.0.0",
|
|
37
37
|
"@quenty/signal": "^2.2.0",
|
|
38
38
|
"@quenty/spring": "^5.0.0",
|
|
39
39
|
"@quenty/steputils": "^3.1.0",
|
|
40
|
-
"@quenty/string": "^
|
|
41
|
-
"@quenty/valuebaseutils": "^
|
|
42
|
-
"@quenty/valueobject": "^
|
|
40
|
+
"@quenty/string": "^3.0.0",
|
|
41
|
+
"@quenty/valuebaseutils": "^6.0.0",
|
|
42
|
+
"@quenty/valueobject": "^6.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@quenty/contentproviderutils": "^5.1.0",
|
|
46
46
|
"@quenty/playerthumbnailutils": "^5.2.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "dbb62609f980983cc32da90acfef13e30ed41113"
|
|
49
49
|
}
|
|
@@ -83,6 +83,36 @@ function Blend.State(defaultValue)
|
|
|
83
83
|
return ValueObject.new(defaultValue)
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
--[=[
|
|
87
|
+
Throttles the update to the end of the defer lane. Can help optimize scenarios when
|
|
88
|
+
Compute() can trigger multiple times per a frame.
|
|
89
|
+
|
|
90
|
+
Generally not needed.
|
|
91
|
+
|
|
92
|
+
@param observable Observable<T>
|
|
93
|
+
@return Observable<T>
|
|
94
|
+
]=]
|
|
95
|
+
function Blend.Throttled(observable)
|
|
96
|
+
return observable:Pipe({
|
|
97
|
+
Rx.throttleDefer();
|
|
98
|
+
})
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
--[=[
|
|
102
|
+
Shares this observables state/computation with all down-stream observables. This can be useful
|
|
103
|
+
when a very expensive computation was done and needs to be shared.
|
|
104
|
+
|
|
105
|
+
Generally not needed.
|
|
106
|
+
|
|
107
|
+
@param observable Observable<T>
|
|
108
|
+
@return Observable<T>
|
|
109
|
+
]=]
|
|
110
|
+
function Blend.Shared(observable)
|
|
111
|
+
return observable:Pipe({
|
|
112
|
+
Rx.cache();
|
|
113
|
+
})
|
|
114
|
+
end
|
|
115
|
+
|
|
86
116
|
function Blend.Dynamic(...)
|
|
87
117
|
return Blend.Computed(...)
|
|
88
118
|
:Pipe({
|