@prisma-next/extension-paradedb 0.13.0 → 0.14.0
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/dist/control.mjs +13 -18
- package/dist/control.mjs.map +1 -1
- package/package.json +18 -18
- package/src/contract.d.ts +12 -23
- package/src/contract.json +1 -8
package/dist/control.mjs
CHANGED
|
@@ -11,19 +11,12 @@ const paradedbContractSpace = contractSpaceFromJson({
|
|
|
11
11
|
roots: {},
|
|
12
12
|
domain: { "namespaces": { "public": { "models": {} } } },
|
|
13
13
|
storage: {
|
|
14
|
-
"namespaces": {
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"public": {
|
|
21
|
-
"entries": { "table": {} },
|
|
22
|
-
"id": "public",
|
|
23
|
-
"kind": "postgres-schema"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"storageHash": "sha256:6214fc543ea5ffa1c5bdf6f663e62c61b6a3f04460e1e27bf7f47f1544f11603"
|
|
14
|
+
"namespaces": { "public": {
|
|
15
|
+
"entries": { "table": {} },
|
|
16
|
+
"id": "public",
|
|
17
|
+
"kind": "postgres-schema"
|
|
18
|
+
} },
|
|
19
|
+
"storageHash": "sha256:efd408cf8924b4d1805bf5acced8898114aa03cd46b465720179c82a4431d51e"
|
|
27
20
|
},
|
|
28
21
|
capabilities: {
|
|
29
22
|
"postgres": {
|
|
@@ -53,10 +46,10 @@ const paradedbContractSpace = contractSpaceFromJson({
|
|
|
53
46
|
dirName: "20260601T0000_install_pg_search_extension",
|
|
54
47
|
metadata: {
|
|
55
48
|
from: null,
|
|
56
|
-
to: "sha256:
|
|
49
|
+
to: "sha256:efd408cf8924b4d1805bf5acced8898114aa03cd46b465720179c82a4431d51e",
|
|
57
50
|
providedInvariants: ["paradedb:install-pg-search-v1"],
|
|
58
51
|
createdAt: "2026-06-01T00:00:00.000Z",
|
|
59
|
-
migrationHash: "sha256:
|
|
52
|
+
migrationHash: "sha256:8f8befc0708577f5aac899b70c14ab2adf481d4732347f1c45b646666f48ca23"
|
|
60
53
|
},
|
|
61
54
|
ops: [{
|
|
62
55
|
"id": "paradedb.install-pg-search-extension",
|
|
@@ -73,7 +66,8 @@ const paradedbContractSpace = contractSpaceFromJson({
|
|
|
73
66
|
},
|
|
74
67
|
"precheck": [{
|
|
75
68
|
"description": "verify extension \"pg_search\" is not already enabled",
|
|
76
|
-
"sql": "SELECT NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname =
|
|
69
|
+
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
|
|
70
|
+
"params": ["pg_search"]
|
|
77
71
|
}],
|
|
78
72
|
"execute": [{
|
|
79
73
|
"description": "create extension \"pg_search\"",
|
|
@@ -81,12 +75,13 @@ const paradedbContractSpace = contractSpaceFromJson({
|
|
|
81
75
|
}],
|
|
82
76
|
"postcheck": [{
|
|
83
77
|
"description": "confirm extension \"pg_search\" is enabled",
|
|
84
|
-
"sql": "SELECT EXISTS (SELECT 1 FROM pg_extension WHERE extname =
|
|
78
|
+
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
|
|
79
|
+
"params": ["pg_search"]
|
|
85
80
|
}]
|
|
86
81
|
}]
|
|
87
82
|
}],
|
|
88
83
|
headRef: {
|
|
89
|
-
hash: "sha256:
|
|
84
|
+
hash: "sha256:efd408cf8924b4d1805bf5acced8898114aa03cd46b465720179c82a4431d51e",
|
|
90
85
|
invariants: ["paradedb:install-pg-search-v1"]
|
|
91
86
|
}
|
|
92
87
|
});
|
package/dist/control.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.mjs","names":["baselineMetadata","baselineOps"],"sources":["../migrations/20260601T0000_install_pg_search_extension/migration.json","../migrations/20260601T0000_install_pg_search_extension/ops.json","../migrations/refs/head.json","../src/contract.json","../src/exports/control.ts"],"sourcesContent":["","","","","/**\n * Control-plane descriptor for the paradedb extension.\n *\n * **Contract-space package layout.** The extension's contract\n * + migrations are emitted by the same pipeline application authors use:\n *\n * `prisma-next contract emit` → `<package>/src/contract.{json,d.ts}`\n * `prisma-next migration plan` → `<package>/migrations/<dir>/...`\n *\n * The descriptor wires those JSON artefacts via JSON-import declarations\n * so they flow through the consuming application's module resolver\n * without filesystem assumptions, and synthesises the canonical\n * {@link import('@prisma-next/framework-components/control').MigrationPackage}\n * shape for the framework's runner / verifier to consume. Readers in\n * `@prisma-next/migration-tools` add `dirPath` when loading from disk\n * (`OnDiskMigrationPackage`); descriptor-bundled packages do not need\n * it because the framework reads them directly from the descriptor.\n *\n * Wired surfaces:\n *\n * - `contractSpace.{contractJson,migrations,headRef}` — sourced from\n * the on-disk artefacts emitted by `build:contract-space`.\n * - `queryOperations` — BM25 full-text search operations registered\n * via `paradedbQueryOperations()`.\n *\n * @see docs/architecture docs/adrs/ADR 212 - Contract spaces.md\n * (contract-space package layout convention).\n */\n\nimport type { Contract } from '@prisma-next/contract/types';\nimport type { SqlControlExtensionDescriptor } from '@prisma-next/family-sql/control';\nimport { contractSpaceFromJson } from '@prisma-next/migration-tools/spaces';\nimport type { SqlStorage } from '@prisma-next/sql-contract/types';\nimport baselineMetadata from '../../migrations/20260601T0000_install_pg_search_extension/migration.json' with {\n type: 'json',\n};\nimport baselineOps from '../../migrations/20260601T0000_install_pg_search_extension/ops.json' with {\n type: 'json',\n};\nimport headRef from '../../migrations/refs/head.json' with { type: 'json' };\nimport contractJson from '../contract.json' with { type: 'json' };\nimport { PARADEDB_SPACE_ID } from '../core/constants';\nimport { paradedbPackMeta, paradedbQueryOperations } from '../core/descriptor-meta';\n\nconst BASELINE_DIR_NAME = '20260601T0000_install_pg_search_extension';\n\nconst paradedbContractSpace = contractSpaceFromJson<Contract<SqlStorage>>({\n contractJson,\n migrations: [\n {\n dirName: BASELINE_DIR_NAME,\n metadata: baselineMetadata,\n ops: baselineOps,\n },\n ],\n headRef,\n});\n\nconst paradedbExtensionDescriptor: SqlControlExtensionDescriptor<'postgres'> = {\n ...paradedbPackMeta,\n id: PARADEDB_SPACE_ID,\n contractSpace: paradedbContractSpace,\n queryOperations: () => paradedbQueryOperations(),\n create: () => ({\n familyId: 'sql' as const,\n targetId: 'postgres' as const,\n }),\n};\n\nexport { paradedbExtensionDescriptor, paradedbPackMeta };\nexport default paradedbExtensionDescriptor;\n"],"mappings":";;;;AI8CA,MAAM,wBAAwB,sBAA4C;CACxE,cAAA
|
|
1
|
+
{"version":3,"file":"control.mjs","names":["baselineMetadata","baselineOps"],"sources":["../migrations/20260601T0000_install_pg_search_extension/migration.json","../migrations/20260601T0000_install_pg_search_extension/ops.json","../migrations/refs/head.json","../src/contract.json","../src/exports/control.ts"],"sourcesContent":["","","","","/**\n * Control-plane descriptor for the paradedb extension.\n *\n * **Contract-space package layout.** The extension's contract\n * + migrations are emitted by the same pipeline application authors use:\n *\n * `prisma-next contract emit` → `<package>/src/contract.{json,d.ts}`\n * `prisma-next migration plan` → `<package>/migrations/<dir>/...`\n *\n * The descriptor wires those JSON artefacts via JSON-import declarations\n * so they flow through the consuming application's module resolver\n * without filesystem assumptions, and synthesises the canonical\n * {@link import('@prisma-next/framework-components/control').MigrationPackage}\n * shape for the framework's runner / verifier to consume. Readers in\n * `@prisma-next/migration-tools` add `dirPath` when loading from disk\n * (`OnDiskMigrationPackage`); descriptor-bundled packages do not need\n * it because the framework reads them directly from the descriptor.\n *\n * Wired surfaces:\n *\n * - `contractSpace.{contractJson,migrations,headRef}` — sourced from\n * the on-disk artefacts emitted by `build:contract-space`.\n * - `queryOperations` — BM25 full-text search operations registered\n * via `paradedbQueryOperations()`.\n *\n * @see docs/architecture docs/adrs/ADR 212 - Contract spaces.md\n * (contract-space package layout convention).\n */\n\nimport type { Contract } from '@prisma-next/contract/types';\nimport type { SqlControlExtensionDescriptor } from '@prisma-next/family-sql/control';\nimport { contractSpaceFromJson } from '@prisma-next/migration-tools/spaces';\nimport type { SqlStorage } from '@prisma-next/sql-contract/types';\nimport baselineMetadata from '../../migrations/20260601T0000_install_pg_search_extension/migration.json' with {\n type: 'json',\n};\nimport baselineOps from '../../migrations/20260601T0000_install_pg_search_extension/ops.json' with {\n type: 'json',\n};\nimport headRef from '../../migrations/refs/head.json' with { type: 'json' };\nimport contractJson from '../contract.json' with { type: 'json' };\nimport { PARADEDB_SPACE_ID } from '../core/constants';\nimport { paradedbPackMeta, paradedbQueryOperations } from '../core/descriptor-meta';\n\nconst BASELINE_DIR_NAME = '20260601T0000_install_pg_search_extension';\n\nconst paradedbContractSpace = contractSpaceFromJson<Contract<SqlStorage>>({\n contractJson,\n migrations: [\n {\n dirName: BASELINE_DIR_NAME,\n metadata: baselineMetadata,\n ops: baselineOps,\n },\n ],\n headRef,\n});\n\nconst paradedbExtensionDescriptor: SqlControlExtensionDescriptor<'postgres'> = {\n ...paradedbPackMeta,\n id: PARADEDB_SPACE_ID,\n contractSpace: paradedbContractSpace,\n queryOperations: () => paradedbQueryOperations(),\n create: () => ({\n familyId: 'sql' as const,\n targetId: 'postgres' as const,\n }),\n};\n\nexport { paradedbExtensionDescriptor, paradedbPackMeta };\nexport default paradedbExtensionDescriptor;\n"],"mappings":";;;;AI8CA,MAAM,wBAAwB,sBAA4C;CACxE,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA;CACA,YAAY,CACV;EACE,SAAS;EACT,UAAUA;;;;;;EAAAA;EACV,KAAKC;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAAA;CACP,CACF;CACA,SAAA;;;CAAA;AACF,CAAC;AAED,MAAM,8BAAyE;CAC7E,GAAG;CACH,IAAI;CACJ,eAAe;CACf,uBAAuB,wBAAwB;CAC/C,eAAe;EACb,UAAU;EACV,UAAU;CACZ;AACF"}
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/extension-paradedb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/contract": "0.
|
|
9
|
-
"@prisma-next/contract-authoring": "0.
|
|
10
|
-
"@prisma-next/family-sql": "0.
|
|
11
|
-
"@prisma-next/framework-components": "0.
|
|
12
|
-
"@prisma-next/migration-tools": "0.
|
|
13
|
-
"@prisma-next/sql-contract": "0.
|
|
14
|
-
"@prisma-next/sql-operations": "0.
|
|
15
|
-
"@prisma-next/sql-relational-core": "0.
|
|
16
|
-
"@prisma-next/sql-runtime": "0.
|
|
8
|
+
"@prisma-next/contract": "0.14.0",
|
|
9
|
+
"@prisma-next/contract-authoring": "0.14.0",
|
|
10
|
+
"@prisma-next/family-sql": "0.14.0",
|
|
11
|
+
"@prisma-next/framework-components": "0.14.0",
|
|
12
|
+
"@prisma-next/migration-tools": "0.14.0",
|
|
13
|
+
"@prisma-next/sql-contract": "0.14.0",
|
|
14
|
+
"@prisma-next/sql-operations": "0.14.0",
|
|
15
|
+
"@prisma-next/sql-relational-core": "0.14.0",
|
|
16
|
+
"@prisma-next/sql-runtime": "0.14.0",
|
|
17
17
|
"arktype": "^2.2.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@prisma-next/adapter-postgres": "0.
|
|
21
|
-
"@prisma-next/cli": "0.
|
|
22
|
-
"@prisma-next/operations": "0.
|
|
23
|
-
"@prisma-next/sql-contract-ts": "0.
|
|
24
|
-
"@prisma-next/target-postgres": "0.
|
|
25
|
-
"@prisma-next/test-utils": "0.
|
|
26
|
-
"@prisma-next/tsconfig": "0.
|
|
27
|
-
"@prisma-next/tsdown": "0.
|
|
20
|
+
"@prisma-next/adapter-postgres": "0.14.0",
|
|
21
|
+
"@prisma-next/cli": "0.14.0",
|
|
22
|
+
"@prisma-next/operations": "0.14.0",
|
|
23
|
+
"@prisma-next/sql-contract-ts": "0.14.0",
|
|
24
|
+
"@prisma-next/target-postgres": "0.14.0",
|
|
25
|
+
"@prisma-next/test-utils": "0.14.0",
|
|
26
|
+
"@prisma-next/tsconfig": "0.14.0",
|
|
27
|
+
"@prisma-next/tsdown": "0.14.0",
|
|
28
28
|
"tsdown": "0.22.1",
|
|
29
29
|
"typescript": "5.9.3",
|
|
30
30
|
"vitest": "4.1.8"
|
package/src/contract.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ import type {
|
|
|
23
23
|
} from '@prisma-next/sql-contract/types';
|
|
24
24
|
import type {
|
|
25
25
|
Contract as ContractType,
|
|
26
|
-
ContractModelDefinitions,
|
|
27
26
|
ExecutionHashBase,
|
|
28
27
|
NamespaceId,
|
|
29
28
|
ProfileHashBase,
|
|
@@ -31,7 +30,7 @@ import type {
|
|
|
31
30
|
} from '@prisma-next/contract/types';
|
|
32
31
|
|
|
33
32
|
export type StorageHash =
|
|
34
|
-
StorageHashBase<'sha256:
|
|
33
|
+
StorageHashBase<'sha256:efd408cf8924b4d1805bf5acced8898114aa03cd46b465720179c82a4431d51e'>;
|
|
35
34
|
export type ExecutionHash = ExecutionHashBase<string>;
|
|
36
35
|
export type ProfileHash =
|
|
37
36
|
ProfileHashBase<'sha256:9c8aa3114e84ed3b7ea2bd57526d9c2e1bf7c5292be694e9d3801f566fda7ccb'>;
|
|
@@ -43,8 +42,8 @@ type DefaultLiteralValue<CodecId extends string, _Encoded> = CodecId extends key
|
|
|
43
42
|
? CodecTypes[CodecId]['output']
|
|
44
43
|
: _Encoded;
|
|
45
44
|
|
|
46
|
-
export type FieldOutputTypes = Record<string, never
|
|
47
|
-
export type FieldInputTypes = Record<string, never
|
|
45
|
+
export type FieldOutputTypes = { readonly public: Record<string, never> };
|
|
46
|
+
export type FieldInputTypes = { readonly public: Record<string, never> };
|
|
48
47
|
export type TypeMaps = TypeMapsType<
|
|
49
48
|
CodecTypes,
|
|
50
49
|
QueryOperationTypes,
|
|
@@ -53,24 +52,16 @@ export type TypeMaps = TypeMapsType<
|
|
|
53
52
|
>;
|
|
54
53
|
|
|
55
54
|
type ContractBase = Omit<
|
|
56
|
-
ContractType<
|
|
57
|
-
{
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
readonly entries: { readonly table: {} };
|
|
63
|
-
};
|
|
64
|
-
readonly public: {
|
|
65
|
-
readonly id: 'public';
|
|
66
|
-
readonly kind: 'sql-namespace';
|
|
67
|
-
readonly entries: { readonly table: {} };
|
|
68
|
-
};
|
|
55
|
+
ContractType<{
|
|
56
|
+
readonly namespaces: {
|
|
57
|
+
readonly public: {
|
|
58
|
+
readonly id: 'public';
|
|
59
|
+
readonly kind: 'sql-namespace';
|
|
60
|
+
readonly entries: { readonly table: {} };
|
|
69
61
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
>,
|
|
62
|
+
};
|
|
63
|
+
readonly storageHash: StorageHash;
|
|
64
|
+
}>,
|
|
74
65
|
'roots' | 'domain'
|
|
75
66
|
> & {
|
|
76
67
|
readonly target: 'postgres';
|
|
@@ -105,8 +96,6 @@ type ContractBase = Omit<
|
|
|
105
96
|
readonly profileHash: ProfileHash;
|
|
106
97
|
};
|
|
107
98
|
|
|
108
|
-
export type Models = ContractModelDefinitions<Contract>;
|
|
109
|
-
|
|
110
99
|
export type Contract = ContractWithTypeMaps<ContractBase, TypeMaps>;
|
|
111
100
|
|
|
112
101
|
export type Namespaces = Contract['storage']['namespaces'];
|
package/src/contract.json
CHANGED
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
},
|
|
14
14
|
"storage": {
|
|
15
15
|
"namespaces": {
|
|
16
|
-
"__unbound__": {
|
|
17
|
-
"entries": {
|
|
18
|
-
"table": {}
|
|
19
|
-
},
|
|
20
|
-
"id": "__unbound__",
|
|
21
|
-
"kind": "postgres-unbound-schema"
|
|
22
|
-
},
|
|
23
16
|
"public": {
|
|
24
17
|
"entries": {
|
|
25
18
|
"table": {}
|
|
@@ -28,7 +21,7 @@
|
|
|
28
21
|
"kind": "postgres-schema"
|
|
29
22
|
}
|
|
30
23
|
},
|
|
31
|
-
"storageHash": "sha256:
|
|
24
|
+
"storageHash": "sha256:efd408cf8924b4d1805bf5acced8898114aa03cd46b465720179c82a4431d51e"
|
|
32
25
|
},
|
|
33
26
|
"capabilities": {
|
|
34
27
|
"postgres": {
|