@prisma-next/extension-pgvector 0.16.0-dev.2 → 0.16.0-dev.21

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
@@ -30,7 +30,7 @@ pnpm add @prisma-next/extension-pgvector
30
30
 
31
31
  ## Database Setup
32
32
 
33
- The pgvector extension ships an on-disk baseline migration in its contract space; applying that migration installs pgvector with `CREATE EXTENSION IF NOT EXISTS vector`. When the extension is composed into an application via `extensionPacks`, `prisma-next db init` and `prisma-next db update` apply the baseline (and any subsequent migrations) automatically.
33
+ The pgvector extension ships an on-disk baseline migration in its contract space; applying that migration installs pgvector with `CREATE EXTENSION IF NOT EXISTS vector`. When the extension is composed into an application via `extensions`, `prisma-next db init` and `prisma-next db update` apply the baseline (and any subsequent migrations) automatically.
34
34
 
35
35
  For manual database setup, the equivalent DDL is:
36
36
 
@@ -55,7 +55,7 @@ export default defineConfig({
55
55
  family: sql,
56
56
  target: postgres,
57
57
  adapter: postgresAdapter,
58
- extensionPacks: [pgvector],
58
+ extensions: [pgvector],
59
59
  });
60
60
  ```
61
61
 
@@ -76,7 +76,7 @@ import postgres from '@prisma-next/target-postgres/pack';
76
76
  export const contract = defineContract({
77
77
  family: sqlFamily,
78
78
  target: postgres,
79
- extensionPacks: { pgvector },
79
+ extensions: { pgvector },
80
80
  models: {
81
81
  Post: model('Post', {
82
82
  fields: {
@@ -106,7 +106,7 @@ import pgvector from '@prisma-next/extension-pgvector/runtime';
106
106
  const stack = createSqlExecutionStack({
107
107
  target: postgresTarget,
108
108
  adapter: postgresAdapter,
109
- extensionPacks: [pgvector],
109
+ extensions: [pgvector],
110
110
  });
111
111
  const context = createExecutionContext({ contract, stack });
112
112
  const stackInstance = instantiateExecutionStack(stack);
@@ -200,7 +200,7 @@ The extension declares the following capabilities:
200
200
 
201
201
  ## Authoring (maintainers)
202
202
 
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.
203
+ After changing the contract source, run `pnpm migrations:regen` from the repo root to keep migration metadata, `refs/head.json`, and the `migrations/snapshots/<hex>/contract.*` store entries consistent with the freshly-built `src/contract.json`; it is also wired into `pnpm fixtures:emit` automatically.
204
204
 
205
205
  See [ADR 212 — Contract spaces](../../../docs/architecture%20docs/adrs/ADR%20212%20-%20Contract%20spaces.md) ("Contract-space package layout") for the layout and rationale.
206
206
 
package/dist/control.mjs CHANGED
@@ -3,10 +3,10 @@ import { contractSpaceFromJson } from "@prisma-next/migration-tools/spaces";
3
3
  //#region migrations/20260601T0000_install_vector_extension/migration.json
4
4
  var migration_default = {
5
5
  from: null,
6
- to: "sha256:c7bb9818eb8d86182fff73219e9c27c4f42ff7918bdcabf003324a7c6c814e20",
6
+ to: "3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8",
7
7
  providedInvariants: ["pgvector:install-vector-v1"],
8
8
  createdAt: "2026-06-01T00:00:00.000Z",
9
- migrationHash: "sha256:29d67f6eac008e2e99047b18f224c594f0fdbf068f4d208ff4ea7a6b5de36e3e"
9
+ migrationHash: "12b0b77e65c4899ba04e88ed040b1cb3390b4b18a889460f8a83cb6047ff1fa5"
10
10
  };
11
11
  //#endregion
12
12
  //#region migrations/20260601T0000_install_vector_extension/ops.json
@@ -41,7 +41,7 @@ var ops_default = [{
41
41
  //#endregion
42
42
  //#region migrations/refs/head.json
43
43
  var head_default = {
44
- hash: "sha256:c7bb9818eb8d86182fff73219e9c27c4f42ff7918bdcabf003324a7c6c814e20",
44
+ hash: "3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8",
45
45
  invariants: ["pgvector:install-vector-v1"]
46
46
  };
47
47
  //#endregion
@@ -50,7 +50,7 @@ var contract_default = {
50
50
  schemaVersion: "1",
51
51
  targetFamily: "sql",
52
52
  target: "postgres",
53
- profileHash: "sha256:9c8aa3114e84ed3b7ea2bd57526d9c2e1bf7c5292be694e9d3801f566fda7ccb",
53
+ profileHash: "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
54
54
  roots: {},
55
55
  domain: { "namespaces": { "public": { "models": {} } } },
56
56
  storage: {
@@ -59,7 +59,7 @@ var contract_default = {
59
59
  "id": "public",
60
60
  "kind": "postgres-schema"
61
61
  } },
62
- "storageHash": "sha256:c7bb9818eb8d86182fff73219e9c27c4f42ff7918bdcabf003324a7c6c814e20",
62
+ "storageHash": "3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8",
63
63
  "types": { "vector": {
64
64
  "codecId": "pg/vector@1",
65
65
  "kind": "codec-instance",
@@ -83,7 +83,7 @@ var contract_default = {
83
83
  "scalarList": true
84
84
  }
85
85
  },
86
- extensionPacks: {},
86
+ extensions: {},
87
87
  meta: {},
88
88
  _generated: {
89
89
  "warning": "⚠️ GENERATED FILE - DO NOT EDIT",
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
2
  "name": "@prisma-next/extension-pgvector",
3
- "version": "0.16.0-dev.2",
3
+ "version": "0.16.0-dev.21",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "dependencies": {
8
- "@prisma-next/contract": "0.16.0-dev.2",
9
- "@prisma-next/contract-authoring": "0.16.0-dev.2",
10
- "@prisma-next/family-sql": "0.16.0-dev.2",
11
- "@prisma-next/framework-components": "0.16.0-dev.2",
12
- "@prisma-next/migration-tools": "0.16.0-dev.2",
13
- "@prisma-next/sql-contract": "0.16.0-dev.2",
14
- "@prisma-next/sql-operations": "0.16.0-dev.2",
15
- "@prisma-next/sql-relational-core": "0.16.0-dev.2",
16
- "@prisma-next/sql-runtime": "0.16.0-dev.2",
17
- "@prisma-next/sql-schema-ir": "0.16.0-dev.2",
8
+ "@prisma-next/contract": "0.16.0-dev.21",
9
+ "@prisma-next/contract-authoring": "0.16.0-dev.21",
10
+ "@prisma-next/family-sql": "0.16.0-dev.21",
11
+ "@prisma-next/framework-components": "0.16.0-dev.21",
12
+ "@prisma-next/migration-tools": "0.16.0-dev.21",
13
+ "@prisma-next/sql-contract": "0.16.0-dev.21",
14
+ "@prisma-next/sql-operations": "0.16.0-dev.21",
15
+ "@prisma-next/sql-relational-core": "0.16.0-dev.21",
16
+ "@prisma-next/sql-runtime": "0.16.0-dev.21",
17
+ "@prisma-next/sql-schema-ir": "0.16.0-dev.21",
18
18
  "@standard-schema/spec": "^1.1.0",
19
19
  "arktype": "^2.2.2"
20
20
  },
21
21
  "devDependencies": {
22
- "@prisma-next/adapter-postgres": "0.16.0-dev.2",
23
- "@prisma-next/cli": "0.16.0-dev.2",
24
- "@prisma-next/operations": "0.16.0-dev.2",
25
- "@prisma-next/postgres": "0.16.0-dev.2",
26
- "@prisma-next/sql-contract-ts": "0.16.0-dev.2",
27
- "@prisma-next/target-postgres": "0.16.0-dev.2",
28
- "@prisma-next/test-utils": "0.16.0-dev.2",
29
- "@prisma-next/tsconfig": "0.16.0-dev.2",
30
- "@prisma-next/tsdown": "0.16.0-dev.2",
22
+ "@prisma-next/adapter-postgres": "0.16.0-dev.21",
23
+ "@prisma-next/cli": "0.16.0-dev.21",
24
+ "@prisma-next/operations": "0.16.0-dev.21",
25
+ "@prisma-next/postgres": "0.16.0-dev.21",
26
+ "@prisma-next/sql-contract-ts": "0.16.0-dev.21",
27
+ "@prisma-next/target-postgres": "0.16.0-dev.21",
28
+ "@prisma-next/test-utils": "0.16.0-dev.21",
29
+ "@prisma-next/tsconfig": "0.16.0-dev.21",
30
+ "@prisma-next/tsdown": "0.16.0-dev.21",
31
31
  "tsdown": "0.22.8",
32
32
  "typescript": "5.9.3",
33
33
  "vitest": "4.1.10"
34
34
  },
35
35
  "peerDependencies": {
36
- "@prisma-next/adapter-postgres": "0.16.0-dev.2",
36
+ "@prisma-next/adapter-postgres": "0.16.0-dev.21",
37
37
  "typescript": ">=5.9"
38
38
  },
39
39
  "peerDependenciesMeta": {
package/src/contract.d.ts CHANGED
@@ -30,10 +30,10 @@ import type {
30
30
  } from '@prisma-next/contract/types';
31
31
 
32
32
  export type StorageHash =
33
- StorageHashBase<'sha256:c7bb9818eb8d86182fff73219e9c27c4f42ff7918bdcabf003324a7c6c814e20'>;
33
+ StorageHashBase<'3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8'>;
34
34
  export type ExecutionHash = ExecutionHashBase<string>;
35
35
  export type ProfileHash =
36
- ProfileHashBase<'sha256:9c8aa3114e84ed3b7ea2bd57526d9c2e1bf7c5292be694e9d3801f566fda7ccb'>;
36
+ ProfileHashBase<'3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2'>;
37
37
 
38
38
  export type CodecTypes = PgTypes;
39
39
  export type LaneCodecTypes = CodecTypes;
@@ -103,7 +103,7 @@ type ContractBase = Omit<
103
103
  readonly scalarList: true;
104
104
  };
105
105
  };
106
- readonly extensionPacks: {};
106
+ readonly extensions: {};
107
107
  readonly meta: {};
108
108
 
109
109
  readonly profileHash: ProfileHash;
package/src/contract.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": "1",
3
3
  "targetFamily": "sql",
4
4
  "target": "postgres",
5
- "profileHash": "sha256:9c8aa3114e84ed3b7ea2bd57526d9c2e1bf7c5292be694e9d3801f566fda7ccb",
5
+ "profileHash": "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
6
6
  "roots": {},
7
7
  "domain": {
8
8
  "namespaces": {
@@ -21,7 +21,7 @@
21
21
  "kind": "postgres-schema"
22
22
  }
23
23
  },
24
- "storageHash": "sha256:c7bb9818eb8d86182fff73219e9c27c4f42ff7918bdcabf003324a7c6c814e20",
24
+ "storageHash": "3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8",
25
25
  "types": {
26
26
  "vector": {
27
27
  "codecId": "pg/vector@1",
@@ -47,7 +47,7 @@
47
47
  "scalarList": true
48
48
  }
49
49
  },
50
- "extensionPacks": {},
50
+ "extensions": {},
51
51
  "meta": {},
52
52
  "_generated": {
53
53
  "warning": "⚠️ GENERATED FILE - DO NOT EDIT",