@dreamlake/dreamdb 0.3.1 → 0.5.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.
Binary file
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_s3backend_free: (a: number, b: number) => void;
5
+ export const __wbg_space_free: (a: number, b: number) => void;
6
+ export const __wbg_writer_free: (a: number, b: number) => void;
7
+ export const addressRoundTrip: (a: number, b: number) => [number, number, number, number];
8
+ export const addressVariant: (a: number, b: number) => [number, number, number, number];
9
+ export const bytesToBase32: (a: number, b: number) => [number, number];
10
+ export const decodeCbor: (a: number, b: number) => [number, number, number];
11
+ export const encodeCbor: (a: any) => [number, number, number, number];
12
+ export const modalityParse: (a: number, b: number) => [number, number, number];
13
+ export const multihashBase32: (a: number, b: number) => [number, number];
14
+ export const multihashHex: (a: number, b: number) => [number, number];
15
+ export const rangeHeader: (a: bigint, b: bigint) => [number, number, number, number];
16
+ export const s3backend_get: (a: number, b: number, c: number, d: any) => any;
17
+ export const s3backend_list: (a: number, b: number, c: number) => any;
18
+ export const s3backend_new: (a: number, b: number) => number;
19
+ export const space_connectorBase: (a: number) => [number, number];
20
+ export const space_fromUri: (a: number, b: number, c: any) => any;
21
+ export const space_history: (a: number, b: number) => any;
22
+ export const space_manifestHash: (a: number) => [number, number];
23
+ export const space_queryHybrid: (a: number, b: number, c: number, d: any) => any;
24
+ export const space_queryScalar: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
25
+ export const space_queryText: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
26
+ export const space_queryVector: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
27
+ export const space_readScalarColumn: (a: number, b: any, c: any) => any;
28
+ export const space_resolveObjectIndex: (a: number, b: any) => any;
29
+ export const space_timelineId: (a: number) => [number, number, number, number];
30
+ export const space_trackFor: (a: number, b: number, c: number) => any;
31
+ export const space_tracks: (a: number) => any;
32
+ export const spatialKeyRoundTrip: (a: number, b: number) => [number, number, number, number];
33
+ export const timeAnchorFromHex: (a: number, b: number) => [bigint, number, number];
34
+ export const timeAnchorHex: (a: bigint) => [number, number];
35
+ export const timeBucket: (a: bigint, b: number, c: number) => [bigint, number, number];
36
+ export const version: () => [number, number];
37
+ export const writer_appendMany: (a: number, b: any) => any;
38
+ export const writer_commit: (a: number) => any;
39
+ export const writer_deleteRecords: (a: number, b: number, c: number, d: number, e: number) => any;
40
+ export const writer_manifestHash: (a: number) => [number, number, number, number];
41
+ export const writer_open: (a: number, b: number, c: any) => any;
42
+ export const writer_refName: (a: number) => [number, number];
43
+ export const writer_snapshot: (a: number, b: number, c: number) => any;
44
+ export const zeroSpatialKey: () => [number, number];
45
+ export const __wasm_init: () => void;
46
+ export const wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_: (a: number, b: number, c: any) => [number, number];
47
+ export const wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
48
+ export const __wbindgen_malloc: (a: number, b: number) => number;
49
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
50
+ export const __wbindgen_exn_store: (a: number) => void;
51
+ export const __externref_table_alloc: () => number;
52
+ export const __wbindgen_externrefs: WebAssembly.Table;
53
+ export const __wbindgen_destroy_closure: (a: number, b: number) => void;
54
+ export const __externref_table_dealloc: (a: number) => void;
55
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
56
+ export const __wbindgen_start: () => void;
package/web.mjs ADDED
@@ -0,0 +1,17 @@
1
+ // No-bundler entry, for `<script type="module">` and Deno.
2
+ //
3
+ // Unlike the bundler build this one cannot instantiate itself: the browser has
4
+ // to fetch the .wasm at runtime. `init()` is the default export and MUST be
5
+ // awaited before any other export is used. Calling `Space.fromUri` first
6
+ // throws from inside wasm-bindgen's glue with no useful message, which is why
7
+ // this entry exists rather than pointing people at './web/dreamdb.js'.
8
+ import init from './web/dreamdb.js'
9
+ export * from './web/dreamdb.js'
10
+ export { ZERO_SPATIAL_KEY, PresignedBackend, Authoring } from './browser-extras.mjs'
11
+
12
+ let started
13
+ /** Fetch and instantiate the wasm. Idempotent; await before anything else. */
14
+ export default function ready(input) {
15
+ started ??= init(input)
16
+ return started
17
+ }
package/dreamdb.js DELETED
@@ -1,9 +0,0 @@
1
- /* @ts-self-types="./dreamdb.d.ts" */
2
- import * as wasm from "./dreamdb_bg.wasm";
3
- import { __wbg_set_wasm } from "./dreamdb_bg.js";
4
-
5
- __wbg_set_wasm(wasm);
6
- wasm.__wbindgen_start();
7
- export {
8
- S3Backend, Space, __wasm_init, bytesToBase32, decodeCbor, version, zeroSpatialKey
9
- } from "./dreamdb_bg.js";
package/dreamdb_bg.wasm DELETED
Binary file
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- // @dreamlake/dreamdb — public entry. Re-exports the wasm-bindgen bindings and
2
- // adds the plain-constant / type members consumers import.
3
- export * from './dreamdb.js'
4
-
5
- /** Zero spatial-key path segment for non-spatial (fragment) object addresses. */
6
- export const ZERO_SPATIAL_KEY = '0000000000000000'