@jxsuite/connector 0.6.0 → 0.6.1

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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/src/worker.ts +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/connector",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
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": "^2.2.0",
61
- "kysely": "^0.29.5",
60
+ "@jxsuite/schema": "^2.3.0",
61
+ "kysely": "^0.29.6",
62
62
  "kysely-d1": "^0.4.0",
63
- "kysely-postgres-js": "^4.0.0",
63
+ "kysely-postgres-js": "^5.0.1",
64
64
  "postgres": "^3.4.9"
65
65
  },
66
66
  "devDependencies": {
67
- "@cloudflare/workers-types": "^5.20260911.1",
67
+ "@cloudflare/workers-types": "^5.20260926.1",
68
68
  "ajv": "^8.20.0",
69
- "hono": "^4.13.7"
69
+ "hono": "^4.13.10"
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
- const rowIds = rows.map((r) => r.id).filter((v) => v != null);
555
- if (rowIds.length === 0) {
556
- continue;
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()