@legendapp/state 0.15.0-next.10 → 0.15.0-next.13
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 +62 -0
- package/babel.js +21 -599
- package/babel.js.map +1 -1
- package/index.d.ts +4 -4
- package/index.js +58 -80
- package/index.js.map +1 -1
- package/index.mjs +56 -79
- package/index.mjs.map +1 -1
- package/package.json +7 -14
- package/react-components.js +25 -24
- package/react-components.js.map +1 -1
- package/react-components.mjs +23 -20
- package/react-components.mjs.map +1 -1
- package/react-native-components.js +20 -20
- package/react-native-components.js.map +1 -1
- package/react-native-components.mjs +18 -16
- package/react-native-components.mjs.map +1 -1
- package/react.d.ts +1 -0
- package/react.js +92 -16
- package/react.js.map +1 -1
- package/react.mjs +90 -19
- package/react.mjs.map +1 -1
- package/src/batching.d.ts +2 -2
- package/src/globals.d.ts +1 -0
- package/src/helpers.d.ts +1 -1
- package/src/observableInterfaces.d.ts +13 -12
- package/src/{effect.d.ts → observe.d.ts} +1 -1
- package/src/onChange.d.ts +1 -5
- package/src/react/flow.d.ts +31 -0
- package/src/react/useComputed.d.ts +6 -1
- package/src/react/useObserve.d.ts +1 -0
- package/src/react-components/react-components.d.ts +4 -10
- package/src/react-native-components/rn-components.d.ts +3 -7
- package/src/when.d.ts +1 -5
- package/trace.js +1 -2
- package/trace.js.map +1 -1
- package/trace.mjs +2 -3
- package/trace.mjs.map +1 -1
- package/types.d.ts +15 -0
- package/react-native-types.d.ts +0 -39
- package/react-types.d.ts +0 -8
- package/reactivity.d.ts +0 -1
- package/reactivity.js +0 -60
- package/reactivity.js.map +0 -1
- package/reactivity.mjs +0 -53
- package/reactivity.mjs.map +0 -1
- package/src/reactivity/controlFlow.d.ts +0 -28
- package/state-types.d.ts +0 -24
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
## 0.14.5
|
|
2
|
+
- Feat: Allow passing observables directly to Show
|
|
3
|
+
- Fix: Usage of old observe() when if prop is an observable
|
|
4
|
+
|
|
5
|
+
## 0.14.4
|
|
6
|
+
- Fix: Some issues in remote persistence plugins (not yet released)
|
|
7
|
+
|
|
8
|
+
## 0.14.3
|
|
9
|
+
- Fix: Some issues in remote persistence plugins (not yet released)
|
|
10
|
+
|
|
11
|
+
## 0.14.2
|
|
12
|
+
- Fix: Old versions of React Native were crashing because of using `React.` without importing it
|
|
13
|
+
|
|
14
|
+
## 0.14.1
|
|
15
|
+
- Fix: `For` component with children re-renders with the latest children correctly
|
|
16
|
+
|
|
17
|
+
## 0.14.0
|
|
18
|
+
- Feature: A `For` component for easy rendering with array optimizations
|
|
19
|
+
- Fix: Improve performance of observer
|
|
20
|
+
- Fix: Support `_id` or `__id` field names for array optimizations
|
|
21
|
+
- Fix: Mixing shallow and non-shallow listeners in a component could have not mixed correctly
|
|
22
|
+
|
|
23
|
+
## 0.13.2
|
|
24
|
+
- Types: Renamed exported types for improved clarity
|
|
25
|
+
|
|
26
|
+
## 0.13.1
|
|
27
|
+
- Fix: Exported components were losing className/style when not using bind prop
|
|
28
|
+
|
|
29
|
+
## 0.13.0
|
|
30
|
+
- Breaking Change: Removed observe() and prop(), favoring get() and ref(). get() tracks by default and ref() does not.
|
|
31
|
+
- Feat: Support ref to a path on an undefined value
|
|
32
|
+
- Fix: A crash when calling get() on an observable with undefined parents
|
|
33
|
+
- Types: Enforce bind prop to not be a primitive
|
|
34
|
+
|
|
35
|
+
## 0.12.1
|
|
36
|
+
- Types: Improved types of exported components
|
|
37
|
+
|
|
38
|
+
## 0.12.0
|
|
39
|
+
- Feat: Allow direct assignment, with warnings to catch accidental errors, and an optional "safe" mode
|
|
40
|
+
- Feat: input components with `bind` prop that automatically binds an observable to value and onChange
|
|
41
|
+
- Feat: Support keyed ref: `obs.ref('key')`
|
|
42
|
+
- Feat: `onChange` has a `runImmediately` option
|
|
43
|
+
- Fix: `.ref()` and `.get()` inside an `observer` do reference counting so they don't untrack too aggressively
|
|
44
|
+
- Fix: `delete()` was notifying listeners with the value undefined, but the key not yet deleted
|
|
45
|
+
- Fix: `observer` was sometimes missing updates occurring between render and mount
|
|
46
|
+
|
|
47
|
+
## 0.11.0-beta.7
|
|
48
|
+
- Fix: New set option with function parameter was breaking persistence
|
|
49
|
+
- Fix: Component useEffect was getting called before observer could listen for changes
|
|
50
|
+
|
|
51
|
+
## 0.11.0-beta.6
|
|
52
|
+
- Fix: Babel plugin adds imports only once, only if not already imported
|
|
53
|
+
|
|
54
|
+
## 0.11.0-beta.5
|
|
55
|
+
- Feat: `set()` can take a function to easily compute it relative to the previous value
|
|
56
|
+
|
|
57
|
+
## 0.11.0-beta.4
|
|
58
|
+
- Feat: Added `traceListeners` and `traceUpdates` functions (exported from @legendapp/state/trace). Call them within an observer. `traceListeners` logs the path of all tracked observables, while `traceUpdates` logs details of each observable change that causes a render.
|
|
59
|
+
|
|
60
|
+
## 0.11.0-beta.3
|
|
61
|
+
- Fix: observer was not working the first time in StrictMode
|
|
62
|
+
- Fix: observer was not cleaning up old listeners when the the tracked observables changed
|