@procedures/sqlite 0.1.0 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @procedures/sqlite
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a9dc8c8]
8
+ - @procedures/client@0.2.1
9
+
10
+ ## 0.2.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 76d0d64: **Breaking:** an import of a package registers nothing. The `./register` entry of a package registers its procedures, and the procedures of the modules that they need, in the global registry (ARCHITECTURE-PROPOSALS-2026-10, P9).
15
+
16
+ - `import "@procedures/git"` gives the exports and registers nothing. Use `import "@procedures/git/register"`, or give `gitModule` (`@procedures/git/module`) to `createRegistry()`.
17
+ - `import "@procedures/client/register"` registers the control flow (`client.chain` and the others) and `procedure.define`/`get`/`list`/`delete`. `createRegistry()` adds them to each new registry, as before. The new `registerClientProcedures(registry?)` does the same for any registry.
18
+ - Each `register<Name>Procedures(registry?)` function is in the module of its package, takes a registry (the global one by default) and registers the modules that the package requires. `registerBridge` (splay) and `register` (store) are now `registerSplayProcedures` and `registerStoreProcedures`. The old names stay for one version.
19
+ - `sideEffects` names only `./dist/register.js`, so a bundler can drop the rest of a package.
20
+ - The bundles require `clientModule`, so `@procedures/bundle-mcp/register` gives the whole tool surface.
21
+ - `lib new` makes `src/module.ts` and a root without side effects, and `procedure new` adds procedures to the module.
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [0cf4bea]
26
+ - Updated dependencies [44d3e30]
27
+ - Updated dependencies [76d0d64]
28
+ - @procedures/client@0.2.0
29
+
3
30
  ## 0.1.0
4
31
 
5
32
  The first release on npm. The packages of the client monorepo have one version together.
package/README.md CHANGED
@@ -16,7 +16,7 @@ SQLite database operations via client procedures. Execute queries and store stru
16
16
  - **Migration support**: Schema versioning and migration utilities
17
17
  - **Default log database**: Pre-configured logging at `~/logs/cli/cli.db`
18
18
 
19
- The package auto-registers 4 procedures:
19
+ The package has 4 procedures. Its register entry (`import "@procedures/sqlite/register"`) registers them:
20
20
  - **Database**: `db.query`, `db.execute`
21
21
  - **Logs**: `logs.store`, `logs.query`
22
22
 
@@ -126,13 +126,10 @@ sequenceDiagram
126
126
  npm install @procedures/sqlite
127
127
  ```
128
128
 
129
- ### Peer Dependencies
129
+ Since 0.2.0, an import of the package registers nothing. To register its procedures in the global registry:
130
130
 
131
- ```json
132
- {
133
- "@procedures/client": "github:mark1russell7/client#main",
134
- "@mark1russell7/docker-sqlite": "github:mark1russell7/docker-sqlite#main"
135
- }
131
+ ```ts
132
+ import "@procedures/sqlite/register";
136
133
  ```
137
134
 
138
135
  ## Configuration
@@ -434,7 +431,7 @@ const { logs } = await client.exec(
434
431
 
435
432
  ```typescript
436
433
  import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
437
- import "@procedures/sqlite"; // registers its procedures
434
+ import "@procedures/sqlite/register"; // registers its procedures
438
435
 
439
436
  const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
440
437
 
@@ -653,8 +650,8 @@ result.rows.forEach(user => {
653
650
 
654
651
  ```typescript
655
652
  // In bundle-data/src/register.ts
656
- import "@procedures/sqlite"; // registers its procedures
657
- import "@procedures/mongo"; // registers its procedures
653
+ import "@procedures/sqlite/register"; // registers its procedures
654
+ import "@procedures/mongo/register"; // registers its procedures
658
655
  import "@procedures/s3/register.js";
659
656
  ```
660
657