@prisma/orm-mongo 8.0.0-rc.14-dev.36 → 8.0.0-rc.14-dev.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-mongo",
3
- "version": "8.0.0-rc.14-dev.36",
3
+ "version": "8.0.0-rc.14-dev.37",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -10,18 +10,18 @@
10
10
  "skills"
11
11
  ],
12
12
  "dependencies": {
13
- "@prisma/orm-family-mongo": "8.0.0-rc.14-dev.36",
14
- "@prisma/orm-framework": "8.0.0-rc.14-dev.36",
15
- "@prisma/orm-target-mongo": "8.0.0-rc.14-dev.36",
16
- "@prisma/orm-toolchain": "8.0.0-rc.14-dev.36",
13
+ "@prisma/orm-family-mongo": "8.0.0-rc.14-dev.37",
14
+ "@prisma/orm-framework": "8.0.0-rc.14-dev.37",
15
+ "@prisma/orm-target-mongo": "8.0.0-rc.14-dev.37",
16
+ "@prisma/orm-toolchain": "8.0.0-rc.14-dev.37",
17
17
  "mongodb-connection-string-url": "^7.0.1",
18
18
  "pathe": "^2.0.3",
19
19
  "tinyglobby": "^0.2.17"
20
20
  },
21
21
  "devDependencies": {
22
- "@internal/mongo": "8.0.0-rc.14-dev.36",
23
- "@repo/tsconfig": "8.0.0-rc.14-dev.36",
24
- "@repo/tsdown": "8.0.0-rc.14-dev.36",
22
+ "@internal/mongo": "8.0.0-rc.14-dev.37",
23
+ "@repo/tsconfig": "8.0.0-rc.14-dev.37",
24
+ "@repo/tsdown": "8.0.0-rc.14-dev.37",
25
25
  "tsdown": "0.22.14",
26
26
  "typescript": "5.9.3"
27
27
  },
@@ -15,7 +15,7 @@ description: >-
15
15
  ORM 7 or earlier (schema.prisma + @prisma/client).
16
16
  metadata:
17
17
  library: '@prisma/orm-mongo'
18
- library_version: '8.0.0-rc.14-dev.36'
18
+ library_version: '8.0.0-rc.14-dev.37'
19
19
  version: '2026-09-12'
20
20
  ---
21
21
 
@@ -172,7 +172,7 @@ How connections read rows, and the `cursor` option on the serverless client (wit
172
172
 
173
173
  ## Workflow — Custom middleware (query log, slow-query warning)
174
174
 
175
- The concept: a middleware is a plain object with `name`, `familyId: 'sql'`, and any of the hooks `beforeQuery`, `interceptQuery`, `afterQuery`. There is no separate telemetry package — observe queries with `afterQuery`, which fires once per execution after the rows are consumed, with `result.latencyMs`, `result.rowCount`, and `result.source` (`'driver'` or `'middleware'` for a cache hit). The `SqlMiddleware` type comes from `@prisma/orm-postgres/family-runtime`. `examples/prisma-8-demo/src/prisma/slow-query-warning.ts` is the canonical example:
175
+ The concept: a middleware is a plain object with `name`, `familyId: 'sql'`, and any of the hooks `beforeQuery`, `interceptQuery`, `afterQuery`, `beforeExecute`, `afterExecute`, `afterTransaction`. Row queries fire `afterQuery`; count-style writes fire `afterExecute`. `afterTransaction(plan, result, ctx)` is the last hook of every query whose before-hooks and parameter encoding succeeded (a query that fails in a before-hook or while encoding its parameters gets none), and fires once, when its effects are final: when the query ends outside a transaction, or when the enclosing transaction ends. `result.outcome` is `'committed'`, `'rolled-back'`, or `'unknown'` (a commit or statement that failed and may have landed, a row stream the caller stopped reading outside a transaction, or a committed transaction in which one of the queries failed). There is no separate telemetry package — observe queries with `afterQuery`, which fires once per execution after the rows are consumed, with `result.latencyMs`, `result.rowCount`, and `result.source` (`'driver'` or `'middleware'` for a cache hit). The `SqlMiddleware` type comes from `@prisma/orm-postgres/family-runtime`. `examples/prisma-8-demo/src/prisma/slow-query-warning.ts` is the canonical example:
176
176
 
177
177
  ```typescript
178
178
  import type { SqlMiddleware } from '@prisma/orm-postgres/family-runtime';