Skip to content

Commit 71f1a1a

Browse files
docs: sync from coderbuzz/codex@1d1cd61
1 parent 69039a8 commit 71f1a1a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎AI_KNOWLEDGE.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- docs: sync from coderbuzz/codex@a1ca665 -->
1+
<!-- docs: sync from coderbuzz/codex@1d1cd61 -->
22

33
# @coderbuzz/sql: AI Expert Knowledge Reference
44

@@ -1761,6 +1761,8 @@ Peer deps (all optional): pg, mysql2, mssql, better-sqlite3
17611761
Runtime dep: @coderbuzz/veta (internal, schema coercion)
17621762
```
17631763

1764+
The peers are optional through `peerDependenciesMeta`. Published versions up to 0.9.2 lacked that field (the build's `post-build.ts` dropped it), so npm 7+ installed all four drivers with `npm install @coderbuzz/sql` (99 packages, a native `better-sqlite3` build included). From the next patch release only `@coderbuzz/sql` and `@coderbuzz/veta` are installed; add the driver you use yourself (`npm install pg`), and it is still checked against the range (`pg@7` is refused). `bun run validate` fails if `dist/package.json` loses the field again.
1765+
17641766
**Export map summary:**
17651767

17661768
| Import path | Contents |

‎README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- docs: sync from coderbuzz/codex@a1ca665 -->
1+
<!-- docs: sync from coderbuzz/codex@1d1cd61 -->
22

33
# @coderbuzz/sql
44

@@ -104,6 +104,8 @@ bun add mssql # SQL Server
104104
bun add better-sqlite3 # SQLite (Node.js)
105105
```
106106

107+
The drivers are optional peer dependencies: install only the one you use. (Up to 0.9.2 the published package marked them required, so npm 7+ installed all four.)
108+
107109
SQLite on Bun uses `bun:sqlite` (built-in, no driver needed).
108110
SQLite on Deno uses `@db/sqlite`.
109111
PostgreSQL and MySQL on Bun can skip `pg` and `mysql2` entirely: import

0 commit comments

Comments
 (0)