@jxsuite/connector 0.6.0 → 0.6.2
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/LICENSE +1 -1
- package/package.json +6 -6
- package/src/worker.ts +3 -4
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jxsuite/connector",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Jx database connections and dynamic data tables served over /_jx/data",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -57,16 +57,16 @@
|
|
|
57
57
|
"upgrade": "bun update --latest && bun install"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@jxsuite/schema": "^
|
|
61
|
-
"kysely": "^0.29.
|
|
60
|
+
"@jxsuite/schema": "^3.0.0",
|
|
61
|
+
"kysely": "^0.29.6",
|
|
62
62
|
"kysely-d1": "^0.4.0",
|
|
63
|
-
"kysely-postgres-js": "^
|
|
63
|
+
"kysely-postgres-js": "^5.0.1",
|
|
64
64
|
"postgres": "^3.4.9"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@cloudflare/workers-types": "^5.
|
|
67
|
+
"@cloudflare/workers-types": "^5.20261002.1",
|
|
68
68
|
"ajv": "^8.20.0",
|
|
69
|
-
"hono": "^4.13.
|
|
69
|
+
"hono": "^4.13.13"
|
|
70
70
|
},
|
|
71
71
|
"jx": "./jx-extension.json"
|
|
72
72
|
}
|
package/src/worker.ts
CHANGED
|
@@ -551,10 +551,9 @@ async function expandIncludes(
|
|
|
551
551
|
tables,
|
|
552
552
|
kind,
|
|
553
553
|
);
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
}
|
|
554
|
+
// Every row here came off this table's own SELECT, so its `id` (the primary key) is never
|
|
555
|
+
// Null — unlike `rows.map(r => r[spec.column])` above, which reads an optional FK column.
|
|
556
|
+
const rowIds = rows.map((r) => r.id);
|
|
558
557
|
const links = await db
|
|
559
558
|
.selectFrom(junction.table)
|
|
560
559
|
.selectAll()
|