@prisma/orm-mongo 8.0.0-rc.14-dev.34 → 8.0.0-rc.14-dev.36

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.
@@ -55,8 +55,6 @@ interface EnumTypeHandle$1<Name extends string = string, Values extends readonly
55
55
  readonly enumName: Name;
56
56
  /** codecId from the codec passed to `enumType`. */
57
57
  readonly codecId: string;
58
- /** Ignored: the contract names the database type from the codec's data type. */
59
- readonly nativeType?: string;
60
58
  /** Ordered member list for lowering (name + value pairs). */
61
59
  readonly enumMembers: readonly {
62
60
  readonly name: string;
@@ -105,7 +103,7 @@ type CodecInput<CodecTypes extends CodecTypeMap, Codec extends {
105
103
  * from `CodecTypes`, while `Name`, `Codec`, and the member tuple still infer
106
104
  * from the call.
107
105
  */
108
- type BoundEnumType<CodecTypes extends CodecTypeMap> = <const Name extends string, const Codec extends Pick<ColumnTypeDescriptor, 'codecId' | 'nativeType'>, const Members extends readonly [EnumMember$1<string, CodecInput<CodecTypes, Codec>>, ...EnumMember$1<string, CodecInput<CodecTypes, Codec>>[]]>(name: Name, codec: Codec, ...members: Members) => EnumTypeHandle$1<Name, MembersToValues<[...Members]>, MembersToNames<[...Members]>, MembersAccessorMap<[...Members]>>;
106
+ type BoundEnumType<CodecTypes extends CodecTypeMap> = <const Name extends string, const Codec extends Pick<ColumnTypeDescriptor, 'codecId'>, const Members extends readonly [EnumMember$1<string, CodecInput<CodecTypes, Codec>>, ...EnumMember$1<string, CodecInput<CodecTypes, Codec>>[]]>(name: Name, codec: Codec, ...members: Members) => EnumTypeHandle$1<Name, MembersToValues<[...Members]>, MembersToNames<[...Members]>, MembersAccessorMap<[...Members]>>;
109
107
  //#endregion
110
108
  //#region src/contract/enum-type.d.ts
111
109
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"contract-builder.d.mts","names":[],"sources":["../../../../3-extensions/mongo/dist/contract-builder.d.mts"],"mappings":";;;;;;;;KAOK,yBAAyB;KACzB,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AAS,YAAY,iBAAiB,MAAM,oBAAoB,WAAW,mBAAmB,WAAW,uBAAuB;;;;;;;;;;;;cAY5a,UAAU,2DAA2D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-mongo",
3
- "version": "8.0.0-rc.14-dev.34",
3
+ "version": "8.0.0-rc.14-dev.36",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -10,18 +10,18 @@
10
10
  "skills"
11
11
  ],
12
12
  "dependencies": {
13
- "@prisma/orm-family-mongo": "8.0.0-rc.14-dev.34",
14
- "@prisma/orm-framework": "8.0.0-rc.14-dev.34",
15
- "@prisma/orm-target-mongo": "8.0.0-rc.14-dev.34",
16
- "@prisma/orm-toolchain": "8.0.0-rc.14-dev.34",
13
+ "@prisma/orm-family-mongo": "8.0.0-rc.14-dev.36",
14
+ "@prisma/orm-framework": "8.0.0-rc.14-dev.36",
15
+ "@prisma/orm-target-mongo": "8.0.0-rc.14-dev.36",
16
+ "@prisma/orm-toolchain": "8.0.0-rc.14-dev.36",
17
17
  "mongodb-connection-string-url": "^7.0.1",
18
18
  "pathe": "^2.0.3",
19
19
  "tinyglobby": "^0.2.17"
20
20
  },
21
21
  "devDependencies": {
22
- "@internal/mongo": "8.0.0-rc.14-dev.34",
23
- "@repo/tsconfig": "8.0.0-rc.14-dev.34",
24
- "@repo/tsdown": "8.0.0-rc.14-dev.34",
22
+ "@internal/mongo": "8.0.0-rc.14-dev.36",
23
+ "@repo/tsconfig": "8.0.0-rc.14-dev.36",
24
+ "@repo/tsdown": "8.0.0-rc.14-dev.36",
25
25
  "tsdown": "0.22.14",
26
26
  "typescript": "5.9.3"
27
27
  },
@@ -15,7 +15,7 @@ description: >-
15
15
  ORM 7 or earlier (schema.prisma + @prisma/client).
16
16
  metadata:
17
17
  library: '@prisma/orm-mongo'
18
- library_version: '8.0.0-rc.14-dev.34'
18
+ library_version: '8.0.0-rc.14-dev.36'
19
19
  version: '2026-09-12'
20
20
  ---
21
21
 
@@ -280,7 +280,7 @@ model User {
280
280
  }
281
281
  ```
282
282
 
283
- Emitted `contract.json` carries `domain.namespaces.<ns>.valueObjects.Address` with its field descriptors, and the `address` column lands as `codecId: "pg/jsonb@1"` / `nativeType: "jsonb"` in `storage`.
283
+ Emitted `contract.json` carries `domain.namespaces.<ns>.valueObjects.Address` with its field descriptors, and the `address` column lands as `codecId: "pg/jsonb@1"` / `dataType: "pg/jsonb"` in `storage`.
284
284
 
285
285
  Canonical worked example: `examples/prisma-8-demo/src/prisma/contract.prisma`.
286
286
 
@@ -55,7 +55,7 @@ pnpm prisma migration ref delete <name>
55
55
  | Command | Ref advancement |
56
56
  |---|---|
57
57
  | `db init` / `db update` (default URL) | Implicitly advance `db` (override the name with `--advance-ref <name>`; suppressed whenever `--db` is passed without `--advance-ref`, regardless of the URL — even `--db $DATABASE_URL` pointing at the default database) |
58
- | `db sign` | Advances `db` after a successful signature (override the name with `--advance-ref <name>`; `--no-advance-ref` skips it, writing no ref and no snapshot); an existing ref is overwritten and the previous hash is reported in the human output (the JSON `advancedRef` carries name and hash only). `--db` does **not** suppress it, unlike init/update: sign never mutates the schema, and adoption is normally done via `--db` |
58
+ | `db sign` | Advances `db` after a successful signature (override the name with `--advance-ref <name>`; `--no-advance-ref` skips it, writing no ref and no snapshot); an existing ref is overwritten and the previous hash is reported in the human output (the JSON `advancedRefs` lists `{ space, name, hash }` for each contract space it advanced). `--db` does **not** suppress it, unlike init/update: sign never mutates the schema, and adoption is normally done via `--db` |
59
59
  | `db migrate --advance-ref <name>` | The **only** apply-time advancement |
60
60
  | plain `db migrate` | **Never advances anything** — deliberate: deploy and CI applies must not infer dev intent |
61
61
  | `migration plan` | Never advances anything — chaining discipline is yours |