@prisma-next/extension-pgvector 0.12.0-dev.4 → 0.12.0-dev.40

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
@@ -200,16 +200,9 @@ The extension declares the following capabilities:
200
200
 
201
201
  ## Authoring (maintainers)
202
202
 
203
- The extension's contract + baseline migration are emitted on-disk inside this package using the same pipeline application authors use:
203
+ After changing the contract source, run `pnpm migrations:regen` from the repo root to keep migration metadata, `refs/head.json`, and `end-contract.*` consistent with the freshly-built `src/contract.json`; it is also wired into `pnpm fixtures:emit` automatically.
204
204
 
205
- - `pnpm build:contract-space`runs `prisma-next contract emit` to produce `src/contract.{json,d.ts}` from the TS source at `src/contract.ts`.
206
- - `pnpm exec prisma-next migration plan --name <slug>` (run from this package directory) — scaffolds a new migration directory under `migrations/<dirName>/` for schema changes that touch tables / models. **Not chained into `pnpm build`**: `migration plan` is non-idempotent (each invocation generates a new timestamped directory), so it runs manually when the contract source changes. Note: pgvector's contract declares only the parameterised `vector` native type under `storage.types` (no tables / models), so the planner currently refuses to scaffold the baseline migration with `PN-CLI-4020 Contract changed but planner produced no operations` (this is **Path B** authoring per [ADR 212](../../../docs/architecture%20docs/adrs/ADR%20212%20-%20Contract%20spaces.md#contract-space-package-layout)). That directory was hand-authored once (Migration subclass + seed `migration.json` preserving the full `toContract`) and `pnpm tsx migrations/<dirName>/migration.ts` re-emits `ops.json` + `migration.json` deterministically. Future migrations that add tables / models can use `migration plan` directly (Path A).
207
- - `pnpm tsx migrations/<dirName>/migration.ts` (run from this package directory) — re-emits `ops.json` + `migration.json` from the hand-edited subclass. Use `tsx`, not bare `node`, because the Migration subclass imports relative TypeScript siblings which Node's native loader can't resolve without a TS-aware loader.
208
- - `migrations/refs/head.json` is hand-pinned with the latest migration's `to` hash + `providedInvariants`.
209
-
210
- The descriptor at `src/exports/control.ts` then JSON-imports those artefacts and synthesises the framework's `MigrationPackage` shape.
211
-
212
- See [ADR 212 — Contract spaces](../../../docs/architecture%20docs/adrs/ADR%20212%20-%20Contract%20spaces.md) ("Contract-space package layout") for the canonical layout and rationale.
205
+ See [ADR 212Contract spaces](../../../docs/architecture%20docs/adrs/ADR%20212%20-%20Contract%20spaces.md) ("Contract-space package layout") for the layout and rationale.
213
206
 
214
207
  ## References
215
208
 
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
2
  "name": "@prisma-next/extension-pgvector",
3
- "version": "0.12.0-dev.4",
3
+ "version": "0.12.0-dev.40",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "dependencies": {
8
- "@prisma-next/contract": "0.12.0-dev.4",
9
- "@prisma-next/contract-authoring": "0.12.0-dev.4",
10
- "@prisma-next/family-sql": "0.12.0-dev.4",
11
- "@prisma-next/framework-components": "0.12.0-dev.4",
12
- "@prisma-next/migration-tools": "0.12.0-dev.4",
13
- "@prisma-next/sql-contract": "0.12.0-dev.4",
14
- "@prisma-next/sql-operations": "0.12.0-dev.4",
15
- "@prisma-next/sql-relational-core": "0.12.0-dev.4",
16
- "@prisma-next/sql-runtime": "0.12.0-dev.4",
17
- "@prisma-next/sql-schema-ir": "0.12.0-dev.4",
8
+ "@prisma-next/contract": "0.12.0-dev.40",
9
+ "@prisma-next/contract-authoring": "0.12.0-dev.40",
10
+ "@prisma-next/family-sql": "0.12.0-dev.40",
11
+ "@prisma-next/framework-components": "0.12.0-dev.40",
12
+ "@prisma-next/migration-tools": "0.12.0-dev.40",
13
+ "@prisma-next/sql-contract": "0.12.0-dev.40",
14
+ "@prisma-next/sql-operations": "0.12.0-dev.40",
15
+ "@prisma-next/sql-relational-core": "0.12.0-dev.40",
16
+ "@prisma-next/sql-runtime": "0.12.0-dev.40",
17
+ "@prisma-next/sql-schema-ir": "0.12.0-dev.40",
18
18
  "@standard-schema/spec": "^1.1.0",
19
19
  "arktype": "^2.2.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@prisma-next/adapter-postgres": "0.12.0-dev.4",
23
- "@prisma-next/cli": "0.12.0-dev.4",
24
- "@prisma-next/operations": "0.12.0-dev.4",
25
- "@prisma-next/postgres": "0.12.0-dev.4",
26
- "@prisma-next/sql-contract-ts": "0.12.0-dev.4",
27
- "@prisma-next/target-postgres": "0.12.0-dev.4",
28
- "@prisma-next/test-utils": "0.12.0-dev.4",
29
- "@prisma-next/tsconfig": "0.12.0-dev.4",
30
- "@prisma-next/tsdown": "0.12.0-dev.4",
22
+ "@prisma-next/adapter-postgres": "0.12.0-dev.40",
23
+ "@prisma-next/cli": "0.12.0-dev.40",
24
+ "@prisma-next/operations": "0.12.0-dev.40",
25
+ "@prisma-next/postgres": "0.12.0-dev.40",
26
+ "@prisma-next/sql-contract-ts": "0.12.0-dev.40",
27
+ "@prisma-next/target-postgres": "0.12.0-dev.40",
28
+ "@prisma-next/test-utils": "0.12.0-dev.40",
29
+ "@prisma-next/tsconfig": "0.12.0-dev.40",
30
+ "@prisma-next/tsdown": "0.12.0-dev.40",
31
31
  "tsdown": "0.22.0",
32
32
  "typescript": "5.9.3",
33
33
  "vitest": "4.1.6"
34
34
  },
35
35
  "peerDependencies": {
36
- "@prisma-next/adapter-postgres": "0.12.0-dev.4",
36
+ "@prisma-next/adapter-postgres": "0.12.0-dev.40",
37
37
  "typescript": ">=5.9"
38
38
  },
39
39
  "peerDependenciesMeta": {
package/src/contract.d.ts CHANGED
@@ -23,7 +23,7 @@ import type {
23
23
  } from '@prisma-next/sql-contract/types';
24
24
  import type {
25
25
  Contract as ContractType,
26
- ContractModelsMap,
26
+ ContractModelDefinitions,
27
27
  ExecutionHashBase,
28
28
  NamespaceId,
29
29
  ProfileHashBase,
@@ -108,7 +108,8 @@ type ContractBase = Omit<
108
108
  readonly profileHash: ProfileHash;
109
109
  };
110
110
 
111
+ export type Models = ContractModelDefinitions<Contract>;
112
+
111
113
  export type Contract = ContractWithTypeMaps<ContractBase, TypeMaps>;
112
114
 
113
115
  export type Namespaces = Contract['storage']['namespaces'];
114
- export type Models = ContractModelsMap<Contract>;