@fragno-dev/core 0.1.10 → 0.1.11
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/.turbo/turbo-build.log +131 -131
- package/CHANGELOG.md +12 -0
- package/dist/api/api.d.ts +5 -5
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/api.js.map +1 -1
- package/dist/api/fragment-instantiator.d.ts +116 -26
- package/dist/api/fragment-instantiator.d.ts.map +1 -1
- package/dist/api/fragment-instantiator.js +69 -31
- package/dist/api/fragment-instantiator.js.map +1 -1
- package/dist/mod-client.d.ts +6 -14
- package/dist/mod-client.d.ts.map +1 -1
- package/dist/mod-client.js +36 -9
- package/dist/mod-client.js.map +1 -1
- package/dist/mod.d.ts +2 -2
- package/package.json +9 -2
- package/src/api/api.ts +2 -0
- package/src/api/fragment-instantiator.test.ts +143 -1
- package/src/api/fragment-instantiator.ts +237 -30
- package/src/mod-client.ts +44 -8
- package/src/mod.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,138 +1,138 @@
|
|
|
1
1
|
|
|
2
|
-
> @fragno-dev/core@0.1.
|
|
2
|
+
> @fragno-dev/core@0.1.11 build /home/runner/work/fragno/fragno/packages/fragno
|
|
3
3
|
> tsdown
|
|
4
4
|
|
|
5
5
|
[34mℹ[39m tsdown [2mv0.15.12[22m powered by rolldown [2mv1.0.0-beta.45[22m
|
|
6
6
|
[34mℹ[39m Using tsdown config: [4m/home/runner/work/fragno/fragno/packages/fragno/tsdown.config.ts[24m
|
|
7
|
-
[34mℹ[39m entry: [34msrc/mod-client.ts, src/mod.ts, src/api/api.ts, src/api/fragment-definition-builder.ts, src/api/fragment-instantiator.ts, src/api/request-context-storage.ts, src/api/route.ts, src/api/shared-types.ts, src/client/client.svelte.ts, src/client/client.ts, src/client/react.ts, src/client/solid.ts, src/client/vanilla.ts, src/client/vue.ts, src/integrations/react-ssr.ts, src/internal/symbols.ts, src/
|
|
7
|
+
[34mℹ[39m entry: [34msrc/mod-client.ts, src/mod.ts, src/api/api.ts, src/api/fragment-definition-builder.ts, src/api/fragment-instantiator.ts, src/api/request-context-storage.ts, src/api/route.ts, src/api/shared-types.ts, src/client/client.svelte.ts, src/client/client.ts, src/client/react.ts, src/client/solid.ts, src/client/vanilla.ts, src/client/vue.ts, src/integrations/react-ssr.ts, src/internal/symbols.ts, src/test/test.ts, src/request/request.ts[39m
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
|
-
[34mℹ[39m [2mdist/[22m[1mapi/fragment-instantiator.js[22m [
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[1mclient/client.js[22m [2m14.56 kB[22m [2m│ gzip:
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[1mapi/fragment-definition-builder.js[22m [2m11.14 kB[22m [2m│ gzip:
|
|
13
|
-
[34mℹ[39m [2mdist/[22m[1mtest/test.js[22m [2m 3.67 kB[22m [2m│ gzip:
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[1mclient/client.svelte.js[22m [2m 3.20 kB[22m [2m│ gzip:
|
|
15
|
-
[34mℹ[39m [2mdist/[22m[1mclient/solid.js[22m [2m 2.95 kB[22m [2m│ gzip:
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[1mclient/vue.js[22m [2m 2.77 kB[22m [2m│ gzip:
|
|
17
|
-
[34mℹ[39m [2mdist/[22m[1mclient/react.js[22m [2m 2.43 kB[22m [2m│ gzip:
|
|
18
|
-
[34mℹ[39m [2mdist/[22m[1mclient/vanilla.js[22m [2m 2.15 kB[22m [2m│ gzip:
|
|
19
|
-
[34mℹ[39m [2mdist/[22m[
|
|
20
|
-
[34mℹ[39m [2mdist/[22m[
|
|
21
|
-
[34mℹ[39m [2mdist/[22m[
|
|
22
|
-
[34mℹ[39m [2mdist/[22m[1mapi/route.js[22m [2m 0.67 kB[22m [2m│ gzip:
|
|
23
|
-
[34mℹ[39m [2mdist/[22m[1mrequest/request.js[22m [2m 0.37 kB[22m [2m│ gzip:
|
|
24
|
-
[34mℹ[39m [2mdist/[22m[1mmod.js[22m [2m 0.31 kB[22m [2m│ gzip:
|
|
25
|
-
[34mℹ[39m [2mdist/[22m[1minternal/symbols.js[22m [2m 0.31 kB[22m [2m│ gzip:
|
|
26
|
-
[34mℹ[39m [2mdist/[22m[1mapi/api.js[22m [2m 0.25 kB[22m [2m│ gzip:
|
|
27
|
-
[34mℹ[39m [2mdist/[22m[1mapi/shared-types.js[22m [2m 0.01 kB[22m [2m│ gzip:
|
|
28
|
-
[34mℹ[39m [2mdist/[
|
|
29
|
-
[34mℹ[39m [2mdist/[
|
|
30
|
-
[34mℹ[39m [2mdist/[22mapi/fragment-definition-builder.js.map [2m36.28 kB[22m [2m│ gzip:
|
|
31
|
-
[34mℹ[39m [2mdist/[22mapi/route.js.map [2m14.01 kB[22m [2m│ gzip:
|
|
32
|
-
[34mℹ[39m [2mdist/[22mapi/internal/path.js.map [2m11.83 kB[22m [2m│ gzip:
|
|
33
|
-
[34mℹ[39m [2mdist/[22mclient/client.svelte.js.map [2m11.35 kB[22m [2m│ gzip:
|
|
34
|
-
[34mℹ[39m [2mdist/[22mclient/solid.js.map [2m11.00 kB[22m [2m│ gzip:
|
|
35
|
-
[34mℹ[39m [2mdist/[22mclient/internal/ndjson-streaming.js.map [2m10.96 kB[22m [2m│ gzip:
|
|
36
|
-
[34mℹ[39m [2mdist/[22mclient/vue.js.map [2m10.13 kB[22m [2m│ gzip:
|
|
37
|
-
[34mℹ[39m [2mdist/[22mclient/client.d.ts.map [2m10.13 kB[22m [2m│ gzip:
|
|
38
|
-
[34mℹ[39m [2mdist/[22mclient/react.js.map [2m 9.54 kB[22m [2m│ gzip:
|
|
39
|
-
[34mℹ[39m [2mdist/[22mclient/vanilla.js.map [2m 9.20 kB[22m [2m│ gzip:
|
|
40
|
-
[34mℹ[39m [2mdist/[22mapi/fragment-
|
|
41
|
-
[34mℹ[39m [2mdist/[
|
|
42
|
-
[34mℹ[39m [2mdist/[
|
|
43
|
-
[34mℹ[39m [2mdist/[22mapi/request-
|
|
44
|
-
[34mℹ[39m [2mdist/[22mapi/
|
|
45
|
-
[34mℹ[39m [2mdist/[22mclient/client-error.js.map [2m 5.88 kB[22m [2m│ gzip:
|
|
46
|
-
[34mℹ[39m [2mdist/[22mapi/route.d.ts.map [2m 5.72 kB[22m [2m│ gzip:
|
|
47
|
-
[34mℹ[39m [2mdist/[22mapi/request-middleware.js.map [2m 5.67 kB[22m [2m│ gzip:
|
|
48
|
-
[34mℹ[39m [2mdist/[22mclient/internal/ndjson-streaming.js [2m 4.96 kB[22m [2m│ gzip:
|
|
49
|
-
[34mℹ[39m [2mdist/[
|
|
50
|
-
[34mℹ[39m [2mdist/[22mapi/
|
|
51
|
-
[34mℹ[39m [2mdist/[22mapi/
|
|
52
|
-
[34mℹ[39m [2mdist/[
|
|
53
|
-
[34mℹ[39m [2mdist/[
|
|
54
|
-
[34mℹ[39m [2mdist/[22mapi/request-
|
|
55
|
-
[34mℹ[39m [2mdist/[22mapi/request-
|
|
56
|
-
[34mℹ[39m [2mdist/[
|
|
57
|
-
[34mℹ[39m [2mdist/[22mutil/content-type.js.map [2m 3.24 kB[22m [2m│ gzip:
|
|
58
|
-
[34mℹ[39m [2mdist/[22mclient/client-error.js [2m 3.17 kB[22m [2m│ gzip:
|
|
59
|
-
[34mℹ[39m [2mdist/[22mutil/ssr.js.map [2m 2.95 kB[22m [2m│ gzip:
|
|
60
|
-
[34mℹ[39m [2mdist/[22mapi/request-context-storage.js.map [2m 2.94 kB[22m [2m│ gzip:
|
|
61
|
-
[34mℹ[39m [2mdist/[22mclient/vanilla.d.ts.map [2m 2.89 kB[22m [2m│ gzip:
|
|
62
|
-
[34mℹ[39m [2mdist/[22mclient/react.d.ts.map [2m 2.64 kB[22m [2m│ gzip:
|
|
63
|
-
[34mℹ[39m [2mdist/[22mclient/solid.d.ts.map [2m 2.44 kB[22m [2m│ gzip:
|
|
64
|
-
[34mℹ[39m [2mdist/[22mclient/internal/fetcher-merge.js.map [2m 2.44 kB[22m [2m│ gzip:
|
|
65
|
-
[34mℹ[39m [2mdist/[22mutil/nanostores.js.map [2m 2.43 kB[22m [2m│ gzip:
|
|
66
|
-
[34mℹ[39m [2mdist/[22mapi/mutable-request-state.js [2m 2.40 kB[22m [2m│ gzip:
|
|
67
|
-
[34mℹ[39m [2mdist/[22mclient/client.svelte.d.ts.map [2m 2.32 kB[22m [2m│ gzip:
|
|
68
|
-
[34mℹ[39m [2mdist/[22mapi/internal/path.js [2m 2.23 kB[22m [2m│ gzip:
|
|
69
|
-
[34mℹ[39m [2mdist/[22mapi/request-middleware.js [2m 2.17 kB[22m [2m│ gzip:
|
|
70
|
-
[34mℹ[39m [2mdist/[22mclient/vue.d.ts.map [2m 2.14 kB[22m [2m│ gzip:
|
|
71
|
-
[34mℹ[39m [2mdist/[22mapi/api.d.ts.map [2m 1.96 kB[22m [2m│ gzip:
|
|
72
|
-
[34mℹ[39m [2mdist/[22mapi/error.js.map [2m 1.96 kB[22m [2m│ gzip:
|
|
73
|
-
[34mℹ[39m [2mdist/[22mapi/bind-services.js.map [2m 1.96 kB[22m [2m│ gzip:
|
|
74
|
-
[34mℹ[39m [2mdist/[22mapi/internal/response-stream.js [2m 1.76 kB[22m [2m│ gzip:
|
|
75
|
-
[34mℹ[39m [2mdist/[22mintegrations/react-ssr.js.map [2m 1.65 kB[22m [2m│ gzip:
|
|
76
|
-
[34mℹ[39m [2mdist/[22mapi/fragno-response.js [2m 1.65 kB[22m [2m│ gzip:
|
|
77
|
-
[34mℹ[39m [2mdist/[22mutil/content-type.js [2m 1.61 kB[22m [2m│ gzip:
|
|
78
|
-
[34mℹ[39m [2mdist/[22mapi/internal/path.d.ts.map [2m 1.58 kB[22m [2m│ gzip:
|
|
79
|
-
[34mℹ[39m [2mdist/[22mapi/request-input-context.d.ts.map [2m 1.55 kB[22m [2m│ gzip:
|
|
80
|
-
[34mℹ[39m [2mdist/[22mapi/request-middleware.d.ts.map [2m 1.51 kB[22m [2m│ gzip:
|
|
81
|
-
[34mℹ[39m [2mdist/[22mutil/ssr.js [2m 1.34 kB[22m [2m│ gzip:
|
|
82
|
-
[34mℹ[39m [2mdist/[22mapi/request-output-context.d.ts.map [2m 1.29 kB[22m [2m│ gzip:
|
|
83
|
-
[34mℹ[39m [2mdist/[22mclient/client-error.d.ts.map [2m 1.26 kB[22m [2m│ gzip:
|
|
84
|
-
[34mℹ[39m [2mdist/[22mutil/nanostores.js [2m 1.25 kB[22m [2m│ gzip:
|
|
85
|
-
[34mℹ[39m [2mdist/[22mclient/internal/fetcher-merge.js [2m 1.23 kB[22m [2m│ gzip:
|
|
86
|
-
[34mℹ[39m [2mdist/[22mutil/async.js [2m 1.19 kB[22m [2m│ gzip:
|
|
87
|
-
[34mℹ[39m [2mdist/[22mtest/test.d.ts.map [2m 1.07 kB[22m [2m│ gzip:
|
|
88
|
-
[34mℹ[39m [2mdist/[22mapi/error.js [2m 0.96 kB[22m [2m│ gzip:
|
|
89
|
-
[34mℹ[39m [2mdist/[22mapi/bind-services.js [2m 0.79 kB[22m [2m│ gzip:
|
|
90
|
-
[34mℹ[39m [2mdist/[22mapi/error.d.ts.map [2m 0.58 kB[22m [2m│ gzip:
|
|
91
|
-
[34mℹ[39m [2mdist/[22mhttp/http-status.d.ts.map [2m 0.56 kB[22m [2m│ gzip:
|
|
92
|
-
[34mℹ[39m [2mdist/[22mapi/request-context-storage.d.ts.map [2m 0.56 kB[22m [2m│ gzip:
|
|
93
|
-
[34mℹ[39m [2mdist/[22mapi/route-handler-input-options.d.ts.map [2m 0.54 kB[22m [2m│ gzip:
|
|
94
|
-
[34mℹ[39m [2mdist/[22mapi/internal/route.js.map [2m 0.50 kB[22m [2m│ gzip:
|
|
95
|
-
[34mℹ[39m [2mdist/[22mapi/bind-services.d.ts.map [2m 0.47 kB[22m [2m│ gzip:
|
|
96
|
-
[34mℹ[39m [2mdist/[22mapi/internal/response-stream.d.ts.map [2m 0.37 kB[22m [2m│ gzip:
|
|
97
|
-
[34mℹ[39m [2mdist/[22mapi/fragno-response.d.ts.map [2m 0.37 kB[22m [2m│ gzip:
|
|
98
|
-
[34mℹ[39m [2mdist/[22minternal/symbols.js.map [2m 0.35 kB[22m [2m│ gzip:
|
|
99
|
-
[34mℹ[39m [2mdist/[22mapi/shared-types.d.ts.map [2m 0.31 kB[22m [2m│ gzip:
|
|
100
|
-
[34mℹ[39m [2mdist/[22mapi/internal/route.js [2m 0.28 kB[22m [2m│ gzip:
|
|
101
|
-
[34mℹ[39m [2mdist/[22mapi/mutable-request-state.d.ts.map [2m 0.28 kB[22m [2m│ gzip:
|
|
102
|
-
[34mℹ[39m [2mdist/[22mmod-client.d.ts.map [2m 0.
|
|
103
|
-
[34mℹ[39m [2mdist/[22mintegrations/react-ssr.d.ts.map [2m 0.23 kB[22m [2m│ gzip:
|
|
104
|
-
[34mℹ[39m [2mdist/[22mutil/types-util.d.ts.map [2m 0.21 kB[22m [2m│ gzip:
|
|
105
|
-
[34mℹ[39m [2mdist/[22minternal/symbols.d.ts.map [2m 0.14 kB[22m [2m│ gzip:
|
|
106
|
-
[34mℹ[39m [2mdist/[22m[32m[1mapi/fragment-definition-builder.d.ts[22m[39m [2m16.64 kB[22m [2m│ gzip:
|
|
107
|
-
[34mℹ[39m [2mdist/[22m[32m[
|
|
108
|
-
[34mℹ[39m [2mdist/[22m[32m[
|
|
109
|
-
[34mℹ[39m [2mdist/[22m[32m[1mapi/route.d.ts[22m[39m [2m 7.03 kB[22m [2m│ gzip:
|
|
110
|
-
[34mℹ[39m [2mdist/[22m[32m[1mtest/test.d.ts[22m[39m [2m 5.09 kB[22m [2m│ gzip:
|
|
111
|
-
[34mℹ[39m [2mdist/[22m[32m[1mclient/vanilla.d.ts[22m[39m [2m 3.70 kB[22m [2m│ gzip:
|
|
112
|
-
[34mℹ[39m [2mdist/[22m[32m[1mclient/react.d.ts[22m[39m [2m 3.48 kB[22m [2m│ gzip:
|
|
113
|
-
[34mℹ[39m [2mdist/[22m[32m[
|
|
114
|
-
[34mℹ[39m [2mdist/[22m[32m[
|
|
115
|
-
[34mℹ[39m [2mdist/[22m[32m[1mclient/client.svelte.d.ts[22m[39m [2m 2.88 kB[22m [2m│ gzip:
|
|
116
|
-
[34mℹ[39m [2mdist/[22m[32m[1mclient/vue.d.ts[22m[39m [2m 2.82 kB[22m [2m│ gzip:
|
|
117
|
-
[34mℹ[39m [2mdist/[22m[32m[1mmod-client.d.ts[22m[39m [2m 1.
|
|
118
|
-
[34mℹ[39m [2mdist/[22m[32m[1mapi/request-context-storage.d.ts[22m[39m [2m 1.79 kB[22m [2m│ gzip:
|
|
119
|
-
[34mℹ[39m [2mdist/[22m[32m[1mapi/shared-types.d.ts[22m[39m [2m 1.21 kB[22m [2m│ gzip:
|
|
120
|
-
[34mℹ[39m [2mdist/[22m[32m[1mmod.d.ts[22m[39m [2m 1.
|
|
121
|
-
[34mℹ[39m [2mdist/[22m[32m[1mintegrations/react-ssr.d.ts[22m[39m [2m 0.78 kB[22m [2m│ gzip:
|
|
122
|
-
[34mℹ[39m [2mdist/[22m[32m[1mrequest/request.d.ts[22m[39m [2m 0.48 kB[22m [2m│ gzip:
|
|
123
|
-
[34mℹ[39m [2mdist/[22m[32m[1minternal/symbols.d.ts[22m[39m [2m 0.32 kB[22m [2m│ gzip:
|
|
124
|
-
[34mℹ[39m [2mdist/[22m[32mapi/request-input-context.d.ts[39m [2m 3.08 kB[22m [2m│ gzip:
|
|
125
|
-
[34mℹ[39m [2mdist/[22m[32mapi/internal/path.d.ts[39m [2m 2.91 kB[22m [2m│ gzip:
|
|
126
|
-
[34mℹ[39m [2mdist/[22m[32mapi/request-middleware.d.ts[39m [2m 2.54 kB[22m [2m│ gzip:
|
|
127
|
-
[34mℹ[39m [2mdist/[22m[32mclient/client-error.d.ts[39m [2m 2.45 kB[22m [2m│ gzip:
|
|
128
|
-
[34mℹ[39m [2mdist/[22m[32mapi/mutable-request-state.d.ts[39m [2m 2.29 kB[22m [2m│ gzip:
|
|
129
|
-
[34mℹ[39m [2mdist/[22m[32mapi/request-output-context.d.ts[39m [2m 1.64 kB[22m [2m│ gzip:
|
|
130
|
-
[34mℹ[39m [2mdist/[22m[32mapi/internal/response-stream.d.ts[39m [2m 1.33 kB[22m [2m│ gzip:
|
|
131
|
-
[34mℹ[39m [2mdist/[22m[32mhttp/http-status.d.ts[39m [2m 1.26 kB[22m [2m│ gzip:
|
|
132
|
-
[34mℹ[39m [2mdist/[22m[32mapi/route-handler-input-options.d.ts[39m [2m 0.72 kB[22m [2m│ gzip:
|
|
133
|
-
[34mℹ[39m [2mdist/[22m[32mapi/error.d.ts[39m [2m 0.72 kB[22m [2m│ gzip:
|
|
134
|
-
[34mℹ[39m [2mdist/[22m[32mapi/fragno-response.d.ts[39m [2m 0.60 kB[22m [2m│ gzip:
|
|
135
|
-
[34mℹ[39m [2mdist/[22m[32mapi/bind-services.d.ts[39m [2m 0.42 kB[22m [2m│ gzip:
|
|
136
|
-
[34mℹ[39m [2mdist/[22m[32mutil/types-util.d.ts[39m [2m 0.35 kB[22m [2m│ gzip:
|
|
137
|
-
[34mℹ[39m 127 files, total:
|
|
138
|
-
[32m✔[39m Build complete in [
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mapi/fragment-instantiator.js[22m [2m16.68 kB[22m [2m│ gzip: 4.14 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mclient/client.js[22m [2m14.56 kB[22m [2m│ gzip: 3.65 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mapi/fragment-definition-builder.js[22m [2m11.14 kB[22m [2m│ gzip: 2.26 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mtest/test.js[22m [2m 3.67 kB[22m [2m│ gzip: 1.31 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mclient/client.svelte.js[22m [2m 3.20 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mclient/solid.js[22m [2m 2.95 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mclient/vue.js[22m [2m 2.77 kB[22m [2m│ gzip: 0.95 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mclient/react.js[22m [2m 2.43 kB[22m [2m│ gzip: 0.89 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22m[1mclient/vanilla.js[22m [2m 2.15 kB[22m [2m│ gzip: 0.66 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22m[1mmod-client.js[22m [2m 1.78 kB[22m [2m│ gzip: 0.64 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[1mapi/request-context-storage.js[22m [2m 1.49 kB[22m [2m│ gzip: 0.75 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[1mintegrations/react-ssr.js[22m [2m 1.26 kB[22m [2m│ gzip: 0.64 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[1mapi/route.js[22m [2m 0.67 kB[22m [2m│ gzip: 0.34 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[1mrequest/request.js[22m [2m 0.37 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22m[1mmod.js[22m [2m 0.31 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22m[1minternal/symbols.js[22m [2m 0.31 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22m[1mapi/api.js[22m [2m 0.25 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
27
|
+
[34mℹ[39m [2mdist/[22m[1mapi/shared-types.js[22m [2m 0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
28
|
+
[34mℹ[39m [2mdist/[22mapi/fragment-instantiator.js.map [2m49.42 kB[22m [2m│ gzip: 11.23 kB[22m
|
|
29
|
+
[34mℹ[39m [2mdist/[22mclient/client.js.map [2m43.95 kB[22m [2m│ gzip: 9.78 kB[22m
|
|
30
|
+
[34mℹ[39m [2mdist/[22mapi/fragment-definition-builder.js.map [2m36.28 kB[22m [2m│ gzip: 5.69 kB[22m
|
|
31
|
+
[34mℹ[39m [2mdist/[22mapi/route.js.map [2m14.01 kB[22m [2m│ gzip: 2.38 kB[22m
|
|
32
|
+
[34mℹ[39m [2mdist/[22mapi/internal/path.js.map [2m11.83 kB[22m [2m│ gzip: 3.06 kB[22m
|
|
33
|
+
[34mℹ[39m [2mdist/[22mclient/client.svelte.js.map [2m11.35 kB[22m [2m│ gzip: 2.76 kB[22m
|
|
34
|
+
[34mℹ[39m [2mdist/[22mclient/solid.js.map [2m11.00 kB[22m [2m│ gzip: 2.79 kB[22m
|
|
35
|
+
[34mℹ[39m [2mdist/[22mclient/internal/ndjson-streaming.js.map [2m10.96 kB[22m [2m│ gzip: 3.00 kB[22m
|
|
36
|
+
[34mℹ[39m [2mdist/[22mclient/vue.js.map [2m10.13 kB[22m [2m│ gzip: 2.78 kB[22m
|
|
37
|
+
[34mℹ[39m [2mdist/[22mclient/client.d.ts.map [2m10.13 kB[22m [2m│ gzip: 3.72 kB[22m
|
|
38
|
+
[34mℹ[39m [2mdist/[22mclient/react.js.map [2m 9.54 kB[22m [2m│ gzip: 3.03 kB[22m
|
|
39
|
+
[34mℹ[39m [2mdist/[22mclient/vanilla.js.map [2m 9.20 kB[22m [2m│ gzip: 2.32 kB[22m
|
|
40
|
+
[34mℹ[39m [2mdist/[22mapi/fragment-instantiator.d.ts.map [2m 9.17 kB[22m [2m│ gzip: 3.24 kB[22m
|
|
41
|
+
[34mℹ[39m [2mdist/[22mapi/fragment-definition-builder.d.ts.map [2m 8.65 kB[22m [2m│ gzip: 3.40 kB[22m
|
|
42
|
+
[34mℹ[39m [2mdist/[22mtest/test.js.map [2m 8.55 kB[22m [2m│ gzip: 2.44 kB[22m
|
|
43
|
+
[34mℹ[39m [2mdist/[22mapi/request-input-context.js.map [2m 8.29 kB[22m [2m│ gzip: 2.40 kB[22m
|
|
44
|
+
[34mℹ[39m [2mdist/[22mapi/request-output-context.js.map [2m 7.53 kB[22m [2m│ gzip: 2.29 kB[22m
|
|
45
|
+
[34mℹ[39m [2mdist/[22mclient/client-error.js.map [2m 5.88 kB[22m [2m│ gzip: 1.70 kB[22m
|
|
46
|
+
[34mℹ[39m [2mdist/[22mapi/route.d.ts.map [2m 5.72 kB[22m [2m│ gzip: 2.19 kB[22m
|
|
47
|
+
[34mℹ[39m [2mdist/[22mapi/request-middleware.js.map [2m 5.67 kB[22m [2m│ gzip: 1.97 kB[22m
|
|
48
|
+
[34mℹ[39m [2mdist/[22mclient/internal/ndjson-streaming.js [2m 4.96 kB[22m [2m│ gzip: 1.46 kB[22m
|
|
49
|
+
[34mℹ[39m [2mdist/[22mmod-client.js.map [2m 4.81 kB[22m [2m│ gzip: 1.45 kB[22m
|
|
50
|
+
[34mℹ[39m [2mdist/[22mapi/api.js.map [2m 4.37 kB[22m [2m│ gzip: 1.09 kB[22m
|
|
51
|
+
[34mℹ[39m [2mdist/[22mapi/internal/response-stream.js.map [2m 4.28 kB[22m [2m│ gzip: 1.80 kB[22m
|
|
52
|
+
[34mℹ[39m [2mdist/[22mapi/fragno-response.js.map [2m 4.18 kB[22m [2m│ gzip: 1.47 kB[22m
|
|
53
|
+
[34mℹ[39m [2mdist/[22mutil/async.js.map [2m 3.84 kB[22m [2m│ gzip: 1.53 kB[22m
|
|
54
|
+
[34mℹ[39m [2mdist/[22mapi/mutable-request-state.js.map [2m 3.76 kB[22m [2m│ gzip: 1.34 kB[22m
|
|
55
|
+
[34mℹ[39m [2mdist/[22mapi/request-output-context.js [2m 3.38 kB[22m [2m│ gzip: 1.02 kB[22m
|
|
56
|
+
[34mℹ[39m [2mdist/[22mapi/request-input-context.js [2m 3.34 kB[22m [2m│ gzip: 1.10 kB[22m
|
|
57
|
+
[34mℹ[39m [2mdist/[22mutil/content-type.js.map [2m 3.24 kB[22m [2m│ gzip: 1.23 kB[22m
|
|
58
|
+
[34mℹ[39m [2mdist/[22mclient/client-error.js [2m 3.17 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
59
|
+
[34mℹ[39m [2mdist/[22mutil/ssr.js.map [2m 2.95 kB[22m [2m│ gzip: 1.24 kB[22m
|
|
60
|
+
[34mℹ[39m [2mdist/[22mapi/request-context-storage.js.map [2m 2.94 kB[22m [2m│ gzip: 1.21 kB[22m
|
|
61
|
+
[34mℹ[39m [2mdist/[22mclient/vanilla.d.ts.map [2m 2.89 kB[22m [2m│ gzip: 1.10 kB[22m
|
|
62
|
+
[34mℹ[39m [2mdist/[22mclient/react.d.ts.map [2m 2.64 kB[22m [2m│ gzip: 1.17 kB[22m
|
|
63
|
+
[34mℹ[39m [2mdist/[22mclient/solid.d.ts.map [2m 2.44 kB[22m [2m│ gzip: 1.06 kB[22m
|
|
64
|
+
[34mℹ[39m [2mdist/[22mclient/internal/fetcher-merge.js.map [2m 2.44 kB[22m [2m│ gzip: 0.96 kB[22m
|
|
65
|
+
[34mℹ[39m [2mdist/[22mutil/nanostores.js.map [2m 2.43 kB[22m [2m│ gzip: 0.87 kB[22m
|
|
66
|
+
[34mℹ[39m [2mdist/[22mapi/mutable-request-state.js [2m 2.40 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
67
|
+
[34mℹ[39m [2mdist/[22mclient/client.svelte.d.ts.map [2m 2.32 kB[22m [2m│ gzip: 0.97 kB[22m
|
|
68
|
+
[34mℹ[39m [2mdist/[22mapi/internal/path.js [2m 2.23 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
69
|
+
[34mℹ[39m [2mdist/[22mapi/request-middleware.js [2m 2.17 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
70
|
+
[34mℹ[39m [2mdist/[22mclient/vue.d.ts.map [2m 2.14 kB[22m [2m│ gzip: 0.94 kB[22m
|
|
71
|
+
[34mℹ[39m [2mdist/[22mapi/api.d.ts.map [2m 1.96 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
72
|
+
[34mℹ[39m [2mdist/[22mapi/error.js.map [2m 1.96 kB[22m [2m│ gzip: 0.76 kB[22m
|
|
73
|
+
[34mℹ[39m [2mdist/[22mapi/bind-services.js.map [2m 1.96 kB[22m [2m│ gzip: 0.85 kB[22m
|
|
74
|
+
[34mℹ[39m [2mdist/[22mapi/internal/response-stream.js [2m 1.76 kB[22m [2m│ gzip: 0.73 kB[22m
|
|
75
|
+
[34mℹ[39m [2mdist/[22mintegrations/react-ssr.js.map [2m 1.65 kB[22m [2m│ gzip: 0.84 kB[22m
|
|
76
|
+
[34mℹ[39m [2mdist/[22mapi/fragno-response.js [2m 1.65 kB[22m [2m│ gzip: 0.69 kB[22m
|
|
77
|
+
[34mℹ[39m [2mdist/[22mutil/content-type.js [2m 1.61 kB[22m [2m│ gzip: 0.69 kB[22m
|
|
78
|
+
[34mℹ[39m [2mdist/[22mapi/internal/path.d.ts.map [2m 1.58 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
79
|
+
[34mℹ[39m [2mdist/[22mapi/request-input-context.d.ts.map [2m 1.55 kB[22m [2m│ gzip: 0.69 kB[22m
|
|
80
|
+
[34mℹ[39m [2mdist/[22mapi/request-middleware.d.ts.map [2m 1.51 kB[22m [2m│ gzip: 0.70 kB[22m
|
|
81
|
+
[34mℹ[39m [2mdist/[22mutil/ssr.js [2m 1.34 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
82
|
+
[34mℹ[39m [2mdist/[22mapi/request-output-context.d.ts.map [2m 1.29 kB[22m [2m│ gzip: 0.60 kB[22m
|
|
83
|
+
[34mℹ[39m [2mdist/[22mclient/client-error.d.ts.map [2m 1.26 kB[22m [2m│ gzip: 0.55 kB[22m
|
|
84
|
+
[34mℹ[39m [2mdist/[22mutil/nanostores.js [2m 1.25 kB[22m [2m│ gzip: 0.47 kB[22m
|
|
85
|
+
[34mℹ[39m [2mdist/[22mclient/internal/fetcher-merge.js [2m 1.23 kB[22m [2m│ gzip: 0.55 kB[22m
|
|
86
|
+
[34mℹ[39m [2mdist/[22mutil/async.js [2m 1.19 kB[22m [2m│ gzip: 0.57 kB[22m
|
|
87
|
+
[34mℹ[39m [2mdist/[22mtest/test.d.ts.map [2m 1.07 kB[22m [2m│ gzip: 0.55 kB[22m
|
|
88
|
+
[34mℹ[39m [2mdist/[22mapi/error.js [2m 0.96 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
89
|
+
[34mℹ[39m [2mdist/[22mapi/bind-services.js [2m 0.79 kB[22m [2m│ gzip: 0.40 kB[22m
|
|
90
|
+
[34mℹ[39m [2mdist/[22mapi/error.d.ts.map [2m 0.58 kB[22m [2m│ gzip: 0.29 kB[22m
|
|
91
|
+
[34mℹ[39m [2mdist/[22mhttp/http-status.d.ts.map [2m 0.56 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
92
|
+
[34mℹ[39m [2mdist/[22mapi/request-context-storage.d.ts.map [2m 0.56 kB[22m [2m│ gzip: 0.31 kB[22m
|
|
93
|
+
[34mℹ[39m [2mdist/[22mapi/route-handler-input-options.d.ts.map [2m 0.54 kB[22m [2m│ gzip: 0.29 kB[22m
|
|
94
|
+
[34mℹ[39m [2mdist/[22mapi/internal/route.js.map [2m 0.50 kB[22m [2m│ gzip: 0.32 kB[22m
|
|
95
|
+
[34mℹ[39m [2mdist/[22mapi/bind-services.d.ts.map [2m 0.47 kB[22m [2m│ gzip: 0.28 kB[22m
|
|
96
|
+
[34mℹ[39m [2mdist/[22mapi/internal/response-stream.d.ts.map [2m 0.37 kB[22m [2m│ gzip: 0.26 kB[22m
|
|
97
|
+
[34mℹ[39m [2mdist/[22mapi/fragno-response.d.ts.map [2m 0.37 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
98
|
+
[34mℹ[39m [2mdist/[22minternal/symbols.js.map [2m 0.35 kB[22m [2m│ gzip: 0.26 kB[22m
|
|
99
|
+
[34mℹ[39m [2mdist/[22mapi/shared-types.d.ts.map [2m 0.31 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
100
|
+
[34mℹ[39m [2mdist/[22mapi/internal/route.js [2m 0.28 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
101
|
+
[34mℹ[39m [2mdist/[22mapi/mutable-request-state.d.ts.map [2m 0.28 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
102
|
+
[34mℹ[39m [2mdist/[22mmod-client.d.ts.map [2m 0.24 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
103
|
+
[34mℹ[39m [2mdist/[22mintegrations/react-ssr.d.ts.map [2m 0.23 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
104
|
+
[34mℹ[39m [2mdist/[22mutil/types-util.d.ts.map [2m 0.21 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
105
|
+
[34mℹ[39m [2mdist/[22minternal/symbols.d.ts.map [2m 0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
106
|
+
[34mℹ[39m [2mdist/[22m[32m[1mapi/fragment-definition-builder.d.ts[22m[39m [2m16.64 kB[22m [2m│ gzip: 3.28 kB[22m
|
|
107
|
+
[34mℹ[39m [2mdist/[22m[32m[1mapi/fragment-instantiator.d.ts[22m[39m [2m15.02 kB[22m [2m│ gzip: 3.29 kB[22m
|
|
108
|
+
[34mℹ[39m [2mdist/[22m[32m[1mclient/client.d.ts[22m[39m [2m13.77 kB[22m [2m│ gzip: 3.10 kB[22m
|
|
109
|
+
[34mℹ[39m [2mdist/[22m[32m[1mapi/route.d.ts[22m[39m [2m 7.03 kB[22m [2m│ gzip: 1.09 kB[22m
|
|
110
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtest/test.d.ts[22m[39m [2m 5.09 kB[22m [2m│ gzip: 1.52 kB[22m
|
|
111
|
+
[34mℹ[39m [2mdist/[22m[32m[1mclient/vanilla.d.ts[22m[39m [2m 3.70 kB[22m [2m│ gzip: 1.04 kB[22m
|
|
112
|
+
[34mℹ[39m [2mdist/[22m[32m[1mclient/react.d.ts[22m[39m [2m 3.48 kB[22m [2m│ gzip: 1.17 kB[22m
|
|
113
|
+
[34mℹ[39m [2mdist/[22m[32m[1mapi/api.d.ts[22m[39m [2m 3.15 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
114
|
+
[34mℹ[39m [2mdist/[22m[32m[1mclient/solid.d.ts[22m[39m [2m 3.14 kB[22m [2m│ gzip: 0.95 kB[22m
|
|
115
|
+
[34mℹ[39m [2mdist/[22m[32m[1mclient/client.svelte.d.ts[22m[39m [2m 2.88 kB[22m [2m│ gzip: 0.81 kB[22m
|
|
116
|
+
[34mℹ[39m [2mdist/[22m[32m[1mclient/vue.d.ts[22m[39m [2m 2.82 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
117
|
+
[34mℹ[39m [2mdist/[22m[32m[1mmod-client.d.ts[22m[39m [2m 1.83 kB[22m [2m│ gzip: 0.56 kB[22m
|
|
118
|
+
[34mℹ[39m [2mdist/[22m[32m[1mapi/request-context-storage.d.ts[22m[39m [2m 1.79 kB[22m [2m│ gzip: 0.80 kB[22m
|
|
119
|
+
[34mℹ[39m [2mdist/[22m[32m[1mapi/shared-types.d.ts[22m[39m [2m 1.21 kB[22m [2m│ gzip: 0.51 kB[22m
|
|
120
|
+
[34mℹ[39m [2mdist/[22m[32m[1mmod.d.ts[22m[39m [2m 1.18 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
121
|
+
[34mℹ[39m [2mdist/[22m[32m[1mintegrations/react-ssr.d.ts[22m[39m [2m 0.78 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
122
|
+
[34mℹ[39m [2mdist/[22m[32m[1mrequest/request.d.ts[22m[39m [2m 0.48 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
123
|
+
[34mℹ[39m [2mdist/[22m[32m[1minternal/symbols.d.ts[22m[39m [2m 0.32 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
124
|
+
[34mℹ[39m [2mdist/[22m[32mapi/request-input-context.d.ts[39m [2m 3.08 kB[22m [2m│ gzip: 0.98 kB[22m
|
|
125
|
+
[34mℹ[39m [2mdist/[22m[32mapi/internal/path.d.ts[39m [2m 2.91 kB[22m [2m│ gzip: 0.97 kB[22m
|
|
126
|
+
[34mℹ[39m [2mdist/[22m[32mapi/request-middleware.d.ts[39m [2m 2.54 kB[22m [2m│ gzip: 0.90 kB[22m
|
|
127
|
+
[34mℹ[39m [2mdist/[22m[32mclient/client-error.d.ts[39m [2m 2.45 kB[22m [2m│ gzip: 0.81 kB[22m
|
|
128
|
+
[34mℹ[39m [2mdist/[22m[32mapi/mutable-request-state.d.ts[39m [2m 2.29 kB[22m [2m│ gzip: 0.90 kB[22m
|
|
129
|
+
[34mℹ[39m [2mdist/[22m[32mapi/request-output-context.d.ts[39m [2m 1.64 kB[22m [2m│ gzip: 0.64 kB[22m
|
|
130
|
+
[34mℹ[39m [2mdist/[22m[32mapi/internal/response-stream.d.ts[39m [2m 1.33 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
131
|
+
[34mℹ[39m [2mdist/[22m[32mhttp/http-status.d.ts[39m [2m 1.26 kB[22m [2m│ gzip: 0.60 kB[22m
|
|
132
|
+
[34mℹ[39m [2mdist/[22m[32mapi/route-handler-input-options.d.ts[39m [2m 0.72 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
133
|
+
[34mℹ[39m [2mdist/[22m[32mapi/error.d.ts[39m [2m 0.72 kB[22m [2m│ gzip: 0.33 kB[22m
|
|
134
|
+
[34mℹ[39m [2mdist/[22m[32mapi/fragno-response.d.ts[39m [2m 0.60 kB[22m [2m│ gzip: 0.30 kB[22m
|
|
135
|
+
[34mℹ[39m [2mdist/[22m[32mapi/bind-services.d.ts[39m [2m 0.42 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
136
|
+
[34mℹ[39m [2mdist/[22m[32mutil/types-util.d.ts[39m [2m 0.35 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
137
|
+
[34mℹ[39m 127 files, total: 564.80 kB
|
|
138
|
+
[32m✔[39m Build complete in [32m5451ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @fragno-dev/core
|
|
2
2
|
|
|
3
|
+
## 0.1.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bc072dd: fix: export StandardSchema interface
|
|
8
|
+
- e46d2a7: fix: set `workerd` package exports so Cloudflare Workers import the server bundle while
|
|
9
|
+
server-side rendering instead of the browser bundle.
|
|
10
|
+
- fcce048: feat: use "dry run" mode when searching for database schemas to be more lenient when
|
|
11
|
+
instantiating a Fragment
|
|
12
|
+
- 147bdd6: Add migrate() helper and fragment type utilities
|
|
13
|
+
- 75e298f: changed export for development builds
|
|
14
|
+
|
|
3
15
|
## 0.1.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/api/api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { RequestOutputContext } from "./request-output-context.js";
|
|
|
3
3
|
import { FragnoApiError, FragnoApiValidationError } from "./error.js";
|
|
4
4
|
import { RouteHandlerInputOptions } from "./route-handler-input-options.js";
|
|
5
5
|
import { FragnoPublicConfig } from "./shared-types.js";
|
|
6
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
|
+
import { StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
|
|
7
7
|
|
|
8
8
|
//#region src/api/api.d.ts
|
|
9
9
|
type HTTPMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
@@ -18,7 +18,7 @@ type PathError<T extends string, TMessage extends string> = T & [`Error: ${TMess
|
|
|
18
18
|
*/
|
|
19
19
|
type ValidPath<T extends string = string> = T extends `/${infer Rest}` ? Rest extends "" ? PathError<T, "Path cannot be just '/'."> : T extends `${string}/` ? PathError<T, "Path cannot end with '/'."> : T : PathError<T, "Path must start with '/'.">;
|
|
20
20
|
interface RequestThisContext {}
|
|
21
|
-
interface FragnoRouteConfig<TMethod extends HTTPMethod, TPath extends string, TInputSchema extends StandardSchemaV1 | undefined, TOutputSchema extends StandardSchemaV1 | undefined, TErrorCode extends string = string, TQueryParameters extends string = string, TThisContext extends RequestThisContext = RequestThisContext> {
|
|
21
|
+
interface FragnoRouteConfig<TMethod extends HTTPMethod, TPath extends string, TInputSchema extends StandardSchemaV1$1 | undefined, TOutputSchema extends StandardSchemaV1$1 | undefined, TErrorCode extends string = string, TQueryParameters extends string = string, TThisContext extends RequestThisContext = RequestThisContext> {
|
|
22
22
|
method: TMethod;
|
|
23
23
|
path: TPath;
|
|
24
24
|
inputSchema?: TInputSchema;
|
|
@@ -27,12 +27,12 @@ interface FragnoRouteConfig<TMethod extends HTTPMethod, TPath extends string, TI
|
|
|
27
27
|
queryParameters?: readonly TQueryParameters[];
|
|
28
28
|
handler(this: TThisContext, inputCtx: RequestInputContext<TPath, TInputSchema>, outputCtx: RequestOutputContext<TOutputSchema, TErrorCode>): Promise<Response>;
|
|
29
29
|
}
|
|
30
|
-
declare function addRoute<TMethod extends HTTPMethod, TPath extends string, TOutputSchema extends StandardSchemaV1 | undefined, TErrorCode extends string = string, TQueryParameters extends string = string, TThisContext extends RequestThisContext = RequestThisContext>(route: FragnoRouteConfig<TMethod, ValidPath<TPath>, undefined, TOutputSchema, TErrorCode, TQueryParameters, TThisContext> & {
|
|
30
|
+
declare function addRoute<TMethod extends HTTPMethod, TPath extends string, TOutputSchema extends StandardSchemaV1$1 | undefined, TErrorCode extends string = string, TQueryParameters extends string = string, TThisContext extends RequestThisContext = RequestThisContext>(route: FragnoRouteConfig<TMethod, ValidPath<TPath>, undefined, TOutputSchema, TErrorCode, TQueryParameters, TThisContext> & {
|
|
31
31
|
inputSchema?: undefined;
|
|
32
32
|
}): FragnoRouteConfig<TMethod, TPath, undefined, TOutputSchema, TErrorCode, TQueryParameters, TThisContext>;
|
|
33
|
-
declare function addRoute<TMethod extends HTTPMethod, TPath extends string, TInputSchema extends StandardSchemaV1, TOutputSchema extends StandardSchemaV1 | undefined, TErrorCode extends string = string, TQueryParameters extends string = string, TThisContext extends RequestThisContext = RequestThisContext>(route: FragnoRouteConfig<TMethod, ValidPath<TPath>, TInputSchema, TOutputSchema, TErrorCode, TQueryParameters, TThisContext> & {
|
|
33
|
+
declare function addRoute<TMethod extends HTTPMethod, TPath extends string, TInputSchema extends StandardSchemaV1$1, TOutputSchema extends StandardSchemaV1$1 | undefined, TErrorCode extends string = string, TQueryParameters extends string = string, TThisContext extends RequestThisContext = RequestThisContext>(route: FragnoRouteConfig<TMethod, ValidPath<TPath>, TInputSchema, TOutputSchema, TErrorCode, TQueryParameters, TThisContext> & {
|
|
34
34
|
inputSchema: TInputSchema;
|
|
35
35
|
}): FragnoRouteConfig<TMethod, TPath, TInputSchema, TOutputSchema, TErrorCode, TQueryParameters, TThisContext>;
|
|
36
36
|
//#endregion
|
|
37
|
-
export { FragnoApiError, FragnoApiValidationError, type FragnoPublicConfig, FragnoRouteConfig, HTTPMethod, NonGetHTTPMethod, RequestThisContext, type RouteHandlerInputOptions, ValidPath, addRoute };
|
|
37
|
+
export { FragnoApiError, FragnoApiValidationError, type FragnoPublicConfig, FragnoRouteConfig, HTTPMethod, NonGetHTTPMethod, RequestThisContext, type RouteHandlerInputOptions, type StandardSchemaV1, ValidPath, addRoute };
|
|
38
38
|
//# sourceMappingURL=api.d.ts.map
|
package/dist/api/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","names":[],"sources":["../../src/api/api.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"api.d.ts","names":[],"sources":["../../src/api/api.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAMY,UAAA;KACA,gBAAA,GAAmB,QAAQ;KAGlC,uDAAuD,eAAe;;AAJ3E;AACA;AAA0D;AAY1D;;;AAEgB,KAFJ,SAEI,CAAA,UAAA,MAAA,GAAA,MAAA,CAAA,GAFmC,CAEnC,SAAA,IAAA,KAAA,KAAA,EAAA,GADZ,IACY,SAAA,EAAA,GAAV,SAAU,CAAA,CAAA,EAAA,0BAAA,CAAA,GACV,CADU,SAAA,GAAA,MAAA,GAAA,GAER,SAFQ,CAEE,CAFF,EAAA,2BAAA,CAAA,GAGR,CAHQ,GAIZ,SAJY,CAIF,CAJE,EAAA,2BAAA,CAAA;AAAV,UAMW,kBAAA,CANX;AAEY,UAMD,iBANC,CAAA,gBAOA,UAPA,EAAA,cAAA,MAAA,EAAA,qBASK,kBATL,GAAA,SAAA,EAAA,sBAUM,kBAVN,GAAA,SAAA,EAAA,mBAAA,MAAA,GAAA,MAAA,EAAA,yBAAA,MAAA,GAAA,MAAA,EAAA,qBAaK,kBAbL,GAa0B,kBAb1B,CAAA,CAAA;EAAV,MAAA,EAeE,OAfF;EACA,IAAA,EAeA,KAfA;EACM,WAAA,CAAA,EAeE,YAfF;EAAV,YAAA,CAAA,EAgBa,aAhBb;EAAS,UAAA,CAAA,EAAA,SAiBW,UAjBX,EAAA;EAEI,eAAA,CAAA,EAAA,SAgBY,gBAhBM,EAAA;EAElB,OAAA,CAAA,IAAA,EAgBP,YAhBwB,EAAA,QAAA,EAiBpB,mBAjBoB,CAiBA,KAjBA,EAiBO,YAjBP,CAAA,EAAA,SAAA,EAkBnB,oBAlBmB,CAkBE,aAlBF,EAkBiB,UAlBjB,CAAA,CAAA,EAmB7B,OAnB6B,CAmBrB,QAnBqB,CAAA;;AAGX,iBAoBP,QApBO,CAAA,gBAqBL,UArBK,EAAA,cAAA,MAAA,EAAA,sBAuBC,kBAvBD,GAAA,SAAA,EAAA,mBAAA,MAAA,GAAA,MAAA,EAAA,yBAAA,MAAA,GAAA,MAAA,EAAA,qBA0BA,kBA1BA,GA0BqB,kBA1BrB,CAAA,CAAA,KAAA,EA4Bd,iBA5Bc,CA6BnB,OA7BmB,EA8BnB,SA9BmB,CA8BT,KA9BS,CAAA,EAAA,SAAA,EAgCnB,aAhCmB,EAiCnB,UAjCmB,EAkCnB,gBAlCmB,EAmCnB,YAnCmB,CAAA,GAAA;EACC,WAAA,CAAA,EAAA,SAAA;CAGD,CAAA,EAiCpB,iBAjCoB,CAkCrB,OAlCqB,EAmCrB,KAnCqB,EAAA,SAAA,EAqCrB,aArCqB,EAsCrB,UAtCqB,EAuCrB,gBAvCqB,EAwCrB,YAxCqB,CAAA;AAAqB,iBA4C5B,QA5C4B,CAAA,gBA6C1B,UA7C0B,EAAA,cAAA,MAAA,EAAA,qBA+CrB,kBA/CqB,EAAA,sBAgDpB,kBAhDoB,GAAA,SAAA,EAAA,mBAAA,MAAA,GAAA,MAAA,EAAA,yBAAA,MAAA,GAAA,MAAA,EAAA,qBAmDrB,kBAnDqB,GAmDA,kBAnDA,CAAA,CAAA,KAAA,EAqDnC,iBArDmC,CAsDxC,OAtDwC,EAuDxC,SAvDwC,CAuD9B,KAvD8B,CAAA,EAwDxC,YAxDwC,EAyDxC,aAzDwC,EA0DxC,UA1DwC,EA2DxC,gBA3DwC,EA4DxC,YA5DwC,CAAA,GAAA;EAElC,WAAA,EA4DO,YA5DP;CACF,CAAA,EA6DL,iBA7DK,CA8DN,OA9DM,EA+DN,KA/DM,EAgEN,YAhEM,EAiEN,aAjEM,EAkEN,UAlEM,EAmEN,gBAnEM,EAoEN,YApEM,CAAA"}
|
package/dist/api/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","names":[],"sources":["../../src/api/api.ts"],"sourcesContent":["import type { StandardSchemaV1 } from \"@standard-schema/spec\";\nimport type { RequestInputContext } from \"./request-input-context\";\nimport type { RequestOutputContext } from \"./request-output-context\";\n\nexport type HTTPMethod = \"GET\" | \"POST\" | \"PUT\" | \"DELETE\" | \"PATCH\" | \"HEAD\" | \"OPTIONS\";\nexport type NonGetHTTPMethod = Exclude<HTTPMethod, \"GET\">;\n\n// Helper type to create branded error messages that are still assignable to string\ntype PathError<T extends string, TMessage extends string> = T & [`Error: ${TMessage}`];\n\n/**\n * A valid path string that:\n * - Is non-empty\n * - Starts with \"/\"\n * - Is not just \"/\"\n * - Does not end with \"/\"\n */\nexport type ValidPath<T extends string = string> = T extends `/${infer Rest}`\n ? Rest extends \"\"\n ? PathError<T, \"Path cannot be just '/'.\"> // Excludes \"/\"\n : T extends `${string}/`\n ? PathError<T, \"Path cannot end with '/'.\"> // Excludes paths ending with \"/\"\n : T\n : PathError<T, \"Path must start with '/'.\">; // Excludes paths not starting with \"/\"\n\nexport interface RequestThisContext {}\n\nexport interface FragnoRouteConfig<\n TMethod extends HTTPMethod,\n TPath extends string,\n TInputSchema extends StandardSchemaV1 | undefined,\n TOutputSchema extends StandardSchemaV1 | undefined,\n TErrorCode extends string = string,\n TQueryParameters extends string = string,\n TThisContext extends RequestThisContext = RequestThisContext,\n> {\n method: TMethod;\n path: TPath;\n inputSchema?: TInputSchema;\n outputSchema?: TOutputSchema;\n errorCodes?: readonly TErrorCode[];\n queryParameters?: readonly TQueryParameters[];\n handler(\n this: TThisContext,\n inputCtx: RequestInputContext<TPath, TInputSchema>,\n outputCtx: RequestOutputContext<TOutputSchema, TErrorCode>,\n ): Promise<Response>;\n}\n\n// Overload for routes without inputSchema\nexport function addRoute<\n TMethod extends HTTPMethod,\n TPath extends string,\n TOutputSchema extends StandardSchemaV1 | undefined,\n TErrorCode extends string = string,\n TQueryParameters extends string = string,\n TThisContext extends RequestThisContext = RequestThisContext,\n>(\n route: FragnoRouteConfig<\n TMethod,\n ValidPath<TPath>,\n undefined,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n > & { inputSchema?: undefined },\n): FragnoRouteConfig<\n TMethod,\n TPath,\n undefined,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n>;\n\n// Overload for routes with inputSchema\nexport function addRoute<\n TMethod extends HTTPMethod,\n TPath extends string,\n TInputSchema extends StandardSchemaV1,\n TOutputSchema extends StandardSchemaV1 | undefined,\n TErrorCode extends string = string,\n TQueryParameters extends string = string,\n TThisContext extends RequestThisContext = RequestThisContext,\n>(\n route: FragnoRouteConfig<\n TMethod,\n ValidPath<TPath>,\n TInputSchema,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n > & {\n inputSchema: TInputSchema;\n },\n): FragnoRouteConfig<\n TMethod,\n TPath,\n TInputSchema,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n>;\n\n// Implementation\nexport function addRoute<\n TMethod extends HTTPMethod,\n TPath extends string,\n TInputSchema extends StandardSchemaV1 | undefined,\n TOutputSchema extends StandardSchemaV1 | undefined,\n TErrorCode extends string = string,\n TQueryParameters extends string = string,\n TThisContext extends RequestThisContext = RequestThisContext,\n>(\n route: FragnoRouteConfig<\n TMethod,\n ValidPath<TPath>,\n TInputSchema,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n >,\n): FragnoRouteConfig<\n TMethod,\n TPath,\n TInputSchema,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n> {\n return route;\n}\n\nexport { FragnoApiError, FragnoApiValidationError } from \"./error\";\nexport type { RouteHandlerInputOptions } from \"./route-handler-input-options\";\nexport type { FragnoPublicConfig } from \"./shared-types\";\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"api.js","names":[],"sources":["../../src/api/api.ts"],"sourcesContent":["import type { StandardSchemaV1 } from \"@standard-schema/spec\";\nimport type { RequestInputContext } from \"./request-input-context\";\nimport type { RequestOutputContext } from \"./request-output-context\";\n\nexport type { StandardSchemaV1 } from \"@standard-schema/spec\";\n\nexport type HTTPMethod = \"GET\" | \"POST\" | \"PUT\" | \"DELETE\" | \"PATCH\" | \"HEAD\" | \"OPTIONS\";\nexport type NonGetHTTPMethod = Exclude<HTTPMethod, \"GET\">;\n\n// Helper type to create branded error messages that are still assignable to string\ntype PathError<T extends string, TMessage extends string> = T & [`Error: ${TMessage}`];\n\n/**\n * A valid path string that:\n * - Is non-empty\n * - Starts with \"/\"\n * - Is not just \"/\"\n * - Does not end with \"/\"\n */\nexport type ValidPath<T extends string = string> = T extends `/${infer Rest}`\n ? Rest extends \"\"\n ? PathError<T, \"Path cannot be just '/'.\"> // Excludes \"/\"\n : T extends `${string}/`\n ? PathError<T, \"Path cannot end with '/'.\"> // Excludes paths ending with \"/\"\n : T\n : PathError<T, \"Path must start with '/'.\">; // Excludes paths not starting with \"/\"\n\nexport interface RequestThisContext {}\n\nexport interface FragnoRouteConfig<\n TMethod extends HTTPMethod,\n TPath extends string,\n TInputSchema extends StandardSchemaV1 | undefined,\n TOutputSchema extends StandardSchemaV1 | undefined,\n TErrorCode extends string = string,\n TQueryParameters extends string = string,\n TThisContext extends RequestThisContext = RequestThisContext,\n> {\n method: TMethod;\n path: TPath;\n inputSchema?: TInputSchema;\n outputSchema?: TOutputSchema;\n errorCodes?: readonly TErrorCode[];\n queryParameters?: readonly TQueryParameters[];\n handler(\n this: TThisContext,\n inputCtx: RequestInputContext<TPath, TInputSchema>,\n outputCtx: RequestOutputContext<TOutputSchema, TErrorCode>,\n ): Promise<Response>;\n}\n\n// Overload for routes without inputSchema\nexport function addRoute<\n TMethod extends HTTPMethod,\n TPath extends string,\n TOutputSchema extends StandardSchemaV1 | undefined,\n TErrorCode extends string = string,\n TQueryParameters extends string = string,\n TThisContext extends RequestThisContext = RequestThisContext,\n>(\n route: FragnoRouteConfig<\n TMethod,\n ValidPath<TPath>,\n undefined,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n > & { inputSchema?: undefined },\n): FragnoRouteConfig<\n TMethod,\n TPath,\n undefined,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n>;\n\n// Overload for routes with inputSchema\nexport function addRoute<\n TMethod extends HTTPMethod,\n TPath extends string,\n TInputSchema extends StandardSchemaV1,\n TOutputSchema extends StandardSchemaV1 | undefined,\n TErrorCode extends string = string,\n TQueryParameters extends string = string,\n TThisContext extends RequestThisContext = RequestThisContext,\n>(\n route: FragnoRouteConfig<\n TMethod,\n ValidPath<TPath>,\n TInputSchema,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n > & {\n inputSchema: TInputSchema;\n },\n): FragnoRouteConfig<\n TMethod,\n TPath,\n TInputSchema,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n>;\n\n// Implementation\nexport function addRoute<\n TMethod extends HTTPMethod,\n TPath extends string,\n TInputSchema extends StandardSchemaV1 | undefined,\n TOutputSchema extends StandardSchemaV1 | undefined,\n TErrorCode extends string = string,\n TQueryParameters extends string = string,\n TThisContext extends RequestThisContext = RequestThisContext,\n>(\n route: FragnoRouteConfig<\n TMethod,\n ValidPath<TPath>,\n TInputSchema,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n >,\n): FragnoRouteConfig<\n TMethod,\n TPath,\n TInputSchema,\n TOutputSchema,\n TErrorCode,\n TQueryParameters,\n TThisContext\n> {\n return route;\n}\n\nexport { FragnoApiError, FragnoApiValidationError } from \"./error\";\nexport type { RouteHandlerInputOptions } from \"./route-handler-input-options\";\nexport type { FragnoPublicConfig } from \"./shared-types\";\n"],"mappings":";;;AA+GA,SAAgB,SASd,OAiBA;AACA,QAAO"}
|