@opetope/react 0.8.0 → 0.8.1
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 +14 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @opetope/react
|
|
2
2
|
|
|
3
|
+
## 0.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a36f487: Restore two writes that the one calling shape had closed off in types only; runtime behaviour is unchanged.
|
|
8
|
+
|
|
9
|
+
`ctx.update` is two overloads instead of one union. As a union the value half `PlainStateValue<Value>` stayed a deferred conditional, and a deferred target cannot discriminate a union state, so naming one member of a state whose other members lack its fields — writing `{ error, kind: 'failed' }` into `{ kind: 'idle' | 'ready' } | { error: unknown; kind: 'failed' }` — stopped compiling. Alone in the value overload the same conditional resolves, so D282 still holds: a function in that position is the updater, and a function-valued state is written through one. The updater's return is checked against the state, so a branch returning a narrower literal needs a return annotation.
|
|
10
|
+
|
|
11
|
+
`ctx.call(run, options)` treats the body and its modifiers as one inference pool again. D279 lets either side declare the input, but `ModelCallOptions<NoInfer<Input>>` removed the options as an inference site, so a call whose input is declared by `once` or `dedupe` left an unannotated `run` parameter implicitly `any` and failed over to the selection overload with an unrelated error. A body that declares its own input was never affected.
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [a36f487]
|
|
14
|
+
- @opetope/core@0.8.1
|
|
15
|
+
- @opetope/runtime@0.8.1
|
|
16
|
+
|
|
3
17
|
## 0.8.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opetope/react",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.19.0"
|
|
6
6
|
},
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
}
|
|
51
51
|
],
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@opetope/core": "0.8.
|
|
54
|
-
"@opetope/runtime": "0.8.
|
|
53
|
+
"@opetope/core": "0.8.1",
|
|
54
|
+
"@opetope/runtime": "0.8.1",
|
|
55
55
|
"@testing-library/react": "16.3.3",
|
|
56
56
|
"@types/react": "19.2.18",
|
|
57
57
|
"react": "19.2.8",
|
|
58
58
|
"react-dom": "19.2.8"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@opetope/core": "0.8.
|
|
62
|
-
"@opetope/runtime": "0.8.
|
|
61
|
+
"@opetope/core": "0.8.1",
|
|
62
|
+
"@opetope/runtime": "0.8.1",
|
|
63
63
|
"react": ">=19.0.0 <20"
|
|
64
64
|
},
|
|
65
65
|
"sideEffects": false,
|