@weftui/dom 0.31.0 → 0.31.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/README.md
CHANGED
|
@@ -9,10 +9,10 @@ Two entry points: `@weftui/dom/client` for the browser, `@weftui/dom/server` for
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install @weftui/core @weftui/dom effect@
|
|
12
|
+
npm install @weftui/core @weftui/dom effect@rc
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Weft tracks Effect 4's beta
|
|
15
|
+
Weft tracks Effect 4's prerelease line (beta, then rc). This release is built and tested against `effect@4.0.0-rc.112`; the peer range accepts newer 4.0 prereleases, which may contain upstream breaking changes.
|
|
16
16
|
|
|
17
17
|
`effect` is a peer dependency; `@weftui/core` is required to author the tree.
|
|
18
18
|
|
|
@@ -551,7 +551,7 @@ Option.isSome(httpApiClient); // true under RouterLive, false under RouterServer
|
|
|
551
551
|
| `RouterNotFound` | `notFound()`, or no route matched | `Boundary.catchTag(…)` (or the app-level `notFound` page) |
|
|
552
552
|
| `RouterParamsError` | `Router.params` / `Router.query` on a missing/invalid key or no match | `Boundary.catchTag(…)` |
|
|
553
553
|
|
|
554
|
-
Both are modeled as `Schema.
|
|
554
|
+
Both are modeled as `Schema.TaggedError`, so they encode/decode across the wire the same way `Boundary.rpc` replays typed failures.
|
|
555
555
|
|
|
556
556
|
Recover locally by wrapping just the subtree that can fail, rather than relying on the app-level `notFound` page for everything:
|
|
557
557
|
|
|
@@ -163,7 +163,7 @@ Give the rpc an `error` schema and a resolved rpc **error** on the SSR pass is `
|
|
|
163
163
|
import { Rpc, RpcGroup } from "effect/unstable/rpc";
|
|
164
164
|
import { Schema } from "effect";
|
|
165
165
|
|
|
166
|
-
export class OutOfStock extends Schema.
|
|
166
|
+
export class OutOfStock extends Schema.TaggedError<OutOfStock>()("OutOfStock", {
|
|
167
167
|
reason: Schema.String,
|
|
168
168
|
}) {}
|
|
169
169
|
|
package/docs/reference/router.md
CHANGED
|
@@ -316,11 +316,11 @@ Dispatch runs through the `def.httpApi` spine via `HttpApiBuilder`: platform own
|
|
|
316
316
|
|
|
317
317
|
### `RouterNotFound`
|
|
318
318
|
|
|
319
|
-
`Schema.
|
|
319
|
+
`Schema.TaggedError` with an optional `path: string`. Raised by [`notFound`](#notfound) or when no route matches. Caught by the router's internal not-found boundary; export it to place your own `Boundary.catchTag("RouterNotFound", …)` (a nearer user boundary wins).
|
|
320
320
|
|
|
321
321
|
### `RouterParamsError`
|
|
322
322
|
|
|
323
|
-
`Schema.
|
|
323
|
+
`Schema.TaggedError` with `source: "path" | "query"` and `keys: readonly string[]`. Raised by `Router.params` / `Router.query` when the live match doesn't satisfy the requested fields. Bubbles into the tree's aggregate error channel.
|
|
324
324
|
|
|
325
325
|
### `notFound`
|
|
326
326
|
|
|
@@ -14,10 +14,10 @@ Across this tutorial you build one app: a counter. This step renders its static
|
|
|
14
14
|
## Install
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install @weftui/core @weftui/dom effect@
|
|
17
|
+
npm install @weftui/core @weftui/dom effect@rc
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Weft tracks Effect 4's beta
|
|
20
|
+
Weft tracks Effect 4's prerelease line (beta, then rc). This release is built and tested against `effect@4.0.0-rc.112`; the peer range accepts newer 4.0 prereleases, which may contain upstream breaking changes.
|
|
21
21
|
|
|
22
22
|
## Build and mount it
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weftui/dom",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.1",
|
|
4
4
|
"description": "DOM renderer for Weft: mount and hydrate in the browser, render to string or stream on the server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dom",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@weftui/core": "0.31.
|
|
47
|
+
"@weftui/core": "0.31.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/jsdom": "^28.0.3",
|
|
51
51
|
"@types/node": "^26.1.1",
|
|
52
|
-
"effect": "4.0.0-
|
|
52
|
+
"effect": "4.0.0-rc.112",
|
|
53
53
|
"jsdom": "^29.1.1",
|
|
54
54
|
"tstyche": "^7.2.2",
|
|
55
55
|
"tsx": "^4.23.1",
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"vite-plus": "0.2.5"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"effect": ">=4.0.0-
|
|
61
|
+
"effect": ">=4.0.0-rc.112 <4.0.0"
|
|
62
62
|
}
|
|
63
63
|
}
|