@prisma/orm-mongo 8.0.0-rc.8-dev.16 → 8.0.0-rc.8-dev.17

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.16",
3
+ "version": "8.0.0-rc.8-dev.17",
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.16",
14
- "@prisma/orm-framework": "8.0.0-rc.8-dev.16",
15
- "@prisma/orm-target-mongo": "8.0.0-rc.8-dev.16",
16
- "@prisma/orm-toolchain": "8.0.0-rc.8-dev.16",
13
+ "@prisma/orm-family-mongo": "8.0.0-rc.8-dev.17",
14
+ "@prisma/orm-framework": "8.0.0-rc.8-dev.17",
15
+ "@prisma/orm-target-mongo": "8.0.0-rc.8-dev.17",
16
+ "@prisma/orm-toolchain": "8.0.0-rc.8-dev.17",
17
17
  "pathe": "^2.0.3"
18
18
  },
19
19
  "devDependencies": {
20
- "@internal/mongo": "8.0.0-rc.8-dev.16",
21
- "@repo/tsconfig": "8.0.0-rc.8-dev.16",
22
- "@repo/tsdown": "8.0.0-rc.8-dev.16",
20
+ "@internal/mongo": "8.0.0-rc.8-dev.17",
21
+ "@repo/tsconfig": "8.0.0-rc.8-dev.17",
22
+ "@repo/tsdown": "8.0.0-rc.8-dev.17",
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.16'
20
+ library_version: '8.0.0-rc.8-dev.17'
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: explicit-enum-sort-values
20
+ summary: |
21
+ PostgreSQL text-backed enums now sort by stored value rather than declaration order; encode semantic ranks explicitly when ordering matters.
19
22
  - id: namespace-qualify-sql-orm-filter-types
20
23
  summary: |
21
24
  SQL ORM reusable filter types now require the domain namespace before the model name: `<Contract, Namespace, Model>`.
@@ -31,6 +34,10 @@ For every Prisma schema matched by `detection`, replace encoded projection strin
31
34
 
32
35
  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
36
 
37
+ ## `explicit-enum-sort-values`
38
+
39
+ Review queries that order text-backed enum columns and rely on declaration order. To retain semantic ranking, use an explicit ranking expression or numeric enum values. For example, a priority enum can use `{ codecId: 'pg/int4@1', nativeType: 'int4' }` with `member('Low', 0)`, `member('High', 1)`, and `member('Urgent', 2)`. In PSL, use `@@type("pg/int4@1")` with `Low = 0`, `High = 1`, and `Urgent = 2`. Update literal writes and type annotations to the numeric values, then re-emit the contract. For an existing database, create a data-preserving migration mapping the old strings to their numeric ranks and update defaults and constraints; do not rewrite applied migration history. PostgreSQL native enum columns retain the database's native ordering.
40
+
34
41
  ## `namespace-qualify-sql-orm-filter-types`
35
42
 
36
43
  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`.