@legendapp/state 1.4.0-next.3 → 1.4.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 +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
- Feat: Returning an observable in a computed creates a two-way link to the target observable.
|
|
4
4
|
- Feat: `computed` is supported as a child of an observable
|
|
5
|
+
- Feat: `proxy` is like a `computed` but given a key, usable by indexing into an object with a string key
|
|
5
6
|
- Feat: Functions and computeds in the hierarchy of the constructing object in an observable are extracted into observable metadata so that setting the observable does not delete them.
|
|
7
|
+
- Feat: `Memo` and `Computed` support observables as children
|
|
8
|
+
- Feat: `reactiveComponents` makes multiple reactive components at once from the children of the target object
|
|
9
|
+
- Feat: Reactive components and `reactive` makes children reactive if it's a functions
|
|
10
|
+
- Fix: `useObserve` updates the compute and set functions when re-run
|
|
11
|
+
- Fix: Direct setting with `_` was not working with falsy values
|
|
12
|
+
- Change: Reactive props will now start with `$:` instead of ending with `$`. Both work for now, but `prop$` will be deprecated in a later version.
|
|
13
|
+
- Perf: `useSelector` skips creating a hook if it's inside an `observer`
|
|
6
14
|
|
|
7
15
|
## 1.3.6
|
|
8
16
|
|
|
@@ -28,7 +36,6 @@ See [https://legendapp.com/open-source/state/experiments/](https://legendapp.com
|
|
|
28
36
|
- Feat: (experimental) `enableDirectAccess` enables a property on observables named $ as a shorthand for get/set
|
|
29
37
|
- Feat: (experimental) `enableReactUse` enables a `use()` function on all observables to get the value of an observable and track it for changes within a React component
|
|
30
38
|
- Feat: (experimental) `enableReactDirectRender` replaces `enableLegendStateReact` (will be deprecated in a later version)
|
|
31
|
-
- Change: Reactive props will now start with $ instead of ending with $. Both work for now, but prop$ will be deprecated in a later version.
|
|
32
39
|
- Fix: `afterBatch` was running after all recursive batches rather than just the current batch
|
|
33
40
|
- Fix: Circular reference detection was failing on null values
|
|
34
41
|
|