@btravstack/storage 0.13.0 → 0.14.0
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/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/s3.d.cts +5 -6
- package/dist/s3.d.mts +5 -6
- package/package.json +17 -17
package/dist/index.d.cts
CHANGED
|
@@ -12,13 +12,13 @@ import { HealthChecks } from "@btravstack/core";
|
|
|
12
12
|
* ponytail: no size limit, so a process storing unbounded objects grows
|
|
13
13
|
* unbounded. The upgrade path is the S3 adapter.
|
|
14
14
|
*/
|
|
15
|
-
declare const memoryStorageBackend: () => StorageService;
|
|
15
|
+
export declare const memoryStorageBackend: () => StorageService;
|
|
16
16
|
/** The adapter as a provider, which is the shape `@btravstack/testing`'s `overridden` takes. */
|
|
17
|
-
declare const memoryStorageProvider: () => Provider<StorageBackend, never, never> & {
|
|
17
|
+
export declare const memoryStorageProvider: () => Provider<StorageBackend, never, never> & {
|
|
18
18
|
readonly port: typeof StorageBackend;
|
|
19
19
|
};
|
|
20
20
|
/** The adapter as a module, which is the shape `storage({ adapter })` takes. */
|
|
21
|
-
declare const memoryStorage: () => Module<StorageBackend, never, never>;
|
|
21
|
+
export declare const memoryStorage: () => Module<StorageBackend, never, never>;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/module.d.ts
|
|
24
24
|
type StorageOptions<E, N> = {
|
|
@@ -42,6 +42,6 @@ type StorageOptions<E, N> = {
|
|
|
42
42
|
* application depends on must not be the one an adapter provides, which is also
|
|
43
43
|
* why instrumentation is a flag on the composition rather than a wrapper.
|
|
44
44
|
*/
|
|
45
|
-
declare const storage: <E, N>({ adapter }: StorageOptions<E, N>) => Module<Storage | HealthChecks, E, N>;
|
|
45
|
+
export declare const storage: <E, N>({ adapter }: StorageOptions<E, N>) => Module<Storage | HealthChecks, E, N>;
|
|
46
46
|
//#endregion
|
|
47
|
-
export { ObjectNotFound, PresignNotSupported, Storage, StorageBackend, type StorageOptions, type StorageService, StorageUnavailable, type StoredObject
|
|
47
|
+
export { ObjectNotFound, PresignNotSupported, Storage, StorageBackend, type StorageOptions, type StorageService, StorageUnavailable, type StoredObject };
|
package/dist/index.d.mts
CHANGED
|
@@ -12,13 +12,13 @@ import { HealthChecks } from "@btravstack/core";
|
|
|
12
12
|
* ponytail: no size limit, so a process storing unbounded objects grows
|
|
13
13
|
* unbounded. The upgrade path is the S3 adapter.
|
|
14
14
|
*/
|
|
15
|
-
declare const memoryStorageBackend: () => StorageService;
|
|
15
|
+
export declare const memoryStorageBackend: () => StorageService;
|
|
16
16
|
/** The adapter as a provider, which is the shape `@btravstack/testing`'s `overridden` takes. */
|
|
17
|
-
declare const memoryStorageProvider: () => Provider<StorageBackend, never, never> & {
|
|
17
|
+
export declare const memoryStorageProvider: () => Provider<StorageBackend, never, never> & {
|
|
18
18
|
readonly port: typeof StorageBackend;
|
|
19
19
|
};
|
|
20
20
|
/** The adapter as a module, which is the shape `storage({ adapter })` takes. */
|
|
21
|
-
declare const memoryStorage: () => Module<StorageBackend, never, never>;
|
|
21
|
+
export declare const memoryStorage: () => Module<StorageBackend, never, never>;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/module.d.ts
|
|
24
24
|
type StorageOptions<E, N> = {
|
|
@@ -42,6 +42,6 @@ type StorageOptions<E, N> = {
|
|
|
42
42
|
* application depends on must not be the one an adapter provides, which is also
|
|
43
43
|
* why instrumentation is a flag on the composition rather than a wrapper.
|
|
44
44
|
*/
|
|
45
|
-
declare const storage: <E, N>({ adapter }: StorageOptions<E, N>) => Module<Storage | HealthChecks, E, N>;
|
|
45
|
+
export declare const storage: <E, N>({ adapter }: StorageOptions<E, N>) => Module<Storage | HealthChecks, E, N>;
|
|
46
46
|
//#endregion
|
|
47
|
-
export { ObjectNotFound, PresignNotSupported, Storage, StorageBackend, type StorageOptions, type StorageService, StorageUnavailable, type StoredObject
|
|
47
|
+
export { ObjectNotFound, PresignNotSupported, Storage, StorageBackend, type StorageOptions, type StorageService, StorageUnavailable, type StoredObject };
|
package/dist/s3.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import { ConfigInvalid, Env } from "@btravstack/config";
|
|
|
5
5
|
//#region src/s3.d.ts
|
|
6
6
|
declare const StorageConfig_base: import("@btravstack/di").PortClass<"StorageConfig">;
|
|
7
7
|
/** What the graph bound from the environment for the S3 adapter. */
|
|
8
|
-
declare class StorageConfig extends StorageConfig_base<{
|
|
8
|
+
export declare class StorageConfig extends StorageConfig_base<{
|
|
9
9
|
readonly endpoint: string;
|
|
10
10
|
readonly region: string;
|
|
11
11
|
readonly bucket: string;
|
|
@@ -21,7 +21,7 @@ declare class StorageConfig extends StorageConfig_base<{
|
|
|
21
21
|
* on — every self-hosted store requires it and AWS accepts it, so it is a value
|
|
22
22
|
* that never changes.
|
|
23
23
|
*/
|
|
24
|
-
declare const s3Schema: import("@btravstack/config").ConfigSchema<Readonly<Record<string, string | undefined>>, {
|
|
24
|
+
export declare const s3Schema: import("@btravstack/config").ConfigSchema<Readonly<Record<string, string | undefined>>, {
|
|
25
25
|
readonly endpoint: string;
|
|
26
26
|
readonly region: string;
|
|
27
27
|
readonly bucket: string;
|
|
@@ -33,13 +33,12 @@ declare const s3Schema: import("@btravstack/config").ConfigSchema<Readonly<Recor
|
|
|
33
33
|
* stored answers `Ok`, which is S3's own idempotent behaviour rather than a
|
|
34
34
|
* fiction layered over it.
|
|
35
35
|
*/
|
|
36
|
-
declare const s3StorageBackend: (client: S3Client, bucket: string) => StorageService;
|
|
36
|
+
export declare const s3StorageBackend: (client: S3Client, bucket: string) => StorageService;
|
|
37
37
|
/**
|
|
38
38
|
* The S3 adapter: one client, built with the scope and destroyed with it, and
|
|
39
39
|
* `StorageBackend` over it. Its two AWS SDK peers are **optional** and reached
|
|
40
40
|
* only through this subpath, so an application composing the memory adapter
|
|
41
41
|
* installs neither.
|
|
42
42
|
*/
|
|
43
|
-
declare const s3Storage: () => Module<StorageBackend, ConfigInvalid, Env | Scope>;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { StorageConfig, s3Schema, s3Storage, s3StorageBackend };
|
|
43
|
+
export declare const s3Storage: () => Module<StorageBackend, ConfigInvalid, Env | Scope>;
|
|
44
|
+
//#endregion
|
package/dist/s3.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { ConfigInvalid, Env } from "@btravstack/config";
|
|
|
5
5
|
//#region src/s3.d.ts
|
|
6
6
|
declare const StorageConfig_base: import("@btravstack/di").PortClass<"StorageConfig">;
|
|
7
7
|
/** What the graph bound from the environment for the S3 adapter. */
|
|
8
|
-
declare class StorageConfig extends StorageConfig_base<{
|
|
8
|
+
export declare class StorageConfig extends StorageConfig_base<{
|
|
9
9
|
readonly endpoint: string;
|
|
10
10
|
readonly region: string;
|
|
11
11
|
readonly bucket: string;
|
|
@@ -21,7 +21,7 @@ declare class StorageConfig extends StorageConfig_base<{
|
|
|
21
21
|
* on — every self-hosted store requires it and AWS accepts it, so it is a value
|
|
22
22
|
* that never changes.
|
|
23
23
|
*/
|
|
24
|
-
declare const s3Schema: import("@btravstack/config").ConfigSchema<Readonly<Record<string, string | undefined>>, {
|
|
24
|
+
export declare const s3Schema: import("@btravstack/config").ConfigSchema<Readonly<Record<string, string | undefined>>, {
|
|
25
25
|
readonly endpoint: string;
|
|
26
26
|
readonly region: string;
|
|
27
27
|
readonly bucket: string;
|
|
@@ -33,13 +33,12 @@ declare const s3Schema: import("@btravstack/config").ConfigSchema<Readonly<Recor
|
|
|
33
33
|
* stored answers `Ok`, which is S3's own idempotent behaviour rather than a
|
|
34
34
|
* fiction layered over it.
|
|
35
35
|
*/
|
|
36
|
-
declare const s3StorageBackend: (client: S3Client, bucket: string) => StorageService;
|
|
36
|
+
export declare const s3StorageBackend: (client: S3Client, bucket: string) => StorageService;
|
|
37
37
|
/**
|
|
38
38
|
* The S3 adapter: one client, built with the scope and destroyed with it, and
|
|
39
39
|
* `StorageBackend` over it. Its two AWS SDK peers are **optional** and reached
|
|
40
40
|
* only through this subpath, so an application composing the memory adapter
|
|
41
41
|
* installs neither.
|
|
42
42
|
*/
|
|
43
|
-
declare const s3Storage: () => Module<StorageBackend, ConfigInvalid, Env | Scope>;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { StorageConfig, s3Schema, s3Storage, s3StorageBackend };
|
|
43
|
+
export declare const s3Storage: () => Module<StorageBackend, ConfigInvalid, Env | Scope>;
|
|
44
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btravstack/storage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "A Storage port for @btravstack/core: an in-memory adapter, an S3-compatible adapter with presigned reads, and a composition that spans, counts and logs every operation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dependency-injection",
|
|
@@ -53,33 +53,33 @@
|
|
|
53
53
|
"./package.json": "./package.json"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@aws-sdk/client-s3": "3.
|
|
57
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
56
|
+
"@aws-sdk/client-s3": "3.1127.0",
|
|
57
|
+
"@aws-sdk/s3-request-presigner": "3.1127.0",
|
|
58
58
|
"@btravstack/tsconfig": "0.4.0",
|
|
59
59
|
"@opentelemetry/api": "1.9.1",
|
|
60
|
-
"@opentelemetry/sdk-metrics": "2.
|
|
61
|
-
"@opentelemetry/sdk-node": "0.
|
|
62
|
-
"@opentelemetry/sdk-trace": "2.
|
|
63
|
-
"@types/node": "26.4.
|
|
64
|
-
"@unthrown/vitest": "5.
|
|
60
|
+
"@opentelemetry/sdk-metrics": "2.11.0",
|
|
61
|
+
"@opentelemetry/sdk-node": "0.222.0",
|
|
62
|
+
"@opentelemetry/sdk-trace": "2.11.0",
|
|
63
|
+
"@types/node": "26.4.1",
|
|
64
|
+
"@unthrown/vitest": "5.8.0",
|
|
65
65
|
"@vitest/coverage-v8": "4.1.11",
|
|
66
|
-
"tsdown": "0.
|
|
66
|
+
"tsdown": "0.23.0",
|
|
67
67
|
"typescript": "7.0.2",
|
|
68
|
-
"unthrown": "5.
|
|
68
|
+
"unthrown": "5.8.0",
|
|
69
69
|
"vitest": "4.1.11",
|
|
70
|
-
"@btravstack/config": "0.
|
|
71
|
-
"@btravstack/core": "0.
|
|
72
|
-
"@btravstack/di": "0.
|
|
70
|
+
"@btravstack/config": "0.14.0",
|
|
71
|
+
"@btravstack/core": "0.14.0",
|
|
72
|
+
"@btravstack/di": "0.14.0",
|
|
73
73
|
"@btravstack/internal-test-infra": "0.0.0",
|
|
74
|
-
"@btravstack/observability": "0.
|
|
74
|
+
"@btravstack/observability": "0.14.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@aws-sdk/client-s3": "^3.1000.0",
|
|
78
78
|
"@aws-sdk/s3-request-presigner": "^3.1000.0",
|
|
79
79
|
"unthrown": "^5.0.0",
|
|
80
|
-
"@btravstack/config": "^0.
|
|
81
|
-
"@btravstack/core": "^0.
|
|
82
|
-
"@btravstack/di": "^0.
|
|
80
|
+
"@btravstack/config": "^0.14.0",
|
|
81
|
+
"@btravstack/core": "^0.14.0",
|
|
82
|
+
"@btravstack/di": "^0.14.0"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
85
85
|
"@aws-sdk/client-s3": {
|