@ultimat3/query 25.1.0 → 26.0.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.
package/README.md CHANGED
@@ -677,9 +677,9 @@ original error still reaches the caller; a sink refusing an **allowed** record w
677
677
  | `X_MATCHER_UNSUPPORTED` | live query the matcher cannot patch | reshape it, or `live: false` |
678
678
  | `X_CURSOR_INVALID` | tampered / foreign / malformed cursor | request the first page again |
679
679
  | `X_QUERY_NOT_PAGEABLE` | a paged or live read returned a row with no `id` | select the primary key: `db.<rows>.select({ id: true, … })` |
680
- | `X_INPUT_INVALID` | input failed the Standard Schema; a page control the wire refuses; a `search()` handed a blank term, a cursor, or a window that would cut rows | `x queries describe <name> --json` |
680
+ | `X_INPUT_INVALID` | input failed the Standard Schema; a page control the wire refuses; a `search()` handed a blank term, a cursor, or a window that would cut rows | `x queries show <name> --json` |
681
681
  | `X_QUERY_UNREGISTERED` | used before `registerQueries()` ran | register at boot |
682
- | `X_NOT_FOUND` | a `single: true` read matched no row — the HTTP route's 404, and the MCP tool's refusal (entity's code) | `x queries describe <name> --json` prints the SQL |
682
+ | `X_NOT_FOUND` | a `single: true` read matched no row — the HTTP route's 404, and the MCP tool's refusal (entity's code) | `x queries show <name> --json` prints the SQL |
683
683
  | `X_QUERY_SINGLE_INVALID` | `single:` declared as something other than a boolean | `single: true`, or drop the key |
684
684
  | `X_QUERY_FOREIGN` | a look-alike was projected as a query | declare it with `query({ … })` |
685
685
  | `X_CLIENT_TRANSPORT_FAILED` | `.client()` got no response, or a non-`problem+json` failure (core's code, since 21.0.0; was `X_RPC_FAILED`) | check the gateway in front of the app: `x doctor --json` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/query",
3
- "version": "25.1.0",
3
+ "version": "26.0.0",
4
4
  "description": "The query primitive: a policy-checked read, optionally live, with cursor pagination and an incremental matcher",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -37,11 +37,11 @@
37
37
  "test": "bun test"
38
38
  },
39
39
  "dependencies": {
40
- "@ultimat3/cache": "25.1.0",
41
- "@ultimat3/core": "25.1.0",
42
- "@ultimat3/entity": "25.1.0",
43
- "@ultimat3/http": "25.1.0",
44
- "@ultimat3/policy": "25.1.0",
45
- "@ultimat3/schema": "25.1.0"
40
+ "@ultimat3/cache": "26.0.0",
41
+ "@ultimat3/core": "26.0.0",
42
+ "@ultimat3/entity": "26.0.0",
43
+ "@ultimat3/http": "26.0.0",
44
+ "@ultimat3/policy": "26.0.0",
45
+ "@ultimat3/schema": "26.0.0"
46
46
  }
47
47
  }
package/src/errors.ts CHANGED
@@ -326,7 +326,7 @@ export class QueryInputInvalidError extends UltimateError {
326
326
  super({
327
327
  code: 'X_INPUT_INVALID',
328
328
  cause: `input for query "${name}" failed validation: ${detail}`,
329
- fix: `x queries describe ${name} --json # prints the expected input schema`,
329
+ fix: `x queries show ${name} --json # prints the expected input schema`,
330
330
  });
331
331
  }
332
332
  }
@@ -341,7 +341,7 @@ export class QueryRowNotFoundError extends UltimateError {
341
341
  super({
342
342
  code: 'X_NOT_FOUND',
343
343
  cause: `query "${name}" is declared single: true and its sql matched no row for this input`,
344
- fix: `x queries describe ${name} --json # prints the SQL — a stale id, another tenant's row or a soft-deleted one matches nothing`,
344
+ fix: `x queries show ${name} --json # prints the SQL — a stale id, another tenant's row or a soft-deleted one matches nothing`,
345
345
  });
346
346
  }
347
347
  }
package/src/search.ts CHANGED
@@ -116,7 +116,7 @@ const limitSchema = (max: number, fallback: number) =>
116
116
  */
117
117
  const onePage = <Row extends object>(
118
118
  base: Builder<Row>,
119
- /** The read's registered name — what the refusal's `fix:` asks `x queries describe` about. */
119
+ /** The read's registered name — what the refusal's `fix:` asks `x queries show` about. */
120
120
  read: string,
121
121
  entity: string,
122
122
  /** Rows the chain was capped at — this read's `limit` input, and its whole page. */