@vryzel/file-next 0.4.3 → 0.4.5

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 +5 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  S3/R2 filesystem for Next.js. Bytes in your bucket. The folder tree in **your** SQLite or Postgres. Tenant comes from the server, never from the client.
4
4
 
5
+ [Live demo](https://file-next-test-production.up.railway.app)
6
+
5
7
  ```bash
6
8
  pnpm add @vryzel/file-next
7
9
  # optional, depending on the store:
@@ -43,7 +45,7 @@ export const actions = createServerActions({
43
45
  fs,
44
46
  writeThrough: createWriteThrough(fs, store),
45
47
  getAuth: () => ({
46
- tenantId: asTenantId("acme"),
48
+ tenantId: asTenantId("demo"),
47
49
  userId: asUserId("user-1"),
48
50
  }),
49
51
  });
@@ -138,8 +140,8 @@ Missing config throws `FileSystemError` (not retryable).
138
140
  ### 6. Multi-tenant keys
139
141
 
140
142
  ```ts
141
- const scoped = fs.forTenant("acme");
142
- // object keys are prefixed t/acme/{nodeId} unless prefixTenantKeys: false
143
+ const scoped = fs.forTenant("demo");
144
+ // object keys are prefixed t/demo/{nodeId} unless prefixTenantKeys: false
143
145
  ```
144
146
 
145
147
  Every store method also takes `tenantId`. Do not take tenant from the request body.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vryzel/file-next",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "File-system abstraction over AWS S3 / Cloudflare R2 for Next.js, with a secondary metadata index and shadcn/ui components.",
5
5
  "type": "module",
6
6
  "license": "MIT",