@prisma/orm-mongo 8.0.0-rc.8-dev.1 → 8.0.0-rc.8-dev.2
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
|
@@ -48,7 +48,3 @@ This package ships no bin. The ORM commands run inside the unified `prisma` CLI,
|
|
|
48
48
|
## Responsibilities
|
|
49
49
|
|
|
50
50
|
Composition only. Every behavior it exposes lives in the platform packages; this package chooses the default combination of them and gives it one name.
|
|
51
|
-
|
|
52
|
-
## Dependencies
|
|
53
|
-
|
|
54
|
-
`@prisma/orm-framework`, `@prisma/orm-family-mongo`, `@prisma/orm-target-mongo`, and `@prisma/orm-toolchain` at exact lockstep versions, plus `pathe`. `mongodb` is a peer dependency.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-mongo",
|
|
3
|
-
"version": "8.0.0-rc.8-dev.
|
|
3
|
+
"version": "8.0.0-rc.8-dev.2",
|
|
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.8-dev.
|
|
14
|
-
"@prisma/orm-framework": "8.0.0-rc.8-dev.
|
|
15
|
-
"@prisma/orm-target-mongo": "8.0.0-rc.8-dev.
|
|
16
|
-
"@prisma/orm-toolchain": "8.0.0-rc.8-dev.
|
|
13
|
+
"@prisma/orm-family-mongo": "8.0.0-rc.8-dev.2",
|
|
14
|
+
"@prisma/orm-framework": "8.0.0-rc.8-dev.2",
|
|
15
|
+
"@prisma/orm-target-mongo": "8.0.0-rc.8-dev.2",
|
|
16
|
+
"@prisma/orm-toolchain": "8.0.0-rc.8-dev.2",
|
|
17
17
|
"pathe": "^2.0.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@internal/mongo": "8.0.0-rc.8-dev.
|
|
21
|
-
"@repo/tsconfig": "8.0.0-rc.8-dev.
|
|
22
|
-
"@repo/tsdown": "8.0.0-rc.8-dev.
|
|
20
|
+
"@internal/mongo": "8.0.0-rc.8-dev.2",
|
|
21
|
+
"@repo/tsconfig": "8.0.0-rc.8-dev.2",
|
|
22
|
+
"@repo/tsdown": "8.0.0-rc.8-dev.2",
|
|
23
23
|
"tsdown": "0.22.14",
|
|
24
24
|
"typescript": "5.9.3"
|
|
25
25
|
},
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
},
|
|
123
123
|
"repository": {
|
|
124
124
|
"type": "git",
|
|
125
|
-
"url": "https://github.com/prisma/
|
|
125
|
+
"url": "https://github.com/prisma/orm.git",
|
|
126
126
|
"directory": "packages/9-public/@prisma/orm-mongo"
|
|
127
127
|
},
|
|
128
128
|
"scripts": {
|
package/skills/prisma-8/SKILL.md
CHANGED
|
@@ -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.
|