@zola_do/seaweed 0.2.14 → 0.2.16

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 +12 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -15,6 +15,18 @@ AWS S3-compatible object storage for NestJS (SeaweedFS, MinIO, or AWS S3).
15
15
  - **Presigned URLs** — Secure upload/download links
16
16
  - **Abstract S3 Class** — Implement custom providers
17
17
  - **TypeScript Types** — Full type safety
18
+ - **Storage contract types** — `ZolaObjectStorage` and `ZolaStoredFileRef` (mirrored from `@zola_do/minio`)
19
+
20
+ ## Storage contract types
21
+
22
+ ```typescript
23
+ import {
24
+ ZolaObjectStorage,
25
+ ZolaStoredFileRef,
26
+ } from '@zola_do/seaweed';
27
+ ```
28
+
29
+ Same normalized types as `@zola_do/minio` — choose one backend package and program against `ZolaObjectStorage` so you can swap MinIO ↔ Seaweed/S3 without domain-layer changes.
18
30
 
19
31
  ## Installation
20
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zola_do/seaweed",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "AWS S3-compatible storage for NestJS",
5
5
  "author": "zolaDO",
6
6
  "license": "ISC",
@@ -47,8 +47,8 @@
47
47
  "scripts": {
48
48
  "clean": "rimraf dist",
49
49
  "typecheck": "tsc --noEmit",
50
- "build": "npm run clean && tsc",
51
- "prepublishOnly": "npm run build"
50
+ "build": "rimraf dist && tsc",
51
+ "prepublishOnly": "rimraf dist && tsc"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@nestjs/common": "^10.0.0 || ^11.0.0",