tablinum 0.4.0 → 0.6.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.
@@ -1,8 +1,10 @@
1
1
  import { ServiceMap } from "effect";
2
+ import type { LogLevel } from "effect";
2
3
  import type { ResolvedRuntimeConfig } from "../db/runtime-config.ts";
3
4
  import type { SchemaConfig } from "../schema/types.ts";
4
5
  export interface TablinumConfigShape extends ResolvedRuntimeConfig {
5
6
  readonly schema: SchemaConfig;
7
+ readonly logLevel: LogLevel.LogLevel;
6
8
  readonly onSyncError?: ((error: Error) => void) | undefined;
7
9
  readonly onRemoved?: ((info: {
8
10
  epochId: string;
@@ -35,7 +35,6 @@ export interface IDBStorageHandle {
35
35
  readonly getGiftWrap: (id: string) => Effect.Effect<StoredGiftWrap | undefined, StorageError>;
36
36
  readonly getAllGiftWraps: () => Effect.Effect<ReadonlyArray<StoredGiftWrap>, StorageError>;
37
37
  readonly deleteGiftWrap: (id: string) => Effect.Effect<void, StorageError>;
38
- readonly stripGiftWrapBlob: (id: string) => Effect.Effect<void, StorageError>;
39
38
  readonly deleteEvent: (id: string) => Effect.Effect<void, StorageError>;
40
39
  readonly stripEventData: (id: string) => Effect.Effect<void, StorageError>;
41
40
  readonly getMeta: (key: string) => Effect.Effect<unknown | undefined, StorageError>;
@@ -1,3 +1,4 @@
1
+ import type { LogLevel } from "effect";
1
2
  import type { CollectionDef, CollectionFields } from "../schema/collection.ts";
2
3
  import type { InferRecord } from "../schema/types.ts";
3
4
  import type { CollectionHandle } from "../crud/collection-handle.ts";
@@ -6,7 +7,7 @@ export declare class Collection<C extends CollectionDef<CollectionFields>> {
6
7
  #private;
7
8
  error: Error | null;
8
9
  /** @internal */
9
- _bind(handle: CollectionHandle<C>): void;
10
+ _bind(handle: CollectionHandle<C>, logLevel?: LogLevel.LogLevel): void;
10
11
  /** @internal */
11
12
  _fail(err: Error): void;
12
13
  add: (data: Omit<InferRecord<C>, "id">) => Promise<string>;