ovr 7.0.0-next.24 → 7.0.0-next.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ovr
2
2
 
3
+ ## 7.0.0-next.25
4
+
5
+ ### Patch Changes
6
+
7
+ - d82e9b9: The error for `preprocess()` on a table column says what to do: convert the value in your handler before inserting, or have the field reject what should not be stored.
8
+
3
9
  ## 7.0.0-next.24
4
10
 
5
11
  ### Patch Changes
@@ -33,6 +39,7 @@
33
39
  - Form state in a URL shows no more rows of a list than it takes, and never sets a row's hidden value.
34
40
  - The page a sign-in link opens is sent with `Referrer-Policy: no-referrer`.
35
41
  - A file's name in an agent's tool result is only a name.
42
+ - A write that redirects answers an agent `Redirected to /recipes`, without the `Done.` that next.18 put before it.
36
43
 
37
44
  ## 7.0.0-next.19
38
45
 
@@ -116,7 +116,7 @@ export class Table extends Schema {
116
116
  // form fields normalize their input, a stored value parses unchanged
117
117
  if (normalizers.has(def.fn))
118
118
  return Table.#type(def.inner.def, column);
119
- throw Table.#invalid(column, `preprocess() would change stored values when they are read, convert before inserting instead`);
119
+ throw Table.#invalid(column, `preprocess() would run on stored values as they are read, convert the value in your handler before inserting instead, or have the field reject what should not be stored`);
120
120
  case "json":
121
121
  throw Table.#invalid(column, `use the parsed object or array schema for JSON instead of json()`);
122
122
  // optional() and nullish() are type errors, see `Table.Omissible`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ovr",
3
3
  "description": "Web apps anyone can use. Each route serves people a page and agents Markdown and MCP tools, with forms, Postgres, and passkey sign-in built in.",
4
- "version": "7.0.0-next.24",
4
+ "version": "7.0.0-next.25",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -280,7 +280,7 @@ export class Table<
280
280
 
281
281
  throw Table.#invalid(
282
282
  column,
283
- `preprocess() would change stored values when they are read, convert before inserting instead`,
283
+ `preprocess() would run on stored values as they are read, convert the value in your handler before inserting instead, or have the field reject what should not be stored`,
284
284
  );
285
285
  case "json":
286
286
  throw Table.#invalid(