@livestore/utils 0.4.0 → 0.5.0-dev.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/.tsbuildinfo +1 -1
- package/dist/NoopTracer.d.ts +7 -8
- package/dist/NoopTracer.d.ts.map +1 -1
- package/dist/NoopTracer.js +3 -18
- package/dist/NoopTracer.js.map +1 -1
- package/dist/NoopTracer.test.d.ts +2 -0
- package/dist/NoopTracer.test.d.ts.map +1 -0
- package/dist/NoopTracer.test.js +17 -0
- package/dist/NoopTracer.test.js.map +1 -0
- package/dist/browser/Opfs/Opfs.d.ts +179 -29
- package/dist/browser/Opfs/Opfs.d.ts.map +1 -1
- package/dist/browser/Opfs/Opfs.js +132 -307
- package/dist/browser/Opfs/Opfs.js.map +1 -1
- package/dist/browser/Opfs/debug-utils.d.ts.map +1 -1
- package/dist/browser/Opfs/debug-utils.js +5 -4
- package/dist/browser/Opfs/debug-utils.js.map +1 -1
- package/dist/browser/Opfs/utils.d.ts +8 -8
- package/dist/browser/Opfs/utils.d.ts.map +1 -1
- package/dist/browser/Opfs/utils.js +35 -26
- package/dist/browser/Opfs/utils.js.map +1 -1
- package/dist/browser/QuotaExceededError.d.ts +10 -9
- package/dist/browser/QuotaExceededError.d.ts.map +1 -1
- package/dist/browser/WebChannelBrowser.d.ts.map +1 -1
- package/dist/browser/WebChannelBrowser.js +21 -10
- package/dist/browser/WebChannelBrowser.js.map +1 -1
- package/dist/browser/WebError.d.ts +54 -86
- package/dist/browser/WebError.d.ts.map +1 -1
- package/dist/browser/WebError.js +91 -84
- package/dist/browser/WebError.js.map +1 -1
- package/dist/browser/WebError.test.js +6 -6
- package/dist/browser/WebError.test.js.map +1 -1
- package/dist/browser/WebLock.d.ts.map +1 -1
- package/dist/browser/WebLock.js +13 -13
- package/dist/browser/WebLock.js.map +1 -1
- package/dist/effect/Debug.d.ts +4 -7
- package/dist/effect/Debug.d.ts.map +1 -1
- package/dist/effect/Debug.js +32 -36
- package/dist/effect/Debug.js.map +1 -1
- package/dist/effect/Effect.d.ts +31 -22
- package/dist/effect/Effect.d.ts.map +1 -1
- package/dist/effect/Effect.js +51 -47
- package/dist/effect/Effect.js.map +1 -1
- package/dist/effect/Effect.test.d.ts +2 -0
- package/dist/effect/Effect.test.d.ts.map +1 -0
- package/dist/effect/Effect.test.js +72 -0
- package/dist/effect/Effect.test.js.map +1 -0
- package/dist/effect/Error.d.ts +4 -6
- package/dist/effect/Error.d.ts.map +1 -1
- package/dist/effect/Logger.d.ts +0 -6
- package/dist/effect/Logger.d.ts.map +1 -1
- package/dist/effect/Logger.js +0 -32
- package/dist/effect/Logger.js.map +1 -1
- package/dist/effect/OtelTracer.d.ts +1 -1
- package/dist/effect/OtelTracer.d.ts.map +1 -1
- package/dist/effect/OtelTracer.js +2 -3
- package/dist/effect/OtelTracer.js.map +1 -1
- package/dist/effect/RpcClient.d.ts +7 -7
- package/dist/effect/RpcClient.d.ts.map +1 -1
- package/dist/effect/RpcClient.js +72 -52
- package/dist/effect/RpcClient.js.map +1 -1
- package/dist/effect/Schedule.d.ts +1 -1
- package/dist/effect/Schedule.d.ts.map +1 -1
- package/dist/effect/Schedule.js +2 -2
- package/dist/effect/Schedule.js.map +1 -1
- package/dist/effect/Schema/debug-diff.d.ts +1 -1
- package/dist/effect/Schema/debug-diff.d.ts.map +1 -1
- package/dist/effect/Schema/debug-diff.js +5 -7
- package/dist/effect/Schema/debug-diff.js.map +1 -1
- package/dist/effect/Schema/debug-diff.test.js +7 -4
- package/dist/effect/Schema/debug-diff.test.js.map +1 -1
- package/dist/effect/Schema/index.d.ts +28 -20
- package/dist/effect/Schema/index.d.ts.map +1 -1
- package/dist/effect/Schema/index.js +55 -28
- package/dist/effect/Schema/index.js.map +1 -1
- package/dist/effect/Stream.d.ts +13 -5
- package/dist/effect/Stream.d.ts.map +1 -1
- package/dist/effect/Stream.js +19 -12
- package/dist/effect/Stream.js.map +1 -1
- package/dist/effect/Stream.test.js +9 -9
- package/dist/effect/Stream.test.js.map +1 -1
- package/dist/effect/Subscribable.d.ts +9 -3
- package/dist/effect/Subscribable.d.ts.map +1 -1
- package/dist/effect/Subscribable.js +20 -35
- package/dist/effect/Subscribable.js.map +1 -1
- package/dist/effect/SubscriptionRef.d.ts +5 -6
- package/dist/effect/SubscriptionRef.d.ts.map +1 -1
- package/dist/effect/SubscriptionRef.js +2 -3
- package/dist/effect/SubscriptionRef.js.map +1 -1
- package/dist/effect/TaskTracing.d.ts +1 -1
- package/dist/effect/TaskTracing.d.ts.map +1 -1
- package/dist/effect/TaskTracing.js +12 -16
- package/dist/effect/TaskTracing.js.map +1 -1
- package/dist/effect/WebChannel/WebChannel.d.ts +7 -7
- package/dist/effect/WebChannel/WebChannel.d.ts.map +1 -1
- package/dist/effect/WebChannel/WebChannel.js +64 -43
- package/dist/effect/WebChannel/WebChannel.js.map +1 -1
- package/dist/effect/WebChannel/WebChannel.test.js +15 -15
- package/dist/effect/WebChannel/WebChannel.test.js.map +1 -1
- package/dist/effect/WebChannel/broadcastChannelWithAck.d.ts.map +1 -1
- package/dist/effect/WebChannel/broadcastChannelWithAck.js +16 -9
- package/dist/effect/WebChannel/broadcastChannelWithAck.js.map +1 -1
- package/dist/effect/WebChannel/common.d.ts +16 -17
- package/dist/effect/WebChannel/common.d.ts.map +1 -1
- package/dist/effect/WebChannel/common.js +6 -6
- package/dist/effect/WebChannel/common.js.map +1 -1
- package/dist/effect/WebSocket.d.ts +4 -6
- package/dist/effect/WebSocket.d.ts.map +1 -1
- package/dist/effect/WebSocket.js +4 -4
- package/dist/effect/WebSocket.js.map +1 -1
- package/dist/effect/WebSocket.test.js +2 -2
- package/dist/effect/WebSocket.test.js.map +1 -1
- package/dist/effect/mod.browser-build.test.d.ts +2 -0
- package/dist/effect/mod.browser-build.test.d.ts.map +1 -0
- package/dist/effect/mod.browser-build.test.js +18 -0
- package/dist/effect/mod.browser-build.test.js.map +1 -0
- package/dist/effect/mod.d.ts +13 -15
- package/dist/effect/mod.d.ts.map +1 -1
- package/dist/effect/mod.js +13 -18
- package/dist/effect/mod.js.map +1 -1
- package/dist/effect/spanEvent.d.ts.map +1 -1
- package/dist/effect/spanEvent.js +2 -2
- package/dist/effect/spanEvent.js.map +1 -1
- package/dist/effect/spanEvent.test.js +10 -13
- package/dist/effect/spanEvent.test.js.map +1 -1
- package/dist/fast-deep-equal.d.ts.map +1 -1
- package/dist/fast-deep-equal.js +1 -2
- package/dist/fast-deep-equal.js.map +1 -1
- package/dist/misc.js +2 -2
- package/dist/misc.js.map +1 -1
- package/dist/mod.d.ts +0 -35
- package/dist/mod.d.ts.map +1 -1
- package/dist/mod.js +0 -8
- package/dist/mod.js.map +1 -1
- package/dist/node/mod.d.ts +17 -11
- package/dist/node/mod.d.ts.map +1 -1
- package/dist/node/mod.js +23 -16
- package/dist/node/mod.js.map +1 -1
- package/dist/object/index.d.ts +0 -9
- package/dist/object/index.d.ts.map +1 -1
- package/dist/object/index.js +0 -9
- package/dist/object/index.js.map +1 -1
- package/dist/string.d.ts +0 -2
- package/dist/string.d.ts.map +1 -1
- package/dist/string.js +0 -2
- package/dist/string.js.map +1 -1
- package/package.json +18 -36
- package/src/NoopTracer.test.ts +20 -0
- package/src/NoopTracer.ts +18 -41
- package/src/browser/Opfs/Opfs.ts +304 -277
- package/src/browser/Opfs/debug-utils.ts +7 -6
- package/src/browser/Opfs/utils.ts +36 -26
- package/src/browser/QuotaExceededError.ts +13 -10
- package/src/browser/WebChannelBrowser.ts +25 -11
- package/src/browser/WebError.test.ts +6 -6
- package/src/browser/WebError.ts +107 -133
- package/src/browser/WebLock.ts +13 -14
- package/src/effect/Debug.ts +66 -59
- package/src/effect/Effect.test.ts +117 -0
- package/src/effect/Effect.ts +84 -71
- package/src/effect/Logger.ts +0 -48
- package/src/effect/OtelTracer.ts +2 -3
- package/src/effect/RpcClient.ts +80 -61
- package/src/effect/Schedule.ts +4 -5
- package/src/effect/Schema/debug-diff.test.ts +6 -6
- package/src/effect/Schema/debug-diff.ts +6 -8
- package/src/effect/Schema/index.ts +122 -61
- package/src/effect/Stream.test.ts +9 -9
- package/src/effect/Stream.ts +23 -16
- package/src/effect/Subscribable.ts +31 -42
- package/src/effect/SubscriptionRef.ts +8 -12
- package/src/effect/TaskTracing.ts +13 -16
- package/src/effect/WebChannel/WebChannel.test.ts +23 -23
- package/src/effect/WebChannel/WebChannel.ts +87 -55
- package/src/effect/WebChannel/broadcastChannelWithAck.ts +21 -11
- package/src/effect/WebChannel/common.ts +14 -15
- package/src/effect/WebSocket.test.ts +2 -2
- package/src/effect/WebSocket.ts +9 -6
- package/src/effect/mod.browser-build.test.ts +19 -0
- package/src/effect/mod.ts +35 -69
- package/src/effect/spanEvent.test.ts +10 -13
- package/src/effect/spanEvent.ts +5 -3
- package/src/fast-deep-equal.ts +1 -2
- package/src/misc.ts +2 -2
- package/src/mod.ts +0 -36
- package/src/node/mod.ts +26 -20
- package/src/object/index.ts +0 -24
- package/src/string.ts +0 -3
- package/dist/effect/BucketQueue.d.ts +0 -20
- package/dist/effect/BucketQueue.d.ts.map +0 -1
- package/dist/effect/BucketQueue.js +0 -34
- package/dist/effect/BucketQueue.js.map +0 -1
- package/dist/effect/Scheduler.d.ts +0 -4
- package/dist/effect/Scheduler.d.ts.map +0 -1
- package/dist/effect/Scheduler.js +0 -9
- package/dist/effect/Scheduler.js.map +0 -1
- package/dist/effect/ServiceContext.d.ts +0 -37
- package/dist/effect/ServiceContext.d.ts.map +0 -1
- package/dist/effect/ServiceContext.js +0 -55
- package/dist/effect/ServiceContext.js.map +0 -1
- package/dist/guards.d.ts +0 -20
- package/dist/guards.d.ts.map +0 -1
- package/dist/guards.js +0 -20
- package/dist/guards.js.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessRunner.d.ts +0 -4
- package/dist/node/ChildProcessRunner/ChildProcessRunner.d.ts.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessRunner.js +0 -128
- package/dist/node/ChildProcessRunner/ChildProcessRunner.js.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/ChildProcessRunner.test.d.ts +0 -10
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/ChildProcessRunner.test.d.ts.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/ChildProcessRunner.test.js +0 -217
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/ChildProcessRunner.test.js.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/schema.d.ts +0 -84
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/schema.d.ts.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/schema.js +0 -68
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/schema.js.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/serializedWorker.d.ts +0 -2
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/serializedWorker.d.ts.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/serializedWorker.js +0 -52
- package/dist/node/ChildProcessRunner/ChildProcessRunnerTest/serializedWorker.js.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessWorker.d.ts +0 -23
- package/dist/node/ChildProcessRunner/ChildProcessWorker.d.ts.map +0 -1
- package/dist/node/ChildProcessRunner/ChildProcessWorker.js +0 -138
- package/dist/node/ChildProcessRunner/ChildProcessWorker.js.map +0 -1
- package/dist/object/omit.d.ts +0 -3
- package/dist/object/omit.d.ts.map +0 -1
- package/dist/object/omit.js +0 -14
- package/dist/object/omit.js.map +0 -1
- package/dist/object/pick.d.ts +0 -14
- package/dist/object/pick.d.ts.map +0 -1
- package/dist/object/pick.js +0 -17
- package/dist/object/pick.js.map +0 -1
- package/dist/time.d.ts +0 -12
- package/dist/time.d.ts.map +0 -1
- package/dist/time.js +0 -22
- package/dist/time.js.map +0 -1
- package/src/effect/BucketQueue.ts +0 -49
- package/src/effect/Scheduler.ts +0 -13
- package/src/effect/ServiceContext.ts +0 -108
- package/src/guards.ts +0 -23
- package/src/node/ChildProcessRunner/ChildProcessRunner.ts +0 -148
- package/src/node/ChildProcessRunner/ChildProcessRunnerTest/ChildProcessRunner.test.ts +0 -311
- package/src/node/ChildProcessRunner/ChildProcessRunnerTest/schema.ts +0 -78
- package/src/node/ChildProcessRunner/ChildProcessRunnerTest/serializedWorker.ts +0 -65
- package/src/node/ChildProcessRunner/ChildProcessWorker.ts +0 -169
- package/src/object/omit.ts +0 -17
- package/src/object/pick.ts +0 -27
- package/src/time.ts +0 -25
package/dist/NoopTracer.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const makeNoopTracer: () => otel.Tracer;
|
|
1
|
+
import { type Context, type Span, type SpanOptions, type Tracer } from '@opentelemetry/api';
|
|
2
|
+
export declare const makeNoopSpan: () => Span;
|
|
3
|
+
export declare const makeNoopTracer: () => Tracer;
|
|
5
4
|
export declare class NoopTracer {
|
|
6
|
-
startSpan: () =>
|
|
7
|
-
startActiveSpan<F extends (span:
|
|
8
|
-
startActiveSpan<F extends (span:
|
|
9
|
-
startActiveSpan<F extends (span:
|
|
5
|
+
startSpan: () => Span;
|
|
6
|
+
startActiveSpan<F extends (span: Span) => ReturnType<F>>(name: string, fn: F): ReturnType<F>;
|
|
7
|
+
startActiveSpan<F extends (span: Span) => ReturnType<F>>(name: string, opts: SpanOptions, fn: F): ReturnType<F>;
|
|
8
|
+
startActiveSpan<F extends (span: Span) => ReturnType<F>>(name: string, opts: SpanOptions, ctx: Context, fn: F): ReturnType<F>;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=NoopTracer.d.ts.map
|
package/dist/NoopTracer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoopTracer.d.ts","sourceRoot":"","sources":["../src/NoopTracer.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NoopTracer.d.ts","sourceRoot":"","sources":["../src/NoopTracer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEjH,eAAO,MAAM,YAAY,QAcO,IAC/B,CAAA;AAED,eAAO,MAAM,cAAc,QAEa,MACvC,CAAA;AAED,qBAAa,UAAU;IACrB,SAAS,aAAuB;IAEhC,eAAe,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IAC5F,eAAe,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IAC/G,eAAe,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EACrD,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,OAAO,EACZ,EAAE,EAAE,CAAC,GACJ,UAAU,CAAC,CAAC,CAAC;CAgCjB"}
|
package/dist/NoopTracer.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { cuid } from '@livestore/utils/cuid';
|
|
1
|
+
import { INVALID_SPAN_CONTEXT } from '@opentelemetry/api';
|
|
3
2
|
export const makeNoopSpan = () => {
|
|
4
|
-
const performanceStartTime = performance.now();
|
|
5
3
|
const spanImpl = {
|
|
6
|
-
_performanceStartTime: performanceStartTime,
|
|
7
4
|
setAttribute: () => null,
|
|
8
5
|
setAttributes: () => null,
|
|
9
6
|
addEvent: () => null,
|
|
@@ -11,20 +8,8 @@ export const makeNoopSpan = () => {
|
|
|
11
8
|
setStatus: () => null,
|
|
12
9
|
updateName: () => null,
|
|
13
10
|
recordException: () => null,
|
|
14
|
-
end: () =>
|
|
15
|
-
|
|
16
|
-
const duration = endTime - performanceStartTime;
|
|
17
|
-
const durationSecs = duration / 1000;
|
|
18
|
-
const durationRestNs = (duration % 1000) * 1_000_000;
|
|
19
|
-
spanImpl._duration = [durationSecs, durationRestNs];
|
|
20
|
-
},
|
|
21
|
-
spanContext: () => {
|
|
22
|
-
return {
|
|
23
|
-
traceId: `livestore-noop-trace-id${cuid()}`,
|
|
24
|
-
spanId: `livestore-noop-span-id${cuid()}`,
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
_duration: [0, 0],
|
|
11
|
+
end: () => null,
|
|
12
|
+
spanContext: () => INVALID_SPAN_CONTEXT,
|
|
28
13
|
};
|
|
29
14
|
// oxlint-disable-next-line typescript-eslint(no-unsafe-type-assertion) -- noop otel.Span implementation; only implements the subset needed by LiveStore
|
|
30
15
|
return spanImpl;
|
package/dist/NoopTracer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoopTracer.js","sourceRoot":"","sources":["../src/NoopTracer.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NoopTracer.js","sourceRoot":"","sources":["../src/NoopTracer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA0D,MAAM,oBAAoB,CAAA;AAEjH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,QAAQ,GAAG;QACf,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI;QACxB,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI;QACzB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI;QACpB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI;QACnB,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI;QACrB,UAAU,EAAE,GAAG,EAAE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ings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { INVALID_SPAN_CONTEXT, isSpanContextValid, ROOT_CONTEXT } from '@opentelemetry/api';
|
|
2
|
+
import { describe, expect, it } from 'vitest';
|
|
3
|
+
import { makeNoopSpan, makeNoopTracer } from "./NoopTracer.js";
|
|
4
|
+
describe('NoopTracer', () => {
|
|
5
|
+
it('returns the canonical invalid OpenTelemetry span context', () => {
|
|
6
|
+
const spanContext = makeNoopSpan().spanContext();
|
|
7
|
+
expect(spanContext).toBe(INVALID_SPAN_CONTEXT);
|
|
8
|
+
expect(isSpanContextValid(spanContext)).toBe(false);
|
|
9
|
+
});
|
|
10
|
+
it('runs active-span callbacks for every tracer overload', () => {
|
|
11
|
+
const tracer = makeNoopTracer();
|
|
12
|
+
expect(tracer.startActiveSpan('two arguments', () => 'two')).toBe('two');
|
|
13
|
+
expect(tracer.startActiveSpan('three arguments', {}, () => 'three')).toBe('three');
|
|
14
|
+
expect(tracer.startActiveSpan('four arguments', {}, ROOT_CONTEXT, () => 'four')).toBe('four');
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=NoopTracer.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoopTracer.test.js","sourceRoot":"","sources":["../src/NoopTracer.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC3F,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAE9D,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QAClE,MAAM,WAAW,GAAG,YAAY,EAAE,CAAC,WAAW,EAAE,CAAA;QAEhD,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAA;QAC9C,MAAM,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACrD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC9D,MAAM,MAAM,GAAG,cAAc,EAAE,CAAA;QAC/B,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACxE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,iBAAiB,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAClF,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,gBAAgB,EAAE,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC/F,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
import { Effect, Option, Schema, Stream } from 'effect';
|
|
1
|
+
import { Context, Effect, Layer, Option, Schema, type Scope, Stream } from 'effect';
|
|
2
2
|
import * as WebError from '../WebError.ts';
|
|
3
|
-
declare const Opfs_base: Effect.Service.Class<Opfs, "@livestore/utils/Opfs", {
|
|
4
|
-
readonly sync: () => {
|
|
5
|
-
readonly getRootDirectoryHandle: Effect.Effect<FileSystemDirectoryHandle, WebError.SecurityError | WebError.UnknownError, never>;
|
|
6
|
-
readonly getFileHandle: (parent: FileSystemDirectoryHandle, name: string, options?: FileSystemGetFileOptions) => Effect.Effect<FileSystemFileHandle, WebError.TypeError | WebError.NotFoundError | WebError.NotAllowedError | WebError.TypeMismatchError | WebError.UnknownError, never>;
|
|
7
|
-
readonly getDirectoryHandle: (parent: FileSystemDirectoryHandle, name: string, options?: FileSystemGetDirectoryOptions) => Effect.Effect<FileSystemDirectoryHandle, WebError.TypeError | WebError.NotFoundError | WebError.NotAllowedError | WebError.TypeMismatchError | WebError.UnknownError, never>;
|
|
8
|
-
readonly removeEntry: (parent: FileSystemDirectoryHandle, name: string, options?: FileSystemRemoveOptions) => Effect.Effect<void, WebError.TypeError | WebError.NoModificationAllowedError | WebError.NotFoundError | WebError.NotAllowedError | WebError.InvalidModificationError | WebError.UnknownError, never>;
|
|
9
|
-
readonly values: (directory: FileSystemDirectoryHandle) => Stream.Stream<FileSystemHandle, WebError.NotAllowedError | WebError.NotFoundError | WebError.UnknownError, never>;
|
|
10
|
-
readonly resolve: (parent: FileSystemDirectoryHandle, child: FileSystemHandle) => Effect.Effect<Option.None<string[]> | Option.Some<string[]>, WebError.WebError, never>;
|
|
11
|
-
readonly getFile: (handle: FileSystemFileHandle) => Effect.Effect<File, WebError.NotFoundError | WebError.NotAllowedError | WebError.UnknownError, never>;
|
|
12
|
-
readonly writeFile: (handle: FileSystemFileHandle, data: FileSystemWriteChunkType, options?: FileSystemCreateWritableOptions) => Effect.Effect<void, WebError.TypeError | WebError.NoModificationAllowedError | WebError.NotFoundError | WebError.NotAllowedError | WebError.AbortError | WebError.QuotaExceededError | WebError.UnknownError, never>;
|
|
13
|
-
readonly appendToFile: (handle: FileSystemFileHandle, data: FileSystemWriteChunkType) => Effect.Effect<void, WebError.TypeError | WebError.NoModificationAllowedError | WebError.NotFoundError | WebError.NotAllowedError | WebError.AbortError | WebError.QuotaExceededError | WebError.UnknownError, never>;
|
|
14
|
-
readonly truncateFile: (handle: FileSystemFileHandle, size: number) => Effect.Effect<void, WebError.TypeError | WebError.NoModificationAllowedError | WebError.NotFoundError | WebError.NotAllowedError | WebError.AbortError | WebError.QuotaExceededError | WebError.UnknownError, never>;
|
|
15
|
-
readonly createSyncAccessHandle: (handle: FileSystemFileHandle) => Effect.Effect<FileSystemSyncAccessHandle, WebError.NoModificationAllowedError | WebError.NotFoundError | WebError.NotAllowedError | WebError.InvalidStateError | WebError.UnknownError, import("effect/Scope").Scope>;
|
|
16
|
-
readonly syncRead: (handle: FileSystemSyncAccessHandle, buffer: ArrayBuffer | ArrayBufferView, options?: FileSystemReadWriteOptions) => Effect.Effect<number, WebError.RangeError | WebError.TypeError | WebError.InvalidStateError | WebError.UnknownError, never>;
|
|
17
|
-
readonly syncWrite: (handle: FileSystemSyncAccessHandle, buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions) => Effect.Effect<number, WebError.WebError, never>;
|
|
18
|
-
readonly syncTruncate: (handle: FileSystemSyncAccessHandle, size: number) => Effect.Effect<void, WebError.WebError, never>;
|
|
19
|
-
readonly syncGetSize: (handle: FileSystemSyncAccessHandle) => Effect.Effect<number, WebError.WebError, never>;
|
|
20
|
-
readonly syncFlush: (handle: FileSystemSyncAccessHandle) => Effect.Effect<void, WebError.WebError, never>;
|
|
21
|
-
};
|
|
22
|
-
readonly accessors: true;
|
|
23
|
-
}>;
|
|
24
3
|
/**
|
|
25
4
|
* Effect service that exposes ergonomic wrappers around Origin Private File System (OPFS) operations.
|
|
26
5
|
*
|
|
@@ -30,18 +9,189 @@ declare const Opfs_base: Effect.Service.Class<Opfs, "@livestore/utils/Opfs", {
|
|
|
30
9
|
*
|
|
31
10
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Origin_private_file_system | MDN Reference}
|
|
32
11
|
*/
|
|
12
|
+
export interface Service {
|
|
13
|
+
/**
|
|
14
|
+
* Acquire the OPFS root directory handle.
|
|
15
|
+
*
|
|
16
|
+
* @returns Root directory handle for the current origin.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/getDirectory | MDN Reference}
|
|
19
|
+
*/
|
|
20
|
+
readonly getRootDirectoryHandle: Effect.Effect<FileSystemDirectoryHandle, WebError.WebError>;
|
|
21
|
+
/**
|
|
22
|
+
* Resolve (and optionally create) a file handle relative to a directory.
|
|
23
|
+
*
|
|
24
|
+
* @param parent - Directory to search.
|
|
25
|
+
* @param name - Target file name.
|
|
26
|
+
* @param options - Forwarded `getFileHandle` options such as `{ create: true }`.
|
|
27
|
+
*
|
|
28
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getFileHandle | MDN Reference}
|
|
29
|
+
*/
|
|
30
|
+
readonly getFileHandle: (parent: FileSystemDirectoryHandle, name: string, options?: FileSystemGetFileOptions) => Effect.Effect<FileSystemFileHandle, WebError.WebError>;
|
|
31
|
+
/**
|
|
32
|
+
* Resolve (and optionally create) a directory handle relative to another directory.
|
|
33
|
+
*
|
|
34
|
+
* @param parent - Directory to search.
|
|
35
|
+
* @param name - Target directory name.
|
|
36
|
+
* @param options - Forwarded `getDirectoryHandle` options such as `{ create: true }`.
|
|
37
|
+
*
|
|
38
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle | MDN Reference}
|
|
39
|
+
*/
|
|
40
|
+
readonly getDirectoryHandle: (parent: FileSystemDirectoryHandle, name: string, options?: FileSystemGetDirectoryOptions) => Effect.Effect<FileSystemDirectoryHandle, WebError.WebError>;
|
|
41
|
+
/**
|
|
42
|
+
* Remove a file-system entry (file or directory) from its parent directory.
|
|
43
|
+
*
|
|
44
|
+
* @param parent - Directory containing the entry.
|
|
45
|
+
* @param name - Entry name.
|
|
46
|
+
* @param options - Removal behavior (for example `{ recursive: true }`).
|
|
47
|
+
*
|
|
48
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/removeEntry | MDN Reference}
|
|
49
|
+
*/
|
|
50
|
+
readonly removeEntry: (parent: FileSystemDirectoryHandle, name: string, options?: FileSystemRemoveOptions) => Effect.Effect<void, WebError.WebError>;
|
|
51
|
+
/**
|
|
52
|
+
* Return a stream of child file-system handles for a directory.
|
|
53
|
+
*
|
|
54
|
+
* @param directory - Directory whose children are to be streamed
|
|
55
|
+
* @returns `Stream` of `FileSystemHandle`
|
|
56
|
+
*
|
|
57
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/values | MDN Reference}
|
|
58
|
+
*/
|
|
59
|
+
readonly values: (directory: FileSystemDirectoryHandle) => Stream.Stream<FileSystemHandle, WebError.NotAllowedError | WebError.NotFoundError | WebError.UnknownError>;
|
|
60
|
+
/**
|
|
61
|
+
* Resolve the relative path from a parent directory to a descendant handle.
|
|
62
|
+
*
|
|
63
|
+
* @param parent - Reference directory.
|
|
64
|
+
* @param child - File or directory handle within the parent hierarchy.
|
|
65
|
+
* @returns `Option.some(pathSegments)` when reachable, otherwise `Option.none()`.
|
|
66
|
+
*
|
|
67
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/resolve | MDN Reference}
|
|
68
|
+
*/
|
|
69
|
+
readonly resolve: (parent: FileSystemDirectoryHandle, child: FileSystemHandle) => Effect.Effect<Option.Option<ReadonlyArray<string>>, WebError.WebError>;
|
|
70
|
+
/**
|
|
71
|
+
* Read the underlying `File` for a file handle.
|
|
72
|
+
*
|
|
73
|
+
* @param handle - Handle referencing the target file.
|
|
74
|
+
*
|
|
75
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/getFile | MDN Reference}
|
|
76
|
+
*/
|
|
77
|
+
readonly getFile: (handle: FileSystemFileHandle) => Effect.Effect<File, WebError.WebError>;
|
|
78
|
+
/**
|
|
79
|
+
* Overwrite the contents of a file with the provided data.
|
|
80
|
+
*
|
|
81
|
+
* @param handle - File to write to.
|
|
82
|
+
* @param data - Chunk(s) accepted by `FileSystemWritableFileStream.write`.
|
|
83
|
+
* @param options - Stream creation options (for example, `{ keepExistingData: false }`).
|
|
84
|
+
*
|
|
85
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createWritable | MDN Reference}
|
|
86
|
+
*/
|
|
87
|
+
readonly writeFile: (handle: FileSystemFileHandle, data: FileSystemWriteChunkType, options?: FileSystemCreateWritableOptions) => Effect.Effect<void, WebError.WebError>;
|
|
88
|
+
/**
|
|
89
|
+
* Append data to the end of an existing file.
|
|
90
|
+
*
|
|
91
|
+
* @param handle - File to extend.
|
|
92
|
+
* @param data - Data to append.
|
|
93
|
+
*
|
|
94
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write | MDN Reference}
|
|
95
|
+
*/
|
|
96
|
+
readonly appendToFile: (handle: FileSystemFileHandle, data: FileSystemWriteChunkType) => Effect.Effect<void, WebError.WebError>;
|
|
97
|
+
/**
|
|
98
|
+
* Truncate a file to the specified size in bytes.
|
|
99
|
+
*
|
|
100
|
+
* @param handle - File to shrink or pad.
|
|
101
|
+
* @param size - Target byte length.
|
|
102
|
+
*
|
|
103
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/truncate | MDN Reference}
|
|
104
|
+
*/
|
|
105
|
+
readonly truncateFile: (handle: FileSystemFileHandle, size: number) => Effect.Effect<void, WebError.WebError>;
|
|
106
|
+
/**
|
|
107
|
+
* Create a synchronous access handle for a file.
|
|
108
|
+
*
|
|
109
|
+
* @param handle - File handle to open.
|
|
110
|
+
* @returns A managed handle that is automatically closed when released.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* - Only available in Dedicated Web Workers.
|
|
114
|
+
* - This method is asynchronous even though the `FileSystemSyncAccessHandle` APIs are synchronous.
|
|
115
|
+
*
|
|
116
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle | MDN Reference}
|
|
117
|
+
*/
|
|
118
|
+
readonly createSyncAccessHandle: (handle: FileSystemFileHandle) => Effect.Effect<FileSystemSyncAccessHandle, WebError.WebError, Scope.Scope>;
|
|
119
|
+
/**
|
|
120
|
+
* Perform a synchronous read into the provided buffer from a sync access handle.
|
|
121
|
+
*
|
|
122
|
+
* @param handle - Sync access handle to read from.
|
|
123
|
+
* @param buffer - Destination buffer (can be a specific view like Uint8Array).
|
|
124
|
+
* @param options - Read position options.
|
|
125
|
+
* @returns Number of bytes read.
|
|
126
|
+
*
|
|
127
|
+
* @remarks
|
|
128
|
+
* Only available in Dedicated Web Workers.
|
|
129
|
+
*
|
|
130
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read | MDN Reference}
|
|
131
|
+
*/
|
|
132
|
+
readonly syncRead: (handle: FileSystemSyncAccessHandle, buffer: ArrayBuffer | ArrayBufferView, options?: FileSystemReadWriteOptions) => Effect.Effect<number, WebError.WebError>;
|
|
133
|
+
/**
|
|
134
|
+
* Perform a synchronous write from the provided buffer into the file.
|
|
135
|
+
*
|
|
136
|
+
* @param handle - Sync access handle to write to.
|
|
137
|
+
* @param buffer - Source data.
|
|
138
|
+
* @param options - Write position options.
|
|
139
|
+
* @returns Number of bytes written.
|
|
140
|
+
*
|
|
141
|
+
* @remarks
|
|
142
|
+
* Only available in Dedicated Web Workers.
|
|
143
|
+
*
|
|
144
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write | MDN Reference}
|
|
145
|
+
*/
|
|
146
|
+
readonly syncWrite: (handle: FileSystemSyncAccessHandle, buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions) => Effect.Effect<number, WebError.WebError>;
|
|
147
|
+
/**
|
|
148
|
+
* Truncate the file associated with a sync access handle to the specified size.
|
|
149
|
+
*
|
|
150
|
+
* @param handle - Sync access handle to mutate.
|
|
151
|
+
* @param size - Desired byte length.
|
|
152
|
+
*
|
|
153
|
+
* @remarks
|
|
154
|
+
* Only available in Dedicated Web Workers.
|
|
155
|
+
*
|
|
156
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/truncate | MDN Reference}
|
|
157
|
+
*/
|
|
158
|
+
readonly syncTruncate: (handle: FileSystemSyncAccessHandle, size: number) => Effect.Effect<void, WebError.WebError>;
|
|
159
|
+
/**
|
|
160
|
+
* Retrieve the current size of a file via its sync access handle.
|
|
161
|
+
*
|
|
162
|
+
* @param handle - Sync access handle.
|
|
163
|
+
* @returns File size in bytes.
|
|
164
|
+
*
|
|
165
|
+
* @remarks
|
|
166
|
+
* Only available in Dedicated Web Workers.
|
|
167
|
+
*
|
|
168
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/getSize | MDN Reference}
|
|
169
|
+
*/
|
|
170
|
+
readonly syncGetSize: (handle: FileSystemSyncAccessHandle) => Effect.Effect<number, WebError.WebError>;
|
|
171
|
+
/**
|
|
172
|
+
* Flush pending synchronous writes to durable storage.
|
|
173
|
+
*
|
|
174
|
+
* @param handle - Sync access handle to flush.
|
|
175
|
+
*
|
|
176
|
+
* @remarks
|
|
177
|
+
* Only available in Dedicated Web Workers.
|
|
178
|
+
*
|
|
179
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/flush | MDN Reference}
|
|
180
|
+
*/
|
|
181
|
+
readonly syncFlush: (handle: FileSystemSyncAccessHandle) => Effect.Effect<void, WebError.WebError>;
|
|
182
|
+
}
|
|
183
|
+
declare const Opfs_base: Context.ServiceClass<Opfs, "@livestore/utils/Opfs", Service>;
|
|
33
184
|
export declare class Opfs extends Opfs_base {
|
|
34
185
|
}
|
|
186
|
+
export declare const layer: Layer.Layer<Opfs, never, never>;
|
|
35
187
|
/**
|
|
36
188
|
* A no-op Opfs service that can be used for testing.
|
|
37
189
|
*/
|
|
38
|
-
export declare const
|
|
39
|
-
declare const OpfsError_base: Schema.
|
|
40
|
-
readonly
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
cause: Schema.optional<typeof Schema.Defect>;
|
|
44
|
-
}>;
|
|
190
|
+
export declare const layerNoop: Layer.Layer<Opfs, never, never>;
|
|
191
|
+
declare const OpfsError_base: Schema.Class<OpfsError, Schema.TaggedStruct<"OpfsError", {
|
|
192
|
+
readonly message: Schema.String;
|
|
193
|
+
readonly cause: Schema.optional<Schema.Defect>;
|
|
194
|
+
}>, import("effect/Cause").YieldableError>;
|
|
45
195
|
/**
|
|
46
196
|
* Error raised when OPFS operations fail.
|
|
47
197
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Opfs.d.ts","sourceRoot":"","sources":["../../../src/browser/Opfs/Opfs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"Opfs.d.ts","sourceRoot":"","sources":["../../../src/browser/Opfs/Opfs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEnF,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C;;;;;;;;GAQG;AACH,MAAM,WAAW,OAAO;IACtB;;;;;;OAMG;IACH,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC,MAAM,CAAC,yBAAyB,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;IAC5F;;;;;;;;OAQG;IACH,QAAQ,CAAC,aAAa,EAAE,CACtB,MAAM,EAAE,yBAAyB,EACjC,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,wBAAwB,KAC/B,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;IAC3D;;;;;;;;OAQG;IACH,QAAQ,CAAC,kBAAkB,EAAE,CAC3B,MAAM,EAAE,yBAAyB,EACjC,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,6BAA6B,KACpC,MAAM,CAAC,MAAM,CAAC,yBAAyB,EAAE,QAAQ,CAAC,QAAQ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