@prisma/orm-mongo 8.0.0-rc.8-dev.6 → 8.0.0-rc.8-dev.7

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.8-dev.6",
3
+ "version": "8.0.0-rc.8-dev.7",
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.6",
14
- "@prisma/orm-framework": "8.0.0-rc.8-dev.6",
15
- "@prisma/orm-target-mongo": "8.0.0-rc.8-dev.6",
16
- "@prisma/orm-toolchain": "8.0.0-rc.8-dev.6",
13
+ "@prisma/orm-family-mongo": "8.0.0-rc.8-dev.7",
14
+ "@prisma/orm-framework": "8.0.0-rc.8-dev.7",
15
+ "@prisma/orm-target-mongo": "8.0.0-rc.8-dev.7",
16
+ "@prisma/orm-toolchain": "8.0.0-rc.8-dev.7",
17
17
  "pathe": "^2.0.3"
18
18
  },
19
19
  "devDependencies": {
20
- "@internal/mongo": "8.0.0-rc.8-dev.6",
21
- "@repo/tsconfig": "8.0.0-rc.8-dev.6",
22
- "@repo/tsdown": "8.0.0-rc.8-dev.6",
20
+ "@internal/mongo": "8.0.0-rc.8-dev.7",
21
+ "@repo/tsconfig": "8.0.0-rc.8-dev.7",
22
+ "@repo/tsdown": "8.0.0-rc.8-dev.7",
23
23
  "tsdown": "0.22.14",
24
24
  "typescript": "5.9.3"
25
25
  },
@@ -17,7 +17,7 @@ description: >-
17
17
  (schema.prisma + @prisma/client projects).
18
18
  metadata:
19
19
  library: '@prisma/orm-mongo'
20
- library_version: '8.0.0-rc.8-dev.6'
20
+ library_version: '8.0.0-rc.8-dev.7'
21
21
  ---
22
22
 
23
23
  # Prisma Next (Prisma 8)
@@ -16,6 +16,9 @@ changes:
16
16
  glob: "**/*.prisma"
17
17
  matches:
18
18
  - '\bweights\s*:\s*"\{\s*(?:\\.|[^"\\])*\}"'
19
+ - id: namespace-qualify-sql-orm-filter-types
20
+ summary: |
21
+ SQL ORM reusable filter types now require the domain namespace before the model name: `<Contract, Namespace, Model>`.
19
22
  ---
20
23
 
21
24
  # 8.0.0-rc.8 → 8.0.0-rc.9 — User upgrade instructions
@@ -27,3 +30,7 @@ For every Prisma schema matched by `detection`, replace encoded projection strin
27
30
  ## `mongo-text-index-weights-use-native-records`
28
31
 
29
32
  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.
33
+
34
+ ## `namespace-qualify-sql-orm-filter-types`
35
+
36
+ Find TypeScript references to `ShorthandWhereFilter`, `RelationPredicate`, `RelationPredicateInput`, and `RelationFilterAccessor`. Add the model's domain namespace as the second generic argument and place the model name third. Rewrite `ShorthandWhereFilter<Contract, Model>` as `ShorthandWhereFilter<Contract, Namespace, Model>` and `ShorthandWhereFilter<Contract, Model, Namespace>` as `ShorthandWhereFilter<Contract, Namespace, Model>`. Rewrite the relation types from `<Contract, Model>` to `<Contract, Namespace, Model>`. Use the namespace facet through which the model is queried, such as `'public'` for `db.public.User`.
@@ -5,6 +5,9 @@ changes:
5
5
  - id: remove-nested-relations-from-sql-orm-upsert-and-batch-create
6
6
  summary: |
7
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
+ - id: namespace-qualify-sql-orm-filter-types
9
+ summary: |
10
+ SQL ORM reusable filter types now require the domain namespace before the model name: `<Contract, Namespace, Model>`.
8
11
  ---
9
12
 
10
13
  # 8.0.0-rc.8 → 8.0.0-rc.9 — Extension author upgrade instructions
@@ -12,3 +15,7 @@ changes:
12
15
  ## `remove-nested-relations-from-sql-orm-upsert-and-batch-create`
13
16
 
14
17
  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.
18
+
19
+ ## `namespace-qualify-sql-orm-filter-types`
20
+
21
+ Find TypeScript references to `ShorthandWhereFilter`, `RelationPredicate`, `RelationPredicateInput`, and `RelationFilterAccessor`. Add the model's domain namespace as the second generic argument and place the model name third. Rewrite `ShorthandWhereFilter<Contract, Model>` as `ShorthandWhereFilter<Contract, Namespace, Model>` and `ShorthandWhereFilter<Contract, Model, Namespace>` as `ShorthandWhereFilter<Contract, Namespace, Model>`. Rewrite the relation types from `<Contract, Model>` to `<Contract, Namespace, Model>`. For predicates targeting a relation, use the namespace declared by that relation's `to.namespace` coordinate.