@beignet/provider-storage-local 0.0.3 → 0.0.4
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 +23 -0
- package/README.md +6 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +33 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @beignet/provider-storage-local
|
|
2
2
|
|
|
3
|
+
## 0.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8bcb31f: Mark package READMEs with Beignet's experimental alpha status and 0.0.x stability expectations.
|
|
8
|
+
- d137044: Declare `@beignet/core` as a peer dependency with a lockstep version range in
|
|
9
|
+
every integration and provider package instead of a regular `"*"` dependency.
|
|
10
|
+
Installs now always resolve a single shared copy of core, so `instanceof`
|
|
11
|
+
checks such as `isContractError` and upload error identity keep working, and
|
|
12
|
+
mixed Beignet versions fail loudly at install time instead of at runtime.
|
|
13
|
+
|
|
14
|
+
If your package manager does not install peer dependencies automatically, add
|
|
15
|
+
`@beignet/core` to your app alongside these packages. `@beignet/nuqs` now also
|
|
16
|
+
declares `@beignet/react-query` as a peer dependency, and
|
|
17
|
+
`@beignet/provider-storage-s3` now expects you to install
|
|
18
|
+
`@aws-sdk/client-s3` and `@aws-sdk/s3-request-presigner` yourself, matching
|
|
19
|
+
how other providers treat their SDKs.
|
|
20
|
+
|
|
21
|
+
- 1a79090: Emit Node-compatible ESM: all relative imports in published packages now carry explicit .js extensions, fixing ERR_MODULE_NOT_FOUND when running the CLI or importing package dist files under plain Node.
|
|
22
|
+
- 44f1192: Move first-party provider diagnostics to package-owned `beignet.provider`
|
|
23
|
+
manifest metadata and have doctor read installed provider package manifests.
|
|
24
|
+
- 2aa77ca: Add static provider metadata and provider wiring diagnostics for generated apps.
|
|
25
|
+
|
|
3
26
|
## 0.0.3
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @beignet/provider-storage-local
|
|
2
2
|
|
|
3
|
+
> [!CAUTION]
|
|
4
|
+
> Beignet is experimental alpha software. The `0.0.x` package line is for early
|
|
5
|
+
> evaluation, and APIs may change between releases while the framework settles.
|
|
6
|
+
|
|
3
7
|
Local filesystem storage provider for Beignet.
|
|
4
8
|
|
|
5
9
|
The provider installs the app-facing `ctx.ports.storage` port. Use it for
|
|
@@ -9,7 +13,7 @@ filesystem-backed object store is enough.
|
|
|
9
13
|
## Install
|
|
10
14
|
|
|
11
15
|
```bash
|
|
12
|
-
bun add @beignet/provider-storage-local
|
|
16
|
+
bun add @beignet/provider-storage-local @beignet/core
|
|
13
17
|
```
|
|
14
18
|
|
|
15
19
|
## Provider setup
|
|
@@ -21,7 +25,7 @@ import { createServer } from "@beignet/core/server";
|
|
|
21
25
|
const server = await createServer({
|
|
22
26
|
ports: basePorts,
|
|
23
27
|
providers: [localStorageProvider],
|
|
24
|
-
|
|
28
|
+
context: ({ ports }) => ({ ports }),
|
|
25
29
|
routes,
|
|
26
30
|
});
|
|
27
31
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare function createLocalStorageProvider(options?: LocalStorageProvide
|
|
|
76
76
|
ROOT: z.ZodDefault<z.ZodString>;
|
|
77
77
|
}, z.core.$strip>, {
|
|
78
78
|
storage: StoragePort;
|
|
79
|
-
}>;
|
|
79
|
+
}, unknown, void>;
|
|
80
80
|
/**
|
|
81
81
|
* Default env-backed local storage provider.
|
|
82
82
|
*/
|
|
@@ -85,5 +85,5 @@ export declare const localStorageProvider: import("@beignet/core/providers").Ser
|
|
|
85
85
|
ROOT: z.ZodDefault<z.ZodString>;
|
|
86
86
|
}, z.core.$strip>, {
|
|
87
87
|
storage: StoragePort;
|
|
88
|
-
}>;
|
|
88
|
+
}, unknown, void>;
|
|
89
89
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAKV,WAAW,EAEZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,YAAY,EACV,WAAW,EACX,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAI7B,QAAA,MAAM,wBAAwB;;;iBAG5B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,6BAA6B,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AA8UD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,WAAW,CA4Q5E;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,GAAE,2BAAgC;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":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|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local filesystem storage provider for Beignet",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,14 +52,44 @@
|
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=18.0.0"
|
|
54
54
|
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@beignet/core": ">=0.0.3 <1.0.0"
|
|
57
|
+
},
|
|
55
58
|
"dependencies": {
|
|
56
|
-
"zod": "^4.0.0"
|
|
57
|
-
"@beignet/core": "*"
|
|
59
|
+
"zod": "^4.0.0"
|
|
58
60
|
},
|
|
59
61
|
"devDependencies": {
|
|
60
62
|
"@beignet/devtools": "*",
|
|
61
63
|
"@types/bun": "^1.3.13",
|
|
62
64
|
"@types/node": "^20.10.0",
|
|
63
65
|
"typescript": "^5.3.0"
|
|
66
|
+
},
|
|
67
|
+
"beignet": {
|
|
68
|
+
"provider": {
|
|
69
|
+
"displayName": "Local storage provider",
|
|
70
|
+
"ports": [
|
|
71
|
+
"storage"
|
|
72
|
+
],
|
|
73
|
+
"appPorts": [
|
|
74
|
+
{
|
|
75
|
+
"name": "storage",
|
|
76
|
+
"type": "StoragePort"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"env": [
|
|
80
|
+
"STORAGE_ROOT",
|
|
81
|
+
"STORAGE_PUBLIC_BASE_URL"
|
|
82
|
+
],
|
|
83
|
+
"watchers": [
|
|
84
|
+
"storage"
|
|
85
|
+
],
|
|
86
|
+
"registration": {
|
|
87
|
+
"required": true,
|
|
88
|
+
"tokens": [
|
|
89
|
+
"localStorageProvider",
|
|
90
|
+
"createLocalStorageProvider"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
64
94
|
}
|
|
65
95
|
}
|