@prisma/orm-mongo 8.0.0-rc.17-dev.34 → 8.0.0-rc.17-dev.36

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.17-dev.34",
3
+ "version": "8.0.0-rc.17-dev.36",
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.17-dev.34",
14
- "@prisma/orm-framework": "8.0.0-rc.17-dev.34",
15
- "@prisma/orm-target-mongo": "8.0.0-rc.17-dev.34",
16
- "@prisma/orm-toolchain": "8.0.0-rc.17-dev.34",
13
+ "@prisma/orm-family-mongo": "8.0.0-rc.17-dev.36",
14
+ "@prisma/orm-framework": "8.0.0-rc.17-dev.36",
15
+ "@prisma/orm-target-mongo": "8.0.0-rc.17-dev.36",
16
+ "@prisma/orm-toolchain": "8.0.0-rc.17-dev.36",
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.17-dev.34",
23
- "@repo/tsconfig": "8.0.0-rc.17-dev.34",
24
- "@repo/tsdown": "8.0.0-rc.17-dev.34",
22
+ "@internal/mongo": "8.0.0-rc.17-dev.36",
23
+ "@repo/tsconfig": "8.0.0-rc.17-dev.36",
24
+ "@repo/tsdown": "8.0.0-rc.17-dev.36",
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.17-dev.34'
18
+ library_version: '8.0.0-rc.17-dev.36'
19
19
  version: '2026-09-12'
20
20
  ---
21
21
 
@@ -293,7 +293,7 @@ Order matters: `beforeEncode` runs in registration order for every middleware be
293
293
 
294
294
  ## Workflow — Configure the connection
295
295
 
296
- The concept: the runtime takes one of three binding shapes — `url`, `pg` (a pre-constructed `pg.Pool` or `pg.Client`), or `binding` (an explicit kind tag). They're mutually exclusive. The `pg` form is for projects that already manage their own pool (e.g. a Lambda layer); `url` is the default. Pool tuning is `poolOptions.connectionTimeoutMillis` / `poolOptions.idleTimeoutMillis` — *not* `driverOptions`. Reads are buffered by default; setting `cursor` (`{ batchSize: 100 }`; `{}` or `{ batchSize: undefined }` for batches of 100; a `batchSize` that is not a positive integer fails the factory call) makes them stream through a server-side cursor, and there is no flag that turns cursors off (see `references/queries.md` § *Streaming*). `postgresServerless()` takes the same `cursor` option.
296
+ The concept: the runtime takes one of three binding shapes — `url`, `pg` (a pre-constructed `pg.Pool` or `pg.Client`), or `binding` (an explicit kind tag). They're mutually exclusive. The `pg` form is for projects that already manage their own pool (e.g. a Lambda layer); `url` is the default. Pool tuning is `poolOptions.connectionTimeoutMillis` / `poolOptions.idleTimeoutMillis` — *not* `driverOptions`. Reads are buffered by default; setting `cursor` (`{ batchSize: 100 }`; `{}` or `{ batchSize: undefined }` for batches of 100; a `batchSize` that is not a positive integer fails the factory call) makes them stream through a server-side cursor, and there is no flag that turns cursors off (see `references/queries.md` § *Streaming*). `postgresServerless()` takes the same `cursor` option. Pass `log` (an object with `info`, `warn`, `error` and an optional `debug`; `console` works, and the type is `Log` from `@prisma/orm-postgres/family-runtime`) to receive what the runtime logs: the marker-verification warnings `CONTRACT.MARKER_MISSING` and `CONTRACT.MARKER_MISMATCH` from the first query, the warnings `lints()` emits for rules whose severity is `warn`, and the errors a middleware's `activityEnded` or `activityFinalized` hook throws, which the runtime logs and swallows. If `log` has a `debug` method, it also receives debug events, for example when a middleware intercepts a statement. `budgets()` violations never reach `log`: the client runs its runtime in strict mode, so a violation throws, until the client exposes `mode` (TML-3567). Without `log`, the runtime drops these events. `postgresServerless()`, `sqlite()` and `supabase()` take the same option.
297
297
 
298
298
  ```typescript
299
299
  // Default — URL string, factory constructs the pool.
@@ -305,6 +305,7 @@ postgres<Contract>({
305
305
  idleTimeoutMillis: 30_000,
306
306
  },
307
307
  // cursor: { batchSize: 100 }, // optional — stream reads in batches instead of buffering
308
+ // log: console, // optional — receive marker and lints() warnings
308
309
  });
309
310
 
310
311
  // BYO pool — pass a pg.Pool you already created.