@quickback-dev/cli 0.70.11 → 0.70.13

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.13";
14
14
  function getPackageVersion() {
15
15
  return CLI_VERSION;
16
16
  }
@@ -1275,9 +1275,12 @@ scope minted mid-request) re-stamps the preamble inside the open transaction —
1275
1275
  `set_config(…, true)` is transaction-local, so the previous claims are gone the
1276
1276
  moment the new ones land. The read lane is rolled back before a write or a
1277
1277
  `db.transaction()` takes the connection, after any read error, and when the
1278
- invocation scope closes the pool; a `SELECT` the server refuses inside a
1279
- read-only transaction (`nextval()`, a volatile function that writes) falls back
1280
- to the write lane automatically. Only statements that begin with `SELECT` or a
1278
+ invocation scope closes the pool. That `ROLLBACK` is its own round trip, never
1279
+ pipelined with the write's `BEGIN`: Hyperdrive's transaction pooler releases
1280
+ the origin connection at the transaction end and loses anything pipelined past
1281
+ it, which hung every write that followed a read in 0.70.10–0.70.12. A
1282
+ `SELECT` the server refuses inside a read-only transaction (`nextval()`, a
1283
+ volatile function that writes) falls back to the write lane automatically. Only statements that begin with `SELECT` or a
1281
1284
  non-modifying `WITH` and carry no `FOR UPDATE` / `FOR SHARE` qualify; anything
1282
1285
  else is a write.
1283
1286
 
@@ -1319,6 +1322,7 @@ Server-Timing: total;dur=312.6, db;dur=212.4;desc="stmts=11 tx=2 cold=1", gate;d
1319
1322
  | `stmts` | Statements run, including those inside `db.transaction()` |
1320
1323
  | `tx` | Claims transactions opened (one per statement, one per `db.transaction()`) |
1321
1324
  | `cold` | Connections the lease pool had to open for this invocation |
1325
+ | `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
1326
  | `gate` / `action` | Action routes only: the generated pre-action pipeline (auth, access, firewall pre-reads, input validation) vs. the action's `execute` body |
1323
1327
 
1324
1328
  Statement text and parameters are never logged. Work the invocation defers to
@@ -1327,7 +1331,12 @@ and is not counted.
1327
1331
 
1328
1332
  The header and log line are on by default. Set the Wrangler var
1329
1333
  `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
1334
+ to turn both off there. `SERVER_TIMING = "debug"` adds a `statements` array to
1335
+ the log line only (never the header): one entry per statement with the first
1336
+ 120 characters of the SQL, its duration, its lane (`read`, `write`, or `tx` for
1337
+ a `db.transaction()`), and whether it was the first statement on its
1338
+ connection. Parameters are never logged, and the trace is for dev and staging:
1339
+ 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
1340
  Workers Logs to find the endpoints where round trips, not the statements
1332
1341
  themselves, are the cost.
1333
1342
 
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.13",
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",
@@ -1275,9 +1275,12 @@ scope minted mid-request) re-stamps the preamble inside the open transaction —
1275
1275
  `set_config(…, true)` is transaction-local, so the previous claims are gone the
1276
1276
  moment the new ones land. The read lane is rolled back before a write or a
1277
1277
  `db.transaction()` takes the connection, after any read error, and when the
1278
- invocation scope closes the pool; a `SELECT` the server refuses inside a
1279
- read-only transaction (`nextval()`, a volatile function that writes) falls back
1280
- to the write lane automatically. Only statements that begin with `SELECT` or a
1278
+ invocation scope closes the pool. That `ROLLBACK` is its own round trip, never
1279
+ pipelined with the write's `BEGIN`: Hyperdrive's transaction pooler releases
1280
+ the origin connection at the transaction end and loses anything pipelined past
1281
+ it, which hung every write that followed a read in 0.70.10–0.70.12. A
1282
+ `SELECT` the server refuses inside a read-only transaction (`nextval()`, a
1283
+ volatile function that writes) falls back to the write lane automatically. Only statements that begin with `SELECT` or a
1281
1284
  non-modifying `WITH` and carry no `FOR UPDATE` / `FOR SHARE` qualify; anything
1282
1285
  else is a write.
1283
1286
 
@@ -1319,6 +1322,7 @@ Server-Timing: total;dur=312.6, db;dur=212.4;desc="stmts=11 tx=2 cold=1", gate;d
1319
1322
  | `stmts` | Statements run, including those inside `db.transaction()` |
1320
1323
  | `tx` | Claims transactions opened (one per statement, one per `db.transaction()`) |
1321
1324
  | `cold` | Connections the lease pool had to open for this invocation |
1325
+ | `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
1326
  | `gate` / `action` | Action routes only: the generated pre-action pipeline (auth, access, firewall pre-reads, input validation) vs. the action's `execute` body |
1323
1327
 
1324
1328
  Statement text and parameters are never logged. Work the invocation defers to
@@ -1327,7 +1331,12 @@ and is not counted.
1327
1331
 
1328
1332
  The header and log line are on by default. Set the Wrangler var
1329
1333
  `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
1334
+ to turn both off there. `SERVER_TIMING = "debug"` adds a `statements` array to
1335
+ the log line only (never the header): one entry per statement with the first
1336
+ 120 characters of the SQL, its duration, its lane (`read`, `write`, or `tx` for
1337
+ a `db.transaction()`), and whether it was the first statement on its
1338
+ connection. Parameters are never logged, and the trace is for dev and staging:
1339
+ 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
1340
  Workers Logs to find the endpoints where round trips, not the statements
1332
1341
  themselves, are the cost.
1333
1342