@prisma-next/extension-paradedb 0.11.0-dev.63 → 0.11.0-dev.65
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 +2 -2
- package/package.json +18 -18
- package/src/contract.prisma +0 -22
package/README.md
CHANGED
|
@@ -75,8 +75,8 @@ ParadeDB BM25 indexes require a `key_field` — a unique column that identifies
|
|
|
75
75
|
|
|
76
76
|
The extension's contract + baseline migration are emitted on-disk inside this package using the same pipeline application authors use:
|
|
77
77
|
|
|
78
|
-
- `pnpm build:contract-space` — runs `prisma-next contract emit` to produce `src/contract.{json,d.ts}` from
|
|
79
|
-
- `pnpm exec prisma-next migration plan --name <slug>` (run from this package directory) — scaffolds a new migration directory under `migrations/<dirName>/` for schema changes. **Not chained into `pnpm build`**: `migration plan` is non-idempotent (each invocation generates a new timestamped directory), so it runs manually when the contract
|
|
78
|
+
- `pnpm build:contract-space` — runs `prisma-next contract emit` to produce `src/contract.{json,d.ts}` from `emptyContract({ output: 'src/contract.json', target })` in `prisma-next.config.ts` (migrations-only space: no `contract.prisma` source file).
|
|
79
|
+
- `pnpm exec prisma-next migration plan --name <slug>` (run from this package directory) — scaffolds a new migration directory under `migrations/<dirName>/` for schema changes. **Not chained into `pnpm build`**: `migration plan` is non-idempotent (each invocation generates a new timestamped directory), so it runs manually when the contract changes. Note: paradedb's contract declares no tables or models, so the planner currently refuses to scaffold the baseline migration (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 or models can use `migration plan` directly (Path A).
|
|
80
80
|
- `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.
|
|
81
81
|
- `migrations/refs/head.json` is hand-pinned with the latest migration's `to` hash + `providedInvariants`.
|
|
82
82
|
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/extension-paradedb",
|
|
3
|
-
"version": "0.11.0-dev.
|
|
3
|
+
"version": "0.11.0-dev.65",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/contract": "0.11.0-dev.
|
|
9
|
-
"@prisma-next/contract-authoring": "0.11.0-dev.
|
|
10
|
-
"@prisma-next/family-sql": "0.11.0-dev.
|
|
11
|
-
"@prisma-next/framework-components": "0.11.0-dev.
|
|
12
|
-
"@prisma-next/migration-tools": "0.11.0-dev.
|
|
13
|
-
"@prisma-next/sql-contract": "0.11.0-dev.
|
|
14
|
-
"@prisma-next/sql-operations": "0.11.0-dev.
|
|
15
|
-
"@prisma-next/sql-relational-core": "0.11.0-dev.
|
|
16
|
-
"@prisma-next/sql-runtime": "0.11.0-dev.
|
|
8
|
+
"@prisma-next/contract": "0.11.0-dev.65",
|
|
9
|
+
"@prisma-next/contract-authoring": "0.11.0-dev.65",
|
|
10
|
+
"@prisma-next/family-sql": "0.11.0-dev.65",
|
|
11
|
+
"@prisma-next/framework-components": "0.11.0-dev.65",
|
|
12
|
+
"@prisma-next/migration-tools": "0.11.0-dev.65",
|
|
13
|
+
"@prisma-next/sql-contract": "0.11.0-dev.65",
|
|
14
|
+
"@prisma-next/sql-operations": "0.11.0-dev.65",
|
|
15
|
+
"@prisma-next/sql-relational-core": "0.11.0-dev.65",
|
|
16
|
+
"@prisma-next/sql-runtime": "0.11.0-dev.65",
|
|
17
17
|
"arktype": "^2.2.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@prisma-next/adapter-postgres": "0.11.0-dev.
|
|
21
|
-
"@prisma-next/cli": "0.11.0-dev.
|
|
22
|
-
"@prisma-next/operations": "0.11.0-dev.
|
|
23
|
-
"@prisma-next/sql-contract-ts": "0.11.0-dev.
|
|
24
|
-
"@prisma-next/target-postgres": "0.11.0-dev.
|
|
25
|
-
"@prisma-next/test-utils": "0.11.0-dev.
|
|
26
|
-
"@prisma-next/tsconfig": "0.11.0-dev.
|
|
27
|
-
"@prisma-next/tsdown": "0.11.0-dev.
|
|
20
|
+
"@prisma-next/adapter-postgres": "0.11.0-dev.65",
|
|
21
|
+
"@prisma-next/cli": "0.11.0-dev.65",
|
|
22
|
+
"@prisma-next/operations": "0.11.0-dev.65",
|
|
23
|
+
"@prisma-next/sql-contract-ts": "0.11.0-dev.65",
|
|
24
|
+
"@prisma-next/target-postgres": "0.11.0-dev.65",
|
|
25
|
+
"@prisma-next/test-utils": "0.11.0-dev.65",
|
|
26
|
+
"@prisma-next/tsconfig": "0.11.0-dev.65",
|
|
27
|
+
"@prisma-next/tsdown": "0.11.0-dev.65",
|
|
28
28
|
"tsdown": "0.22.0",
|
|
29
29
|
"typescript": "5.9.3",
|
|
30
30
|
"vitest": "4.1.6"
|
package/src/contract.prisma
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// PSL contract source for the `extension-paradedb` package.
|
|
2
|
-
//
|
|
3
|
-
// Authored against the contract-space package layout convention. The same
|
|
4
|
-
// emit pipeline application authors use is applied here:
|
|
5
|
-
//
|
|
6
|
-
// `prisma-next contract emit` → `<package>/src/contract.{json,d.ts}`
|
|
7
|
-
// `prisma-next migration plan` → `<package>/migrations/<dirName>/`
|
|
8
|
-
//
|
|
9
|
-
// The descriptor at `src/exports/control.ts` then wires the emitted JSON
|
|
10
|
-
// artefacts via JSON-import declarations.
|
|
11
|
-
//
|
|
12
|
-
// ## IR coverage
|
|
13
|
-
//
|
|
14
|
-
// paradedb ships **no tables** and **no native types** of its own. Its
|
|
15
|
-
// baseline migration installs the `pg_search` Postgres extension; all
|
|
16
|
-
// BM25 index configuration is carried by the user contract's own models
|
|
17
|
-
// (via the `'bm25'` index-type entry registered in `src/types/index-types.ts`).
|
|
18
|
-
// The contract IR is therefore intentionally empty — the space is still
|
|
19
|
-
// required so the migration runner can track the `pg_search` installation
|
|
20
|
-
// invariant independently of any user models.
|
|
21
|
-
//
|
|
22
|
-
// @see docs/architecture docs/adrs/ADR 212 - Contract spaces.md
|