@prisma/orm-postgres 8.0.0-rc.8-dev.1 → 8.0.0-rc.8-dev.3
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/README.md
CHANGED
|
@@ -50,7 +50,3 @@ An application that outgrows the default wiring installs the four platform packa
|
|
|
50
50
|
## Responsibilities
|
|
51
51
|
|
|
52
52
|
Composition only. Every behavior it exposes lives in the platform packages; this package chooses the default combination of them and gives it one name.
|
|
53
|
-
|
|
54
|
-
## Dependencies
|
|
55
|
-
|
|
56
|
-
`@prisma/orm-framework`, `@prisma/orm-family-sql`, `@prisma/orm-target-postgres`, and `@prisma/orm-toolchain` at exact lockstep versions, plus `pg` and `pathe`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-postgres",
|
|
3
|
-
"version": "8.0.0-rc.8-dev.
|
|
3
|
+
"version": "8.0.0-rc.8-dev.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
"skills"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@prisma/orm-family-sql": "8.0.0-rc.8-dev.
|
|
14
|
-
"@prisma/orm-framework": "8.0.0-rc.8-dev.
|
|
15
|
-
"@prisma/orm-target-postgres": "8.0.0-rc.8-dev.
|
|
16
|
-
"@prisma/orm-toolchain": "8.0.0-rc.8-dev.
|
|
13
|
+
"@prisma/orm-family-sql": "8.0.0-rc.8-dev.3",
|
|
14
|
+
"@prisma/orm-framework": "8.0.0-rc.8-dev.3",
|
|
15
|
+
"@prisma/orm-target-postgres": "8.0.0-rc.8-dev.3",
|
|
16
|
+
"@prisma/orm-toolchain": "8.0.0-rc.8-dev.3",
|
|
17
17
|
"@types/pg": "8.20.4",
|
|
18
18
|
"pathe": "^2.0.3",
|
|
19
19
|
"pg": "8.22.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@internal/postgres": "8.0.0-rc.8-dev.
|
|
23
|
-
"@repo/tsconfig": "8.0.0-rc.8-dev.
|
|
24
|
-
"@internal/publish-surface": "8.0.0-rc.8-dev.
|
|
25
|
-
"@repo/tsdown": "8.0.0-rc.8-dev.
|
|
22
|
+
"@internal/postgres": "8.0.0-rc.8-dev.3",
|
|
23
|
+
"@repo/tsconfig": "8.0.0-rc.8-dev.3",
|
|
24
|
+
"@internal/publish-surface": "8.0.0-rc.8-dev.3",
|
|
25
|
+
"@repo/tsdown": "8.0.0-rc.8-dev.3",
|
|
26
26
|
"tsdown": "0.22.14",
|
|
27
27
|
"typescript": "5.9.3",
|
|
28
28
|
"vitest": "5.0.0-rc.2"
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
},
|
|
180
180
|
"repository": {
|
|
181
181
|
"type": "git",
|
|
182
|
-
"url": "https://github.com/prisma/
|
|
182
|
+
"url": "https://github.com/prisma/orm.git",
|
|
183
183
|
"directory": "packages/9-public/@prisma/orm-postgres"
|
|
184
184
|
},
|
|
185
185
|
"scripts": {
|
package/skills/prisma-8/SKILL.md
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
from: "8.0.0-rc.8"
|
|
3
|
+
to: "8.0.0-rc.9"
|
|
4
|
+
changes:
|
|
5
|
+
- id: mongo-index-projections-use-native-lists
|
|
6
|
+
summary: |
|
|
7
|
+
MongoDB wildcard index `include` and `exclude` projections in Prisma schema files must use native PSL lists instead of encoded list strings.
|
|
8
|
+
detection:
|
|
9
|
+
glob: "**/*.prisma"
|
|
10
|
+
matches:
|
|
11
|
+
- '\b(?:include|exclude)\s*:\s*"\[[^"\r\n]*\]"'
|
|
12
|
+
- id: mongo-text-index-weights-use-native-records
|
|
13
|
+
summary: |
|
|
14
|
+
MongoDB text-index `weights` in Prisma schema files must use native PSL records instead of encoded JSON strings.
|
|
15
|
+
detection:
|
|
16
|
+
glob: "**/*.prisma"
|
|
17
|
+
matches:
|
|
18
|
+
- '\bweights\s*:\s*"\{\s*(?:\\.|[^"\\])*\}"'
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# 8.0.0-rc.8 → 8.0.0-rc.9 — User upgrade instructions
|
|
22
|
+
|
|
23
|
+
## `mongo-index-projections-use-native-lists`
|
|
24
|
+
|
|
25
|
+
For every Prisma schema matched by `detection`, replace encoded projection strings with native PSL lists. For example, change `include: "[a, b]"` to `include: ["a", "b"]` and `exclude: "[a]"` to `exclude: ["a"]`. Decode each string's fields in their existing order and preserve whether the argument is `include` or `exclude`.
|
|
26
|
+
|
|
27
|
+
## `mongo-text-index-weights-use-native-records`
|
|
28
|
+
|
|
29
|
+
For every Prisma schema matched by `detection`, replace the encoded JSON string passed to `weights` with a native PSL record. For example, change `weights: "{\"title\": 10}"` to `weights: { title: 10 }`, preserving every field name and numeric weight.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
from: "8.0.0-rc.8"
|
|
3
|
+
to: "8.0.0-rc.9"
|
|
4
|
+
changes:
|
|
5
|
+
- id: remove-nested-relations-from-sql-orm-upsert-and-batch-create
|
|
6
|
+
summary: |
|
|
7
|
+
SQL ORM `upsert({ create })`, `createAll()`, and `createAndCount()` payloads no longer accept nested relation mutation callbacks, which these operations cannot execute. Remove the callbacks and create related records separately, or use ordinary `create()` when the records must be created as one nested relation operation.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# 8.0.0-rc.8 → 8.0.0-rc.9 — Extension author upgrade instructions
|
|
11
|
+
|
|
12
|
+
## `remove-nested-relations-from-sql-orm-upsert-and-batch-create`
|
|
13
|
+
|
|
14
|
+
Find SQL ORM calls to `upsert()`, `createAll()`, and `createAndCount()` whose create payloads contain relation fields assigned callback functions. Remove those callbacks and create the related records separately. When the operation requires nested relation creation, replace it with ordinary `create()`, which continues to accept and execute relation mutation callbacks.
|