@hakodb/client 0.5.12
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/LICENSE +21 -0
- package/LICENSE-MIT +21 -0
- package/README.md +25 -0
- package/examples/bun/index.ts +85 -0
- package/examples/bun/package.json +10 -0
- package/examples/node/index.ts +111 -0
- package/examples/node/package-lock.json +533 -0
- package/examples/node/package.json +13 -0
- package/native/.gitkeep +0 -0
- package/package.json +31 -0
- package/src/bun-ffi.d.ts +6 -0
- package/src/client.ts +1123 -0
- package/src/index.ts +38 -0
- package/src/native.ts +993 -0
- package/sync-native.ps1 +30 -0
- package/tsconfig.json +12 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// export {
|
|
2
|
+
// HakoClient,
|
|
3
|
+
// HakoConfig, // NEW: Required for tuning durability/memory
|
|
4
|
+
// DurabilityMode, // NEW: Required for config
|
|
5
|
+
// CollectionReference,
|
|
6
|
+
// DocumentReference,
|
|
7
|
+
// DocumentSnapshot,
|
|
8
|
+
// Query,
|
|
9
|
+
// WriteBatch,
|
|
10
|
+
// type HakoDocData,
|
|
11
|
+
// type HakoClientOptions,
|
|
12
|
+
// type Unsubscribe, // NEW: Useful for typing listener cleanup
|
|
13
|
+
// type Primitive // NEW: Useful for custom data types
|
|
14
|
+
// } from './client';
|
|
15
|
+
|
|
16
|
+
// export {
|
|
17
|
+
// loadNativeBindings,
|
|
18
|
+
// type NativeBindings,
|
|
19
|
+
// type WatchCallback // NEW: Useful for advanced FFI users
|
|
20
|
+
// } from './native';
|
|
21
|
+
|
|
22
|
+
// export {
|
|
23
|
+
// TauriHako,
|
|
24
|
+
// TauriCollectionReference,
|
|
25
|
+
// TauriDocumentReference,
|
|
26
|
+
// TauriDocumentSnapshot,
|
|
27
|
+
// TauriQuery,
|
|
28
|
+
// TauriWriteBatch,
|
|
29
|
+
// type HakoRecord,
|
|
30
|
+
// type HakoPrimitive,
|
|
31
|
+
// type FilterOperator
|
|
32
|
+
// } from './tauri';
|
|
33
|
+
|
|
34
|
+
export * from './client';
|
|
35
|
+
export * from './native';
|
|
36
|
+
// ponytail: the Tauri client lives in the standalone @hakodb/tauri
|
|
37
|
+
// package with the gateway split — it shares
|
|
38
|
+
// type names with the native client, so it was never merged here anyway.
|