@quickback-dev/cli 0.70.11 → 0.70.12

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/dist/index.js CHANGED
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import pc from "picocolors";
12
12
  // Version injected at build time by scripts/inject-version.ts
13
- const CLI_VERSION = "0.70.11";
13
+ const CLI_VERSION = "0.70.12";
14
14
  function getPackageVersion() {
15
15
  return CLI_VERSION;
16
16
  }
@@ -1319,6 +1319,7 @@ Server-Timing: total;dur=312.6, db;dur=212.4;desc="stmts=11 tx=2 cold=1", gate;d
1319
1319
  | `stmts` | Statements run, including those inside `db.transaction()` |
1320
1320
  | `tx` | Claims transactions opened (one per statement, one per `db.transaction()`) |
1321
1321
  | `cold` | Connections the lease pool had to open for this invocation |
1322
+ | `auth` | Time from the request-id middleware to the end of the auth middleware: Better Auth's session and user lookups plus the membership/role lookup for the active org. Paid by every authenticated request, CRUD and action alike |
1322
1323
  | `gate` / `action` | Action routes only: the generated pre-action pipeline (auth, access, firewall pre-reads, input validation) vs. the action's `execute` body |
1323
1324
 
1324
1325
  Statement text and parameters are never logged. Work the invocation defers to
@@ -1327,7 +1328,12 @@ and is not counted.
1327
1328
 
1328
1329
  The header and log line are on by default. Set the Wrangler var
1329
1330
  `SERVER_TIMING = "0"` on a target (for example in `environments.production.vars`)
1330
- to turn both off there. Aggregate p50 / p95 by `route` with `wrangler tail` or
1331
+ to turn both off there. `SERVER_TIMING = "debug"` adds a `statements` array to
1332
+ the log line only (never the header): one entry per statement with the first
1333
+ 120 characters of the SQL, its duration, its lane (`read`, `write`, or `tx` for
1334
+ a `db.transaction()`), and whether it was the first statement on its
1335
+ connection. Parameters are never logged, and the trace is for dev and staging:
1336
+ an N+1 shape shows up as the same SQL head repeated with per-row durations. Aggregate p50 / p95 by `route` with `wrangler tail` or
1331
1337
  Workers Logs to find the endpoints where round trips, not the statements
1332
1338
  themselves, are the cost.
1333
1339
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quickback-dev/cli",
3
- "version": "0.70.11",
3
+ "version": "0.70.12",
4
4
  "description": "CLI for Quickback — define your backend in TypeScript, compile to a fully wired Cloudflare Worker (or Bun / Node) with auth, database, migrations, security, CMS, and Account UI.",
5
5
  "author": "Kardoe Incorporated <paul@kardoe.com>",
6
6
  "license": "MIT",
@@ -1319,6 +1319,7 @@ Server-Timing: total;dur=312.6, db;dur=212.4;desc="stmts=11 tx=2 cold=1", gate;d
1319
1319
  | `stmts` | Statements run, including those inside `db.transaction()` |
1320
1320
  | `tx` | Claims transactions opened (one per statement, one per `db.transaction()`) |
1321
1321
  | `cold` | Connections the lease pool had to open for this invocation |
1322
+ | `auth` | Time from the request-id middleware to the end of the auth middleware: Better Auth's session and user lookups plus the membership/role lookup for the active org. Paid by every authenticated request, CRUD and action alike |
1322
1323
  | `gate` / `action` | Action routes only: the generated pre-action pipeline (auth, access, firewall pre-reads, input validation) vs. the action's `execute` body |
1323
1324
 
1324
1325
  Statement text and parameters are never logged. Work the invocation defers to
@@ -1327,7 +1328,12 @@ and is not counted.
1327
1328
 
1328
1329
  The header and log line are on by default. Set the Wrangler var
1329
1330
  `SERVER_TIMING = "0"` on a target (for example in `environments.production.vars`)
1330
- to turn both off there. Aggregate p50 / p95 by `route` with `wrangler tail` or
1331
+ to turn both off there. `SERVER_TIMING = "debug"` adds a `statements` array to
1332
+ the log line only (never the header): one entry per statement with the first
1333
+ 120 characters of the SQL, its duration, its lane (`read`, `write`, or `tx` for
1334
+ a `db.transaction()`), and whether it was the first statement on its
1335
+ connection. Parameters are never logged, and the trace is for dev and staging:
1336
+ an N+1 shape shows up as the same SQL head repeated with per-row durations. Aggregate p50 / p95 by `route` with `wrangler tail` or
1331
1337
  Workers Logs to find the endpoints where round trips, not the statements
1332
1338
  themselves, are the cost.
1333
1339