@palbase/backend 35.0.0 → 36.0.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/bin/palbase-backend.cjs +556 -487
- package/dist/bin/palbase-backend.cjs.map +1 -1
- package/dist/bin/palbase-backend.js +6 -6
- package/dist/{chunk-L4R7WXLH.js → chunk-7WAGQ3VR.js} +4 -171
- package/dist/chunk-7WAGQ3VR.js.map +1 -0
- package/dist/{chunk-UMESJJRS.js → chunk-CS6NQ6PO.js} +2 -1
- package/dist/chunk-CS6NQ6PO.js.map +1 -0
- package/dist/{chunk-BOD3DT6D.js → chunk-EHKEMHB4.js} +560 -430
- package/dist/chunk-EHKEMHB4.js.map +1 -0
- package/dist/{chunk-PRH45NZU.js → chunk-FFO36MQQ.js} +2 -45
- package/dist/chunk-FFO36MQQ.js.map +1 -0
- package/dist/{chunk-P7MGSAFT.js → chunk-LFUNRWUE.js} +1 -40
- package/dist/chunk-LFUNRWUE.js.map +1 -0
- package/dist/{chunk-RZLY4BOY.js → chunk-PDD55QWN.js} +2 -2
- package/dist/{chunk-YO5GYM73.js → chunk-X7UR3VXA.js} +5 -6
- package/dist/chunk-X7UR3VXA.js.map +1 -0
- package/dist/{chunk-6FEHCEB7.js → chunk-YANGWAIM.js} +3 -3
- package/dist/db/index.cjs +1 -232
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.d.cts +3 -46
- package/dist/db/index.d.ts +3 -46
- package/dist/db/index.js +4 -12
- package/dist/engine/index.cjs +556 -487
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.cts +4 -4
- package/dist/engine/index.d.ts +4 -4
- package/dist/engine/index.js +6 -6
- package/dist/{index-DllNjpTl.d.cts → index-CI7S0Wqv.d.cts} +61 -8
- package/dist/{endpoint-BI0yGuEL.d.ts → index-CUy50OLU.d.ts} +6 -82
- package/dist/{endpoint-DaGnjt42.d.cts → index-DRx880KY.d.cts} +6 -82
- package/dist/{index-E8Sd6NFy.d.ts → index-Ogi30dbt.d.ts} +61 -8
- package/dist/index.cjs +5 -237
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.js +7 -15
- package/dist/index.js.map +1 -1
- package/dist/openapi/index.cjs +1 -0
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.d.cts +3 -3
- package/dist/openapi/index.d.ts +3 -3
- package/dist/openapi/index.js +2 -2
- package/dist/{registry-BnKvIyve.d.cts → registry-C7UCkQf0.d.cts} +1 -1
- package/dist/{registry-zDCj0eOU.d.ts → registry-DJcvbomD.d.ts} +1 -1
- package/dist/test/index.cjs +3 -11
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.d.cts +2 -2
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +2 -9
- package/dist/test/index.js.map +1 -1
- package/docs/README.md +1 -1
- package/docs/database.md +84 -67
- package/docs/examples/database-dx.ts +12 -17
- package/docs/llms-full.txt +82 -65
- package/package.json +1 -1
- package/stager/inferred_returns.js +153 -0
- package/stager/return_types.js +9 -4
- package/stager/stage.js +3 -1
- package/template/AGENTS.md +5 -5
- package/template/package.json +1 -1
- package/dist/chunk-BOD3DT6D.js.map +0 -1
- package/dist/chunk-L4R7WXLH.js.map +0 -1
- package/dist/chunk-P7MGSAFT.js.map +0 -1
- package/dist/chunk-PRH45NZU.js.map +0 -1
- package/dist/chunk-UMESJJRS.js.map +0 -1
- package/dist/chunk-YO5GYM73.js.map +0 -1
- package/docs/examples/check-query-contracts.ts +0 -5
- package/docs/examples/database-dx.contract.json +0 -65
- /package/dist/{chunk-RZLY4BOY.js.map → chunk-PDD55QWN.js.map} +0 -0
- /package/dist/{chunk-6FEHCEB7.js.map → chunk-YANGWAIM.js.map} +0 -0
package/dist/test/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { T as Token } from '../module-Dl1KFVtc.cjs';
|
|
2
|
-
import { E as EnvServiceDatabase, a as DBClient, b as RuntimeServices } from '../
|
|
2
|
+
import { E as EnvServiceDatabase, a as DBClient, b as RuntimeServices } from '../index-DRx880KY.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../stack.cjs';
|
|
5
4
|
import '../db/env.cjs';
|
|
5
|
+
import '../stack.cjs';
|
|
6
6
|
import 'node:async_hooks';
|
|
7
7
|
|
|
8
8
|
/** The client a tenant's tests use to call their own backend.
|
package/dist/test/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { T as Token } from '../module-Dl1KFVtc.js';
|
|
2
|
-
import { E as EnvServiceDatabase, a as DBClient, b as RuntimeServices } from '../
|
|
2
|
+
import { E as EnvServiceDatabase, a as DBClient, b as RuntimeServices } from '../index-CUy50OLU.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../stack.js';
|
|
5
4
|
import '../db/env.js';
|
|
5
|
+
import '../stack.js';
|
|
6
6
|
import 'node:async_hooks';
|
|
7
7
|
|
|
8
8
|
/** The client a tenant's tests use to call their own backend.
|
package/dist/test/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
__requestALS,
|
|
6
6
|
makeTypedSurface
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-X7UR3VXA.js";
|
|
8
8
|
import {
|
|
9
9
|
assertNoExpressionHandles,
|
|
10
10
|
assertUsableFilter,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
isColumnExpr,
|
|
15
15
|
isNowExpr,
|
|
16
16
|
isSqlFragment
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-LFUNRWUE.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "../chunk-VXPNPVAG.js";
|
|
@@ -1640,13 +1640,6 @@ function createMockDB() {
|
|
|
1640
1640
|
__name(resolveInsertValues, "resolveInsertValues");
|
|
1641
1641
|
const ops = {
|
|
1642
1642
|
diagnostics: /* @__PURE__ */ __name(() => null, "diagnostics"),
|
|
1643
|
-
readQuery: /* @__PURE__ */ __name((query) => ops.findMany(query.table, query.where, query.options), "readQuery"),
|
|
1644
|
-
compileQuery() {
|
|
1645
|
-
throw new Error("MockDB cannot compile PostgreSQL query plans; use the real engine to inspect SQL");
|
|
1646
|
-
},
|
|
1647
|
-
async explainQuery() {
|
|
1648
|
-
throw new Error("MockDB cannot EXPLAIN PostgreSQL plans; use a PostgreSQL integration test");
|
|
1649
|
-
},
|
|
1650
1643
|
// The bulk ops and count run against the SAME in-memory store the direct
|
|
1651
1644
|
// ops write to, so a test that writes three rows and counts them gets 3 —
|
|
1652
1645
|
// a mock that answered 0 would make the surface look broken in exactly the
|