@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Kevin Shenk
3
+ Copyright (c) 2026 Avunu LLC and Jx Suite contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/connector",
3
- "version": "0.6.0",
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": "^2.2.0",
61
- "kysely": "^0.29.5",
60
+ "@jxsuite/schema": "^3.0.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.20261002.1",
68
68
  "ajv": "^8.20.0",
69
- "hono": "^4.13.7"
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
- 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()