@typed/ui 1.0.0-beta.13 → 1.0.0-beta.14
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 +1 -1
- package/dist/HttpRouter.d.ts +5 -5
- package/dist/HttpRouter.d.ts.map +1 -1
- package/dist/HttpRouter.js +7 -7
- package/package.json +8 -8
package/README.md
CHANGED
package/dist/HttpRouter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
|
-
import { type HttpRouter, type Provided as HttpRouterProvided, type Request as HttpRouterRequest } from "effect/
|
|
3
|
-
import * as HttpServerError from "effect/
|
|
2
|
+
import { type HttpRouter, type Provided as HttpRouterProvided, type Request as HttpRouterRequest } from "effect/http/HttpRouter";
|
|
3
|
+
import * as HttpServerError from "effect/http/HttpServerError";
|
|
4
4
|
import { type Matcher, type Router } from "@typed/router";
|
|
5
5
|
import { type Navigation } from "@typed/navigation";
|
|
6
6
|
import { type RenderEvent } from "@typed/template";
|
|
@@ -38,7 +38,7 @@ type SsrForHttpEffect<E, R> = Effect.Effect<void, never, SsrForHttpRequirement<E
|
|
|
38
38
|
* ```ts
|
|
39
39
|
* import { ssrForHttp } from "@typed/ui/HttpRouter"
|
|
40
40
|
* import { Effect } from "effect"
|
|
41
|
-
* import * as HttpRouter from "effect/
|
|
41
|
+
* import * as HttpRouter from "effect/http/HttpRouter"
|
|
42
42
|
* import { Parse, match } from "@typed/router"
|
|
43
43
|
* import { html } from "@typed/template"
|
|
44
44
|
*
|
|
@@ -80,7 +80,7 @@ export declare const ssrForHttp: {
|
|
|
80
80
|
* ```ts
|
|
81
81
|
* import { streamingSsrForHttp } from "@typed/ui/HttpRouter"
|
|
82
82
|
* import { Effect } from "effect"
|
|
83
|
-
* import * as HttpRouter from "effect/
|
|
83
|
+
* import * as HttpRouter from "effect/http/HttpRouter"
|
|
84
84
|
* import { Parse, match } from "@typed/router"
|
|
85
85
|
* import { html } from "@typed/template"
|
|
86
86
|
*
|
|
@@ -119,7 +119,7 @@ export declare const streamingSsrForHttp: {
|
|
|
119
119
|
* ```ts
|
|
120
120
|
* import { handleHttpServerError } from "@typed/ui/HttpRouter"
|
|
121
121
|
* import { Effect } from "effect"
|
|
122
|
-
* import * as HttpRouter from "effect/
|
|
122
|
+
* import * as HttpRouter from "effect/http/HttpRouter"
|
|
123
123
|
*
|
|
124
124
|
* const router = Effect.gen(function* () {
|
|
125
125
|
* const router = yield* HttpRouter.make
|
package/dist/HttpRouter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpRouter.d.ts","sourceRoot":"","sources":["../src/HttpRouter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAOxC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,QAAQ,IAAI,kBAAkB,EACnC,KAAK,OAAO,IAAI,iBAAiB,EAGlC,MAAM,
|
|
1
|
+
{"version":3,"file":"HttpRouter.d.ts","sourceRoot":"","sources":["../src/HttpRouter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAOxC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,QAAQ,IAAI,kBAAkB,EACnC,KAAK,OAAO,IAAI,iBAAiB,EAGlC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAG/D,OAAO,EAML,KAAK,OAAO,EAKZ,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAoC,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAErF,KAAK,cAAc,GAAG,kBAAkB,GAAG,UAAU,GAAG,MAAM,CAAC;AAE/D,KAAK,qBAAqB,CAAC,CAAC,EAAE,CAAC,IAC3B,OAAO,CAAC,CAAC,EAAE,cAA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MAAM,EAAE,UAAU,yEAQvD"}
|
package/dist/HttpRouter.js
CHANGED
|
@@ -6,10 +6,10 @@ import * as Option from "effect/Option";
|
|
|
6
6
|
import * as Context from "effect/Context";
|
|
7
7
|
import { hasProperty } from "effect/Predicate";
|
|
8
8
|
import * as Stream from "effect/Stream";
|
|
9
|
-
import { RouteContext, } from "effect/
|
|
10
|
-
import * as HttpServerError from "effect/
|
|
11
|
-
import * as HttpServerRequest from "effect/
|
|
12
|
-
import * as HttpServerResponse from "effect/
|
|
9
|
+
import { RouteContext, } from "effect/http/HttpRouter";
|
|
10
|
+
import * as HttpServerError from "effect/http/HttpServerError";
|
|
11
|
+
import * as HttpServerRequest from "effect/http/HttpServerRequest";
|
|
12
|
+
import * as HttpServerResponse from "effect/http/HttpServerResponse";
|
|
13
13
|
import { compile, CurrentRoute, makeRouteExecutor, Join, Parse, } from "@typed/router";
|
|
14
14
|
import { Uuid7State } from "@typed/id/Uuid7";
|
|
15
15
|
import { initialMemory } from "@typed/navigation";
|
|
@@ -82,7 +82,7 @@ function getMatcherPath(path) {
|
|
|
82
82
|
* ```ts
|
|
83
83
|
* import { ssrForHttp } from "@typed/ui/HttpRouter"
|
|
84
84
|
* import { Effect } from "effect"
|
|
85
|
-
* import * as HttpRouter from "effect/
|
|
85
|
+
* import * as HttpRouter from "effect/http/HttpRouter"
|
|
86
86
|
* import { Parse, match } from "@typed/router"
|
|
87
87
|
* import { html } from "@typed/template"
|
|
88
88
|
*
|
|
@@ -121,7 +121,7 @@ export const ssrForHttp = makeSsrForHttp(bufferedResponse());
|
|
|
121
121
|
* ```ts
|
|
122
122
|
* import { streamingSsrForHttp } from "@typed/ui/HttpRouter"
|
|
123
123
|
* import { Effect } from "effect"
|
|
124
|
-
* import * as HttpRouter from "effect/
|
|
124
|
+
* import * as HttpRouter from "effect/http/HttpRouter"
|
|
125
125
|
* import { Parse, match } from "@typed/router"
|
|
126
126
|
* import { html } from "@typed/template"
|
|
127
127
|
*
|
|
@@ -157,7 +157,7 @@ export const streamingSsrForHttp = makeSsrForHttp(streamingResponse());
|
|
|
157
157
|
* ```ts
|
|
158
158
|
* import { handleHttpServerError } from "@typed/ui/HttpRouter"
|
|
159
159
|
* import { Effect } from "effect"
|
|
160
|
-
* import * as HttpRouter from "effect/
|
|
160
|
+
* import * as HttpRouter from "effect/http/HttpRouter"
|
|
161
161
|
*
|
|
162
162
|
* const router = Effect.gen(function* () {
|
|
163
163
|
* const router = yield* HttpRouter.make
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typed/ui",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.14",
|
|
4
4
|
"description": "Web integration for Typed routing, templates, and Effect HTTP.",
|
|
5
5
|
"homepage": "https://github.com/TylorS/typed/tree/development/packages/ui#readme",
|
|
6
6
|
"bugs": "https://github.com/TylorS/typed/issues",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@typed/fx": "2.0.0-beta.
|
|
33
|
-
"@typed/id": "1.0.0-beta.
|
|
34
|
-
"@typed/navigation": "1.0.0-beta.
|
|
35
|
-
"@typed/router": "1.0.0-beta.
|
|
36
|
-
"@typed/template": "1.0.0-beta.
|
|
32
|
+
"@typed/fx": "2.0.0-beta.14",
|
|
33
|
+
"@typed/id": "1.0.0-beta.14",
|
|
34
|
+
"@typed/navigation": "1.0.0-beta.14",
|
|
35
|
+
"@typed/router": "1.0.0-beta.14",
|
|
36
|
+
"@typed/template": "1.0.0-beta.14"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@effect/platform-node": "4.0.0
|
|
39
|
+
"@effect/platform-node": "4.0.0",
|
|
40
40
|
"@storybook/addon-a11y": "10.6.0",
|
|
41
41
|
"@storybook/addon-vitest": "10.6.0",
|
|
42
42
|
"@storybook/html-vite": "10.6.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@vitest/browser-playwright": "5.0.1",
|
|
45
45
|
"@vitest/coverage-v8": "5.0.1",
|
|
46
46
|
"daisyui": "^5.7.38",
|
|
47
|
-
"effect": "4.0.0
|
|
47
|
+
"effect": "4.0.0",
|
|
48
48
|
"happy-dom": "20.14.5",
|
|
49
49
|
"playwright": "^1.63.0",
|
|
50
50
|
"storybook": "10.6.0",
|