@open-pioneer/reactivity 4.9.0 → 4.10.0-dev.20261119090001
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 +28 -21
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @open-pioneer/reactivity
|
|
2
2
|
|
|
3
|
+
## 4.10.0-dev.20261119090001
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 57b5b4f: Enable trusted publishing for this package.
|
|
8
|
+
- 93d2a9f: Update dependencies
|
|
9
|
+
|
|
3
10
|
## 4.9.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -41,7 +48,7 @@
|
|
|
41
48
|
- 4e76893: Update Chakra UI to 3.34.0
|
|
42
49
|
- 19b26dc: Allow configuration of dispatch timing in `useReactiveSnapshot` and `useReactive`.
|
|
43
50
|
|
|
44
|
-
|
|
51
|
+
This is intended as a fix for https://github.com/open-pioneer/trails-core-packages/issues/125.
|
|
45
52
|
|
|
46
53
|
## 4.4.0
|
|
47
54
|
|
|
@@ -96,13 +103,13 @@
|
|
|
96
103
|
### Major Changes
|
|
97
104
|
|
|
98
105
|
- 9477e54: Update dependencies
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
106
|
+
- React 19
|
|
107
|
+
- Vite 6
|
|
108
|
+
- FormatJS 3
|
|
109
|
+
- Open Pioneer Build Tools
|
|
110
|
+
- ...
|
|
104
111
|
|
|
105
|
-
|
|
112
|
+
For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
|
|
106
113
|
|
|
107
114
|
## 2.4.0
|
|
108
115
|
|
|
@@ -129,20 +136,20 @@
|
|
|
129
136
|
|
|
130
137
|
- 5d3aafd: Initial release.
|
|
131
138
|
|
|
132
|
-
|
|
133
|
-
|
|
139
|
+
You can use the hook `useReactiveSnapshot` to write React components that make use of the reactivity API of [@conterra/reactivity-core](https://www.npmjs.com/package/@conterra/reactivity-core).
|
|
140
|
+
Quick example:
|
|
134
141
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
142
|
+
```tsx
|
|
143
|
+
export function YourComponent({ model }) {
|
|
144
|
+
// model is implemented using the reactivity API
|
|
145
|
+
const fullName = useReactiveSnapshot(() => {
|
|
146
|
+
return `${model.firstName} ${model.lastName}`;
|
|
147
|
+
}, [model]);
|
|
141
148
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
149
|
+
// Name is automatically kept up-to-date.
|
|
150
|
+
return <div>Hello {fullName}</div>;
|
|
151
|
+
}
|
|
152
|
+
```
|
|
146
153
|
|
|
147
|
-
|
|
148
|
-
|
|
154
|
+
The reactivity API is not directly used in any trails packages at this time.
|
|
155
|
+
However, moving forward, most packages will use the reactivity API as _the_ common reactivity system.
|