@prisma/orm-mongo 8.0.0-rc.11-dev.12 → 8.0.0-rc.11-dev.14
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.11-dev.
|
|
3
|
+
"version": "8.0.0-rc.11-dev.14",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"skills"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@prisma/orm-family-mongo": "8.0.0-rc.11-dev.
|
|
14
|
-
"@prisma/orm-framework": "8.0.0-rc.11-dev.
|
|
15
|
-
"@prisma/orm-target-mongo": "8.0.0-rc.11-dev.
|
|
16
|
-
"@prisma/orm-toolchain": "8.0.0-rc.11-dev.
|
|
13
|
+
"@prisma/orm-family-mongo": "8.0.0-rc.11-dev.14",
|
|
14
|
+
"@prisma/orm-framework": "8.0.0-rc.11-dev.14",
|
|
15
|
+
"@prisma/orm-target-mongo": "8.0.0-rc.11-dev.14",
|
|
16
|
+
"@prisma/orm-toolchain": "8.0.0-rc.11-dev.14",
|
|
17
17
|
"pathe": "^2.0.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@internal/mongo": "8.0.0-rc.11-dev.
|
|
21
|
-
"@repo/tsconfig": "8.0.0-rc.11-dev.
|
|
22
|
-
"@repo/tsdown": "8.0.0-rc.11-dev.
|
|
20
|
+
"@internal/mongo": "8.0.0-rc.11-dev.14",
|
|
21
|
+
"@repo/tsconfig": "8.0.0-rc.11-dev.14",
|
|
22
|
+
"@repo/tsdown": "8.0.0-rc.11-dev.14",
|
|
23
23
|
"tsdown": "0.22.14",
|
|
24
24
|
"typescript": "5.9.3"
|
|
25
25
|
},
|
package/skills/prisma-8/SKILL.md
CHANGED
|
@@ -5,6 +5,9 @@ to: 8.0.0-rc.12
|
|
|
5
5
|
changes:
|
|
6
6
|
- id: params-only-sql-facade-prepare
|
|
7
7
|
summary: Replace injected SQL-builder preparation callbacks with params-only callbacks and lexical facade SQL access.
|
|
8
|
+
- id: postgres-target-owned-list-framing
|
|
9
|
+
summary: |
|
|
10
|
+
PostgreSQL list result decoding is target-owned; direct driver reads now expose raw array literals, and fixed-scale numeric arrays return database-normalized decimal text such as `"1.5000000000"`.
|
|
8
11
|
---
|
|
9
12
|
|
|
10
13
|
## `params-only-sql-facade-prepare`
|
|
@@ -26,3 +29,7 @@ const query = await db.prepare({ id: 'pg/int4@1' }, (params) =>
|
|
|
26
29
|
```
|
|
27
30
|
|
|
28
31
|
Apply the same translation to SQLite's flat SQL facade (`sql.users` becomes `db.sql.users`), retaining its existing codec ids. Keep `.query(target, params, options?)` and SQL statistics `.execute(target, params, options?)` calls unchanged. Do not rewrite historical release notes, applied upgrade recipes, generated contracts or tests as part of this source translation.
|
|
32
|
+
|
|
33
|
+
## `postgres-target-owned-list-framing`
|
|
34
|
+
|
|
35
|
+
Review application code and snapshots that assert exact PostgreSQL list result spellings. Ordinary Prisma Next runtime reads still return JavaScript arrays, and builtin and enum lists now use the same raw-text-to-element-codec path. If you assert `Decimal[]` / `numeric[]` strings for fixed-scale columns, update those expectations to PostgreSQL's database-normalized scale: a `numeric(30,10)[]` element inserted as `1.5` reads as `"1.5000000000"`; scalar numeric decoding already follows this text-preserving policy. If you use lower-level Postgres driver direct-query rows, parse raw PostgreSQL array literal strings such as `'{a,b}'` instead of expecting registered builtin arrays to arrive as JavaScript arrays. Do not re-emit contracts solely for this change: codec ids, `typeParams`, and `CodecRef.many` stay unchanged.
|
package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.11-to-8.0.0-rc.12/instructions.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
from: 8.0.0-rc.11
|
|
3
3
|
to: 8.0.0-rc.12
|
|
4
4
|
# contract.d.ts now orders every collection the way contract.json does; a re-emit reorders, nothing else.
|
|
5
|
+
# Prepared include decoder specialization adds no consumer migration; retain existing entries below.
|
|
5
6
|
changes:
|
|
6
7
|
- id: expression-codec-on-return-type
|
|
7
8
|
summary: Move custom expression wrapper codec metadata to returnType.codec and remove the separate ExpressionImpl codec argument.
|
|
@@ -9,6 +10,9 @@ changes:
|
|
|
9
10
|
summary: Type ORM preparation descriptions with the shared compositional Preparable protocol and pass their contained plan to SQL runtime.
|
|
10
11
|
- id: params-only-sql-facade-prepare
|
|
11
12
|
summary: Replace injected SQL-builder preparation callbacks with params-only callbacks and lexical facade SQL access.
|
|
13
|
+
- id: postgres-list-element-codecs-receive-raw-strings
|
|
14
|
+
summary: |
|
|
15
|
+
PostgreSQL list decoding now parses array frames in the target and passes raw string elements to the scalar element codec; custom PostgreSQL codecs used in lists must accept those raw element spellings.
|
|
12
16
|
- id: preserve-prepared-reference-nullability
|
|
13
17
|
summary: Preserve declaration nullability when constructing or cloning PreparedParamRef AST nodes.
|
|
14
18
|
- id: preserve-orm-pagination-expressions
|
|
@@ -54,3 +58,7 @@ const query = await db.prepare({ id: 'pg/int4@1' }, (params) =>
|
|
|
54
58
|
```
|
|
55
59
|
|
|
56
60
|
Apply the same translation to SQLite's flat SQL facade (`sql.users` becomes `db.sql.users`), retaining its existing codec ids. Keep `.query(target, params, options?)` and SQL statistics `.execute(target, params, options?)` calls unchanged. Do not rewrite historical release notes, applied upgrade recipes, generated contracts or tests as part of this source translation.
|
|
61
|
+
|
|
62
|
+
## `postgres-list-element-codecs-receive-raw-strings`
|
|
63
|
+
|
|
64
|
+
Review PostgreSQL extension codecs whose descriptors can be used by `CodecRef.many` list columns. Inbound list framing is now target-owned: the target parses the Postgres array literal and invokes the scalar element codec for each non-null raw string element. Keep scalar direct-query compatibility as needed, but make the element `decode(wire, ctx)` accept the raw text spelling Postgres emits for that scalar value; the built-in numeric, boolean, integer, and float codecs accept both raw strings and native scalar wire values for this reason. Do not add a native-array fallback at the list-frame boundary, and do not add compatibility exports or codec-id aliases. `codecId`, `typeParams`, and emitted `CodecRef.many` shapes are unchanged.
|