@prisma/orm-postgres 8.0.0-rc.1-dev.44 → 8.0.0-rc.1-dev.46

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
@@ -12,7 +12,7 @@ The one package a PostgreSQL application installs. It wires the framework, the S
12
12
  ├── @prisma/orm-framework contracts, components, runtime core
13
13
  ├── @prisma/orm-family-sql SQL contract, lanes, ORM client, runtime
14
14
  ├── @prisma/orm-target-postgres target descriptor + adapter + pg driver
15
- └── @prisma/orm-toolchain CLI (installs the `prisma-next` command), emitter, config loader
15
+ └── @prisma/orm-toolchain ORM command family for the `prisma` CLI, emitter, config loader
16
16
  ```
17
17
 
18
18
  ## Entrypoints
@@ -22,7 +22,7 @@ The one package a PostgreSQL application installs. It wires the framework, the S
22
22
  | `/runtime` | `postgres(url)` — the lazy query client |
23
23
  | `/serverless` | the serverless runtime variant |
24
24
  | `/static` | statically composed runtime for pre-wired deployments |
25
- | `/config` | `defineConfig` for `prisma-next.config.ts` |
25
+ | `/config` | `defineConfig` for `prisma.config.ts` |
26
26
  | `/contract-builder` | `defineContract`, Postgres enums, RLS authoring |
27
27
  | `/target`, `/family` | the Postgres target pack and the SQL family pack |
28
28
  | `/migration`, `/control` | migration planning and the control client |
@@ -39,9 +39,9 @@ Generated contract files import their types from the facade, so an application n
39
39
 
40
40
  These forward; they do not copy. `@prisma/orm-postgres/contract/types` and `@prisma/orm-framework/contract/types` are the same module, so shared registries and `instanceof` checks hold across the boundary.
41
41
 
42
- ## The `prisma-next` command
42
+ ## The CLI
43
43
 
44
- Installing this package puts `prisma-next` on the project's `PATH`. It runs the toolchain's single published copy of the CLI the facade carries a launcher, not a second copy of the program.
44
+ This package ships no bin. The ORM commands run inside the unified `prisma` CLI, which mounts the command family published at `@prisma/orm-toolchain/cli`.
45
45
 
46
46
  ## Decomposing
47
47
 
@@ -1,5 +1,5 @@
1
1
  import { EnumAccessor, EnumEntriesToAccessors, NamespacedEnums } from "@prisma/orm-framework/contract/enum-accessor";
2
- import { BindSiteParams, Declaration, ExecutionContext, ParamsFromDeclaration, PreparedStatement, Runtime, SqlExecutionStackWithDriver, SqlMiddleware, SqlRuntimeExtensionDescriptor, TransactionContext, VerifyMarkerOption } from "@prisma/orm-family-sql/runtime";
2
+ import { BindSiteParams, Declaration, ExecutionContext, ParamsFromDeclaration, PreparedFor, Runtime, SqlExecutionStackWithDriver, SqlMiddleware, SqlRuntimeExtensionDescriptor, TransactionContext, VerifyMarkerOption } from "@prisma/orm-family-sql/runtime";
3
3
  import { CodecTypesBase, RawSqlTag } from "@prisma/orm-family-sql/relational-core/expression";
4
4
  import { orm } from "@prisma/orm-family-sql/orm-client";
5
5
  import { Client, Pool } from "pg";
@@ -7,7 +7,7 @@ import { Contract } from "@prisma/orm-framework/contract/types";
7
7
  import { ExtractCodecTypes, SqlStorage } from "@prisma/orm-family-sql/contract/types";
8
8
  import { Db } from "@prisma/orm-family-sql/builder/types";
9
9
  import { SqlQueryPlan } from "@prisma/orm-family-sql/relational-core/plan";
10
- //#region ../../../3-extensions/postgres/dist/postgres-DfqgVPdF.d.mts
10
+ //#region ../../../3-extensions/postgres/dist/postgres-cOpneO7v.d.mts
11
11
  //#region src/runtime/binding.d.ts
12
12
  declare const isPgPool: (pg: Pool | Client) => pg is Pool;
13
13
  declare const isPgClient: (pg: Pool | Client) => pg is Client;
@@ -91,7 +91,7 @@ interface PostgresClient<TContract extends Contract<SqlStorage>> {
91
91
  connect(bindingInput?: PostgresBindingInput): Promise<Runtime>;
92
92
  runtime(): Runtime;
93
93
  transaction<R>(fn: (tx: PostgresTransactionContext<TContract>) => PromiseLike<R>): Promise<R>;
94
- prepare<D extends Declaration<CT>, Row, CT extends CodecTypesBase = ExtractCodecTypes<TContract> & CodecTypesBase>(declaration: D, callback: (sql: Db<TContract>, params: BindSiteParams<D>) => SqlQueryPlan<Row>): Promise<PreparedStatement<ParamsFromDeclaration<D, CT>, Row>>;
94
+ prepare<D extends Declaration<CT>, Row, CT extends CodecTypesBase = ExtractCodecTypes<TContract>>(declaration: D, callback: (sql: Db<TContract>, params: BindSiteParams<D>) => SqlQueryPlan<Row>): Promise<PreparedFor<ParamsFromDeclaration<D, CT>, Row>>;
95
95
  close(): Promise<void>;
96
96
  [Symbol.asyncDispose](): Promise<void>;
97
97
  }
@@ -130,4 +130,4 @@ declare function postgres<TContract extends Contract<SqlStorage>>(options: Postg
130
130
  declare function postgres<TContract extends Contract<SqlStorage>>(options: PostgresOptionsWithContractJson<TContract>): PostgresClient<TContract>;
131
131
  //#endregion
132
132
  export { PostgresOptionsBase as a, PostgresTargetId as c, isPgPool as d, postgres as f, PostgresOptions as i, buildNamespacedNativeEnums as l, PostgresBinding as n, PostgresOptionsWithContract as o, PostgresClient as r, PostgresOptionsWithContractJson as s, NamespacedNativeEnums as t, isPgClient as u };
133
- //# sourceMappingURL=postgres-DfqgVPdF-DhNG3N-h.d.mts.map
133
+ //# sourceMappingURL=postgres-cOpneO7v-BHrCx-xd.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgres-DfqgVPdF-DhNG3N-h.d.mts","names":[],"sources":["../../../../3-extensions/postgres/dist/postgres-DfqgVPdF.d.mts"],"mappings":";;;;;;;;;;;cAUc,WAAW,IAAI,OAAO,WAAW,MAAM;cACvC,aAAa,IAAI,OAAO,WAAW,MAAM;KAClD;WACM;WACA;;WAEA;WACA,MAAM;;WAEN;WACA,QAAQ;;KAEd;WACM,SAAS;WACT;WACA;;WAEA;WACA;WACA;;WAEA,IAAI,OAAO;WACX;WACA;;;;iBAIM,2BAA2B,SAAS,aAAa,eAAe,eAAe;KAC3F,QAAQ,KAAK,QAAQ;KACrB,yBAAyB,OAAO;WAC1B;aACE,iBAAiB;;oBAEV,IAAI,uBAAuB,QAAQ,KAAK;KACvD;WACM;;KAEN,gBAAgB,iDAAiD,WAAW;WACtE,MAAM,QAAQ,OAAO;WACrB,OAAO,OAAO;;;;;;;;KAQpB,oBAAoB,cA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2B,eAAe,YAAY,KAAK,QAAQ;EAC3F,QAAQ,UAAU,YAAY,KAAK,KAAK,WAAW,iBAAiB,kBAAkB,YAAY,aAAa,GAAG,WAAW,KAAK,GAAG,YAAY,QAAQ,eAAe,OAAO,aAAa,OAAO,QAAQ,YAAY,sBAAsB,GAAG,KAAK;EACrP,SAAS;GACR,OAAO,iBAAiB;;UAEjB;WACC,sBAAsB,8BAA8B;WACpD,sBAAsB;WACtB,eAAe;WACf;aACE;aACA;;;UAGH;WACC,UAAU;WACV;WACA,KAAK,OAAO;;KAElB,4BAA4B,kBAAkB,SAAS,eAAe,yBAAyB;WACzF,UAAU;WACV;;KAEN,gCAAgC,kBAAkB,SAAS,eAAe,yBAAyB;WAC7F;WACA;WACA,YAAY;;KAElB,gBAAgB,kBAAkB,SAAS,eAAe,4BAA4B,aAAa,gCAAgC;;;;;;;;iBAQvH,SAAS,kBAAkB,SAAS,aAAa,SAAS,4BAA4B,aAAa,eAAe;iBAClH,SAAS,kBAAkB,SAAS,aAAa,SAAS,gCAAgC,aAAa,eAAe"}
@@ -1,4 +1,4 @@
1
- import { a as PostgresOptionsBase, d as isPgPool, f as postgres, i as PostgresOptions, l as buildNamespacedNativeEnums, n as PostgresBinding, o as PostgresOptionsWithContract, r as PostgresClient, s as PostgresOptionsWithContractJson, t as NamespacedNativeEnums, u as isPgClient } from "./postgres-DfqgVPdF-DhNG3N-h.mjs";
1
+ import { a as PostgresOptionsBase, d as isPgPool, f as postgres, i as PostgresOptions, l as buildNamespacedNativeEnums, n as PostgresBinding, o as PostgresOptionsWithContract, r as PostgresClient, s as PostgresOptionsWithContractJson, t as NamespacedNativeEnums, u as isPgClient } from "./postgres-cOpneO7v-BHrCx-xd.mjs";
2
2
  import { Runtime, SqlRuntimeBase } from "@prisma/orm-family-sql/runtime";
3
3
  import { Contract } from "@prisma/orm-framework/contract/types";
4
4
  import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
@@ -1,4 +1,4 @@
1
- import { c as PostgresTargetId } from "./postgres-DfqgVPdF-DhNG3N-h.mjs";
1
+ import { c as PostgresTargetId } from "./postgres-cOpneO7v-BHrCx-xd.mjs";
2
2
  import { ExecutionContext, Runtime, SqlExecutionStackWithDriver, SqlMiddleware, SqlRuntimeExtensionDescriptor, VerifyMarkerOption } from "@prisma/orm-family-sql/runtime";
3
3
  import { PostgresDriverCreateOptions } from "@prisma/orm-target-postgres/driver/runtime";
4
4
  import { Contract } from "@prisma/orm-framework/contract/types";
package/dist/static.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as PostgresTargetId, t as NamespacedNativeEnums } from "./postgres-DfqgVPdF-DhNG3N-h.mjs";
1
+ import { c as PostgresTargetId, t as NamespacedNativeEnums } from "./postgres-cOpneO7v-BHrCx-xd.mjs";
2
2
  import { NamespacedEnums } from "@prisma/orm-framework/contract/enum-accessor";
3
3
  import { ExecutionContext, SqlRuntimeExtensionDescriptor } from "@prisma/orm-family-sql/runtime";
4
4
  import { RawSqlTag } from "@prisma/orm-family-sql/relational-core/expression";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-postgres",
3
- "version": "8.0.0-rc.1-dev.44",
3
+ "version": "8.0.0-rc.1-dev.46",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -9,19 +9,19 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@prisma/orm-family-sql": "8.0.0-rc.1-dev.44",
13
- "@prisma/orm-framework": "8.0.0-rc.1-dev.44",
14
- "@prisma/orm-target-postgres": "8.0.0-rc.1-dev.44",
15
- "@prisma/orm-toolchain": "8.0.0-rc.1-dev.44",
12
+ "@prisma/orm-family-sql": "8.0.0-rc.1-dev.46",
13
+ "@prisma/orm-framework": "8.0.0-rc.1-dev.46",
14
+ "@prisma/orm-target-postgres": "8.0.0-rc.1-dev.46",
15
+ "@prisma/orm-toolchain": "8.0.0-rc.1-dev.46",
16
16
  "@types/pg": "8.20.4",
17
17
  "pathe": "^2.0.3",
18
18
  "pg": "8.22.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@internal/postgres": "8.0.0-rc.1-dev.44",
22
- "@repo/tsconfig": "8.0.0-rc.1-dev.44",
23
- "@internal/publish-surface": "8.0.0-rc.1-dev.44",
24
- "@repo/tsdown": "8.0.0-rc.1-dev.44",
21
+ "@internal/postgres": "8.0.0-rc.1-dev.46",
22
+ "@repo/tsconfig": "8.0.0-rc.1-dev.46",
23
+ "@internal/publish-surface": "8.0.0-rc.1-dev.46",
24
+ "@repo/tsdown": "8.0.0-rc.1-dev.46",
25
25
  "tsdown": "0.22.14",
26
26
  "typescript": "5.9.3",
27
27
  "vitest": "4.1.10"
@@ -43,7 +43,6 @@
43
43
  "./adapter/runtime": "./dist/adapter__runtime.mjs",
44
44
  "./adapter/sql-renderer": "./dist/adapter__sql-renderer.mjs",
45
45
  "./adapter/types": "./dist/adapter__types.mjs",
46
- "./bin/prisma-next": "./dist/bin__prisma-next.mjs",
47
46
  "./builder": "./dist/builder.mjs",
48
47
  "./builder/runtime": "./dist/builder__runtime.mjs",
49
48
  "./builder/types": "./dist/builder__types.mjs",
@@ -103,6 +102,7 @@
103
102
  "./family-contract/validators": "./dist/family-contract__validators.mjs",
104
103
  "./family-contract/value-set-derivation-hook": "./dist/family-contract__value-set-derivation-hook.mjs",
105
104
  "./family-runtime": "./dist/family-runtime.mjs",
105
+ "./family-runtime/internal/prepared-query": "./dist/family-runtime__internal__prepared-query.mjs",
106
106
  "./migration": "./dist/migration.mjs",
107
107
  "./migration-tools/aggregate": "./dist/migration-tools__aggregate.mjs",
108
108
  "./migration-tools/contract-snapshot-store": "./dist/migration-tools__contract-snapshot-store.mjs",
@@ -175,9 +175,6 @@
175
175
  "./vite-plugin-contract-emit": "./dist/vite-plugin-contract-emit.mjs",
176
176
  "./package.json": "./package.json"
177
177
  },
178
- "bin": {
179
- "prisma-next": "./dist/bin__prisma-next.mjs"
180
- },
181
178
  "repository": {
182
179
  "type": "git",
183
180
  "url": "https://github.com/prisma/prisma.git",
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import "@prisma/orm-toolchain/bin/prisma-next";
3
- export {};