@dbsp/cli 2.1.1 → 2.1.3

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/README.md +17 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -15,6 +15,23 @@ pnpm add -D @dbsp/cli
15
15
  npm install -g @dbsp/cli
16
16
  ```
17
17
 
18
+ ### Peer requirements
19
+
20
+ `pg` and `tsx` are optional peers — install them only for the commands that need them.
21
+
22
+ **`pg` must be `>=8.21.0`.** From 2.1.3 the declared range is `^8.21.0`, narrowed from `^8.16.0`.
23
+ This is not a preference: `@dbsp/adapter-pgsql` reads a field that pg only started recording in
24
+ 8.21, and without it `orm.inTransaction` reports `true` for an idle borrowed connection. The old
25
+ range promised support the code could not deliver on 8.16–8.20.
26
+
27
+ If you are on pg 8.16–8.20 you will now see an unmet-peer warning, and an error under
28
+ `strict-peer-dependencies`. Upgrading pg to 8.21 or later is the fix; staying below it means
29
+ `inTransaction` misreports, whether or not the peer range says so.
30
+
31
+ Keeping one `pg` in your dependency tree matters for the same reason. If your own range and the
32
+ one this package resolves cannot meet, npm and pnpm are both free to install two copies, and
33
+ adapter code then reads a client it was not built against.
34
+
18
35
  ## Quick Start
19
36
 
20
37
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbsp/cli",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "CLI tools for db-semantic-planner — REPL, schema generation, DDL provisioning",
5
5
  "author": "Olivier Orabona <oorabona@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -60,14 +60,14 @@
60
60
  "commander": "^15.0.0",
61
61
  "ink": "^7.1.0",
62
62
  "react": "^19.2.7",
63
- "@dbsp/adapter-pgsql": "3.2.0",
63
+ "@dbsp/adapter-pgsql": "3.2.2",
64
64
  "@dbsp/core": "3.2.0",
65
65
  "@dbsp/nql": "1.10.1",
66
66
  "@dbsp/types": "3.2.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "pg": "^8.16.0",
70
- "tsx": "^4.21.0"
69
+ "pg": "^8.21.0",
70
+ "tsx": "^4.9.0"
71
71
  },
72
72
  "peerDependenciesMeta": {
73
73
  "tsx": {
@@ -81,7 +81,7 @@
81
81
  "@types/node": "^26.1.0",
82
82
  "@types/react": "^19.2.17",
83
83
  "tsup": "^8.5.1",
84
- "tsx": "^4.22.5",
84
+ "tsx": "^4.9.0",
85
85
  "typescript": "~6.0.3",
86
86
  "vitest": "^4.1.9"
87
87
  },