@fuzdev/fuz_app 0.169.0 → 0.170.0

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.
Files changed (154) hide show
  1. package/dist/actions/CLAUDE.md +17 -19
  2. package/dist/actions/action_codegen.d.ts +25 -18
  3. package/dist/actions/action_codegen.d.ts.map +1 -1
  4. package/dist/actions/action_codegen.js +83 -67
  5. package/dist/actions/action_event.d.ts +0 -8
  6. package/dist/actions/action_event.d.ts.map +1 -1
  7. package/dist/actions/action_event.js +7 -6
  8. package/dist/actions/action_event_data.d.ts +4 -4
  9. package/dist/actions/action_rpc.d.ts +1 -1
  10. package/dist/actions/action_rpc.js +1 -1
  11. package/dist/actions/action_spec.d.ts +8 -10
  12. package/dist/actions/action_spec.d.ts.map +1 -1
  13. package/dist/actions/action_spec.js +1 -1
  14. package/dist/actions/action_types.d.ts +4 -4
  15. package/dist/actions/action_types.d.ts.map +1 -1
  16. package/dist/actions/action_types.js +2 -2
  17. package/dist/actions/broadcast_api.d.ts +2 -2
  18. package/dist/actions/broadcast_api.js +4 -4
  19. package/dist/actions/compile_action_registry.d.ts +6 -7
  20. package/dist/actions/compile_action_registry.d.ts.map +1 -1
  21. package/dist/actions/compile_action_registry.js +8 -9
  22. package/dist/actions/perform_action.d.ts +6 -6
  23. package/dist/actions/perform_action.d.ts.map +1 -1
  24. package/dist/actions/perform_action.js +11 -10
  25. package/dist/actions/socket.svelte.d.ts +1 -1
  26. package/dist/actions/socket.svelte.js +2 -2
  27. package/dist/auth/CLAUDE.md +11 -11
  28. package/dist/auth/admin_action_specs.d.ts +24 -24
  29. package/dist/auth/audit_emitter.d.ts +6 -7
  30. package/dist/auth/audit_emitter.d.ts.map +1 -1
  31. package/dist/auth/audit_emitter.js +11 -22
  32. package/dist/auth/audit_log_ddl.d.ts +1 -1
  33. package/dist/auth/audit_log_ddl.js +1 -1
  34. package/dist/auth/audit_log_queries.d.ts +0 -13
  35. package/dist/auth/audit_log_queries.d.ts.map +1 -1
  36. package/dist/auth/audit_log_queries.js +3 -3
  37. package/dist/auth/audit_log_schema.d.ts +14 -15
  38. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  39. package/dist/auth/audit_log_schema.js +1 -1
  40. package/dist/auth/auth_ddl.d.ts +1 -1
  41. package/dist/auth/auth_ddl.js +1 -1
  42. package/dist/auth/cell_action_specs.d.ts +54 -54
  43. package/dist/auth/cell_actions.d.ts +2 -2
  44. package/dist/auth/cell_actions.js +5 -5
  45. package/dist/auth/request_context.js +2 -2
  46. package/dist/auth/role_grant_offer_action_specs.d.ts +6 -6
  47. package/dist/auth/role_grant_offer_ddl.d.ts +1 -1
  48. package/dist/auth/role_grant_offer_ddl.js +1 -1
  49. package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
  50. package/dist/auth/role_grant_offer_notifications.js +2 -3
  51. package/dist/auth/self_service_role_actions.d.ts +1 -1
  52. package/dist/auth/self_service_role_actions.js +1 -1
  53. package/dist/env/env_schemas.d.ts +1 -2
  54. package/dist/env/env_schemas.d.ts.map +1 -1
  55. package/dist/env/env_schemas.js +3 -4
  56. package/dist/http/CLAUDE.md +29 -31
  57. package/dist/http/auth_shape.d.ts +14 -32
  58. package/dist/http/auth_shape.d.ts.map +1 -1
  59. package/dist/http/auth_shape.js +14 -49
  60. package/dist/http/error_schemas.d.ts +18 -18
  61. package/dist/http/jsonrpc_helpers.js +1 -1
  62. package/dist/http/route_error_check.d.ts +2 -2
  63. package/dist/http/route_error_check.d.ts.map +1 -1
  64. package/dist/http/route_error_check.js +2 -3
  65. package/dist/http/route_errors.d.ts +4 -4
  66. package/dist/http/route_errors.d.ts.map +1 -1
  67. package/dist/http/route_errors.js +0 -13
  68. package/dist/http/route_spec.d.ts +33 -36
  69. package/dist/http/route_spec.d.ts.map +1 -1
  70. package/dist/http/route_spec.js +21 -22
  71. package/dist/http/schema_helpers.d.ts +75 -67
  72. package/dist/http/schema_helpers.d.ts.map +1 -1
  73. package/dist/http/schema_helpers.js +54 -77
  74. package/dist/http/surface.d.ts.map +1 -1
  75. package/dist/http/surface.js +6 -8
  76. package/dist/primitive_schemas.d.ts +9 -17
  77. package/dist/primitive_schemas.d.ts.map +1 -1
  78. package/dist/primitive_schemas.js +9 -17
  79. package/dist/realtime/sse.d.ts +3 -3
  80. package/dist/realtime/sse.d.ts.map +1 -1
  81. package/dist/realtime/sse.js +2 -2
  82. package/dist/schema_issues.d.ts +39 -147
  83. package/dist/schema_issues.d.ts.map +1 -1
  84. package/dist/schema_issues.js +39 -352
  85. package/dist/schema_meta.d.ts +63 -136
  86. package/dist/schema_meta.d.ts.map +1 -1
  87. package/dist/schema_meta.js +37 -184
  88. package/dist/sensitivity.d.ts +3 -5
  89. package/dist/sensitivity.d.ts.map +1 -1
  90. package/dist/sensitivity.js +3 -5
  91. package/dist/testing/CLAUDE.md +20 -22
  92. package/dist/testing/adversarial_headers.js +2 -2
  93. package/dist/testing/adversarial_input_cases.d.ts +19 -18
  94. package/dist/testing/adversarial_input_cases.d.ts.map +1 -1
  95. package/dist/testing/adversarial_input_cases.js +29 -42
  96. package/dist/testing/assertions.d.ts +2 -2
  97. package/dist/testing/assertions.d.ts.map +1 -1
  98. package/dist/testing/assertions.js +3 -3
  99. package/dist/testing/cross_backend/account_lifecycle.js +2 -2
  100. package/dist/testing/cross_backend/action_manifest.d.ts +10 -9
  101. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  102. package/dist/testing/cross_backend/action_manifest.js +4 -3
  103. package/dist/testing/cross_backend/cell_crud.js +1 -1
  104. package/dist/testing/cross_backend/conformance_rpc_auth.d.ts +0 -62
  105. package/dist/testing/cross_backend/conformance_rpc_auth.d.ts.map +1 -1
  106. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  107. package/dist/testing/cross_backend/conformance_table.js +3 -3
  108. package/dist/testing/cross_backend/cross_rpc.d.ts +3 -4
  109. package/dist/testing/cross_backend/cross_rpc.d.ts.map +1 -1
  110. package/dist/testing/cross_backend/cross_rpc.js +4 -4
  111. package/dist/testing/cross_backend/differential.js +2 -2
  112. package/dist/testing/cross_backend/identity_parity.js +9 -9
  113. package/dist/testing/cross_backend/origin_conformance.d.ts +9 -9
  114. package/dist/testing/cross_backend/query_shape.js +1 -1
  115. package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
  116. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +1 -1
  117. package/dist/testing/cross_backend/setup.d.ts +25 -3
  118. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  119. package/dist/testing/cross_backend/setup.js +4 -4
  120. package/dist/testing/cross_backend/sse_round_trip.js +2 -2
  121. package/dist/testing/cross_backend/testing_origin_check.d.ts +4 -4
  122. package/dist/testing/cross_backend/token_lifetime.js +3 -3
  123. package/dist/testing/cross_backend/wire_shapes.js +1 -1
  124. package/dist/testing/cross_backend/ws_round_trip.js +1 -1
  125. package/dist/testing/data_exposure.d.ts.map +1 -1
  126. package/dist/testing/data_exposure.js +1 -1
  127. package/dist/testing/integration.js +2 -2
  128. package/dist/testing/integration_helpers.d.ts.map +1 -1
  129. package/dist/testing/integration_helpers.js +2 -2
  130. package/dist/testing/middleware.d.ts.map +1 -1
  131. package/dist/testing/middleware.js +2 -2
  132. package/dist/testing/rpc_attack_surface.js +1 -1
  133. package/dist/testing/rpc_envelope_cases.d.ts +3 -3
  134. package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
  135. package/dist/testing/rpc_envelope_cases.js +1 -1
  136. package/dist/testing/rpc_helpers.d.ts +12 -14
  137. package/dist/testing/rpc_helpers.d.ts.map +1 -1
  138. package/dist/testing/rpc_helpers.js +9 -10
  139. package/dist/testing/schema_generators.d.ts +67 -60
  140. package/dist/testing/schema_generators.d.ts.map +1 -1
  141. package/dist/testing/schema_generators.js +150 -145
  142. package/dist/testing/sse_round_trip.d.ts.map +1 -1
  143. package/dist/testing/sse_round_trip.js +2 -2
  144. package/dist/testing/surface_invariants.d.ts +1 -1
  145. package/dist/testing/surface_invariants.js +1 -1
  146. package/dist/ui/form_state.svelte.d.ts +1 -1
  147. package/dist/ui/form_state.svelte.js +1 -1
  148. package/package.json +5 -7
  149. package/dist/zod.d.ts +0 -116
  150. package/dist/zod.d.ts.map +0 -1
  151. package/dist/zod.js +0 -218
  152. package/dist/zod_schemas.d.ts +0 -100
  153. package/dist/zod_schemas.d.ts.map +0 -1
  154. package/dist/zod_schemas.js +0 -157
@@ -1,48 +1,57 @@
1
1
  import './assert_dev_env.js';
2
- import { is_schema } from '@fuzdev/fuz_schema/schema.ts';
2
+ /**
3
+ * Schema-driven value generation helpers for testing.
4
+ *
5
+ * Walks `@fuzdev/fuz_schema` schemas to generate valid values for route
6
+ * params, request bodies, and URL paths. Used by adversarial input,
7
+ * adversarial 404, and round-trip validation test suites. A value that is no
8
+ * schema throws, and so does an input no body can be generated for, rather
9
+ * than yielding no body.
10
+ *
11
+ * @module
12
+ */
13
+ import { parse } from '@fuzdev/fuz_schema/schema.ts';
3
14
  import { get_schema_entries, get_schema_fields, unwrap_schema } from '@fuzdev/fuz_schema/introspect.ts';
4
15
  import { to_json_schema } from '@fuzdev/fuz_schema/json_schema.ts';
5
- import { zod_unwrap_def, zod_get_base_type, zod_unwrap_to_object, zod_extract_fields } from '../zod.js';
6
16
  import { is_null_schema, is_void_schema } from '../http/schema_helpers.js';
7
17
  import { compile_route_param_pattern, decode_route_path, parse_route_param, split_route_template } from '../http/route_error_check.js';
8
- import { assert_zod_schema, format_issues, parse_any } from '../schema_issues.js';
18
+ import { assert_validation_schema, format_issues } from '../schema_issues.js';
9
19
  /**
10
20
  * The JSON Schema of a field's input side — where its format, pattern and
11
- * bounds live. Takes a Zod or a `@fuzdev/fuz_schema` field.
21
+ * bounds live.
12
22
  *
13
- * Rendered with `io: 'input'`, so a field carrying a `.transform()` or a pipe
23
+ * Rendered with `io: 'input'`, so a field carrying a `transform` in a pipe
14
24
  * (`Username`) still yields the constraints its input is checked against;
15
25
  * the default output side throws on a transform. A pipe yields its input
16
26
  * side only, so constraints of the stage after it are not here. A
17
- * `.nullable()` / `.nullish()` field renders as
18
- * `anyOf: [{…}, {type: 'null'}]`, or a bare type as `type: [type, 'null']`;
27
+ * `nullable` field renders as `anyOf: [{…}, {type: 'null'}]`, or a bare
28
+ * type as `type: [type, 'null']`;
19
29
  * its one non-null branch or type is returned, so the bounds, pattern and
20
30
  * `type` read the same as on the bare field. A union of two or more non-null
21
31
  * branches returns the whole schema — its branches' bounds are no single
22
32
  * field's bounds.
23
33
  *
24
- * Either library renders with `unrepresentable: 'any'`: a part JSON Schema
25
- * can't say (a `z.date()`, a `z.custom()`, a fuz_schema `check` or `bigint`)
26
- * is left out or `{}`, and the bounds around it still read, so a
27
- * `pipe(string, max_length(n), check(…))` keeps its `maxLength` and a union
28
- * with a `z.date()` branch keeps its other branches — every case the
29
- * generators build from it is checked against the field itself before it's
30
- * used. What an emitter refuses even then (a fuz_schema entry named like a
34
+ * It renders with `unrepresentable: 'any'`: a part JSON Schema can't say (a
35
+ * `check` or a `bigint`) is left out or `{}`, and the bounds around it still
36
+ * read, so a `pipe(string, max_length(n), check(…))` keeps its `maxLength` —
37
+ * every case the generators build from it is checked against the field itself
38
+ * before it's used. What the emitter refuses even then (an entry named like a
31
39
  * member of `Object.prototype`, metadata that isn't JSON) throws: a mistake in
32
40
  * the schema, not a gap in JSON Schema.
33
41
  *
34
- * A `.refine()` is never here: JSON Schema can't express one, so a bound a
35
- * refinement enforces (a code-point length, a cross-field rule) generates no
36
- * boundary case.
42
+ * A `check` is never here: JSON Schema can't express one, so a bound a check
43
+ * enforces (a code-point length, a cross-field rule) generates no boundary
44
+ * case.
37
45
  *
38
46
  * @param field_schema - the field to read
39
47
  * @returns the field's input-side JSON Schema
40
48
  * @throws Error when the emitter refuses `field_schema` with `unrepresentable: 'any'`
41
49
  */
42
50
  export const to_field_json_schema = (field_schema) => {
43
- const json = is_schema(field_schema)
44
- ? to_json_schema(field_schema, { io: 'input', unrepresentable: 'any' })
45
- : field_schema.toJSONSchema({ io: 'input', unrepresentable: 'any' });
51
+ const json = to_json_schema(field_schema, {
52
+ io: 'input',
53
+ unrepresentable: 'any'
54
+ });
46
55
  if (Array.isArray(json.anyOf)) {
47
56
  const branches = json.anyOf.filter((branch) => branch.type !== 'null');
48
57
  if (branches.length === 1)
@@ -99,8 +108,8 @@ export const detect_format = (field_schema) => detect_json_schema_format(to_fiel
99
108
  * - Optional prefix: alphanumeric, starting with a letter, ending in `:`
100
109
  * (`blake3:`, `sha256:`). A `_`-joined prefix over a base64url class is
101
110
  * the sibling shape — see `generate_prefix_slug_pattern_value`.
102
- * - Character class must be exactly `[0-9a-f]` or `[0-9a-fA-F]` (Zod passes
103
- * the regex source through verbatim — no character-class reordering).
111
+ * - Character class must be exactly `[0-9a-f]` or `[0-9a-fA-F]` (the JSON
112
+ * Schema carries the regex source verbatim — no character-class reordering).
104
113
  * - Fixed-length quantifier `{N}`.
105
114
  *
106
115
  * Returns `null` when the pattern doesn't match the expected shape; the
@@ -128,8 +137,8 @@ const generate_hex_pattern_value = (pattern) => {
128
137
  *
129
138
  * Coverage today:
130
139
  * - Prefix must start with a letter and be alphanumeric (e.g. `tok_`, `ses_`).
131
- * - Character class must be exactly `[A-Za-z0-9_-]` (Zod passes the regex
132
- * source through verbatim — no character-class reordering).
140
+ * - Character class must be exactly `[A-Za-z0-9_-]` (the JSON Schema carries
141
+ * the regex source verbatim — no character-class reordering).
133
142
  * - Fixed-length quantifier `{N}`.
134
143
  *
135
144
  * Known gaps (will fall through to the absolute-path / URL candidates or
@@ -153,16 +162,16 @@ const generate_prefix_slug_pattern_value = (pattern) => {
153
162
  return null;
154
163
  return `${prefix}_${'x'.repeat(n)}`;
155
164
  };
156
- // --- reading a schema of either library ---
157
- /** Whether `schema` accepts `value`, a parse of either library (`parse_any`). */
158
- const accepts = (schema, value) => parse_any(schema, value).ok;
165
+ // --- reading a schema ---
166
+ /** Whether `schema` accepts `value`. */
167
+ const accepts = (schema, value) => parse(schema, value).ok;
159
168
  /**
160
- * Every layer of a `@fuzdev/fuz_schema` schema, from the schema itself through
169
+ * Every layer of a schema, from the schema itself through
161
170
  * each `optional`, `nullable`, `with_default`, `with_default_fn`, the first
162
171
  * schema of a `pipe`, and a `lazy`'s schema, to what the value is — the
163
172
  * layers `unwrap_schema` walks.
164
173
  */
165
- const fuz_schema_layers = (schema) => {
174
+ const schema_layers = (schema) => {
166
175
  const layers = [];
167
176
  const seen = new Set();
168
177
  let s = schema;
@@ -188,13 +197,12 @@ const fuz_schema_layers = (schema) => {
188
197
  return layers;
189
198
  };
190
199
  /**
191
- * The type name the generators switch on for a `@fuzdev/fuz_schema` schema,
192
- * in Zod's vocabulary (`zod_get_base_type`): its innermost layer's kind, with
193
- * an object schema of any strictness `'object'`, a `literal(null)` `'null'`,
194
- * a `literal(undefined)` (`s.void`) `'void'`, a `one_of` `'enum'`, and a
195
- * `variant` `'union'`.
200
+ * The type name the generators switch on (`SchemaFieldInfo.base_type`): the
201
+ * schema's innermost layer's kind, with an object schema of any strictness
202
+ * `'object'`, a `literal(null)` `'null'`, a `literal(undefined)` (`s.void`)
203
+ * `'void'`, a `one_of` `'enum'`, and a `variant` `'union'`.
196
204
  */
197
- const fuz_schema_base_type = (schema) => {
205
+ const to_base_type = (schema) => {
198
206
  const base = unwrap_schema(schema);
199
207
  switch (base.kind) {
200
208
  case 'object':
@@ -212,49 +220,35 @@ const fuz_schema_base_type = (schema) => {
212
220
  return base.kind;
213
221
  }
214
222
  };
215
- // the type name the generators switch on, of either library
216
- const to_base_type = (schema) => is_schema(schema) ? fuz_schema_base_type(schema) : zod_get_base_type(schema);
217
- // the fields of `schema` when its innermost layer is an object schema, else `null`;
218
- // throws for a schema of neither library
223
+ // the fields of `schema` when its innermost layer is an object schema, else
224
+ // `null`; throws for a value that is no schema
219
225
  const to_object_view = (schema, label) => {
220
- if (is_schema(schema)) {
221
- const entries = get_schema_entries(schema);
222
- if (!entries)
223
- return null;
224
- return {
225
- fields: get_schema_fields(schema).map((field) => {
226
- const layers = fuz_schema_layers(field.schema);
227
- return {
228
- name: field.name,
229
- base_type: fuz_schema_base_type(field.schema),
230
- required: !layers.some((l) => l.kind === 'optional'),
231
- has_default: field.has_default,
232
- nullable: layers.some((l) => l.kind === 'nullable')
233
- };
234
- }),
235
- field_schema: (name) => (Object.hasOwn(entries, name) ? entries[name] : undefined)
236
- };
237
- }
238
- assert_zod_schema(schema, label);
239
- const object_schema = zod_unwrap_to_object(schema);
240
- if (!object_schema)
226
+ assert_validation_schema(schema, label);
227
+ const entries = get_schema_entries(schema);
228
+ if (!entries)
241
229
  return null;
242
- const shape = object_schema.shape;
243
230
  return {
244
- fields: zod_extract_fields(object_schema),
245
- field_schema: (name) => (Object.hasOwn(shape, name) ? shape[name] : undefined)
231
+ fields: get_schema_fields(schema).map((field) => {
232
+ const layers = schema_layers(field.schema);
233
+ return {
234
+ name: field.name,
235
+ base_type: to_base_type(field.schema),
236
+ required: !layers.some((l) => l.kind === 'optional'),
237
+ has_default: field.has_default,
238
+ nullable: layers.some((l) => l.kind === 'nullable')
239
+ };
240
+ }),
241
+ field_schema: (name) => (Object.hasOwn(entries, name) ? entries[name] : undefined)
246
242
  };
247
243
  };
248
244
  /**
249
- * The fields of an object schema of either library and the schema of each,
250
- * through its wrappers: the `ZodObject` inside a Zod schema
251
- * (`zod_unwrap_to_object`, `zod_extract_fields`), or a `@fuzdev/fuz_schema`
252
- * schema whose innermost layer is an object schema (`get_schema_entries`,
253
- * `get_schema_fields`).
245
+ * The fields of an object schema and the schema of each, through its
246
+ * wrappers: a schema whose innermost layer is an object schema
247
+ * (`get_schema_entries`, `get_schema_fields`).
254
248
  *
255
- * @param schema - an object schema, possibly wrapped, Zod or fuz_schema
249
+ * @param schema - an object schema, possibly wrapped
256
250
  * @param label - names the schema in the error
257
- * @throws Error naming `label` when `schema` is no object schema, or of neither library
251
+ * @throws Error naming `label` when `schema` is no object schema, or no schema
258
252
  */
259
253
  export const to_object_schema_view = (schema, label) => {
260
254
  const view = to_object_view(schema, label);
@@ -296,8 +290,8 @@ const generate_valid_string = (field_schema) => {
296
290
  }
297
291
  // Email-shaped refinement (the `Email` primitive: loose `local@domain.tld`).
298
292
  // The base `x`-fill has no `@`, so an email-pattern field needs a shaped
299
- // candidate — the `z.string().regex()` form exposes a `pattern`, not the
300
- // `format: 'email'` the `case 'email'` switch arm keys on.
293
+ // candidate — the regex form exposes a `pattern`, not the `format: 'email'`
294
+ // the `case 'email'` switch arm keys on.
301
295
  const as_email = 'test@example.com';
302
296
  if (accepts(field_schema, as_email))
303
297
  return as_email;
@@ -315,56 +309,34 @@ const generate_valid_string = (field_schema) => {
315
309
  return segments;
316
310
  return base; // fall through — generate_valid_body will report the failure
317
311
  };
318
- // the element schema of an array field, of either library
312
+ // the element schema of an array field
319
313
  const to_array_element = (field_schema) => {
320
- if (is_schema(field_schema)) {
321
- const base = unwrap_schema(field_schema);
322
- return base.kind === 'array' ? base.def : undefined;
323
- }
324
- return zod_unwrap_def(field_schema).element;
314
+ const base = unwrap_schema(field_schema);
315
+ return base.kind === 'array' ? base.def : undefined;
325
316
  };
326
- // the first option of a union field, of either library
317
+ // the first option of a union field
327
318
  const to_first_union_option = (field_schema) => {
328
- if (is_schema(field_schema)) {
329
- const base = unwrap_schema(field_schema);
330
- if (base.kind === 'union')
331
- return base.def[0];
332
- if (base.kind === 'variant')
333
- return base.def.options[0];
334
- return undefined;
335
- }
336
- // Zod 4 represents `z.union` and `z.discriminatedUnion` alike, `def.type ===
337
- // 'union'` with a `def.options` array
338
- return zod_unwrap_def(field_schema).options?.[0];
319
+ const base = unwrap_schema(field_schema);
320
+ if (base.kind === 'union')
321
+ return base.def[0];
322
+ if (base.kind === 'variant')
323
+ return base.def.options[0];
324
+ return undefined;
339
325
  };
340
- // the values a literal or enum field accepts, of either library, in declared order
326
+ // the values a literal or enum field accepts, in declared order
341
327
  const to_literal_values = (field_schema) => {
342
- if (is_schema(field_schema)) {
343
- const base = unwrap_schema(field_schema);
344
- if (base.kind === 'literal')
345
- return [base.def];
346
- if (base.kind === 'one_of')
347
- return base.def;
348
- return [];
349
- }
350
- const def = zod_unwrap_def(field_schema);
351
- // Zod 4 stores literal values on `def.values` (always an array, even for
352
- // single-valued literals), and enum entries as an object `{key: value}`
353
- if ('values' in def && Array.isArray(def.values))
354
- return def.values;
355
- if ('entries' in def) {
356
- const entries = def.entries;
357
- if (entries && typeof entries === 'object') {
358
- return Object.values(entries);
359
- }
360
- }
328
+ const base = unwrap_schema(field_schema);
329
+ if (base.kind === 'literal')
330
+ return [base.def];
331
+ if (base.kind === 'one_of')
332
+ return base.def;
361
333
  return [];
362
334
  };
363
335
  /**
364
336
  * Generate a valid-ish value for a field based on its base type.
365
337
  *
366
- * @param field - the field's info, from `to_object_schema_view` or `zod_extract_fields`
367
- * @param field_schema - the field's schema, Zod or `@fuzdev/fuz_schema`
338
+ * @param field - the field's info, from `to_object_schema_view`
339
+ * @param field_schema - the field's schema
368
340
  * @returns the value, checked by the caller against the whole schema
369
341
  */
370
342
  export const generate_valid_value = (field, field_schema) => {
@@ -382,8 +354,7 @@ export const generate_valid_value = (field, field_schema) => {
382
354
  if (format === 'date-time')
383
355
  return '2020-01-01T00:00:00.000Z';
384
356
  return generate_valid_string(field_schema);
385
- case 'number':
386
- case 'int': {
357
+ case 'number': {
387
358
  // 1, unless the schema's bounds rule it out (`.negative()`, `.min(10)`)
388
359
  for (const candidate of [1, -1, 0]) {
389
360
  if (accepts(field_schema, candidate))
@@ -392,12 +363,8 @@ export const generate_valid_value = (field, field_schema) => {
392
363
  const json = to_field_json_schema(field_schema);
393
364
  if (typeof json.minimum === 'number')
394
365
  return Math.ceil(json.minimum);
395
- if (typeof json.exclusiveMinimum === 'number')
396
- return Math.floor(json.exclusiveMinimum) + 1;
397
366
  if (typeof json.maximum === 'number')
398
367
  return Math.floor(json.maximum);
399
- if (typeof json.exclusiveMaximum === 'number')
400
- return Math.ceil(json.exclusiveMaximum) - 1;
401
368
  return 1; // fall through — generate_valid_body will report the failure
402
369
  }
403
370
  case 'boolean':
@@ -469,14 +436,13 @@ export const generate_valid_value = (field, field_schema) => {
469
436
  * Shared by the top-level body generators and `generate_valid_value`'s
470
437
  * nested-object case, so a refined object validates the same way at any depth.
471
438
  *
472
- * @param object_schema - the object whose fields are generated: a Zod or
473
- * `@fuzdev/fuz_schema` object schema, possibly wrapped
439
+ * @param object_schema - the object whose fields are generated: an object
440
+ * schema, possibly wrapped
474
441
  * @param schema - the schema the object must satisfy, refinements included
475
442
  * (`object_schema` or a schema wrapping it)
476
- * @returns the generated object and its last `parse_any` result — the caller
443
+ * @returns the generated object and its last `parse` result — the caller
477
444
  * decides whether a failure throws
478
- * @throws Error when `object_schema` is no object schema, or either schema is
479
- * of neither library
445
+ * @throws Error when `object_schema` is no object schema, or no schema
480
446
  */
481
447
  export const generate_valid_object = (object_schema, schema) => generate_valid_object_from_view(to_object_schema_view(object_schema, 'generate_valid_object: the object schema'), schema);
482
448
  const generate_valid_object_from_view = (view, schema) => {
@@ -504,13 +470,13 @@ const is_optional_field = (field) => !field.required && !field.has_default;
504
470
  * @returns the object and its last parse
505
471
  */
506
472
  const fill_optional_fields = (schema, start, candidates) => {
507
- let result = parse_any(schema, start);
473
+ let result = parse(schema, start);
508
474
  if (result.ok)
509
475
  return { value: start, result };
510
476
  // each optional field alone, so one the refinement doesn't need stays out
511
477
  for (const [name, field_value] of candidates) {
512
478
  const value = { ...start, [name]: field_value };
513
- const single_result = parse_any(schema, value);
479
+ const single_result = parse(schema, value);
514
480
  if (single_result.ok)
515
481
  return { value, result: single_result };
516
482
  }
@@ -518,7 +484,7 @@ const fill_optional_fields = (schema, start, candidates) => {
518
484
  const value = { ...start };
519
485
  for (const [name, field_value] of candidates) {
520
486
  value[name] = field_value;
521
- result = parse_any(schema, value);
487
+ result = parse(schema, value);
522
488
  if (result.ok)
523
489
  break;
524
490
  }
@@ -534,15 +500,14 @@ const fill_optional_fields = (schema, start, candidates) => {
534
500
  * replaces `base`'s optional fields, refilled the same way around it (an
535
501
  * exactly-one-of rule: adding `slug` means dropping `id`).
536
502
  *
537
- * @param object_schema - the object schema `base` is an instance of, Zod or
538
- * `@fuzdev/fuz_schema`, possibly wrapped
503
+ * @param object_schema - the object schema `base` is an instance of,
504
+ * possibly wrapped
539
505
  * @param schema - the schema the object must satisfy, refinements included
540
506
  * @param base - a valid object, the generated or seeded base
541
507
  * @param field - the field the object must carry
542
508
  * @returns the object, or `null` when no object the generator can build
543
509
  * carries the field and passes `schema`
544
- * @throws Error when `object_schema` is no object schema, or either schema is
545
- * of neither library
510
+ * @throws Error when `object_schema` is no object schema, or no schema
546
511
  */
547
512
  export const generate_valid_object_with_field = (object_schema, schema, base, field) => {
548
513
  if (Object.hasOwn(base, field.name))
@@ -575,17 +540,55 @@ export const generate_valid_object_with_field = (object_schema, schema, base, fi
575
540
  return replaced.result.ok ? replaced.value : null;
576
541
  };
577
542
  const NIL_UUID = '00000000-0000-0000-0000-000000000000';
543
+ /**
544
+ * The bounds of every `min_value` and `max_value` a schema holds, in every
545
+ * stage of every `pipe` and through its wrappers — including the stages after
546
+ * a `transform`, which its JSON Schema can't say: a URL string parsed into a
547
+ * number is bounded only there (`db_routes`' `query_int`).
548
+ */
549
+ const to_numeric_bounds = (schema) => {
550
+ const bounds = { min: [], max: [] };
551
+ const seen = new Set();
552
+ const pending = [schema];
553
+ while (pending.length > 0) {
554
+ const s = pending.pop();
555
+ if (seen.has(s))
556
+ continue;
557
+ seen.add(s);
558
+ if (s.kind === 'optional' ||
559
+ s.kind === 'nullable' ||
560
+ s.kind === 'with_default' ||
561
+ s.kind === 'with_default_fn') {
562
+ pending.push(s.def.schema);
563
+ }
564
+ else if (s.kind === 'pipe') {
565
+ pending.push(...s.def);
566
+ }
567
+ else if (s.kind === 'lazy') {
568
+ pending.push(s.def());
569
+ }
570
+ else if (s.kind === 'min_value' && typeof s.def === 'number') {
571
+ bounds.min.push(s.def);
572
+ }
573
+ else if (s.kind === 'max_value' && typeof s.def === 'number') {
574
+ bounds.max.push(s.def);
575
+ }
576
+ }
577
+ return bounds;
578
+ };
578
579
  /**
579
580
  * A string a URL-sourced field accepts — a route param or a query value, which
580
581
  * arrive as strings whatever the schema parses them into. The nil UUID for a
581
582
  * UUID field; else the first the field accepts of `test_value`, the generated
582
583
  * valid value written as a string, `1`, `0`, `true` and `false`, the field's
583
- * JSON Schema `default` or lower bound written as a string (a preprocessed
584
- * integer whose minimum is above one), and a string synthesized from the
585
- * field's constraints.
584
+ * JSON Schema `default` or lower bound written as a string, each
585
+ * `min_value` and `max_value` bound anywhere in the schema written as an
586
+ * integer (a string parsed into an integer whose range excludes the small
587
+ * candidates, `to_numeric_bounds`), and a string synthesized from the field's
588
+ * constraints.
586
589
  *
587
- * @param field - the field's info, from `to_object_schema_view` or `zod_extract_fields`
588
- * @param field_schema - the field's schema, Zod or `@fuzdev/fuz_schema`
590
+ * @param field - the field's info, from `to_object_schema_view`
591
+ * @param field_schema - the field's schema
589
592
  * @returns the string, or `null` when no candidate passes
590
593
  */
591
594
  export const generate_valid_string_param = (field, field_schema) => {
@@ -609,9 +612,11 @@ export const generate_valid_string_param = (field, field_schema) => {
609
612
  }
610
613
  if (typeof json.minimum === 'number')
611
614
  candidates.push(String(Math.ceil(json.minimum)));
612
- if (typeof json.exclusiveMinimum === 'number') {
613
- candidates.push(String(Math.floor(json.exclusiveMinimum) + 1));
614
- }
615
+ const bounds = to_numeric_bounds(field_schema);
616
+ for (const min of bounds.min)
617
+ candidates.push(String(Math.ceil(min)));
618
+ for (const max of bounds.max)
619
+ candidates.push(String(Math.floor(max)));
615
620
  candidates.push(generate_valid_string(field_schema));
616
621
  return candidates.find((c) => accepts(field_schema, c)) ?? null;
617
622
  };
@@ -620,9 +625,9 @@ export const generate_valid_string_param = (field, field_schema) => {
620
625
  * (`is_void_schema`, `is_null_schema`), which takes no body, else its object
621
626
  * view (`to_object_schema_view`).
622
627
  *
623
- * @param input_schema - a route's or action's input schema, Zod or `@fuzdev/fuz_schema`
628
+ * @param input_schema - a route's or action's input schema
624
629
  * @param label - names the input in the error
625
- * @throws Error naming `label` when the input is of neither library, or is
630
+ * @throws Error naming `label` when the input is no schema, or is
626
631
  * neither void, null, nor an object schema — no body can be generated for
627
632
  * it, and no body is not the same as one the generator can't build
628
633
  */
@@ -632,7 +637,7 @@ export const to_body_input = (input_schema, label) => {
632
637
  const view = to_object_view(input_schema, label);
633
638
  if (!view) {
634
639
  if (to_base_type(input_schema) === 'void') {
635
- throw new Error(`${label} is a void under wrappers, which dispatch does not read as void (\`is_void_schema\` is exact): absent params reach it as \`{}\`, which it refuses — declare the input as a bare \`z.void()\` or \`s.void\``);
640
+ throw new Error(`${label} is a void under wrappers, which dispatch does not read as void (\`is_void_schema\` is exact): absent params reach it as \`{}\`, which it refuses — declare the input as a bare \`s.void\``);
636
641
  }
637
642
  throw new Error(`${label} is no object, void or null schema (its innermost type is '${to_base_type(input_schema)}'), so no body can be generated for it`);
638
643
  }
@@ -681,9 +686,9 @@ export const to_route_content_type = (route) => route.raw_body ? 'application/oc
681
686
  * (`''`, `.`, `..`) is refused by name.
682
687
  *
683
688
  * @param path - the route's path template
684
- * @param params_schema - the route's params schema, a Zod or `@fuzdev/fuz_schema` object schema
689
+ * @param params_schema - the route's params schema, an object schema
685
690
  * @param param_values - the route's supplied param values by name, its entry of `RouteParamValues`
686
- * @throws Error when `params_schema` is no object schema, or of neither library;
691
+ * @throws Error when `params_schema` is no object schema, or no schema;
687
692
  * when `param_values` names no param of the path; when a supplied value is
688
693
  * `''`, `.` or `..`, or holds a lone surrogate, which can't be encoded; and
689
694
  * when a `{re}` param's value is one its pattern refuses, naming the route
@@ -750,10 +755,10 @@ export const resolve_valid_path = (path, params_schema, param_values) => {
750
755
  /**
751
756
  * Generate a valid request body for a route's or action's input schema.
752
757
  *
753
- * @param input_schema - the input schema, Zod or `@fuzdev/fuz_schema`
758
+ * @param input_schema - the input schema
754
759
  * @returns a generated body that passes the schema, or `undefined` for a void
755
760
  * or null input, which takes no body
756
- * @throws Error if the input is of neither library, or is neither void, null,
761
+ * @throws Error if the input is no schema, or is neither void, null,
757
762
  * nor an object schema, or if the generated body fails the input — catching
758
763
  * broken `generate_valid_value` logic early with the parse's issues instead
759
764
  * of a confusing 400 in downstream tests
@@ -1 +1 @@
1
- {"version":3,"file":"sse_round_trip.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/testing/sse_round_trip.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAmB7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,OAAO,EAEN,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpE,OAAO,EAIN,KAAK,uBAAuB,EAC5B,MAAM,kBAAkB,CAAC;AAQ1B,gDAAgD;AAChD,MAAM,WAAW,gBAAgB;IAChC,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,CAAC,GAAG,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,8CAA8C;AAC9C,MAAM,WAAW,mBAAmB;IACnC,4CAA4C;IAC5C,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACxC,qDAAqD;IACrD,kBAAkB,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAChE,iDAAiD;IACjD,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,gHAAgH;IAChH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD;;;;;;;;;;;;OAYG;IACH,aAAa,EAAE,uBAAuB,CAAC;IACvC,8BAA8B;IAC9B,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CAChC;AAmDD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GAAI,SAAS,mBAAmB,KAAG,IAkIvE,CAAC"}
1
+ {"version":3,"file":"sse_round_trip.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/testing/sse_round_trip.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAoB7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,OAAO,EAEN,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpE,OAAO,EAIN,KAAK,uBAAuB,EAC5B,MAAM,kBAAkB,CAAC;AAO1B,gDAAgD;AAChD,MAAM,WAAW,gBAAgB;IAChC,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,CAAC,GAAG,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,8CAA8C;AAC9C,MAAM,WAAW,mBAAmB;IACnC,4CAA4C;IAC5C,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACxC,qDAAqD;IACrD,kBAAkB,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAChE,iDAAiD;IACjD,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,gHAAgH;IAChH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD;;;;;;;;;;;;OAYG;IACH,aAAa,EAAE,uBAAuB,CAAC;IACvC,8BAA8B;IAC9B,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CAChC;AAmDD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GAAI,SAAS,mBAAmB,KAAG,IAkIvE,CAAC"}
@@ -14,6 +14,7 @@ import './assert_dev_env.js';
14
14
  * @module
15
15
  */
16
16
  import { describe, test, beforeAll, afterAll, assert } from 'vitest';
17
+ import { parse } from '@fuzdev/fuz_schema/schema.ts';
17
18
  import { SSE_CONNECTED_COMMENT } from '../realtime/sse_constants.js';
18
19
  import { ROLE_ADMIN } from '../auth/role_schema.js';
19
20
  import { create_audit_emitter } from '../auth/audit_emitter.js';
@@ -25,7 +26,6 @@ import { run_migrations } from '../db/migrate.js';
25
26
  import { AUTH_MIGRATION_NS } from '../auth/migrations.js';
26
27
  import { account_session_revoke_all_action_spec } from '../auth/account_action_specs.js';
27
28
  import { create_sse_frame_reader } from './transports/sse_frame_reader.js';
28
- import { parse_any } from '../schema_issues.js';
29
29
  /**
30
30
  * Validate a decoded SSE `data:` frame as a JSON-RPC-style `{method, params}` payload.
31
31
  */
@@ -47,7 +47,7 @@ const parse_and_validate_sse_payload = (frame, event_specs, route_path) => {
47
47
  if (event_specs) {
48
48
  const spec = event_specs.find((s) => s.method === notification.method);
49
49
  assert.ok(spec, `${route_path}: no EventSpec declared for method '${notification.method}' (declared: ${event_specs.map((s) => s.method).join(', ')})`);
50
- const result = parse_any(spec.params, notification.params);
50
+ const result = parse(spec.params, notification.params);
51
51
  if (!result.ok) {
52
52
  throw new Error(`${route_path}: params mismatch for method '${notification.method}': ${JSON.stringify(result.issues)}`);
53
53
  }
@@ -203,7 +203,7 @@ export declare const assert_no_unexpected_public_mutations: (surface: AppSurface
203
203
  * Query-string-driven filtering (audit log, list endpoints) should use params schemas
204
204
  * or query string parsing, not input schemas.
205
205
  *
206
- * Note: RPC endpoints (`create_rpc_endpoint`) use `input: z.null()` on their
206
+ * Note: RPC endpoints (`create_rpc_endpoint`) use `input: literal(null)` on their
207
207
  * route specs — the dispatcher handles body/query parsing internally. Real input
208
208
  * schemas live in `rpc_endpoints` surface, not on routes; see
209
209
  * `assert_rpc_ws_surface_invariants` for the parallel checks over RPC/WS
@@ -462,7 +462,7 @@ export const assert_no_unexpected_public_mutations = (surface, allowlist = []) =
462
462
  * Query-string-driven filtering (audit log, list endpoints) should use params schemas
463
463
  * or query string parsing, not input schemas.
464
464
  *
465
- * Note: RPC endpoints (`create_rpc_endpoint`) use `input: z.null()` on their
465
+ * Note: RPC endpoints (`create_rpc_endpoint`) use `input: literal(null)` on their
466
466
  * route specs — the dispatcher handles body/query parsing internally. Real input
467
467
  * schemas live in `rpc_endpoints` surface, not on routes; see
468
468
  * `assert_rpc_ws_surface_invariants` for the parallel checks over RPC/WS
@@ -28,7 +28,7 @@
28
28
  * <script lang="ts">
29
29
  * const form_state = new FormState<'username'>();
30
30
  * let username = $state.raw('');
31
- * const username_valid = $derived(Username.safeParse(username).success);
31
+ * const username_valid = $derived(is(Username, username));
32
32
  * const can_submit = $derived(username.trim() && username_valid);
33
33
  *
34
34
  * const handle_submit = async () => {
@@ -28,7 +28,7 @@
28
28
  * <script lang="ts">
29
29
  * const form_state = new FormState<'username'>();
30
30
  * let username = $state.raw('');
31
- * const username_valid = $derived(Username.safeParse(username).success);
31
+ * const username_valid = $derived(is(Username, username));
32
32
  * const can_submit = $derived(username.trim() && username_valid);
33
33
  *
34
34
  * const handle_submit = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_app",
3
- "version": "0.169.0",
3
+ "version": "0.170.0",
4
4
  "description": "fullstack app library",
5
5
  "glyph": "🗝",
6
6
  "logo": "logo.svg",
@@ -37,7 +37,7 @@
37
37
  "@electric-sql/pglite": ">=0.4",
38
38
  "@fuzdev/blake3-wasm": ">=0.2.0",
39
39
  "@fuzdev/fuz_css": ">=0.72.0",
40
- "@fuzdev/fuz_schema": "^0.5.5",
40
+ "@fuzdev/fuz_schema": "^0.5.6",
41
41
  "@fuzdev/fuz_util": ">=0.79.0",
42
42
  "@fuzdev/pglet-wasm": ">=0.1.2",
43
43
  "@hono/bun": ">=1",
@@ -50,8 +50,7 @@
50
50
  "hono": ">=4",
51
51
  "pg": ">=8",
52
52
  "svelte": "^5",
53
- "ws": ">=8",
54
- "zod": "^4.6"
53
+ "ws": ">=8"
55
54
  },
56
55
  "peerDependenciesMeta": {
57
56
  "@electric-sql/pglite": {
@@ -96,7 +95,7 @@
96
95
  "@fuzdev/blake3-wasm": "^0.2.0",
97
96
  "@fuzdev/fuz_code": "^0.56.0",
98
97
  "@fuzdev/fuz_css": "^0.73.0",
99
- "@fuzdev/fuz_schema": "^0.5.5",
98
+ "@fuzdev/fuz_schema": "^0.5.6",
100
99
  "@fuzdev/fuz_ui": "^0.222.1",
101
100
  "@fuzdev/fuz_util": "^0.79.1",
102
101
  "@fuzdev/gro": "^0.225.0",
@@ -130,8 +129,7 @@
130
129
  "typescript-eslint": "^8.71.1",
131
130
  "vite": "^8.3.4",
132
131
  "vitest": "^5.0.0",
133
- "ws": "^8.20.1",
134
- "zod": "^4.6.7"
132
+ "ws": "^8.20.1"
135
133
  },
136
134
  "sideEffects": [
137
135
  "**/*.css"