@procedures/s3 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 +27 -0
- package/README.md +6 -10
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/module.d.ts +7 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +23 -1
- package/dist/module.js.map +1 -1
- package/dist/register.d.ts +3 -4
- package/dist/register.d.ts.map +1 -1
- package/dist/register.js +4 -9
- package/dist/register.js.map +1 -1
- package/package.json +6 -3
- package/src/index.ts +1 -2
- package/src/module.ts +24 -1
- package/src/register.ts +4 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @procedures/s3
|
|
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
|
@@ -17,7 +17,7 @@ AWS S3 operations as RPC procedures. Upload, download, list, delete, and perform
|
|
|
17
17
|
- **Zod validation**: Runtime type safety on all inputs
|
|
18
18
|
- **MinIO/LocalStack support**: Custom S3 endpoints for testing
|
|
19
19
|
|
|
20
|
-
The package
|
|
20
|
+
The package has 9 procedures. Its register entry (`import "@procedures/s3/register"`) registers them:
|
|
21
21
|
- **Standard**: `s3.upload`, `s3.download`, `s3.list`, `s3.listAll`, `s3.delete`
|
|
22
22
|
- **Multipart**: `s3.multipart.init`, `s3.multipart.upload`, `s3.multipart.complete`, `s3.multipart.abort`
|
|
23
23
|
|
|
@@ -100,14 +100,10 @@ graph LR
|
|
|
100
100
|
npm install @procedures/s3
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
Since 0.2.0, an import of the package registers nothing. To register its procedures in the global registry:
|
|
104
104
|
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
"@procedures/client": "github:mark1russell7/client#main",
|
|
108
|
-
"@aws-sdk/client-s3": "^3.705.0",
|
|
109
|
-
"zod": "^3.24.0"
|
|
110
|
-
}
|
|
105
|
+
```ts
|
|
106
|
+
import "@procedures/s3/register";
|
|
111
107
|
```
|
|
112
108
|
|
|
113
109
|
## Configuration
|
|
@@ -802,8 +798,8 @@ await client.exec(
|
|
|
802
798
|
```typescript
|
|
803
799
|
// In bundle-data/src/register.ts
|
|
804
800
|
import "@procedures/s3/register.js";
|
|
805
|
-
import "@procedures/mongo"; // registers its procedures
|
|
806
|
-
import "@procedures/fs"; // registers its procedures
|
|
801
|
+
import "@procedures/mongo/register"; // registers its procedures
|
|
802
|
+
import "@procedures/fs/register"; // registers its procedures
|
|
807
803
|
```
|
|
808
804
|
|
|
809
805
|
## Dependencies
|