refactor: simplify and add memory indexing

This commit is contained in:
2026-01-05 04:42:46 +01:00
parent 74d45cbe92
commit ed15a0eb27
37 changed files with 854 additions and 1328 deletions

View File

@@ -1,4 +1,4 @@
import type { AnyObject } from "mingo/types";
import type { AnyDocument } from "./types.ts";
export const BroadcastChannel =
globalThis.BroadcastChannel ??
@@ -11,13 +11,8 @@ export const BroadcastChannel =
export type StorageBroadcast =
| {
name: string;
type: "insertOne" | "updateOne";
data: AnyObject;
}
| {
name: string;
type: "insertMany" | "updateMany" | "remove";
data: AnyObject[];
type: "insert" | "update" | "remove";
data: AnyDocument[];
}
| {
name: string;