@graphrefly/graphrefly 0.25.0 → 0.27.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/README.md +8 -0
- package/dist/ai-CaR_912Q.d.cts +1033 -0
- package/dist/ai-WlRltJV7.d.ts +1033 -0
- package/dist/audit-ClmqGOCx.d.cts +245 -0
- package/dist/audit-DRlSzBu9.d.ts +245 -0
- package/dist/{chunk-QOWVNWOC.js → chunk-3ZWCKRHX.js} +27 -25
- package/dist/{chunk-QOWVNWOC.js.map → chunk-3ZWCKRHX.js.map} +1 -1
- package/dist/chunk-APFNLIRG.js +62 -0
- package/dist/chunk-APFNLIRG.js.map +1 -0
- package/dist/chunk-AT5LKYNL.js +395 -0
- package/dist/chunk-AT5LKYNL.js.map +1 -0
- package/dist/{chunk-IAHGTNOZ.js → chunk-BQ6RQQFF.js} +351 -2095
- package/dist/chunk-BQ6RQQFF.js.map +1 -0
- package/dist/{chunk-L2GLW2U7.js → chunk-BVZYTZ5H.js} +9 -103
- package/dist/chunk-BVZYTZ5H.js.map +1 -0
- package/dist/{chunk-EVR6UFUV.js → chunk-DST5DKZS.js} +19 -15
- package/dist/{chunk-EVR6UFUV.js.map → chunk-DST5DKZS.js.map} +1 -1
- package/dist/{chunk-TKE3JGOH.js → chunk-GTE6PWRZ.js} +5 -692
- package/dist/chunk-GTE6PWRZ.js.map +1 -0
- package/dist/chunk-HXZEYDUR.js +94 -0
- package/dist/chunk-HXZEYDUR.js.map +1 -0
- package/dist/chunk-J22W6HV3.js +107 -0
- package/dist/chunk-J22W6HV3.js.map +1 -0
- package/dist/{chunk-PY4XCDLR.js → chunk-J2VBW3DZ.js} +6 -95
- package/dist/chunk-J2VBW3DZ.js.map +1 -0
- package/dist/{chunk-HWPIFSW2.js → chunk-JSCT3CR4.js} +6 -4
- package/dist/{chunk-HWPIFSW2.js.map → chunk-JSCT3CR4.js.map} +1 -1
- package/dist/chunk-JWBCY4NC.js +330 -0
- package/dist/chunk-JWBCY4NC.js.map +1 -0
- package/dist/chunk-K2AUJHVP.js +2251 -0
- package/dist/chunk-K2AUJHVP.js.map +1 -0
- package/dist/chunk-MJ2NKQQL.js +119 -0
- package/dist/chunk-MJ2NKQQL.js.map +1 -0
- package/dist/chunk-N6UR7YVY.js +198 -0
- package/dist/chunk-N6UR7YVY.js.map +1 -0
- package/dist/chunk-NC6S43JJ.js +456 -0
- package/dist/chunk-NC6S43JJ.js.map +1 -0
- package/dist/chunk-OFVJBJXR.js +98 -0
- package/dist/chunk-OFVJBJXR.js.map +1 -0
- package/dist/chunk-OHISZPOJ.js +97 -0
- package/dist/chunk-OHISZPOJ.js.map +1 -0
- package/dist/chunk-OU5CQKNW.js +102 -0
- package/dist/chunk-OU5CQKNW.js.map +1 -0
- package/dist/{chunk-XOFWRC73.js → chunk-PF7GRZMW.js} +316 -21
- package/dist/chunk-PF7GRZMW.js.map +1 -0
- package/dist/{chunk-5DJTTKX3.js → chunk-PHOUUNK7.js} +74 -111
- package/dist/chunk-PHOUUNK7.js.map +1 -0
- package/dist/chunk-RNHBMHKA.js +1665 -0
- package/dist/chunk-RNHBMHKA.js.map +1 -0
- package/dist/chunk-SX52TAR4.js +110 -0
- package/dist/chunk-SX52TAR4.js.map +1 -0
- package/dist/{chunk-H4RVA4VE.js → chunk-VYPWMZ6H.js} +2 -2
- package/dist/chunk-WBZOVTYK.js +171 -0
- package/dist/chunk-WBZOVTYK.js.map +1 -0
- package/dist/chunk-WKNUIZOY.js +354 -0
- package/dist/chunk-WKNUIZOY.js.map +1 -0
- package/dist/chunk-X3VMZYBT.js +713 -0
- package/dist/chunk-X3VMZYBT.js.map +1 -0
- package/dist/chunk-X5R3GL6H.js +525 -0
- package/dist/chunk-X5R3GL6H.js.map +1 -0
- package/dist/chunk-XGPU467M.js +136 -0
- package/dist/chunk-XGPU467M.js.map +1 -0
- package/dist/compat/index.cjs +7656 -0
- package/dist/compat/index.cjs.map +1 -0
- package/dist/compat/index.d.cts +18 -0
- package/dist/compat/index.d.ts +18 -0
- package/dist/compat/index.js +50 -0
- package/dist/compat/index.js.map +1 -0
- package/dist/compat/jotai/index.cjs +2048 -0
- package/dist/compat/jotai/index.cjs.map +1 -0
- package/dist/compat/jotai/index.d.cts +2 -0
- package/dist/compat/jotai/index.d.ts +2 -0
- package/dist/compat/jotai/index.js +9 -0
- package/dist/compat/jotai/index.js.map +1 -0
- package/dist/compat/nanostores/index.cjs +2175 -0
- package/dist/compat/nanostores/index.cjs.map +1 -0
- package/dist/compat/nanostores/index.d.cts +2 -0
- package/dist/compat/nanostores/index.d.ts +2 -0
- package/dist/compat/nanostores/index.js +23 -0
- package/dist/compat/nanostores/index.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +350 -16
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +6 -6
- package/dist/compat/nestjs/index.d.ts +6 -6
- package/dist/compat/nestjs/index.js +11 -9
- package/dist/compat/react/index.cjs +141 -0
- package/dist/compat/react/index.cjs.map +1 -0
- package/dist/compat/react/index.d.cts +2 -0
- package/dist/compat/react/index.d.ts +2 -0
- package/dist/compat/react/index.js +12 -0
- package/dist/compat/react/index.js.map +1 -0
- package/dist/compat/solid/index.cjs +128 -0
- package/dist/compat/solid/index.cjs.map +1 -0
- package/dist/compat/solid/index.d.cts +2 -0
- package/dist/compat/solid/index.d.ts +2 -0
- package/dist/compat/solid/index.js +12 -0
- package/dist/compat/solid/index.js.map +1 -0
- package/dist/compat/svelte/index.cjs +131 -0
- package/dist/compat/svelte/index.cjs.map +1 -0
- package/dist/compat/svelte/index.d.cts +2 -0
- package/dist/compat/svelte/index.d.ts +2 -0
- package/dist/compat/svelte/index.js +12 -0
- package/dist/compat/svelte/index.js.map +1 -0
- package/dist/compat/vue/index.cjs +146 -0
- package/dist/compat/vue/index.cjs.map +1 -0
- package/dist/compat/vue/index.d.cts +3 -0
- package/dist/compat/vue/index.d.ts +3 -0
- package/dist/compat/vue/index.js +12 -0
- package/dist/compat/vue/index.js.map +1 -0
- package/dist/compat/zustand/index.cjs +4931 -0
- package/dist/compat/zustand/index.cjs.map +1 -0
- package/dist/compat/zustand/index.d.cts +5 -0
- package/dist/compat/zustand/index.d.ts +5 -0
- package/dist/compat/zustand/index.js +12 -0
- package/dist/compat/zustand/index.js.map +1 -0
- package/dist/composite-C7PcQvcs.d.cts +303 -0
- package/dist/composite-aUCvjZVR.d.ts +303 -0
- package/dist/core/index.cjs +53 -4
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +4 -3
- package/dist/core/index.d.ts +4 -3
- package/dist/core/index.js +26 -24
- package/dist/demo-shell-BDkOptd6.d.ts +102 -0
- package/dist/demo-shell-Crid1WdR.d.cts +102 -0
- package/dist/extra/index.cjs +222 -110
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +6 -4
- package/dist/extra/index.d.ts +6 -4
- package/dist/extra/index.js +72 -65
- package/dist/extra/sources.cjs +2486 -0
- package/dist/extra/sources.cjs.map +1 -0
- package/dist/extra/sources.d.cts +465 -0
- package/dist/extra/sources.d.ts +465 -0
- package/dist/extra/sources.js +57 -0
- package/dist/extra/sources.js.map +1 -0
- package/dist/graph/index.cjs +408 -14
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +5 -5
- package/dist/graph/index.d.ts +5 -5
- package/dist/graph/index.js +13 -5
- package/dist/{graph-D-3JIQme.d.cts → graph-CCwGKLCm.d.ts} +195 -4
- package/dist/{graph-B6NFqv3z.d.ts → graph-DNCrvZSn.d.cts} +195 -4
- package/dist/index-3lsddbbS.d.ts +86 -0
- package/dist/index-B1tloyhO.d.cts +34 -0
- package/dist/{index-CYkjxu3s.d.ts → index-B6D3QNSA.d.ts} +33 -4
- package/dist/index-B6EhDnjH.d.cts +37 -0
- package/dist/index-B9B7_HEY.d.ts +37 -0
- package/dist/{index-Ds23Wvou.d.ts → index-BHlKbUwO.d.cts} +131 -883
- package/dist/{index-DiobMNwE.d.ts → index-BPVt8kqc.d.ts} +3 -3
- package/dist/index-BaSM3aYt.d.ts +195 -0
- package/dist/index-BuEoe-Qu.d.ts +121 -0
- package/dist/{index-Ch0IpIO0.d.cts → index-BwfLUNw4.d.ts} +131 -883
- package/dist/index-ByQxazQJ.d.cts +86 -0
- package/dist/index-C0svESO4.d.ts +127 -0
- package/dist/{index-OXImXMq6.d.ts → index-C8oil6M6.d.ts} +18 -196
- package/dist/{index-DKE1EATr.d.cts → index-CI3DprxP.d.cts} +18 -196
- package/dist/{index-AMWewNDe.d.cts → index-CO8uBlUh.d.cts} +33 -4
- package/dist/index-CxFrXH4m.d.ts +45 -0
- package/dist/index-D8wS_PeY.d.cts +121 -0
- package/dist/index-DO_6JN9Z.d.cts +127 -0
- package/dist/index-DVGiGFGT.d.cts +195 -0
- package/dist/index-DYme44FM.d.cts +44 -0
- package/dist/{index-J7Kc0oIQ.d.cts → index-DlLp-2Xn.d.cts} +3 -3
- package/dist/index-Dzk2hrlR.d.ts +44 -0
- package/dist/index-VHqptjhu.d.cts +45 -0
- package/dist/index-VdHQMPy1.d.ts +36 -0
- package/dist/index-Xi3u0HCQ.d.cts +36 -0
- package/dist/index-wEn0eFe8.d.ts +34 -0
- package/dist/index.cjs +1780 -176
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +784 -2082
- package/dist/index.d.ts +784 -2082
- package/dist/index.js +955 -4349
- package/dist/index.js.map +1 -1
- package/dist/memory-C6Z2tGpC.d.cts +139 -0
- package/dist/memory-li6FL5RM.d.ts +139 -0
- package/dist/messaging-Gt4LPbyA.d.cts +269 -0
- package/dist/messaging-XDoYablx.d.ts +269 -0
- package/dist/{meta-DWbkoq1s.d.cts → meta-BxCA7rcr.d.cts} +1 -1
- package/dist/{meta-CnkLA_43.d.ts → meta-CbznRPYJ.d.ts} +1 -1
- package/dist/{node-B-f-Lu-k.d.cts → node-BmerH3kS.d.cts} +26 -1
- package/dist/{node-B-f-Lu-k.d.ts → node-BmerH3kS.d.ts} +26 -1
- package/dist/{observable-uP-wy_uK.d.ts → observable-BgGUwcqp.d.ts} +1 -1
- package/dist/{observable-DBnrwcar.d.cts → observable-DJt_AxzQ.d.cts} +1 -1
- package/dist/patterns/ai.cjs +7930 -0
- package/dist/patterns/ai.cjs.map +1 -0
- package/dist/patterns/ai.d.cts +10 -0
- package/dist/patterns/ai.d.ts +10 -0
- package/dist/patterns/ai.js +71 -0
- package/dist/patterns/ai.js.map +1 -0
- package/dist/patterns/audit.cjs +5805 -0
- package/dist/patterns/audit.cjs.map +1 -0
- package/dist/patterns/audit.d.cts +6 -0
- package/dist/patterns/audit.d.ts +6 -0
- package/dist/patterns/audit.js +29 -0
- package/dist/patterns/audit.js.map +1 -0
- package/dist/patterns/demo-shell.cjs +5604 -0
- package/dist/patterns/demo-shell.cjs.map +1 -0
- package/dist/patterns/demo-shell.d.cts +6 -0
- package/dist/patterns/demo-shell.d.ts +6 -0
- package/dist/patterns/demo-shell.js +15 -0
- package/dist/patterns/demo-shell.js.map +1 -0
- package/dist/patterns/memory.cjs +5283 -0
- package/dist/patterns/memory.cjs.map +1 -0
- package/dist/patterns/memory.d.cts +5 -0
- package/dist/patterns/memory.d.ts +5 -0
- package/dist/patterns/memory.js +20 -0
- package/dist/patterns/memory.js.map +1 -0
- package/dist/patterns/reactive-layout/index.cjs +355 -13
- package/dist/patterns/reactive-layout/index.cjs.map +1 -1
- package/dist/patterns/reactive-layout/index.d.cts +6 -5
- package/dist/patterns/reactive-layout/index.d.ts +6 -5
- package/dist/patterns/reactive-layout/index.js +15 -12
- package/dist/reactive-layout-MQP--J3F.d.cts +183 -0
- package/dist/reactive-layout-u5Ulnqag.d.ts +183 -0
- package/dist/{storage-BuTdpCI1.d.cts → storage-CMjUUuxn.d.ts} +10 -2
- package/dist/{storage-F2X1U1x0.d.ts → storage-DdWlZo6U.d.cts} +10 -2
- package/dist/sugar-CCOxXK1e.d.ts +201 -0
- package/dist/sugar-D02n5JjF.d.cts +201 -0
- package/package.json +63 -3
- package/dist/chunk-5DJTTKX3.js.map +0 -1
- package/dist/chunk-IAHGTNOZ.js.map +0 -1
- package/dist/chunk-L2GLW2U7.js.map +0 -1
- package/dist/chunk-MW4VAKAO.js +0 -47
- package/dist/chunk-MW4VAKAO.js.map +0 -1
- package/dist/chunk-PY4XCDLR.js.map +0 -1
- package/dist/chunk-TKE3JGOH.js.map +0 -1
- package/dist/chunk-XOFWRC73.js.map +0 -1
- package/dist/index-BJB7t9gg.d.cts +0 -392
- package/dist/index-C-TXEa7C.d.ts +0 -392
- /package/dist/{chunk-H4RVA4VE.js.map → chunk-VYPWMZ6H.js.map} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { a as NodeOptions, N as Node, M as Message,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as NodeOptions, N as Node, M as Message, s as Messages, a6 as VersioningLevel } from './node-BmerH3kS.js';
|
|
2
|
+
import { AsyncSourceOpts, NodeInput, EventTargetLike, FromCronOptions, ReactiveCounterBundle, cached, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './extra/sources.js';
|
|
3
|
+
import { S as StorageTier, I as IndexedDbStorageSpec, a as StorageHandle, d as dictStorage, f as fileStorage, b as fromIDBRequest, c as fromIDBTransaction, i as indexedDbStorage, m as memoryStorage, s as sqliteStorage } from './storage-CMjUUuxn.js';
|
|
4
|
+
import { D as DistillBundle, a as DistillOptions, E as Extraction, M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, c as ReactiveMapOptions, V as VerifiableBundle, d as VerifiableOptions, e as VerifyValue, f as distill, r as reactiveMap, v as verifiable } from './composite-aUCvjZVR.js';
|
|
5
|
+
import { T as ToObservableOptions, t as toObservable } from './observable-BgGUwcqp.js';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* External-register helpers — the common `register({emit, error, complete})`
|
|
@@ -800,492 +802,6 @@ declare function fallback<T>(source: Node<T>, fb: FallbackInput<T>): Node<T>;
|
|
|
800
802
|
*/
|
|
801
803
|
declare function timeout<T>(source: Node<T>, timeoutNs: number): Node<T>;
|
|
802
804
|
|
|
803
|
-
/**
|
|
804
|
-
* Core reactive sources, sinks, and utilities (roadmap §2.3).
|
|
805
|
-
*
|
|
806
|
-
* Each API returns a {@link Node} built with {@link node}, {@link producer},
|
|
807
|
-
* {@link derived}, or {@link effect} — no second protocol.
|
|
808
|
-
*
|
|
809
|
-
* Protocol/system/ingest adapters (fromHTTP, fromWebSocket, fromKafka, etc.)
|
|
810
|
-
* live in {@link ./adapters.ts}.
|
|
811
|
-
*/
|
|
812
|
-
|
|
813
|
-
type ExtraOpts$2 = Omit<NodeOptions<unknown>, "describeKind">;
|
|
814
|
-
/** Options for {@link fromTimer} / {@link fromPromise} / {@link fromAsyncIter}. */
|
|
815
|
-
type AsyncSourceOpts = ExtraOpts$2 & {
|
|
816
|
-
signal?: AbortSignal;
|
|
817
|
-
};
|
|
818
|
-
/**
|
|
819
|
-
* Values accepted by {@link fromAny}.
|
|
820
|
-
*
|
|
821
|
-
* @category extra
|
|
822
|
-
*/
|
|
823
|
-
type NodeInput<T> = Node<T> | PromiseLike<T> | AsyncIterable<T> | Iterable<T> | T;
|
|
824
|
-
/** Options for {@link fromCron}. */
|
|
825
|
-
type FromCronOptions = ExtraOpts$2 & {
|
|
826
|
-
/** Polling interval in ms. Default `60_000`. */
|
|
827
|
-
tickMs?: number;
|
|
828
|
-
/** Output format: `"timestamp_ns"` (default) emits wall-clock nanoseconds; `"date"` emits a `Date` object. */
|
|
829
|
-
output?: "timestamp_ns" | "date";
|
|
830
|
-
};
|
|
831
|
-
/** DOM-style event target (browser or `node:events`). */
|
|
832
|
-
type EventTargetLike = {
|
|
833
|
-
addEventListener(type: string, listener: (ev: unknown) => void, options?: boolean | {
|
|
834
|
-
capture?: boolean;
|
|
835
|
-
passive?: boolean;
|
|
836
|
-
once?: boolean;
|
|
837
|
-
}): void;
|
|
838
|
-
removeEventListener(type: string, listener: (ev: unknown) => void, options?: boolean | {
|
|
839
|
-
capture?: boolean;
|
|
840
|
-
passive?: boolean;
|
|
841
|
-
once?: boolean;
|
|
842
|
-
}): void;
|
|
843
|
-
};
|
|
844
|
-
type FSEventType = "change" | "rename" | "create" | "delete";
|
|
845
|
-
type FSEvent = {
|
|
846
|
-
type: FSEventType;
|
|
847
|
-
path: string;
|
|
848
|
-
root: string;
|
|
849
|
-
relative_path: string;
|
|
850
|
-
src_path?: string;
|
|
851
|
-
dest_path?: string;
|
|
852
|
-
timestamp_ns: number;
|
|
853
|
-
};
|
|
854
|
-
type FromFSWatchOptions = ExtraOpts$2 & {
|
|
855
|
-
recursive?: boolean;
|
|
856
|
-
debounce?: number;
|
|
857
|
-
include?: string[];
|
|
858
|
-
exclude?: string[];
|
|
859
|
-
};
|
|
860
|
-
/** @internal Shared with adapters.ts for glob matching in fromFSWatch / fromGitHook. */
|
|
861
|
-
declare function escapeRegexChar(ch: string): string;
|
|
862
|
-
/** @internal */
|
|
863
|
-
declare function globToRegExp(glob: string): RegExp;
|
|
864
|
-
/** @internal */
|
|
865
|
-
declare function matchesAnyPattern(path: string, patterns: RegExp[]): boolean;
|
|
866
|
-
/**
|
|
867
|
-
* Builds a timer-driven source: one-shot (first tick then `COMPLETE`) or periodic (`0`, `1`, `2`, …).
|
|
868
|
-
*
|
|
869
|
-
* @param ms - Milliseconds before the first emission.
|
|
870
|
-
* @param opts - Producer options plus optional `period` for repeating ticks and optional `signal` (`AbortSignal`) to cancel with `ERROR`.
|
|
871
|
-
* @returns `Node<number>` — tick counter from `0`; teardown clears timers.
|
|
872
|
-
*
|
|
873
|
-
* @example
|
|
874
|
-
* ```ts
|
|
875
|
-
* import { fromTimer } from "@graphrefly/graphrefly-ts";
|
|
876
|
-
*
|
|
877
|
-
* fromTimer(250, { period: 1_000 });
|
|
878
|
-
* ```
|
|
879
|
-
*
|
|
880
|
-
* @category extra
|
|
881
|
-
*/
|
|
882
|
-
declare function fromTimer(ms: number, opts?: AsyncSourceOpts & {
|
|
883
|
-
period?: number;
|
|
884
|
-
}): Node<number>;
|
|
885
|
-
/**
|
|
886
|
-
* Animation-frame-driven source. Emits on every `requestAnimationFrame` tick,
|
|
887
|
-
* yielding the frame timestamp (DOMHighResTimeStamp, ms since navigation).
|
|
888
|
-
*
|
|
889
|
-
* Use instead of `fromTimer({ period: 16 })` when animation smoothness matters.
|
|
890
|
-
* In a real browser, `requestAnimationFrame` synchronizes with the display
|
|
891
|
-
* refresh. The source keeps ticking even when the tab is hidden — it
|
|
892
|
-
* transparently switches to `setTimeout` while the tab is backgrounded (so
|
|
893
|
-
* downstream state updates continue) and returns to `requestAnimationFrame`
|
|
894
|
-
* when the tab regains focus.
|
|
895
|
-
*
|
|
896
|
-
* When `requestAnimationFrame` is unavailable (Node test environments, SSR),
|
|
897
|
-
* this falls back to `setTimeout(~16ms)` unconditionally. Abortable via
|
|
898
|
-
* `signal` (emits `ERROR`).
|
|
899
|
-
*
|
|
900
|
-
* @example
|
|
901
|
-
* ```ts
|
|
902
|
-
* import { fromRaf, derived } from "@graphrefly/graphrefly-ts";
|
|
903
|
-
*
|
|
904
|
-
* const frame = fromRaf();
|
|
905
|
-
* const bouncingX = derived([frame], ([t]) => 50 + 40 * Math.sin((t as number) * 0.001));
|
|
906
|
-
* ```
|
|
907
|
-
*
|
|
908
|
-
* @category extra
|
|
909
|
-
*/
|
|
910
|
-
declare function fromRaf(opts?: AsyncSourceOpts): Node<number>;
|
|
911
|
-
/**
|
|
912
|
-
* Polls on an interval; when the current minute matches a 5-field cron expression, emits once (see {@link parseCron}).
|
|
913
|
-
*
|
|
914
|
-
* @param expr - Cron string (`min hour dom month dow`).
|
|
915
|
-
* @param opts - Producer options plus `tickMs` (default `60_000`) and `output` (`timestamp_ns` default, or `date` for `Date` values).
|
|
916
|
-
* @returns `Node<number>` (nanosecond timestamp) or `Node<Date>` when `output: "date"`.
|
|
917
|
-
*
|
|
918
|
-
* @example
|
|
919
|
-
* ```ts
|
|
920
|
-
* import { fromCron } from "@graphrefly/graphrefly-ts";
|
|
921
|
-
*
|
|
922
|
-
* fromCron("0 9 * * 1");
|
|
923
|
-
* ```
|
|
924
|
-
*
|
|
925
|
-
* @category extra
|
|
926
|
-
*/
|
|
927
|
-
declare function fromCron(expr: string, opts?: FromCronOptions & {
|
|
928
|
-
output: "date";
|
|
929
|
-
}): Node<Date>;
|
|
930
|
-
declare function fromCron(expr: string, opts?: FromCronOptions): Node<number>;
|
|
931
|
-
/**
|
|
932
|
-
* Wraps a DOM-style `addEventListener` target; each event becomes a `DATA` emission.
|
|
933
|
-
*
|
|
934
|
-
* @param target - Object with `addEventListener` / `removeEventListener`.
|
|
935
|
-
* @param type - Event name (e.g. `"click"`).
|
|
936
|
-
* @param opts - Producer options plus listener options (`capture`, `passive`, `once`).
|
|
937
|
-
* @returns `Node<T>` — event payloads; teardown removes the listener.
|
|
938
|
-
*
|
|
939
|
-
* @example
|
|
940
|
-
* ```ts
|
|
941
|
-
* import { fromEvent } from "@graphrefly/graphrefly-ts";
|
|
942
|
-
*
|
|
943
|
-
* fromEvent(document.body, "click");
|
|
944
|
-
* ```
|
|
945
|
-
*
|
|
946
|
-
* @category extra
|
|
947
|
-
*/
|
|
948
|
-
declare function fromEvent<T = unknown>(target: EventTargetLike, type: string, opts?: ExtraOpts$2 & {
|
|
949
|
-
capture?: boolean;
|
|
950
|
-
passive?: boolean;
|
|
951
|
-
once?: boolean;
|
|
952
|
-
}): Node<T>;
|
|
953
|
-
/**
|
|
954
|
-
* Watches filesystem paths and emits debounced change events.
|
|
955
|
-
*
|
|
956
|
-
* Uses `fs.watch` only (no polling fallback). Teardown closes all watchers.
|
|
957
|
-
*
|
|
958
|
-
* @category extra
|
|
959
|
-
*/
|
|
960
|
-
declare function fromFSWatch(paths: string | string[], opts?: FromFSWatchOptions): Node<FSEvent>;
|
|
961
|
-
/**
|
|
962
|
-
* Drains a synchronous iterable; each item is `DATA`, then `COMPLETE`, or `ERROR` if iteration throws.
|
|
963
|
-
*
|
|
964
|
-
* @param iterable - Values to emit in order.
|
|
965
|
-
* @param opts - Optional producer options.
|
|
966
|
-
* @returns `Node<T>` — one emission per element.
|
|
967
|
-
*
|
|
968
|
-
* @example
|
|
969
|
-
* ```ts
|
|
970
|
-
* import { fromIter } from "@graphrefly/graphrefly-ts";
|
|
971
|
-
*
|
|
972
|
-
* fromIter([1, 2, 3]);
|
|
973
|
-
* ```
|
|
974
|
-
*
|
|
975
|
-
* @category extra
|
|
976
|
-
*/
|
|
977
|
-
declare function fromIter<T>(iterable: Iterable<T>, opts?: ExtraOpts$2): Node<T>;
|
|
978
|
-
/**
|
|
979
|
-
* Lifts a Promise (or thenable) to a single-value stream: one `DATA` then `COMPLETE`, or `ERROR` on rejection.
|
|
980
|
-
*
|
|
981
|
-
* @param p - Promise to await.
|
|
982
|
-
* @param opts - Producer options plus optional `signal` for abort → `ERROR` with reason.
|
|
983
|
-
* @returns `Node<T>` — settles once.
|
|
984
|
-
*
|
|
985
|
-
* @example
|
|
986
|
-
* ```ts
|
|
987
|
-
* import { fromPromise } from "@graphrefly/graphrefly-ts";
|
|
988
|
-
*
|
|
989
|
-
* fromPromise(Promise.resolve(42));
|
|
990
|
-
* ```
|
|
991
|
-
*
|
|
992
|
-
* @category extra
|
|
993
|
-
*/
|
|
994
|
-
declare function fromPromise<T>(p: Promise<T> | PromiseLike<T>, opts?: AsyncSourceOpts): Node<T>;
|
|
995
|
-
/**
|
|
996
|
-
* Reads an async iterable; each `next()` value becomes `DATA`; `COMPLETE` when done; `ERROR` on failure.
|
|
997
|
-
*
|
|
998
|
-
* @param iterable - Async source (`for await` shape).
|
|
999
|
-
* @param opts - Producer options plus optional `signal` to abort the pump.
|
|
1000
|
-
* @returns `Node<T>` — async pull stream.
|
|
1001
|
-
*
|
|
1002
|
-
* @example
|
|
1003
|
-
* ```ts
|
|
1004
|
-
* import { fromAsyncIter } from "@graphrefly/graphrefly-ts";
|
|
1005
|
-
*
|
|
1006
|
-
* async function* gen() {
|
|
1007
|
-
* yield 1;
|
|
1008
|
-
* }
|
|
1009
|
-
* fromAsyncIter(gen());
|
|
1010
|
-
* ```
|
|
1011
|
-
*
|
|
1012
|
-
* @category extra
|
|
1013
|
-
*/
|
|
1014
|
-
declare function fromAsyncIter<T>(iterable: AsyncIterable<T>, opts?: AsyncSourceOpts): Node<T>;
|
|
1015
|
-
/**
|
|
1016
|
-
* Coerces a value to a `Node` by shape: existing `Node` passthrough, thenable → {@link fromPromise},
|
|
1017
|
-
* async iterable → {@link fromAsyncIter}, sync iterable → {@link fromIter}, else scalar → {@link of}.
|
|
1018
|
-
*
|
|
1019
|
-
* @param input - Any value to wrap.
|
|
1020
|
-
* @param opts - Passed through when a Promise/async path is chosen.
|
|
1021
|
-
* @returns `Node` of the inferred element type.
|
|
1022
|
-
*
|
|
1023
|
-
* @example
|
|
1024
|
-
* ```ts
|
|
1025
|
-
* import { fromAny, state } from "@graphrefly/graphrefly-ts";
|
|
1026
|
-
*
|
|
1027
|
-
* fromAny(state(1));
|
|
1028
|
-
* fromAny(Promise.resolve(2));
|
|
1029
|
-
* ```
|
|
1030
|
-
*
|
|
1031
|
-
* @category extra
|
|
1032
|
-
*/
|
|
1033
|
-
declare function fromAny<T>(input: NodeInput<T>, opts?: AsyncSourceOpts): Node<T>;
|
|
1034
|
-
/**
|
|
1035
|
-
* Emits each argument as `DATA` in order, then `COMPLETE` (implemented via {@link fromIter}).
|
|
1036
|
-
*
|
|
1037
|
-
* @param values - Values to emit.
|
|
1038
|
-
* @returns `Node<T>` — finite sequence.
|
|
1039
|
-
*
|
|
1040
|
-
* @example
|
|
1041
|
-
* ```ts
|
|
1042
|
-
* import { of } from "@graphrefly/graphrefly-ts";
|
|
1043
|
-
*
|
|
1044
|
-
* of(1, 2, 3);
|
|
1045
|
-
* ```
|
|
1046
|
-
*
|
|
1047
|
-
* @category extra
|
|
1048
|
-
*/
|
|
1049
|
-
declare function of<T>(...values: T[]): Node<T>;
|
|
1050
|
-
/**
|
|
1051
|
-
* Completes immediately with no `DATA` (cold `EMPTY` analogue).
|
|
1052
|
-
*
|
|
1053
|
-
* @param opts - Optional producer options.
|
|
1054
|
-
* @returns `Node<T>` — terminal `COMPLETE` only.
|
|
1055
|
-
*
|
|
1056
|
-
* @example
|
|
1057
|
-
* ```ts
|
|
1058
|
-
* import { empty } from "@graphrefly/graphrefly-ts";
|
|
1059
|
-
*
|
|
1060
|
-
* empty();
|
|
1061
|
-
* ```
|
|
1062
|
-
*
|
|
1063
|
-
* @category extra
|
|
1064
|
-
*/
|
|
1065
|
-
declare function empty<T = never>(opts?: ExtraOpts$2): Node<T>;
|
|
1066
|
-
/**
|
|
1067
|
-
* Never emits and never completes until teardown (cold `NEVER` analogue).
|
|
1068
|
-
*
|
|
1069
|
-
* @param opts - Optional producer options.
|
|
1070
|
-
* @returns `Node<T>` — silent until unsubscribed.
|
|
1071
|
-
*
|
|
1072
|
-
* @example
|
|
1073
|
-
* ```ts
|
|
1074
|
-
* import { never } from "@graphrefly/graphrefly-ts";
|
|
1075
|
-
*
|
|
1076
|
-
* never();
|
|
1077
|
-
* ```
|
|
1078
|
-
*
|
|
1079
|
-
* @category extra
|
|
1080
|
-
*/
|
|
1081
|
-
declare function never<T = never>(opts?: ExtraOpts$2): Node<T>;
|
|
1082
|
-
/**
|
|
1083
|
-
* Emits `ERROR` as soon as the producer starts (cold error source).
|
|
1084
|
-
*
|
|
1085
|
-
* @param err - Error payload forwarded as `ERROR` data.
|
|
1086
|
-
* @param opts - Optional producer options.
|
|
1087
|
-
* @returns `Node<never>` — terminates with `ERROR`.
|
|
1088
|
-
*
|
|
1089
|
-
* @example
|
|
1090
|
-
* ```ts
|
|
1091
|
-
* import { throwError } from "@graphrefly/graphrefly-ts";
|
|
1092
|
-
*
|
|
1093
|
-
* throwError(new Error("fail"));
|
|
1094
|
-
* ```
|
|
1095
|
-
*
|
|
1096
|
-
* @category extra
|
|
1097
|
-
*/
|
|
1098
|
-
declare function throwError(err: unknown, opts?: ExtraOpts$2): Node<never>;
|
|
1099
|
-
/**
|
|
1100
|
-
* Subscribes immediately and runs `fn` for each upstream `DATA`; returns unsubscribe.
|
|
1101
|
-
*
|
|
1102
|
-
* @param source - Upstream node.
|
|
1103
|
-
* @param fn - Side effect per value.
|
|
1104
|
-
* @param opts - Effect node options.
|
|
1105
|
-
* @returns Unsubscribe function (idempotent).
|
|
1106
|
-
*
|
|
1107
|
-
* @example
|
|
1108
|
-
* ```ts
|
|
1109
|
-
* import { forEach, state } from "@graphrefly/graphrefly-ts";
|
|
1110
|
-
*
|
|
1111
|
-
* const u = forEach(state(1), (v) => console.log(v));
|
|
1112
|
-
* u();
|
|
1113
|
-
* ```
|
|
1114
|
-
*
|
|
1115
|
-
* @category extra
|
|
1116
|
-
*/
|
|
1117
|
-
declare function forEach<T>(source: Node<T>, fn: (value: T) => void, opts?: ExtraOpts$2): () => void;
|
|
1118
|
-
/**
|
|
1119
|
-
* Buffers every `DATA`; on upstream `COMPLETE` emits one `DATA` with the full array then `COMPLETE`.
|
|
1120
|
-
*
|
|
1121
|
-
* @param source - Upstream node.
|
|
1122
|
-
* @param opts - Optional node options (derived describe kind).
|
|
1123
|
-
* @returns `Node<T[]>` — single array emission before completion.
|
|
1124
|
-
*
|
|
1125
|
-
* @example
|
|
1126
|
-
* ```ts
|
|
1127
|
-
* import { of, toArray } from "@graphrefly/graphrefly-ts";
|
|
1128
|
-
*
|
|
1129
|
-
* toArray(of(1, 2, 3));
|
|
1130
|
-
* ```
|
|
1131
|
-
*
|
|
1132
|
-
* @category extra
|
|
1133
|
-
*/
|
|
1134
|
-
declare function toArray<T>(source: Node<T>, opts?: ExtraOpts$2): Node<T[]>;
|
|
1135
|
-
/**
|
|
1136
|
-
* Multicasts upstream: one subscription to `source` while this wrapper has subscribers (via {@link producer}).
|
|
1137
|
-
*
|
|
1138
|
-
* @param source - Upstream node to share.
|
|
1139
|
-
* @param opts - Producer options; `initial` seeds from `source.cache` when set by factory.
|
|
1140
|
-
* @returns `Node<T>` — hot ref-counted bridge.
|
|
1141
|
-
*
|
|
1142
|
-
* @example
|
|
1143
|
-
* ```ts
|
|
1144
|
-
* import { share, state } from "@graphrefly/graphrefly-ts";
|
|
1145
|
-
*
|
|
1146
|
-
* share(state(0));
|
|
1147
|
-
* ```
|
|
1148
|
-
*
|
|
1149
|
-
* @category extra
|
|
1150
|
-
*/
|
|
1151
|
-
declare function share<T>(source: Node<T>, opts?: ExtraOpts$2): Node<T>;
|
|
1152
|
-
/**
|
|
1153
|
-
* Like {@link share} with a bounded replay buffer: new subscribers receive the last `bufferSize`
|
|
1154
|
-
* `DATA` payloads (as separate batches) before live updates.
|
|
1155
|
-
*
|
|
1156
|
-
* @param source - Upstream node.
|
|
1157
|
-
* @param bufferSize - Maximum past values to replay (≥ 1).
|
|
1158
|
-
* @param opts - Producer options.
|
|
1159
|
-
* @returns `Node<T>` — multicast with replay on subscribe.
|
|
1160
|
-
*
|
|
1161
|
-
* @example
|
|
1162
|
-
* ```ts
|
|
1163
|
-
* import { replay, state } from "@graphrefly/graphrefly-ts";
|
|
1164
|
-
*
|
|
1165
|
-
* replay(state(0), 3);
|
|
1166
|
-
* ```
|
|
1167
|
-
*
|
|
1168
|
-
* @category extra
|
|
1169
|
-
*/
|
|
1170
|
-
declare function replay<T>(source: Node<T>, bufferSize: number, opts?: ExtraOpts$2): Node<T>;
|
|
1171
|
-
/**
|
|
1172
|
-
* {@link replay} with `bufferSize === 1` — replays the latest `DATA` to new subscribers.
|
|
1173
|
-
*
|
|
1174
|
-
* @param source - Upstream node.
|
|
1175
|
-
* @param opts - Producer options.
|
|
1176
|
-
* @returns `Node<T>` — share + last-value replay.
|
|
1177
|
-
*
|
|
1178
|
-
* @example
|
|
1179
|
-
* ```ts
|
|
1180
|
-
* import { cached, state } from "@graphrefly/graphrefly-ts";
|
|
1181
|
-
*
|
|
1182
|
-
* cached(state(0));
|
|
1183
|
-
* ```
|
|
1184
|
-
*
|
|
1185
|
-
* @category extra
|
|
1186
|
-
*/
|
|
1187
|
-
declare function cached<T>(source: Node<T>, opts?: ExtraOpts$2): Node<T>;
|
|
1188
|
-
/**
|
|
1189
|
-
* Converts the first `DATA` on `source` into a Promise; rejects on `ERROR` or `COMPLETE` without data.
|
|
1190
|
-
*
|
|
1191
|
-
* **Important:** This subscribes and waits for a **future** emission. Data that
|
|
1192
|
-
* has already flowed is gone and will not be seen. Call this *before* the upstream
|
|
1193
|
-
* emits, or use `source.cache` / `source.status` for already-cached state.
|
|
1194
|
-
* See COMPOSITION-GUIDE §2 (subscription ordering).
|
|
1195
|
-
*
|
|
1196
|
-
* @param source - Node to read once.
|
|
1197
|
-
* @returns Promise of the first value.
|
|
1198
|
-
*
|
|
1199
|
-
* @example
|
|
1200
|
-
* ```ts
|
|
1201
|
-
* import { firstValueFrom, of } from "@graphrefly/graphrefly-ts";
|
|
1202
|
-
*
|
|
1203
|
-
* await firstValueFrom(of(42));
|
|
1204
|
-
* ```
|
|
1205
|
-
*
|
|
1206
|
-
* @category extra
|
|
1207
|
-
*/
|
|
1208
|
-
declare function firstValueFrom<T>(source: Node<T>): Promise<T>;
|
|
1209
|
-
/**
|
|
1210
|
-
* Wait for the first DATA value from `source` that satisfies `predicate`.
|
|
1211
|
-
*
|
|
1212
|
-
* Subscribes directly and resolves on the first DATA value where
|
|
1213
|
-
* `predicate` returns true. Reactive, no polling. Use in tests and
|
|
1214
|
-
* bridging code where you need a single matching value as a Promise.
|
|
1215
|
-
*
|
|
1216
|
-
* **Important:** This only captures **future** emissions — data that has
|
|
1217
|
-
* already flowed through the node is gone. Call this *before* the upstream
|
|
1218
|
-
* emits. For already-cached values, use `source.cache` / `source.status`.
|
|
1219
|
-
* See COMPOSITION-GUIDE §2 (subscription ordering).
|
|
1220
|
-
*
|
|
1221
|
-
* ```ts
|
|
1222
|
-
* const val = await firstWhere(strategy.node, snap => snap.size > 0);
|
|
1223
|
-
* ```
|
|
1224
|
-
*
|
|
1225
|
-
* @category extra
|
|
1226
|
-
*/
|
|
1227
|
-
declare function firstWhere<T>(source: Node<T>, predicate: (value: T) => boolean): Promise<T>;
|
|
1228
|
-
/**
|
|
1229
|
-
* RxJS-named alias for {@link replay} — multicast with a replay buffer of size `bufferSize`.
|
|
1230
|
-
*
|
|
1231
|
-
* @param source - Upstream node.
|
|
1232
|
-
* @param bufferSize - Replay depth (≥ 1).
|
|
1233
|
-
* @param opts - Producer options.
|
|
1234
|
-
* @returns Same behavior as `replay`.
|
|
1235
|
-
*
|
|
1236
|
-
* @example
|
|
1237
|
-
* ```ts
|
|
1238
|
-
* import { shareReplay, state } from "@graphrefly/graphrefly-ts";
|
|
1239
|
-
*
|
|
1240
|
-
* shareReplay(state(0), 5);
|
|
1241
|
-
* ```
|
|
1242
|
-
*
|
|
1243
|
-
* @category extra
|
|
1244
|
-
*/
|
|
1245
|
-
declare const shareReplay: typeof replay;
|
|
1246
|
-
/**
|
|
1247
|
-
* Activate a compute node's upstream wiring without a real sink.
|
|
1248
|
-
*
|
|
1249
|
-
* Derived/effect nodes are lazy — they don't compute until at least one
|
|
1250
|
-
* subscriber exists (COMPOSITION-GUIDE §5). `keepalive` subscribes with an
|
|
1251
|
-
* empty sink so the node stays wired for `.cache` and upstream propagation.
|
|
1252
|
-
*
|
|
1253
|
-
* Returns the unsubscribe handle. Common usage:
|
|
1254
|
-
* `graph.addDisposer(keepalive(node))`.
|
|
1255
|
-
*
|
|
1256
|
-
* @category extra
|
|
1257
|
-
*/
|
|
1258
|
-
declare function keepalive(n: Node<unknown>): () => void;
|
|
1259
|
-
/** Bundle returned by {@link reactiveCounter}. */
|
|
1260
|
-
type ReactiveCounterBundle = {
|
|
1261
|
-
/** Reactive node holding the current count. */
|
|
1262
|
-
readonly node: Node<number>;
|
|
1263
|
-
/** Increment by 1. Returns `false` if cap would be exceeded. */
|
|
1264
|
-
increment(): boolean;
|
|
1265
|
-
/** Current count (synchronous read). */
|
|
1266
|
-
get(): number;
|
|
1267
|
-
/** Whether the counter has reached its cap. */
|
|
1268
|
-
atCap(): boolean;
|
|
1269
|
-
};
|
|
1270
|
-
/**
|
|
1271
|
-
* Reactive counter with a cap — the building block for circuit breakers.
|
|
1272
|
-
*
|
|
1273
|
-
* Wraps a `state(0)` node with `increment()` that respects a maximum.
|
|
1274
|
-
* The `node` is subscribable and composable like any reactive node. When
|
|
1275
|
-
* the cap is reached, `increment()` returns `false`.
|
|
1276
|
-
*
|
|
1277
|
-
* ```ts
|
|
1278
|
-
* const retries = reactiveCounter(10);
|
|
1279
|
-
* retries.increment(); // true — count is now 1
|
|
1280
|
-
* retries.node.subscribe(...); // reactive updates
|
|
1281
|
-
* retries.atCap(); // false
|
|
1282
|
-
* ```
|
|
1283
|
-
*
|
|
1284
|
-
* @param cap - Maximum value (inclusive). 0 = no increments allowed.
|
|
1285
|
-
* @category extra
|
|
1286
|
-
*/
|
|
1287
|
-
declare function reactiveCounter(cap: number): ReactiveCounterBundle;
|
|
1288
|
-
|
|
1289
805
|
/**
|
|
1290
806
|
* Protocol, system, and ingest adapters (roadmap §5.2, §5.2c).
|
|
1291
807
|
*
|
|
@@ -1310,7 +826,7 @@ type SinkHandle = {
|
|
|
1310
826
|
/** Manually drain the internal buffer (buffered sinks only). */
|
|
1311
827
|
flush?: () => Promise<void>;
|
|
1312
828
|
};
|
|
1313
|
-
type ExtraOpts$
|
|
829
|
+
type ExtraOpts$2 = Omit<NodeOptions, "describeKind">;
|
|
1314
830
|
/** WebSocket-like transport accepted by {@link fromWebSocket} / {@link toWebSocket}. */
|
|
1315
831
|
type WebSocketLike = {
|
|
1316
832
|
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
@@ -1330,11 +846,11 @@ type WebSocketRegister<T> = (emit: (payload: T) => void, error: (err: unknown) =
|
|
|
1330
846
|
*
|
|
1331
847
|
* @category extra
|
|
1332
848
|
*/
|
|
1333
|
-
declare function fromWebSocket<T = unknown>(socket: WebSocketLike, opts?: ExtraOpts$
|
|
849
|
+
declare function fromWebSocket<T = unknown>(socket: WebSocketLike, opts?: ExtraOpts$2 & {
|
|
1334
850
|
parse?: (payload: unknown, event: unknown) => T;
|
|
1335
851
|
closeOnTeardown?: boolean;
|
|
1336
852
|
}): Node<T>;
|
|
1337
|
-
declare function fromWebSocket<T = unknown>(register: WebSocketRegister<T>, opts?: ExtraOpts$
|
|
853
|
+
declare function fromWebSocket<T = unknown>(register: WebSocketRegister<T>, opts?: ExtraOpts$2 & {
|
|
1338
854
|
parse?: (payload: unknown, event: unknown) => T;
|
|
1339
855
|
closeOnTeardown?: boolean;
|
|
1340
856
|
}): Node<T>;
|
|
@@ -1400,7 +916,7 @@ type WebhookRegister<T> = ExternalRegister<EmitTriad<T>>;
|
|
|
1400
916
|
*
|
|
1401
917
|
* @category extra
|
|
1402
918
|
*/
|
|
1403
|
-
declare function fromWebhook<T = unknown>(register: WebhookRegister<T>, opts?: ExtraOpts$
|
|
919
|
+
declare function fromWebhook<T = unknown>(register: WebhookRegister<T>, opts?: ExtraOpts$2): Node<T>;
|
|
1404
920
|
/**
|
|
1405
921
|
* Options for {@link fromHTTP}.
|
|
1406
922
|
*
|
|
@@ -1457,7 +973,7 @@ type HTTPBundle<T> = WithStatusBundle<T> & {
|
|
|
1457
973
|
*/
|
|
1458
974
|
declare function fromHTTP<T = any>(url: string, opts?: FromHTTPOptions): HTTPBundle<T>;
|
|
1459
975
|
/** Options for {@link toHTTP}. */
|
|
1460
|
-
type ToHTTPOptions<T> = ExtraOpts$
|
|
976
|
+
type ToHTTPOptions<T> = ExtraOpts$2 & {
|
|
1461
977
|
/** HTTP method. Default: `"POST"`. */
|
|
1462
978
|
method?: string;
|
|
1463
979
|
/** Request headers applied to every call. Caller sets Content-Type. */
|
|
@@ -1548,7 +1064,7 @@ type SSEEvent<T = string> = {
|
|
|
1548
1064
|
retry?: number;
|
|
1549
1065
|
};
|
|
1550
1066
|
/** Options for {@link fromSSE}. */
|
|
1551
|
-
type FromSSEOptions<T = string> = ExtraOpts$
|
|
1067
|
+
type FromSSEOptions<T = string> = ExtraOpts$2 & {
|
|
1552
1068
|
/** Parse the raw `data:` payload. Default: identity (string). */
|
|
1553
1069
|
parse?: (raw: string) => T;
|
|
1554
1070
|
};
|
|
@@ -1563,7 +1079,7 @@ type FromSSEOptions<T = string> = ExtraOpts$1 & {
|
|
|
1563
1079
|
*/
|
|
1564
1080
|
declare function fromSSE<T = string>(source: ReadableStream<Uint8Array> | Response | AsyncIterable<Uint8Array>, opts?: FromSSEOptions<T>): Node<SSEEvent<T>>;
|
|
1565
1081
|
/** Options for {@link fromHTTPStream}. */
|
|
1566
|
-
type FromHTTPStreamOptions = ExtraOpts$
|
|
1082
|
+
type FromHTTPStreamOptions = ExtraOpts$2 & {
|
|
1567
1083
|
method?: string;
|
|
1568
1084
|
headers?: Record<string, string>;
|
|
1569
1085
|
body?: unknown;
|
|
@@ -1632,7 +1148,7 @@ type ToWebSocketOptions<T> = {
|
|
|
1632
1148
|
*/
|
|
1633
1149
|
declare function toWebSocket<T>(source: Node<T>, socket: WebSocketLike, opts?: ToWebSocketOptions<T>): ReactiveSinkHandle<T>;
|
|
1634
1150
|
/** Options for {@link fromWebSocketReconnect}. */
|
|
1635
|
-
type FromWebSocketReconnectOptions<T> = ExtraOpts$
|
|
1151
|
+
type FromWebSocketReconnectOptions<T> = ExtraOpts$2 & {
|
|
1636
1152
|
/** Optional parser applied to incoming messages. */
|
|
1637
1153
|
parse?: (payload: unknown, event: unknown) => T;
|
|
1638
1154
|
/** Max reconnect attempts. Default: `Infinity` (implied when `backoff` is set). */
|
|
@@ -1675,7 +1191,7 @@ type MCPClientLike = {
|
|
|
1675
1191
|
setNotificationHandler(method: string, handler: (notification: unknown) => void): void;
|
|
1676
1192
|
};
|
|
1677
1193
|
/** Options for {@link fromMCP}. */
|
|
1678
|
-
type FromMCPOptions = ExtraOpts$
|
|
1194
|
+
type FromMCPOptions = ExtraOpts$2 & {
|
|
1679
1195
|
/** MCP notification method to subscribe to. Default `"notifications/message"`. */
|
|
1680
1196
|
method?: string;
|
|
1681
1197
|
onDisconnect?: (cb: (err?: unknown) => void) => void;
|
|
@@ -1698,7 +1214,7 @@ type GitEvent = {
|
|
|
1698
1214
|
timestamp_ns: number;
|
|
1699
1215
|
};
|
|
1700
1216
|
/** Options for {@link fromGitHook}. */
|
|
1701
|
-
type FromGitHookOptions = ExtraOpts$
|
|
1217
|
+
type FromGitHookOptions = ExtraOpts$2 & {
|
|
1702
1218
|
pollMs?: number;
|
|
1703
1219
|
include?: string[];
|
|
1704
1220
|
exclude?: string[];
|
|
@@ -1813,7 +1329,7 @@ type OTelRegister = (handlers: {
|
|
|
1813
1329
|
onError: (err: unknown) => void;
|
|
1814
1330
|
}) => (() => void) | undefined;
|
|
1815
1331
|
/** Options for {@link fromOTel}. */
|
|
1816
|
-
type FromOTelOptions = ExtraOpts$
|
|
1332
|
+
type FromOTelOptions = ExtraOpts$2 & {};
|
|
1817
1333
|
/** Bundle returned by {@link fromOTel}. */
|
|
1818
1334
|
type OTelBundle = {
|
|
1819
1335
|
traces: Node<OTelSpan>;
|
|
@@ -1867,7 +1383,7 @@ type SyslogMessage = {
|
|
|
1867
1383
|
/** Registration callback for syslog receiver. Alias of {@link ExternalRegister} over {@link EmitTriad}. */
|
|
1868
1384
|
type SyslogRegister = ExternalRegister<EmitTriad<SyslogMessage>>;
|
|
1869
1385
|
/** Options for {@link fromSyslog}. */
|
|
1870
|
-
type FromSyslogOptions = ExtraOpts$
|
|
1386
|
+
type FromSyslogOptions = ExtraOpts$2 & {};
|
|
1871
1387
|
/**
|
|
1872
1388
|
* RFC 5424 syslog receiver as a reactive source.
|
|
1873
1389
|
*
|
|
@@ -1917,7 +1433,7 @@ type StatsDMetric = {
|
|
|
1917
1433
|
/** Registration callback for StatsD receiver. Alias of {@link ExternalRegister} over {@link EmitTriad}. */
|
|
1918
1434
|
type StatsDRegister = ExternalRegister<EmitTriad<StatsDMetric>>;
|
|
1919
1435
|
/** Options for {@link fromStatsD}. */
|
|
1920
|
-
type FromStatsDOptions = ExtraOpts$
|
|
1436
|
+
type FromStatsDOptions = ExtraOpts$2 & {};
|
|
1921
1437
|
/**
|
|
1922
1438
|
* StatsD/DogStatsD UDP receiver as a reactive source.
|
|
1923
1439
|
*
|
|
@@ -2055,7 +1571,7 @@ type KafkaMessage<T = unknown> = {
|
|
|
2055
1571
|
timestampNs: number;
|
|
2056
1572
|
};
|
|
2057
1573
|
/** Options for {@link fromKafka}. */
|
|
2058
|
-
type FromKafkaOptions = ExtraOpts$
|
|
1574
|
+
type FromKafkaOptions = ExtraOpts$2 & {
|
|
2059
1575
|
/** Start from beginning of topic. Default: `false`. */
|
|
2060
1576
|
fromBeginning?: boolean;
|
|
2061
1577
|
/** Deserialize message value. Default: `JSON.parse(buffer.toString())`. */
|
|
@@ -2088,7 +1604,7 @@ type FromKafkaOptions = ExtraOpts$1 & {
|
|
|
2088
1604
|
*/
|
|
2089
1605
|
declare function fromKafka<T = unknown>(consumer: KafkaConsumerLike, topic: string, opts?: FromKafkaOptions): Node<KafkaMessage<T>>;
|
|
2090
1606
|
/** Options for {@link toKafka}. */
|
|
2091
|
-
type ToKafkaOptions<T> = ExtraOpts$
|
|
1607
|
+
type ToKafkaOptions<T> = ExtraOpts$2 & {
|
|
2092
1608
|
/** Serialize value for Kafka. Default: `JSON.stringify`. */
|
|
2093
1609
|
serialize?: (value: T) => string | Buffer;
|
|
2094
1610
|
/** Extract message key from value. Default: `null` (no key). */
|
|
@@ -2122,7 +1638,7 @@ type RedisStreamEntry<T = unknown> = {
|
|
|
2122
1638
|
timestampNs: number;
|
|
2123
1639
|
};
|
|
2124
1640
|
/** Options for {@link fromRedisStream}. */
|
|
2125
|
-
type FromRedisStreamOptions = ExtraOpts$
|
|
1641
|
+
type FromRedisStreamOptions = ExtraOpts$2 & {
|
|
2126
1642
|
/** Block timeout in ms for XREAD. Default: `5000`. */
|
|
2127
1643
|
blockMs?: number;
|
|
2128
1644
|
/** Start ID. Default: `"$"` (new entries only). */
|
|
@@ -2154,7 +1670,7 @@ type FromRedisStreamOptions = ExtraOpts$1 & {
|
|
|
2154
1670
|
*/
|
|
2155
1671
|
declare function fromRedisStream<T = unknown>(client: RedisClientLike, key: string, opts?: FromRedisStreamOptions): Node<RedisStreamEntry<T>>;
|
|
2156
1672
|
/** Options for {@link toRedisStream}. */
|
|
2157
|
-
type ToRedisStreamOptions<T> = ExtraOpts$
|
|
1673
|
+
type ToRedisStreamOptions<T> = ExtraOpts$2 & {
|
|
2158
1674
|
/** Serialize value to Redis hash fields. Default: `["data", JSON.stringify(value)]`. */
|
|
2159
1675
|
serialize?: (value: T) => string[];
|
|
2160
1676
|
/** Max stream length (MAXLEN ~). Default: no trimming. */
|
|
@@ -2177,7 +1693,7 @@ declare function toRedisStream<T>(source: Node<T>, client: RedisClientLike, key:
|
|
|
2177
1693
|
/** Parsed CSV row. */
|
|
2178
1694
|
type CSVRow = Record<string, string>;
|
|
2179
1695
|
/** Options for {@link fromCSV}. */
|
|
2180
|
-
type FromCSVOptions = ExtraOpts$
|
|
1696
|
+
type FromCSVOptions = ExtraOpts$2 & {
|
|
2181
1697
|
/** Column delimiter. Default: `","`. */
|
|
2182
1698
|
delimiter?: string;
|
|
2183
1699
|
/** Whether the first row is a header. Default: `true`. */
|
|
@@ -2234,9 +1750,9 @@ declare function csvRows(source: Node<string>, opts?: FromCSVOptions): Node<CSVR
|
|
|
2234
1750
|
*
|
|
2235
1751
|
* @category extra
|
|
2236
1752
|
*/
|
|
2237
|
-
declare function ndjsonRows<T = unknown>(source: Node<string>, opts?: ExtraOpts$
|
|
1753
|
+
declare function ndjsonRows<T = unknown>(source: Node<string>, opts?: ExtraOpts$2): Node<T>;
|
|
2238
1754
|
/** Options for {@link fromNDJSON}. */
|
|
2239
|
-
type FromNDJSONOptions = ExtraOpts$
|
|
1755
|
+
type FromNDJSONOptions = ExtraOpts$2 & {};
|
|
2240
1756
|
/**
|
|
2241
1757
|
* Newline-delimited JSON stream ingest for batch replay.
|
|
2242
1758
|
*
|
|
@@ -2342,7 +1858,7 @@ type PulsarMessage<T = unknown> = {
|
|
|
2342
1858
|
timestampNs: number;
|
|
2343
1859
|
};
|
|
2344
1860
|
/** Options for {@link fromPulsar}. */
|
|
2345
|
-
type FromPulsarOptions = ExtraOpts$
|
|
1861
|
+
type FromPulsarOptions = ExtraOpts$2 & {
|
|
2346
1862
|
/** Deserialize message data. Default: `JSON.parse(buffer.toString())`. */
|
|
2347
1863
|
deserialize?: (data: Buffer) => unknown;
|
|
2348
1864
|
/** Acknowledge messages automatically. Default: `true`. */
|
|
@@ -2389,7 +1905,7 @@ declare function fromPulsar<T = unknown>(consumer: PulsarConsumerLike, opts: Fro
|
|
|
2389
1905
|
autoAck: false;
|
|
2390
1906
|
}): Node<AckableMessage<PulsarMessage<T>>>;
|
|
2391
1907
|
/** Options for {@link toPulsar}. */
|
|
2392
|
-
type ToPulsarOptions<T> = ExtraOpts$
|
|
1908
|
+
type ToPulsarOptions<T> = ExtraOpts$2 & {
|
|
2393
1909
|
/** Serialize value for Pulsar. Default: `JSON.stringify` → Buffer. */
|
|
2394
1910
|
serialize?: (value: T) => Buffer;
|
|
2395
1911
|
/** Extract partition key from value. Default: none. */
|
|
@@ -2442,7 +1958,7 @@ type NATSMessage<T = unknown> = {
|
|
|
2442
1958
|
timestampNs: number;
|
|
2443
1959
|
};
|
|
2444
1960
|
/** Options for {@link fromNATS}. */
|
|
2445
|
-
type FromNATSOptions = ExtraOpts$
|
|
1961
|
+
type FromNATSOptions = ExtraOpts$2 & {
|
|
2446
1962
|
/** Queue group name for load balancing. */
|
|
2447
1963
|
queue?: string;
|
|
2448
1964
|
/** Deserialize message data. Default: `JSON.parse(textDecoder.decode(data))`. */
|
|
@@ -2476,7 +1992,7 @@ type FromNATSOptions = ExtraOpts$1 & {
|
|
|
2476
1992
|
*/
|
|
2477
1993
|
declare function fromNATS<T = unknown>(client: NATSClientLike, subject: string, opts?: FromNATSOptions): Node<NATSMessage<T>>;
|
|
2478
1994
|
/** Options for {@link toNATS}. */
|
|
2479
|
-
type ToNATSOptions<T> = ExtraOpts$
|
|
1995
|
+
type ToNATSOptions<T> = ExtraOpts$2 & {
|
|
2480
1996
|
/** Serialize value for NATS. Default: `JSON.stringify` → Uint8Array. */
|
|
2481
1997
|
serialize?: (value: T) => Uint8Array;
|
|
2482
1998
|
/** Called on serialization failures. */
|
|
@@ -2527,7 +2043,7 @@ type RabbitMQMessage<T = unknown> = {
|
|
|
2527
2043
|
timestampNs: number;
|
|
2528
2044
|
};
|
|
2529
2045
|
/** Options for {@link fromRabbitMQ}. */
|
|
2530
|
-
type FromRabbitMQOptions = ExtraOpts$
|
|
2046
|
+
type FromRabbitMQOptions = ExtraOpts$2 & {
|
|
2531
2047
|
/** Deserialize message content. Default: `JSON.parse(buffer.toString())`. */
|
|
2532
2048
|
deserialize?: (content: Buffer) => unknown;
|
|
2533
2049
|
/** Auto-acknowledge messages. Default: `true`. */
|
|
@@ -2576,7 +2092,7 @@ declare function fromRabbitMQ<T = unknown>(channel: RabbitMQChannelLike, queue:
|
|
|
2576
2092
|
autoAck: false;
|
|
2577
2093
|
}): Node<AckableMessage<RabbitMQMessage<T>>>;
|
|
2578
2094
|
/** Options for {@link toRabbitMQ}. */
|
|
2579
|
-
type ToRabbitMQOptions<T> = ExtraOpts$
|
|
2095
|
+
type ToRabbitMQOptions<T> = ExtraOpts$2 & {
|
|
2580
2096
|
/** Serialize value for RabbitMQ. Default: `Buffer.from(JSON.stringify(value))`. */
|
|
2581
2097
|
serialize?: (value: T) => Buffer;
|
|
2582
2098
|
/** Extract routing key from value. Default: `""`. */
|
|
@@ -2607,7 +2123,7 @@ type FileWriterLike = {
|
|
|
2607
2123
|
end(): void;
|
|
2608
2124
|
};
|
|
2609
2125
|
/** Options for {@link toFile}. */
|
|
2610
|
-
type ToFileOptions<T> = ExtraOpts$
|
|
2126
|
+
type ToFileOptions<T> = ExtraOpts$2 & {
|
|
2611
2127
|
/** Serialize a value to a string line. Default: `JSON.stringify(v) + "\n"`. */
|
|
2612
2128
|
serialize?: (value: T) => string;
|
|
2613
2129
|
/** `"append"` (default) or `"overwrite"` — controls initial file behavior hint. */
|
|
@@ -2633,7 +2149,7 @@ type ToFileOptions<T> = ExtraOpts$1 & {
|
|
|
2633
2149
|
*/
|
|
2634
2150
|
declare function toFile<T>(source: Node<T>, writer: FileWriterLike, opts?: ToFileOptions<T>): ReactiveSinkHandle<T>;
|
|
2635
2151
|
/** Options for {@link toCSV}. */
|
|
2636
|
-
type ToCSVOptions<T> = ExtraOpts$
|
|
2152
|
+
type ToCSVOptions<T> = ExtraOpts$2 & {
|
|
2637
2153
|
/** Column names. Required — determines header row and field order. */
|
|
2638
2154
|
columns: string[];
|
|
2639
2155
|
/** Column delimiter. Default: `","`. */
|
|
@@ -2668,7 +2184,7 @@ type ClickHouseInsertClientLike = {
|
|
|
2668
2184
|
}): Promise<void>;
|
|
2669
2185
|
};
|
|
2670
2186
|
/** Options for {@link toClickHouse}. */
|
|
2671
|
-
type ToClickHouseOptions<T> = ExtraOpts$
|
|
2187
|
+
type ToClickHouseOptions<T> = ExtraOpts$2 & {
|
|
2672
2188
|
/** Batch size before auto-flush. Default: `1000`. */
|
|
2673
2189
|
batchSize?: number;
|
|
2674
2190
|
/** Flush interval in ms. Default: `5000`. */
|
|
@@ -2703,7 +2219,7 @@ type S3ClientLike = {
|
|
|
2703
2219
|
}): Promise<unknown>;
|
|
2704
2220
|
};
|
|
2705
2221
|
/** Options for {@link toS3}. */
|
|
2706
|
-
type ToS3Options<T> = ExtraOpts$
|
|
2222
|
+
type ToS3Options<T> = ExtraOpts$2 & {
|
|
2707
2223
|
/** Output format. Default: `"ndjson"`. */
|
|
2708
2224
|
format?: "ndjson" | "json";
|
|
2709
2225
|
/** Generate the S3 key for each batch. Receives `(seq, wallClockNs)`. Default: ISO timestamp + sequence. */
|
|
@@ -2733,7 +2249,7 @@ type PostgresClientLike = {
|
|
|
2733
2249
|
query(sql: string, params?: unknown[]): Promise<unknown>;
|
|
2734
2250
|
};
|
|
2735
2251
|
/** Options for {@link toPostgres}. */
|
|
2736
|
-
type ToPostgresOptions<T> = ExtraOpts$
|
|
2252
|
+
type ToPostgresOptions<T> = ExtraOpts$2 & {
|
|
2737
2253
|
/** Build the SQL + params for an insert. Default: JSON insert into `table`. */
|
|
2738
2254
|
toSQL?: (value: T, table: string) => {
|
|
2739
2255
|
sql: string;
|
|
@@ -2758,7 +2274,7 @@ type MongoCollectionLike = {
|
|
|
2758
2274
|
insertOne(doc: unknown): Promise<unknown>;
|
|
2759
2275
|
};
|
|
2760
2276
|
/** Options for {@link toMongo}. */
|
|
2761
|
-
type ToMongoOptions<T> = ExtraOpts$
|
|
2277
|
+
type ToMongoOptions<T> = ExtraOpts$2 & {
|
|
2762
2278
|
/** Transform value to a MongoDB document. Default: identity. */
|
|
2763
2279
|
toDocument?: (value: T) => unknown;
|
|
2764
2280
|
onTransportError?: (err: SinkTransportError) => void;
|
|
@@ -2786,7 +2302,7 @@ type LokiClientLike = {
|
|
|
2786
2302
|
}): Promise<unknown>;
|
|
2787
2303
|
};
|
|
2788
2304
|
/** Options for {@link toLoki}. */
|
|
2789
|
-
type ToLokiOptions<T> = ExtraOpts$
|
|
2305
|
+
type ToLokiOptions<T> = ExtraOpts$2 & {
|
|
2790
2306
|
/** Static labels applied to every log entry. */
|
|
2791
2307
|
labels?: Record<string, string>;
|
|
2792
2308
|
/** Extract the log line from a value. Default: `JSON.stringify(v)`. */
|
|
@@ -2813,7 +2329,7 @@ type TempoClientLike = {
|
|
|
2813
2329
|
}): Promise<unknown>;
|
|
2814
2330
|
};
|
|
2815
2331
|
/** Options for {@link toTempo}. */
|
|
2816
|
-
type ToTempoOptions<T> = ExtraOpts$
|
|
2332
|
+
type ToTempoOptions<T> = ExtraOpts$2 & {
|
|
2817
2333
|
/** Transform a value into OTLP resourceSpans entries. */
|
|
2818
2334
|
toResourceSpans?: (value: T) => unknown[];
|
|
2819
2335
|
onTransportError?: (err: SinkTransportError) => void;
|
|
@@ -2906,7 +2422,7 @@ type SqliteDbLike = {
|
|
|
2906
2422
|
query(sql: string, params?: unknown[]): unknown[];
|
|
2907
2423
|
};
|
|
2908
2424
|
/** Options for {@link fromSqlite}. */
|
|
2909
|
-
type FromSqliteOptions<T> = ExtraOpts$
|
|
2425
|
+
type FromSqliteOptions<T> = ExtraOpts$2 & {
|
|
2910
2426
|
/** Map a raw row object to the desired type. Default: identity cast. */
|
|
2911
2427
|
mapRow?: (row: unknown) => T;
|
|
2912
2428
|
/** Bind parameters for the query. */
|
|
@@ -2958,7 +2474,7 @@ type SqliteIterableDbLike = {
|
|
|
2958
2474
|
*/
|
|
2959
2475
|
declare function fromSqliteCursor<T = unknown>(db: SqliteIterableDbLike, query: string, opts?: FromSqliteOptions<T>): Node<T>;
|
|
2960
2476
|
/** Options for {@link toSqlite}. */
|
|
2961
|
-
type ToSqliteOptions<T> = ExtraOpts$
|
|
2477
|
+
type ToSqliteOptions<T> = ExtraOpts$2 & {
|
|
2962
2478
|
/** Build SQL + params for an insert. Default: JSON insert into `(data)` column. */
|
|
2963
2479
|
toSQL?: (value: T, table: string) => {
|
|
2964
2480
|
sql: string;
|
|
@@ -3014,7 +2530,7 @@ type PrismaModelLike<T = unknown> = {
|
|
|
3014
2530
|
findMany(args?: unknown): Promise<T[]>;
|
|
3015
2531
|
};
|
|
3016
2532
|
/** Options for {@link fromPrisma}. */
|
|
3017
|
-
type FromPrismaOptions<T, U = T> = ExtraOpts$
|
|
2533
|
+
type FromPrismaOptions<T, U = T> = ExtraOpts$2 & {
|
|
3018
2534
|
/** Prisma `findMany` args (where, orderBy, select, include, take, skip, etc.). */
|
|
3019
2535
|
args?: unknown;
|
|
3020
2536
|
/** Map each row to the desired shape. Default: identity cast. */
|
|
@@ -3055,7 +2571,7 @@ type DrizzleQueryLike<T = unknown> = {
|
|
|
3055
2571
|
execute(): Promise<T[]>;
|
|
3056
2572
|
};
|
|
3057
2573
|
/** Options for {@link fromDrizzle}. */
|
|
3058
|
-
type FromDrizzleOptions<T, U = T> = ExtraOpts$
|
|
2574
|
+
type FromDrizzleOptions<T, U = T> = ExtraOpts$2 & {
|
|
3059
2575
|
/** Map each row to the desired shape. Default: identity cast. */
|
|
3060
2576
|
mapRow?: (row: T) => U;
|
|
3061
2577
|
};
|
|
@@ -3091,7 +2607,7 @@ type KyselyQueryLike<T = unknown> = {
|
|
|
3091
2607
|
execute(): Promise<T[]>;
|
|
3092
2608
|
};
|
|
3093
2609
|
/** Options for {@link fromKysely}. */
|
|
3094
|
-
type FromKyselyOptions<T, U = T> = ExtraOpts$
|
|
2610
|
+
type FromKyselyOptions<T, U = T> = ExtraOpts$2 & {
|
|
3095
2611
|
/** Map each row to the desired shape. Default: identity cast. */
|
|
3096
2612
|
mapRow?: (row: T) => U;
|
|
3097
2613
|
};
|
|
@@ -3250,305 +2766,6 @@ interface CascadingCache<V> {
|
|
|
3250
2766
|
*/
|
|
3251
2767
|
declare function cascadingCache<V = unknown>(tiers: readonly StorageTier[], opts?: CascadingCacheOptions): CascadingCache<V>;
|
|
3252
2768
|
|
|
3253
|
-
type ReactiveMapOptions<K, V> = {
|
|
3254
|
-
/** Optional registry name for `describe()` / debugging. */
|
|
3255
|
-
name?: string;
|
|
3256
|
-
/**
|
|
3257
|
-
* LRU cap. When set, evicts least-recently-used keys after inserts that exceed this size.
|
|
3258
|
-
* Forwarded to the default `NativeMapBackend`. Ignored if a custom `backend` is provided.
|
|
3259
|
-
*/
|
|
3260
|
-
maxSize?: number;
|
|
3261
|
-
/**
|
|
3262
|
-
* Default TTL in seconds. Used when `set`/`setMany` omits per-call `ttl`.
|
|
3263
|
-
* Forwarded to the default `NativeMapBackend`. Ignored if a custom `backend` is provided.
|
|
3264
|
-
*/
|
|
3265
|
-
defaultTtl?: number;
|
|
3266
|
-
/**
|
|
3267
|
-
* Storage backend. Defaults to `NativeMapBackend`. Users can plug in persistent
|
|
3268
|
-
* (HAMT / Immutable.js) or shared-state backends via the {@link MapBackend} interface.
|
|
3269
|
-
*/
|
|
3270
|
-
backend?: MapBackend<K, V>;
|
|
3271
|
-
/**
|
|
3272
|
-
* Optional versioning level for the underlying `entries` state node. Set at
|
|
3273
|
-
* construction time; cannot be changed later. Pass `0` for V0 identity +
|
|
3274
|
-
* monotonic version counter, or `1` for V1 + content-addressed cid.
|
|
3275
|
-
*/
|
|
3276
|
-
versioning?: VersioningLevel;
|
|
3277
|
-
} & Omit<NodeOptions, "initial" | "describeKind" | "equals" | "versioning">;
|
|
3278
|
-
type ReactiveMapBundle<K, V> = {
|
|
3279
|
-
/** Emits `ReadonlyMap<K, V>` on each structural change (two-phase). */
|
|
3280
|
-
entries: Node<ReadonlyMap<K, V>>;
|
|
3281
|
-
/**
|
|
3282
|
-
* Checks existence. O(1) for live keys. If the key is expired, prunes it AND
|
|
3283
|
-
* emits a snapshot so the reactive surface stays consistent with the return
|
|
3284
|
-
* value. Reads on expired keys are therefore **observable side effects**.
|
|
3285
|
-
*
|
|
3286
|
-
* **LRU touch (F4):** When `maxSize` is configured, a live-key `has` also
|
|
3287
|
-
* marks the entry as most-recently-used — which rearranges internal insertion
|
|
3288
|
-
* order without bumping `version` or emitting. If you care about iteration
|
|
3289
|
-
* order in a downstream subscriber, rely on the `entries` snapshot (a fresh
|
|
3290
|
-
* `ReadonlyMap` per mutation) rather than iterating the backend directly.
|
|
3291
|
-
*/
|
|
3292
|
-
has: (key: K) => boolean;
|
|
3293
|
-
/**
|
|
3294
|
-
* Gets value. O(1) for live keys. If the key is expired, prunes it AND emits
|
|
3295
|
-
* a snapshot. Reads on expired keys are therefore **observable side effects**.
|
|
3296
|
-
*
|
|
3297
|
-
* **LRU touch (F4):** When `maxSize` is configured, a live-key `get` also
|
|
3298
|
-
* marks the entry as most-recently-used (no version bump, no emission). See
|
|
3299
|
-
* `has` for the full note on iteration order.
|
|
3300
|
-
*/
|
|
3301
|
-
get: (key: K) => V | undefined;
|
|
3302
|
-
/**
|
|
3303
|
-
* Sets value with optional TTL (seconds). Throws on `ttl <= 0`. Applies LRU eviction
|
|
3304
|
-
* if `maxSize` is set. Always emits.
|
|
3305
|
-
*/
|
|
3306
|
-
set: (key: K, value: V, opts?: {
|
|
3307
|
-
ttl?: number;
|
|
3308
|
-
}) => void;
|
|
3309
|
-
/**
|
|
3310
|
-
* Bulk set — emits one snapshot for the whole batch. Applies `opts.ttl` (falls back
|
|
3311
|
-
* to `defaultTtl`) to every entry. No-op if `entries` is empty.
|
|
3312
|
-
*
|
|
3313
|
-
* **Iterable consumption:** Consumes `entries` once (single-pass). Pass an array
|
|
3314
|
-
* or `Set` for multi-shot consumers. If the iterator throws mid-iteration,
|
|
3315
|
-
* entries already applied remain committed and a snapshot IS emitted (via the
|
|
3316
|
-
* wrapper's finally-block).
|
|
3317
|
-
*/
|
|
3318
|
-
setMany: (entries: Iterable<readonly [K, V]>, opts?: {
|
|
3319
|
-
ttl?: number;
|
|
3320
|
-
}) => void;
|
|
3321
|
-
delete: (key: K) => void;
|
|
3322
|
-
/**
|
|
3323
|
-
* Bulk delete — emits one snapshot. No-op if no keys were present.
|
|
3324
|
-
*
|
|
3325
|
-
* **Iterable consumption:** Consumes `keys` once (single-pass).
|
|
3326
|
-
*/
|
|
3327
|
-
deleteMany: (keys: Iterable<K>) => void;
|
|
3328
|
-
clear: () => void;
|
|
3329
|
-
/**
|
|
3330
|
-
* Current entry count — O(1), **pure read** (no emission). May include
|
|
3331
|
-
* expired entries on TTL maps until a mutation or explicit
|
|
3332
|
-
* `pruneExpired()` / `has(key)` / `get(key)` prunes them. Call
|
|
3333
|
-
* `pruneExpired()` first if you need a live count.
|
|
3334
|
-
*/
|
|
3335
|
-
readonly size: number;
|
|
3336
|
-
/** Explicitly prunes all expired entries. Emits if any were removed. */
|
|
3337
|
-
pruneExpired: () => void;
|
|
3338
|
-
/**
|
|
3339
|
-
* Releases any internal keepalive subscriptions so the bundle can be
|
|
3340
|
-
* GC'd. `reactiveMap` currently holds none (the `entries` node lives only
|
|
3341
|
-
* as long as external subscribers keep it alive), so `dispose()` is a
|
|
3342
|
-
* no-op today — exposed for API parity with `reactiveIndex.dispose` /
|
|
3343
|
-
* `reactiveList.dispose` / `reactiveLog.dispose`. Idempotent. D6(a).
|
|
3344
|
-
*/
|
|
3345
|
-
dispose: () => void;
|
|
3346
|
-
};
|
|
3347
|
-
/**
|
|
3348
|
-
* Storage contract for {@link reactiveMap}. Implementations own the mutable state,
|
|
3349
|
-
* including optional TTL and LRU semantics, and expose a monotonic `version` counter
|
|
3350
|
-
* that increments on every change to visible state.
|
|
3351
|
-
*
|
|
3352
|
-
* The reactive layer reads `version` before and after each backend call; when it
|
|
3353
|
-
* advances, a snapshot is emitted. Reads (`has`, `get`) may internally prune the
|
|
3354
|
-
* target key if expired and advance `version` — in which case the layer emits so
|
|
3355
|
-
* subscribers see state consistent with the read's return value.
|
|
3356
|
-
*
|
|
3357
|
-
* @remarks Post-1.0 op-log changesets will extend this interface with a
|
|
3358
|
-
* `changesSince(version: number): Iterable<Change>` method. Current consumers
|
|
3359
|
-
* should treat all methods here as stable.
|
|
3360
|
-
*
|
|
3361
|
-
* @category extra
|
|
3362
|
-
*/
|
|
3363
|
-
interface MapBackend<K, V> {
|
|
3364
|
-
/** Monotonic mutation counter; increments on every visible state change. */
|
|
3365
|
-
readonly version: number;
|
|
3366
|
-
/** Raw entry count (may include expired entries until a read / prune removes them). */
|
|
3367
|
-
readonly size: number;
|
|
3368
|
-
/** Checks existence. May prune target key if expired; advances `version` if pruned. */
|
|
3369
|
-
has(key: K): boolean;
|
|
3370
|
-
/** Gets value. May prune target key if expired; advances `version` if pruned. */
|
|
3371
|
-
get(key: K): V | undefined;
|
|
3372
|
-
/**
|
|
3373
|
-
* Sets a value with optional TTL (seconds). Throws `RangeError` if `ttl <= 0`.
|
|
3374
|
-
* Applies LRU eviction if `maxSize` is configured. Advances `version`.
|
|
3375
|
-
*
|
|
3376
|
-
* **Atomicity contract:** Either fully succeeds or throws before any state
|
|
3377
|
-
* change; `version` advances only on success.
|
|
3378
|
-
*/
|
|
3379
|
-
set(key: K, value: V, ttl?: number): void;
|
|
3380
|
-
/**
|
|
3381
|
-
* Atomic bulk set. Pre-validates TTL once, then applies all entries. Advances
|
|
3382
|
-
* `version` at most once (even for N entries). No-op if iterable is empty.
|
|
3383
|
-
*
|
|
3384
|
-
* **Consumes `entries` once** — pass an array if you want repeatability.
|
|
3385
|
-
*
|
|
3386
|
-
* **Atomicity contract:** TTL validation throws before any mutation. If the
|
|
3387
|
-
* iterable itself throws mid-iteration, entries committed before the throw
|
|
3388
|
-
* remain persisted AND `version` is bumped once (surfaced via finally) so
|
|
3389
|
-
* the reactive wrapper emits a snapshot reflecting the partial state. "At
|
|
3390
|
-
* most once" invariant is preserved.
|
|
3391
|
-
*/
|
|
3392
|
-
setMany(entries: Iterable<readonly [K, V]>, ttl?: number): void;
|
|
3393
|
-
/** Removes a key. Returns `true` if the key existed. Advances `version` only if true. */
|
|
3394
|
-
delete(key: K): boolean;
|
|
3395
|
-
/**
|
|
3396
|
-
* Atomic bulk delete. Returns count removed. Advances `version` at most once
|
|
3397
|
-
* (even for N keys). No-op if no keys were present. Consumes `keys` once.
|
|
3398
|
-
*/
|
|
3399
|
-
deleteMany(keys: Iterable<K>): number;
|
|
3400
|
-
/** Removes all entries. Returns count removed. Advances `version` only if non-zero. */
|
|
3401
|
-
clear(): number;
|
|
3402
|
-
/** Removes all expired entries. Returns count removed. Advances `version` only if non-zero. */
|
|
3403
|
-
pruneExpired(): number;
|
|
3404
|
-
/** Fresh snapshot of non-expired entries (does NOT mutate state). */
|
|
3405
|
-
toMap(): ReadonlyMap<K, V>;
|
|
3406
|
-
}
|
|
3407
|
-
type NativeMapBackendOptions = {
|
|
3408
|
-
maxSize?: number;
|
|
3409
|
-
/** Default TTL in seconds. */
|
|
3410
|
-
defaultTtl?: number;
|
|
3411
|
-
};
|
|
3412
|
-
/**
|
|
3413
|
-
* Default `Map<K, {value, expiresAt}>` backend with optional per-key TTL and LRU cap.
|
|
3414
|
-
*
|
|
3415
|
-
* **Complexity:**
|
|
3416
|
-
* - `has`, `get`, `delete`, `size`: O(1)
|
|
3417
|
-
* - `set`: O(1) amortized (LRU touch + eviction)
|
|
3418
|
-
* - `pruneExpired`, `toMap`: O(n)
|
|
3419
|
-
*
|
|
3420
|
-
* LRU order uses native `Map` insertion order. `get` / `has` on a live key "touches"
|
|
3421
|
-
* it by delete-then-reinsert (moving it to the end). This touch does NOT advance
|
|
3422
|
-
* `version` — it's an internal optimization; the externally visible snapshot
|
|
3423
|
-
* preserves iteration order as of the last mutation. **Note:** because touch
|
|
3424
|
-
* reorders the internal `_store` without emitting, an in-process consumer iterating
|
|
3425
|
-
* `_store` directly (custom subclasses) could observe changing order; external
|
|
3426
|
-
* subscribers only see `toMap()` snapshots which are defensively copied and stable.
|
|
3427
|
-
*
|
|
3428
|
-
* @category extra
|
|
3429
|
-
*/
|
|
3430
|
-
declare class NativeMapBackend<K, V> implements MapBackend<K, V> {
|
|
3431
|
-
private _version;
|
|
3432
|
-
private readonly _store;
|
|
3433
|
-
private readonly _maxSize?;
|
|
3434
|
-
private readonly _defaultTtl?;
|
|
3435
|
-
constructor(options?: NativeMapBackendOptions);
|
|
3436
|
-
get version(): number;
|
|
3437
|
-
get size(): number;
|
|
3438
|
-
has(key: K): boolean;
|
|
3439
|
-
get(key: K): V | undefined;
|
|
3440
|
-
set(key: K, value: V, ttl?: number): void;
|
|
3441
|
-
setMany(entries: Iterable<readonly [K, V]>, ttl?: number): void;
|
|
3442
|
-
delete(key: K): boolean;
|
|
3443
|
-
deleteMany(keys: Iterable<K>): number;
|
|
3444
|
-
clear(): number;
|
|
3445
|
-
pruneExpired(): number;
|
|
3446
|
-
toMap(): ReadonlyMap<K, V>;
|
|
3447
|
-
private _resolveExpiresAt;
|
|
3448
|
-
private _isExpired;
|
|
3449
|
-
private _touchLru;
|
|
3450
|
-
private _evictLruWhileOver;
|
|
3451
|
-
}
|
|
3452
|
-
/**
|
|
3453
|
-
* Creates a reactive `Map` with optional per-key TTL and optional LRU max size.
|
|
3454
|
-
*
|
|
3455
|
-
* @param options - `name`, `maxSize`, `defaultTtl` (seconds), or custom `backend`.
|
|
3456
|
-
* @returns `ReactiveMapBundle` — imperative methods (`has`/`get`/`set`/`setMany`/`delete`/
|
|
3457
|
-
* `deleteMany`/`clear`/`pruneExpired`), reactive `entries` node, and O(1)-ish `size`.
|
|
3458
|
-
*
|
|
3459
|
-
* @remarks
|
|
3460
|
-
* **TTL:** Expiry is checked on `get`, `has`, `size`, `pruneExpired`, and before each
|
|
3461
|
-
* snapshot emission (expired keys are pruned first). Reads that discover expired keys
|
|
3462
|
-
* emit a snapshot so subscribers see state consistent with the read's return value.
|
|
3463
|
-
* There is no background timer; monotonic-clock expiry is immune to wall-clock changes.
|
|
3464
|
-
*
|
|
3465
|
-
* **LRU:** Uses native `Map` insertion order — `get` / `has` refreshes position via
|
|
3466
|
-
* delete-then-reinsert; under `maxSize` pressure the first key in iteration order is
|
|
3467
|
-
* evicted. LRU touching does NOT trigger emission (internal optimization).
|
|
3468
|
-
*
|
|
3469
|
-
* **Backend:** The default {@link NativeMapBackend} owns LRU/TTL. For persistent /
|
|
3470
|
-
* HAMT / shared-state semantics plug in a custom {@link MapBackend}. `maxSize` and
|
|
3471
|
-
* `defaultTtl` on the options object are only applied to the default backend — if
|
|
3472
|
-
* you supply `backend`, configure those on your backend directly.
|
|
3473
|
-
*
|
|
3474
|
-
* @example
|
|
3475
|
-
* ```ts
|
|
3476
|
-
* import { reactiveMap } from "@graphrefly/graphrefly-ts";
|
|
3477
|
-
*
|
|
3478
|
-
* const m = reactiveMap<string, number>({ name: "cache", maxSize: 100, defaultTtl: 60 });
|
|
3479
|
-
* m.set("x", 1);
|
|
3480
|
-
* m.setMany([["y", 2], ["z", 3]]);
|
|
3481
|
-
* m.entries.subscribe((msgs) => { console.log(msgs); });
|
|
3482
|
-
* ```
|
|
3483
|
-
*
|
|
3484
|
-
* @category extra
|
|
3485
|
-
*/
|
|
3486
|
-
declare function reactiveMap<K, V>(options?: ReactiveMapOptions<K, V>): ReactiveMapBundle<K, V>;
|
|
3487
|
-
|
|
3488
|
-
/**
|
|
3489
|
-
* Composite data patterns (roadmap §3.2b).
|
|
3490
|
-
*
|
|
3491
|
-
* These helpers compose existing primitives (`node`, `switchMap`, `reactiveMap`,
|
|
3492
|
-
* `dynamicNode`, `fromAny`) without introducing new protocol semantics.
|
|
3493
|
-
*/
|
|
3494
|
-
|
|
3495
|
-
/**
|
|
3496
|
-
* Verification payload shape is intentionally user-defined.
|
|
3497
|
-
*/
|
|
3498
|
-
type VerifyValue = unknown;
|
|
3499
|
-
type VerifiableOptions<TVerify = VerifyValue> = Omit<NodeOptions, "describeKind" | "initial"> & {
|
|
3500
|
-
/** Reactive re-verification trigger. */
|
|
3501
|
-
trigger?: NodeInput<unknown>;
|
|
3502
|
-
/** Re-run verification whenever `source` settles. */
|
|
3503
|
-
autoVerify?: boolean;
|
|
3504
|
-
/** Initial verification companion value. */
|
|
3505
|
-
initialVerified?: TVerify | null;
|
|
3506
|
-
};
|
|
3507
|
-
type VerifiableBundle<T, TVerify = VerifyValue> = {
|
|
3508
|
-
/** Coerced source node. */
|
|
3509
|
-
node: Node<T>;
|
|
3510
|
-
/** Latest verification result (`null` before first verification). */
|
|
3511
|
-
verified: Node<TVerify | null>;
|
|
3512
|
-
/** Effective trigger node used for verification, if any. */
|
|
3513
|
-
trigger: Node<unknown> | null;
|
|
3514
|
-
};
|
|
3515
|
-
/**
|
|
3516
|
-
* Composes a value node with a reactive verification companion.
|
|
3517
|
-
*
|
|
3518
|
-
* Uses `switchMap` so newer triggers cancel stale in-flight verification work.
|
|
3519
|
-
*/
|
|
3520
|
-
declare function verifiable<T, TVerify = VerifyValue>(source: NodeInput<T>, verifyFn: (value: T) => NodeInput<TVerify>, opts?: VerifiableOptions<TVerify>): VerifiableBundle<T, TVerify>;
|
|
3521
|
-
type Extraction<TMem> = {
|
|
3522
|
-
upsert: Array<{
|
|
3523
|
-
key: string;
|
|
3524
|
-
value: TMem;
|
|
3525
|
-
}>;
|
|
3526
|
-
remove?: string[];
|
|
3527
|
-
};
|
|
3528
|
-
type DistillOptions<TMem> = {
|
|
3529
|
-
score: (mem: TMem, context: unknown) => number;
|
|
3530
|
-
cost: (mem: TMem) => number;
|
|
3531
|
-
budget?: number;
|
|
3532
|
-
evict?: (key: string, mem: TMem) => boolean | Node<boolean>;
|
|
3533
|
-
consolidate?: (entries: ReadonlyMap<string, TMem>) => NodeInput<Extraction<TMem>>;
|
|
3534
|
-
consolidateTrigger?: NodeInput<unknown>;
|
|
3535
|
-
context?: NodeInput<unknown>;
|
|
3536
|
-
mapOptions?: ReactiveMapOptions<string, TMem>;
|
|
3537
|
-
};
|
|
3538
|
-
type DistillBundle<TMem> = {
|
|
3539
|
-
store: ReactiveMapBundle<string, TMem>;
|
|
3540
|
-
compact: Node<Array<{
|
|
3541
|
-
key: string;
|
|
3542
|
-
value: TMem;
|
|
3543
|
-
score: number;
|
|
3544
|
-
}>>;
|
|
3545
|
-
size: Node<number>;
|
|
3546
|
-
};
|
|
3547
|
-
/**
|
|
3548
|
-
* Budget-constrained reactive memory composition.
|
|
3549
|
-
*/
|
|
3550
|
-
declare function distill<TRaw, TMem>(source: NodeInput<TRaw>, extractFn: (raw: TRaw, existing: ReadonlyMap<string, TMem>) => NodeInput<Extraction<TMem>>, opts: DistillOptions<TMem>): DistillBundle<TMem>;
|
|
3551
|
-
|
|
3552
2769
|
/**
|
|
3553
2770
|
* Minimal 5-field cron parser and matcher (minute hour day-of-month month day-of-week).
|
|
3554
2771
|
* Ported from callbag-recharge `extra/cron.ts` for `fromCron` (roadmap §2.3).
|
|
@@ -3610,7 +2827,7 @@ declare function matchesCron(schedule: CronSchedule, date: Date): boolean;
|
|
|
3610
2827
|
* and `onResubscribe` are removed.
|
|
3611
2828
|
*/
|
|
3612
2829
|
|
|
3613
|
-
type ExtraOpts = Omit<NodeOptions<unknown>, "describeKind">;
|
|
2830
|
+
type ExtraOpts$1 = Omit<NodeOptions<unknown>, "describeKind">;
|
|
3614
2831
|
/**
|
|
3615
2832
|
* Maps each settled value from `source` through `project`.
|
|
3616
2833
|
*
|
|
@@ -3628,7 +2845,7 @@ type ExtraOpts = Omit<NodeOptions<unknown>, "describeKind">;
|
|
|
3628
2845
|
*
|
|
3629
2846
|
* @category extra
|
|
3630
2847
|
*/
|
|
3631
|
-
declare function map<T, R>(source: Node<T>, project: (value: T) => R, opts?: ExtraOpts): Node<R>;
|
|
2848
|
+
declare function map<T, R>(source: Node<T>, project: (value: T) => R, opts?: ExtraOpts$1): Node<R>;
|
|
3632
2849
|
/**
|
|
3633
2850
|
* Forwards values that satisfy `predicate`; otherwise emits `RESOLVED` with no `DATA` (two-phase semantics).
|
|
3634
2851
|
*
|
|
@@ -3646,7 +2863,7 @@ declare function map<T, R>(source: Node<T>, project: (value: T) => R, opts?: Ext
|
|
|
3646
2863
|
*
|
|
3647
2864
|
* @category extra
|
|
3648
2865
|
*/
|
|
3649
|
-
declare function filter<T>(source: Node<T>, predicate: (value: T) => boolean, opts?: ExtraOpts): Node<T>;
|
|
2866
|
+
declare function filter<T>(source: Node<T>, predicate: (value: T) => boolean, opts?: ExtraOpts$1): Node<T>;
|
|
3650
2867
|
/**
|
|
3651
2868
|
* Folds each upstream value into an accumulator; emits the new accumulator every time.
|
|
3652
2869
|
*
|
|
@@ -3668,7 +2885,7 @@ declare function filter<T>(source: Node<T>, predicate: (value: T) => boolean, op
|
|
|
3668
2885
|
*
|
|
3669
2886
|
* @category extra
|
|
3670
2887
|
*/
|
|
3671
|
-
declare function scan<T, R>(source: Node<T>, reducer: (acc: R, value: T) => R, seed: R, opts?: ExtraOpts): Node<R>;
|
|
2888
|
+
declare function scan<T, R>(source: Node<T>, reducer: (acc: R, value: T) => R, seed: R, opts?: ExtraOpts$1): Node<R>;
|
|
3672
2889
|
/**
|
|
3673
2890
|
* Reduces to one value emitted when `source` completes; if no `DATA` arrived, emits `seed`.
|
|
3674
2891
|
*
|
|
@@ -3690,7 +2907,7 @@ declare function scan<T, R>(source: Node<T>, reducer: (acc: R, value: T) => R, s
|
|
|
3690
2907
|
*
|
|
3691
2908
|
* @category extra
|
|
3692
2909
|
*/
|
|
3693
|
-
declare function reduce<T, R>(source: Node<T>, reducer: (acc: R, value: T) => R, seed: R, opts?: ExtraOpts): Node<R>;
|
|
2910
|
+
declare function reduce<T, R>(source: Node<T>, reducer: (acc: R, value: T) => R, seed: R, opts?: ExtraOpts$1): Node<R>;
|
|
3694
2911
|
/**
|
|
3695
2912
|
* Emits at most `count` **`DATA`** values, then **`COMPLETE`**. `RESOLVED` does not advance the counter.
|
|
3696
2913
|
*
|
|
@@ -3708,7 +2925,7 @@ declare function reduce<T, R>(source: Node<T>, reducer: (acc: R, value: T) => R,
|
|
|
3708
2925
|
*
|
|
3709
2926
|
* @category extra
|
|
3710
2927
|
*/
|
|
3711
|
-
declare function take<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<T>;
|
|
2928
|
+
declare function take<T>(source: Node<T>, count: number, opts?: ExtraOpts$1): Node<T>;
|
|
3712
2929
|
/**
|
|
3713
2930
|
* Skips the first `count` **`DATA`** emissions. `RESOLVED` does not advance the counter.
|
|
3714
2931
|
*
|
|
@@ -3726,7 +2943,7 @@ declare function take<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node
|
|
|
3726
2943
|
*
|
|
3727
2944
|
* @category extra
|
|
3728
2945
|
*/
|
|
3729
|
-
declare function skip<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<T>;
|
|
2946
|
+
declare function skip<T>(source: Node<T>, count: number, opts?: ExtraOpts$1): Node<T>;
|
|
3730
2947
|
/**
|
|
3731
2948
|
* Emits while `predicate` holds; on first false, sends **`COMPLETE`**.
|
|
3732
2949
|
*
|
|
@@ -3744,7 +2961,7 @@ declare function skip<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node
|
|
|
3744
2961
|
*
|
|
3745
2962
|
* @category extra
|
|
3746
2963
|
*/
|
|
3747
|
-
declare function takeWhile<T>(source: Node<T>, predicate: (value: T) => boolean, opts?: ExtraOpts): Node<T>;
|
|
2964
|
+
declare function takeWhile<T>(source: Node<T>, predicate: (value: T) => boolean, opts?: ExtraOpts$1): Node<T>;
|
|
3748
2965
|
/**
|
|
3749
2966
|
* Forwards `source` until `notifier` matches `predicate` (default: notifier **`DATA`**), then **`COMPLETE`**.
|
|
3750
2967
|
*
|
|
@@ -3764,7 +2981,7 @@ declare function takeWhile<T>(source: Node<T>, predicate: (value: T) => boolean,
|
|
|
3764
2981
|
*
|
|
3765
2982
|
* @category extra
|
|
3766
2983
|
*/
|
|
3767
|
-
declare function takeUntil<T>(source: Node<T>, notifier: Node, opts?: ExtraOpts & {
|
|
2984
|
+
declare function takeUntil<T>(source: Node<T>, notifier: Node, opts?: ExtraOpts$1 & {
|
|
3768
2985
|
predicate?: (msg: Message) => boolean;
|
|
3769
2986
|
}): Node<T>;
|
|
3770
2987
|
/**
|
|
@@ -3783,7 +3000,7 @@ declare function takeUntil<T>(source: Node<T>, notifier: Node, opts?: ExtraOpts
|
|
|
3783
3000
|
*
|
|
3784
3001
|
* @category extra
|
|
3785
3002
|
*/
|
|
3786
|
-
declare function first<T>(source: Node<T>, opts?: ExtraOpts): Node<T>;
|
|
3003
|
+
declare function first<T>(source: Node<T>, opts?: ExtraOpts$1): Node<T>;
|
|
3787
3004
|
/**
|
|
3788
3005
|
* Buffers values and emits the last **`DATA`** on **`COMPLETE`**; optional `defaultValue` if none arrived.
|
|
3789
3006
|
*
|
|
@@ -3800,7 +3017,7 @@ declare function first<T>(source: Node<T>, opts?: ExtraOpts): Node<T>;
|
|
|
3800
3017
|
*
|
|
3801
3018
|
* @category extra
|
|
3802
3019
|
*/
|
|
3803
|
-
declare function last<T>(source: Node<T>, options?: ExtraOpts & {
|
|
3020
|
+
declare function last<T>(source: Node<T>, options?: ExtraOpts$1 & {
|
|
3804
3021
|
defaultValue?: T;
|
|
3805
3022
|
}): Node<T>;
|
|
3806
3023
|
/**
|
|
@@ -3820,7 +3037,7 @@ declare function last<T>(source: Node<T>, options?: ExtraOpts & {
|
|
|
3820
3037
|
*
|
|
3821
3038
|
* @category extra
|
|
3822
3039
|
*/
|
|
3823
|
-
declare function find<T>(source: Node<T>, predicate: (value: T) => boolean, opts?: ExtraOpts): Node<T>;
|
|
3040
|
+
declare function find<T>(source: Node<T>, predicate: (value: T) => boolean, opts?: ExtraOpts$1): Node<T>;
|
|
3824
3041
|
/**
|
|
3825
3042
|
* Emits the `index`th **`DATA`** (zero-based), then **`COMPLETE`**.
|
|
3826
3043
|
*
|
|
@@ -3838,7 +3055,7 @@ declare function find<T>(source: Node<T>, predicate: (value: T) => boolean, opts
|
|
|
3838
3055
|
*
|
|
3839
3056
|
* @category extra
|
|
3840
3057
|
*/
|
|
3841
|
-
declare function elementAt<T>(source: Node<T>, index: number, opts?: ExtraOpts): Node<T>;
|
|
3058
|
+
declare function elementAt<T>(source: Node<T>, index: number, opts?: ExtraOpts$1): Node<T>;
|
|
3842
3059
|
/**
|
|
3843
3060
|
* Observer shape for {@link tap} — side effects for data, error, and/or complete.
|
|
3844
3061
|
*/
|
|
@@ -3871,7 +3088,7 @@ type TapObserver<T> = {
|
|
|
3871
3088
|
*
|
|
3872
3089
|
* @category extra
|
|
3873
3090
|
*/
|
|
3874
|
-
declare function tap<T>(source: Node<T>, fnOrObserver: ((value: T) => void) | TapObserver<T>, opts?: ExtraOpts): Node<T>;
|
|
3091
|
+
declare function tap<T>(source: Node<T>, fnOrObserver: ((value: T) => void) | TapObserver<T>, opts?: ExtraOpts$1): Node<T>;
|
|
3875
3092
|
/**
|
|
3876
3093
|
* Suppresses adjacent duplicates using `equals` (default `Object.is`).
|
|
3877
3094
|
*
|
|
@@ -3889,7 +3106,7 @@ declare function tap<T>(source: Node<T>, fnOrObserver: ((value: T) => void) | Ta
|
|
|
3889
3106
|
*
|
|
3890
3107
|
* @category extra
|
|
3891
3108
|
*/
|
|
3892
|
-
declare function distinctUntilChanged<T>(source: Node<T>, equals?: (a: T, b: T) => boolean, opts?: ExtraOpts): Node<T>;
|
|
3109
|
+
declare function distinctUntilChanged<T>(source: Node<T>, equals?: (a: T, b: T) => boolean, opts?: ExtraOpts$1): Node<T>;
|
|
3893
3110
|
/**
|
|
3894
3111
|
* Emits `[previous, current]` pairs starting after the second value (first pair uses `RESOLVED` only).
|
|
3895
3112
|
*
|
|
@@ -3906,7 +3123,7 @@ declare function distinctUntilChanged<T>(source: Node<T>, equals?: (a: T, b: T)
|
|
|
3906
3123
|
*
|
|
3907
3124
|
* @category extra
|
|
3908
3125
|
*/
|
|
3909
|
-
declare function pairwise<T>(source: Node<T>, opts?: ExtraOpts): Node<readonly [T, T]>;
|
|
3126
|
+
declare function pairwise<T>(source: Node<T>, opts?: ExtraOpts$1): Node<readonly [T, T]>;
|
|
3910
3127
|
/**
|
|
3911
3128
|
* Combines the latest value from each dependency whenever any dep settles (combineLatest).
|
|
3912
3129
|
*
|
|
@@ -3946,7 +3163,7 @@ declare function combine<const T extends readonly unknown[]>(...sources: {
|
|
|
3946
3163
|
*
|
|
3947
3164
|
* @category extra
|
|
3948
3165
|
*/
|
|
3949
|
-
declare function withLatestFrom<A, B>(primary: Node<A>, secondary: Node<B>, opts?: ExtraOpts): Node<readonly [A, B]>;
|
|
3166
|
+
declare function withLatestFrom<A, B>(primary: Node<A>, secondary: Node<B>, opts?: ExtraOpts$1): Node<readonly [A, B]>;
|
|
3950
3167
|
/**
|
|
3951
3168
|
* Merges **`DATA`** from any source with correct two-phase dirty tracking. **`COMPLETE`** after **all** sources complete (spec §1.3.5).
|
|
3952
3169
|
*
|
|
@@ -4001,7 +3218,7 @@ declare function zip<const T extends readonly unknown[]>(...sources: {
|
|
|
4001
3218
|
*
|
|
4002
3219
|
* @category extra
|
|
4003
3220
|
*/
|
|
4004
|
-
declare function concat<T>(firstSrc: Node<T>, secondSrc: Node<T>, opts?: ExtraOpts): Node<T>;
|
|
3221
|
+
declare function concat<T>(firstSrc: Node<T>, secondSrc: Node<T>, opts?: ExtraOpts$1): Node<T>;
|
|
4005
3222
|
/**
|
|
4006
3223
|
* First source to emit **`DATA`** wins; later traffic follows only the winner (Rx-style `race`).
|
|
4007
3224
|
*
|
|
@@ -4035,7 +3252,7 @@ declare function race<T>(...sources: readonly Node<T>[]): Node<T>;
|
|
|
4035
3252
|
*
|
|
4036
3253
|
* @category extra
|
|
4037
3254
|
*/
|
|
4038
|
-
declare function switchMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: ExtraOpts): Node<R>;
|
|
3255
|
+
declare function switchMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: ExtraOpts$1): Node<R>;
|
|
4039
3256
|
/**
|
|
4040
3257
|
* Like {@link switchMap}, but ignores outer `DATA` while an inner subscription is active (`exhaustMap`).
|
|
4041
3258
|
*
|
|
@@ -4052,7 +3269,7 @@ declare function switchMap<T, R>(source: Node<T>, project: (value: T) => NodeInp
|
|
|
4052
3269
|
*
|
|
4053
3270
|
* @category extra
|
|
4054
3271
|
*/
|
|
4055
|
-
declare function exhaustMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: ExtraOpts): Node<R>;
|
|
3272
|
+
declare function exhaustMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: ExtraOpts$1): Node<R>;
|
|
4056
3273
|
/**
|
|
4057
3274
|
* Enqueues each outer value and subscribes to inners one at a time (`concatMap`).
|
|
4058
3275
|
*
|
|
@@ -4069,11 +3286,11 @@ declare function exhaustMap<T, R>(source: Node<T>, project: (value: T) => NodeIn
|
|
|
4069
3286
|
*
|
|
4070
3287
|
* @category extra
|
|
4071
3288
|
*/
|
|
4072
|
-
declare function concatMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: ExtraOpts & {
|
|
3289
|
+
declare function concatMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: ExtraOpts$1 & {
|
|
4073
3290
|
maxBuffer?: number;
|
|
4074
3291
|
}): Node<R>;
|
|
4075
3292
|
/** Options for {@link mergeMap}. */
|
|
4076
|
-
type MergeMapOptions = ExtraOpts & {
|
|
3293
|
+
type MergeMapOptions = ExtraOpts$1 & {
|
|
4077
3294
|
/** Maximum number of concurrent inner subscriptions. Default: `Infinity` (unbounded). */
|
|
4078
3295
|
concurrent?: number;
|
|
4079
3296
|
};
|
|
@@ -4141,7 +3358,7 @@ declare const flatMap: typeof mergeMap;
|
|
|
4141
3358
|
*
|
|
4142
3359
|
* @category extra
|
|
4143
3360
|
*/
|
|
4144
|
-
declare function delay<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T>;
|
|
3361
|
+
declare function delay<T>(source: Node<T>, ms: number, opts?: ExtraOpts$1): Node<T>;
|
|
4145
3362
|
/**
|
|
4146
3363
|
* Emits the latest value only after `ms` quiet time since the last trigger (`debounce`).
|
|
4147
3364
|
*
|
|
@@ -4158,7 +3375,7 @@ declare function delay<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T
|
|
|
4158
3375
|
*
|
|
4159
3376
|
* @category extra
|
|
4160
3377
|
*/
|
|
4161
|
-
declare function debounce<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T>;
|
|
3378
|
+
declare function debounce<T>(source: Node<T>, ms: number, opts?: ExtraOpts$1): Node<T>;
|
|
4162
3379
|
type ThrottleOptions = {
|
|
4163
3380
|
leading?: boolean;
|
|
4164
3381
|
trailing?: boolean;
|
|
@@ -4179,7 +3396,7 @@ type ThrottleOptions = {
|
|
|
4179
3396
|
*
|
|
4180
3397
|
* @category extra
|
|
4181
3398
|
*/
|
|
4182
|
-
declare function throttle<T>(source: Node<T>, ms: number, opts?: ExtraOpts & ThrottleOptions): Node<T>;
|
|
3399
|
+
declare function throttle<T>(source: Node<T>, ms: number, opts?: ExtraOpts$1 & ThrottleOptions): Node<T>;
|
|
4183
3400
|
/**
|
|
4184
3401
|
* Emits the most recent source value whenever `notifier` emits `DATA` (`sample`).
|
|
4185
3402
|
*
|
|
@@ -4200,7 +3417,7 @@ declare function throttle<T>(source: Node<T>, ms: number, opts?: ExtraOpts & Thr
|
|
|
4200
3417
|
*
|
|
4201
3418
|
* @category extra
|
|
4202
3419
|
*/
|
|
4203
|
-
declare function sample<T>(source: Node<T>, notifier: Node<unknown>, opts?: ExtraOpts): Node<T>;
|
|
3420
|
+
declare function sample<T>(source: Node<T>, notifier: Node<unknown>, opts?: ExtraOpts$1): Node<T>;
|
|
4204
3421
|
/**
|
|
4205
3422
|
* After each source `DATA`, waits `ms` then emits the latest value if another `DATA` has not arrived (`auditTime` / trailing window).
|
|
4206
3423
|
*
|
|
@@ -4217,7 +3434,7 @@ declare function sample<T>(source: Node<T>, notifier: Node<unknown>, opts?: Extr
|
|
|
4217
3434
|
*
|
|
4218
3435
|
* @category extra
|
|
4219
3436
|
*/
|
|
4220
|
-
declare function audit<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T>;
|
|
3437
|
+
declare function audit<T>(source: Node<T>, ms: number, opts?: ExtraOpts$1): Node<T>;
|
|
4221
3438
|
/**
|
|
4222
3439
|
* Buffers source `DATA` values; flushes an array when `notifier` settles (`buffer`).
|
|
4223
3440
|
*
|
|
@@ -4234,7 +3451,7 @@ declare function audit<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T
|
|
|
4234
3451
|
*
|
|
4235
3452
|
* @category extra
|
|
4236
3453
|
*/
|
|
4237
|
-
declare function buffer<T>(source: Node<T>, notifier: Node<unknown>, opts?: ExtraOpts): Node<T[]>;
|
|
3454
|
+
declare function buffer<T>(source: Node<T>, notifier: Node<unknown>, opts?: ExtraOpts$1): Node<T[]>;
|
|
4238
3455
|
/**
|
|
4239
3456
|
* Batches consecutive `DATA` values into arrays of length `count` (`bufferCount` / `windowCount`).
|
|
4240
3457
|
*
|
|
@@ -4251,7 +3468,7 @@ declare function buffer<T>(source: Node<T>, notifier: Node<unknown>, opts?: Extr
|
|
|
4251
3468
|
*
|
|
4252
3469
|
* @category extra
|
|
4253
3470
|
*/
|
|
4254
|
-
declare function bufferCount<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<T[]>;
|
|
3471
|
+
declare function bufferCount<T>(source: Node<T>, count: number, opts?: ExtraOpts$1): Node<T[]>;
|
|
4255
3472
|
/**
|
|
4256
3473
|
* Splits source `DATA` into sub-nodes of `count` values each. Each sub-node completes after `count` items or when source completes.
|
|
4257
3474
|
*
|
|
@@ -4269,7 +3486,7 @@ declare function bufferCount<T>(source: Node<T>, count: number, opts?: ExtraOpts
|
|
|
4269
3486
|
*
|
|
4270
3487
|
* @category extra
|
|
4271
3488
|
*/
|
|
4272
|
-
declare function windowCount<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<Node<T>>;
|
|
3489
|
+
declare function windowCount<T>(source: Node<T>, count: number, opts?: ExtraOpts$1): Node<Node<T>>;
|
|
4273
3490
|
/**
|
|
4274
3491
|
* Flushes buffered `DATA` values every `ms` (`bufferTime` / `windowTime`).
|
|
4275
3492
|
*
|
|
@@ -4286,7 +3503,7 @@ declare function windowCount<T>(source: Node<T>, count: number, opts?: ExtraOpts
|
|
|
4286
3503
|
*
|
|
4287
3504
|
* @category extra
|
|
4288
3505
|
*/
|
|
4289
|
-
declare function bufferTime<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T[]>;
|
|
3506
|
+
declare function bufferTime<T>(source: Node<T>, ms: number, opts?: ExtraOpts$1): Node<T[]>;
|
|
4290
3507
|
/**
|
|
4291
3508
|
* Splits source `DATA` into time-windowed sub-nodes; each window lasts `ms`.
|
|
4292
3509
|
*
|
|
@@ -4304,7 +3521,7 @@ declare function bufferTime<T>(source: Node<T>, ms: number, opts?: ExtraOpts): N
|
|
|
4304
3521
|
*
|
|
4305
3522
|
* @category extra
|
|
4306
3523
|
*/
|
|
4307
|
-
declare function windowTime<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<Node<T>>;
|
|
3524
|
+
declare function windowTime<T>(source: Node<T>, ms: number, opts?: ExtraOpts$1): Node<Node<T>>;
|
|
4308
3525
|
/**
|
|
4309
3526
|
* Splits source `DATA` into sub-nodes, opening a new window each time `notifier` emits `DATA`.
|
|
4310
3527
|
*
|
|
@@ -4322,7 +3539,7 @@ declare function windowTime<T>(source: Node<T>, ms: number, opts?: ExtraOpts): N
|
|
|
4322
3539
|
*
|
|
4323
3540
|
* @category extra
|
|
4324
3541
|
*/
|
|
4325
|
-
declare function window<T>(source: Node<T>, notifier: Node<unknown>, opts?: ExtraOpts): Node<Node<T>>;
|
|
3542
|
+
declare function window<T>(source: Node<T>, notifier: Node<unknown>, opts?: ExtraOpts$1): Node<Node<T>>;
|
|
4326
3543
|
/**
|
|
4327
3544
|
* Increments on each tick (`interval`); uses `setInterval` via {@link producer}.
|
|
4328
3545
|
*
|
|
@@ -4338,7 +3555,7 @@ declare function window<T>(source: Node<T>, notifier: Node<unknown>, opts?: Extr
|
|
|
4338
3555
|
*
|
|
4339
3556
|
* @category extra
|
|
4340
3557
|
*/
|
|
4341
|
-
declare function interval(periodMs: number, opts?: ExtraOpts): Node<number>;
|
|
3558
|
+
declare function interval(periodMs: number, opts?: ExtraOpts$1): Node<number>;
|
|
4342
3559
|
/**
|
|
4343
3560
|
* Subscribes to `source` repeatedly (`count` times, sequentially). Best with a fresh or `resubscribable` source.
|
|
4344
3561
|
*
|
|
@@ -4355,7 +3572,7 @@ declare function interval(periodMs: number, opts?: ExtraOpts): Node<number>;
|
|
|
4355
3572
|
*
|
|
4356
3573
|
* @category extra
|
|
4357
3574
|
*/
|
|
4358
|
-
declare function repeat<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<T>;
|
|
3575
|
+
declare function repeat<T>(source: Node<T>, count: number, opts?: ExtraOpts$1): Node<T>;
|
|
4359
3576
|
/**
|
|
4360
3577
|
* Identity passthrough — `pausable()` has been promoted to default node behavior in v5 (§4).
|
|
4361
3578
|
*
|
|
@@ -4376,7 +3593,7 @@ declare function repeat<T>(source: Node<T>, count: number, opts?: ExtraOpts): No
|
|
|
4376
3593
|
*
|
|
4377
3594
|
* @category extra
|
|
4378
3595
|
*/
|
|
4379
|
-
declare function pausable<T>(source: Node<T>, opts?: ExtraOpts): Node<T>;
|
|
3596
|
+
declare function pausable<T>(source: Node<T>, opts?: ExtraOpts$1): Node<T>;
|
|
4380
3597
|
/**
|
|
4381
3598
|
* Replaces an upstream `ERROR` with a recovered value (`catchError`-style).
|
|
4382
3599
|
*
|
|
@@ -4393,7 +3610,7 @@ declare function pausable<T>(source: Node<T>, opts?: ExtraOpts): Node<T>;
|
|
|
4393
3610
|
*
|
|
4394
3611
|
* @category extra
|
|
4395
3612
|
*/
|
|
4396
|
-
declare function rescue<T>(source: Node<T>, recover: (err: unknown) => T, opts?: ExtraOpts): Node<T>;
|
|
3613
|
+
declare function rescue<T>(source: Node<T>, recover: (err: unknown) => T, opts?: ExtraOpts$1): Node<T>;
|
|
4397
3614
|
/**
|
|
4398
3615
|
* Forwards upstream `DATA` only while `control.get()` is truthy; when closed, emits `RESOLVED`
|
|
4399
3616
|
* instead of repeating the last value (value-level valve). For protocol pause/resume, use default
|
|
@@ -4415,7 +3632,7 @@ declare function rescue<T>(source: Node<T>, recover: (err: unknown) => T, opts?:
|
|
|
4415
3632
|
*
|
|
4416
3633
|
* @category extra
|
|
4417
3634
|
*/
|
|
4418
|
-
declare function valve<T>(source: Node<T>, control: Node<boolean>, opts?: ExtraOpts): Node<T>;
|
|
3635
|
+
declare function valve<T>(source: Node<T>, control: Node<boolean>, opts?: ExtraOpts$1): Node<T>;
|
|
4419
3636
|
/**
|
|
4420
3637
|
* RxJS-named alias for {@link combine} — emits when any dep updates with latest tuple of values.
|
|
4421
3638
|
*
|
|
@@ -5152,6 +4369,38 @@ declare class NativeLogBackend<T> implements LogBackend<T> {
|
|
|
5152
4369
|
*/
|
|
5153
4370
|
declare function reactiveLog<T>(initial?: readonly T[], options?: ReactiveLogOptions<T>): ReactiveLogBundle<T>;
|
|
5154
4371
|
|
|
4372
|
+
/**
|
|
4373
|
+
* Filesystem-watching source. Isolated from `./sources.ts` so bundlers
|
|
4374
|
+
* targeting the browser can import browser-safe sources (`fromTimer`,
|
|
4375
|
+
* `fromRaf`, etc.) without pulling in `node:fs`/`node:path`.
|
|
4376
|
+
*/
|
|
4377
|
+
|
|
4378
|
+
type ExtraOpts = Omit<NodeOptions<unknown>, "describeKind">;
|
|
4379
|
+
type FSEventType = "change" | "rename" | "create" | "delete";
|
|
4380
|
+
type FSEvent = {
|
|
4381
|
+
type: FSEventType;
|
|
4382
|
+
path: string;
|
|
4383
|
+
root: string;
|
|
4384
|
+
relative_path: string;
|
|
4385
|
+
src_path?: string;
|
|
4386
|
+
dest_path?: string;
|
|
4387
|
+
timestamp_ns: number;
|
|
4388
|
+
};
|
|
4389
|
+
type FromFSWatchOptions = ExtraOpts & {
|
|
4390
|
+
recursive?: boolean;
|
|
4391
|
+
debounce?: number;
|
|
4392
|
+
include?: string[];
|
|
4393
|
+
exclude?: string[];
|
|
4394
|
+
};
|
|
4395
|
+
/**
|
|
4396
|
+
* Watches filesystem paths and emits debounced change events.
|
|
4397
|
+
*
|
|
4398
|
+
* Uses `fs.watch` only (no polling fallback). Teardown closes all watchers.
|
|
4399
|
+
*
|
|
4400
|
+
* @category extra
|
|
4401
|
+
*/
|
|
4402
|
+
declare function fromFSWatch(paths: string | string[], opts?: FromFSWatchOptions): Node<FSEvent>;
|
|
4403
|
+
|
|
5155
4404
|
/**
|
|
5156
4405
|
* Creates a resettable deadline timer for internal timeout, retry, and rate-limiting use.
|
|
5157
4406
|
*
|
|
@@ -5397,7 +4646,7 @@ declare function workerSelf<TImport extends readonly string[]>(target: unknown |
|
|
|
5397
4646
|
|
|
5398
4647
|
type index_AckableMessage<T> = AckableMessage<T>;
|
|
5399
4648
|
type index_AdapterHandlers<T> = AdapterHandlers<T>;
|
|
5400
|
-
|
|
4649
|
+
declare const index_AsyncSourceOpts: typeof AsyncSourceOpts;
|
|
5401
4650
|
type index_BackoffPreset = BackoffPreset;
|
|
5402
4651
|
type index_BackoffStrategy = BackoffStrategy;
|
|
5403
4652
|
type index_BatchMessage = BatchMessage;
|
|
@@ -5419,23 +4668,23 @@ type index_ClickHouseClientLike = ClickHouseClientLike;
|
|
|
5419
4668
|
type index_ClickHouseInsertClientLike = ClickHouseInsertClientLike;
|
|
5420
4669
|
type index_ClickHouseRow = ClickHouseRow;
|
|
5421
4670
|
type index_CronSchedule = CronSchedule;
|
|
5422
|
-
|
|
5423
|
-
|
|
4671
|
+
declare const index_DistillBundle: typeof DistillBundle;
|
|
4672
|
+
declare const index_DistillOptions: typeof DistillOptions;
|
|
5424
4673
|
type index_DrizzleQueryLike<T = unknown> = DrizzleQueryLike<T>;
|
|
5425
4674
|
type index_EmitTriad<T> = EmitTriad<T>;
|
|
5426
4675
|
type index_ErrorMessage = ErrorMessage;
|
|
5427
|
-
|
|
4676
|
+
declare const index_EventTargetLike: typeof EventTargetLike;
|
|
5428
4677
|
type index_ExponentialBackoffOptions = ExponentialBackoffOptions;
|
|
5429
4678
|
type index_ExternalBundleOptions<TChannels extends Record<string, unknown>> = ExternalBundleOptions<TChannels>;
|
|
5430
4679
|
type index_ExternalRegister<H> = ExternalRegister<H>;
|
|
5431
|
-
|
|
4680
|
+
declare const index_Extraction: typeof Extraction;
|
|
5432
4681
|
type index_FSEvent = FSEvent;
|
|
5433
4682
|
type index_FSEventType = FSEventType;
|
|
5434
4683
|
type index_FallbackInput<T> = FallbackInput<T>;
|
|
5435
4684
|
type index_FileWriterLike = FileWriterLike;
|
|
5436
4685
|
type index_FromCSVOptions = FromCSVOptions;
|
|
5437
4686
|
type index_FromClickHouseWatchOptions = FromClickHouseWatchOptions;
|
|
5438
|
-
|
|
4687
|
+
declare const index_FromCronOptions: typeof FromCronOptions;
|
|
5439
4688
|
type index_FromDrizzleOptions<T, U = T> = FromDrizzleOptions<T, U>;
|
|
5440
4689
|
type index_FromFSWatchOptions = FromFSWatchOptions;
|
|
5441
4690
|
type index_FromGitHookOptions = FromGitHookOptions;
|
|
@@ -5475,7 +4724,7 @@ type index_LogBackend<T> = LogBackend<T>;
|
|
|
5475
4724
|
type index_LokiClientLike = LokiClientLike;
|
|
5476
4725
|
type index_LokiStream = LokiStream;
|
|
5477
4726
|
type index_MCPClientLike = MCPClientLike;
|
|
5478
|
-
|
|
4727
|
+
declare const index_MapBackend: typeof MapBackend;
|
|
5479
4728
|
type index_MergeMapOptions = MergeMapOptions;
|
|
5480
4729
|
type index_MongoCollectionLike = MongoCollectionLike;
|
|
5481
4730
|
type index_NATSClientLike = NATSClientLike;
|
|
@@ -5489,12 +4738,11 @@ type index_NativeListBackend<T> = NativeListBackend<T>;
|
|
|
5489
4738
|
declare const index_NativeListBackend: typeof NativeListBackend;
|
|
5490
4739
|
type index_NativeLogBackend<T> = NativeLogBackend<T>;
|
|
5491
4740
|
declare const index_NativeLogBackend: typeof NativeLogBackend;
|
|
5492
|
-
type index_NativeMapBackend<K, V> = NativeMapBackend<K, V>;
|
|
5493
4741
|
declare const index_NativeMapBackend: typeof NativeMapBackend;
|
|
5494
|
-
|
|
4742
|
+
declare const index_NativeMapBackendOptions: typeof NativeMapBackendOptions;
|
|
5495
4743
|
type index_NativePubSubBackend = NativePubSubBackend;
|
|
5496
4744
|
declare const index_NativePubSubBackend: typeof NativePubSubBackend;
|
|
5497
|
-
|
|
4745
|
+
declare const index_NodeInput: typeof NodeInput;
|
|
5498
4746
|
type index_OTelBundle = OTelBundle;
|
|
5499
4747
|
type index_OTelLog = OTelLog;
|
|
5500
4748
|
type index_OTelMetric = OTelMetric;
|
|
@@ -5515,15 +4763,15 @@ type index_RateLimiterOptions = RateLimiterOptions;
|
|
|
5515
4763
|
type index_RateLimiterOverflowError = RateLimiterOverflowError;
|
|
5516
4764
|
declare const index_RateLimiterOverflowError: typeof RateLimiterOverflowError;
|
|
5517
4765
|
type index_RateLimiterOverflowPolicy = RateLimiterOverflowPolicy;
|
|
5518
|
-
|
|
4766
|
+
declare const index_ReactiveCounterBundle: typeof ReactiveCounterBundle;
|
|
5519
4767
|
type index_ReactiveIndexBundle<K, V = unknown> = ReactiveIndexBundle<K, V>;
|
|
5520
4768
|
type index_ReactiveIndexOptions<K, V = unknown> = ReactiveIndexOptions<K, V>;
|
|
5521
4769
|
type index_ReactiveListBundle<T> = ReactiveListBundle<T>;
|
|
5522
4770
|
type index_ReactiveListOptions<T> = ReactiveListOptions<T>;
|
|
5523
4771
|
type index_ReactiveLogBundle<T> = ReactiveLogBundle<T>;
|
|
5524
4772
|
type index_ReactiveLogOptions<T> = ReactiveLogOptions<T>;
|
|
5525
|
-
|
|
5526
|
-
|
|
4773
|
+
declare const index_ReactiveMapBundle: typeof ReactiveMapBundle;
|
|
4774
|
+
declare const index_ReactiveMapOptions: typeof ReactiveMapOptions;
|
|
5527
4775
|
type index_ReactiveSinkBackpressureOptions = ReactiveSinkBackpressureOptions;
|
|
5528
4776
|
type index_ReactiveSinkConfig<T, Ctx = unknown> = ReactiveSinkConfig<T, Ctx>;
|
|
5529
4777
|
type index_ReactiveSinkHandle<T> = ReactiveSinkHandle<T>;
|
|
@@ -5578,9 +4826,9 @@ type index_ToWebSocketOptions<T> = ToWebSocketOptions<T>;
|
|
|
5578
4826
|
type index_TokenBucket = TokenBucket;
|
|
5579
4827
|
type index_UpsertOptions<K, V> = UpsertOptions<K, V>;
|
|
5580
4828
|
type index_ValueMessage = ValueMessage;
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
4829
|
+
declare const index_VerifiableBundle: typeof VerifiableBundle;
|
|
4830
|
+
declare const index_VerifiableOptions: typeof VerifiableOptions;
|
|
4831
|
+
declare const index_VerifyValue: typeof VerifyValue;
|
|
5584
4832
|
type index_WatermarkController = WatermarkController;
|
|
5585
4833
|
type index_WatermarkOptions = WatermarkOptions;
|
|
5586
4834
|
type index_WebSocketLike = WebSocketLike;
|
|
@@ -5765,7 +5013,7 @@ declare const index_workerBridge: typeof workerBridge;
|
|
|
5765
5013
|
declare const index_workerSelf: typeof workerSelf;
|
|
5766
5014
|
declare const index_zip: typeof zip;
|
|
5767
5015
|
declare namespace index {
|
|
5768
|
-
export { type index_AckableMessage as AckableMessage, type index_AdapterHandlers as AdapterHandlers, type index_AsyncSourceOpts as AsyncSourceOpts, type index_BackoffPreset as BackoffPreset, type index_BackoffStrategy as BackoffStrategy, type index_BatchMessage as BatchMessage, type index_BridgeMessage as BridgeMessage, type index_BufferedSinkHandle as BufferedSinkHandle, type index_BundleTriad as BundleTriad, type index_CSVRow as CSVRow, type index_CacheEvictionPolicy as CacheEvictionPolicy, type index_CascadingCache as CascadingCache, type index_CascadingCacheOptions as CascadingCacheOptions, type index_CheckpointToRedisOptions as CheckpointToRedisOptions, type index_CheckpointToS3Options as CheckpointToS3Options, type index_CircuitBreaker as CircuitBreaker, type index_CircuitBreakerOptions as CircuitBreakerOptions, index_CircuitOpenError as CircuitOpenError, type index_CircuitState as CircuitState, type index_ClickHouseClientLike as ClickHouseClientLike, type index_ClickHouseInsertClientLike as ClickHouseInsertClientLike, type index_ClickHouseRow as ClickHouseRow, type index_CronSchedule as CronSchedule, type index_DistillBundle as DistillBundle, type index_DistillOptions as DistillOptions, type index_DrizzleQueryLike as DrizzleQueryLike, type index_EmitTriad as EmitTriad, type index_ErrorMessage as ErrorMessage, type index_EventTargetLike as EventTargetLike, type index_ExponentialBackoffOptions as ExponentialBackoffOptions, type index_ExternalBundleOptions as ExternalBundleOptions, type index_ExternalRegister as ExternalRegister, type index_Extraction as Extraction, type index_FSEvent as FSEvent, type index_FSEventType as FSEventType, type index_FallbackInput as FallbackInput, type index_FileWriterLike as FileWriterLike, type index_FromCSVOptions as FromCSVOptions, type index_FromClickHouseWatchOptions as FromClickHouseWatchOptions, type index_FromCronOptions as FromCronOptions, type index_FromDrizzleOptions as FromDrizzleOptions, type index_FromFSWatchOptions as FromFSWatchOptions, type index_FromGitHookOptions as FromGitHookOptions, type index_FromHTTPOptions as FromHTTPOptions, type index_FromHTTPPollOptions as FromHTTPPollOptions, type index_FromHTTPStreamOptions as FromHTTPStreamOptions, type index_FromKafkaOptions as FromKafkaOptions, type index_FromKyselyOptions as FromKyselyOptions, type index_FromMCPOptions as FromMCPOptions, type index_FromNATSOptions as FromNATSOptions, type index_FromNDJSONOptions as FromNDJSONOptions, type index_FromOTelOptions as FromOTelOptions, type index_FromPrismaOptions as FromPrismaOptions, type index_FromPrometheusOptions as FromPrometheusOptions, type index_FromPulsarOptions as FromPulsarOptions, type index_FromRabbitMQOptions as FromRabbitMQOptions, type index_FromRedisStreamOptions as FromRedisStreamOptions, type index_FromSSEOptions as FromSSEOptions, type index_FromSqliteOptions as FromSqliteOptions, type index_FromStatsDOptions as FromStatsDOptions, type index_FromSyslogOptions as FromSyslogOptions, type index_FromWebSocketReconnectOptions as FromWebSocketReconnectOptions, type index_GitEvent as GitEvent, type index_GitHookType as GitHookType, type index_HTTPBundle as HTTPBundle, type index_IndexBackend as IndexBackend, type index_IndexRow as IndexRow, index_IndexedDbStorageSpec as IndexedDbStorageSpec, type index_InitMessage as InitMessage, type index_JitterMode as JitterMode, type index_KafkaConsumerLike as KafkaConsumerLike, type index_KafkaMessage as KafkaMessage, type index_KafkaProducerLike as KafkaProducerLike, type index_KyselyQueryLike as KyselyQueryLike, type index_ListBackend as ListBackend, type index_LogBackend as LogBackend, type index_LokiClientLike as LokiClientLike, type index_LokiStream as LokiStream, type index_MCPClientLike as MCPClientLike, type index_MapBackend as MapBackend, type index_MergeMapOptions as MergeMapOptions, type index_MongoCollectionLike as MongoCollectionLike, type index_NATSClientLike as NATSClientLike, type index_NATSMessage as NATSMessage, type index_NATSSubscriptionLike as NATSSubscriptionLike, index_NS_PER_MS as NS_PER_MS, index_NS_PER_SEC as NS_PER_SEC, index_NativeIndexBackend as NativeIndexBackend, index_NativeListBackend as NativeListBackend, index_NativeLogBackend as NativeLogBackend, index_NativeMapBackend as NativeMapBackend, type index_NativeMapBackendOptions as NativeMapBackendOptions, index_NativePubSubBackend as NativePubSubBackend, type index_NodeInput as NodeInput, type index_OTelBundle as OTelBundle, type index_OTelLog as OTelLog, type index_OTelMetric as OTelMetric, type index_OTelRegister as OTelRegister, type index_OTelSpan as OTelSpan, type index_PostgresClientLike as PostgresClientLike, type index_PrismaModelLike as PrismaModelLike, type index_PrometheusMetric as PrometheusMetric, type index_PubSubBackend as PubSubBackend, type index_PubSubHub as PubSubHub, type index_PubSubHubOptions as PubSubHubOptions, type index_PulsarConsumerLike as PulsarConsumerLike, type index_PulsarMessage as PulsarMessage, type index_PulsarProducerLike as PulsarProducerLike, type index_RabbitMQChannelLike as RabbitMQChannelLike, type index_RabbitMQMessage as RabbitMQMessage, type index_RateLimiterOptions as RateLimiterOptions, index_RateLimiterOverflowError as RateLimiterOverflowError, type index_RateLimiterOverflowPolicy as RateLimiterOverflowPolicy, type index_ReactiveCounterBundle as ReactiveCounterBundle, type index_ReactiveIndexBundle as ReactiveIndexBundle, type index_ReactiveIndexOptions as ReactiveIndexOptions, type index_ReactiveListBundle as ReactiveListBundle, type index_ReactiveListOptions as ReactiveListOptions, type index_ReactiveLogBundle as ReactiveLogBundle, type index_ReactiveLogOptions as ReactiveLogOptions, type index_ReactiveMapBundle as ReactiveMapBundle, type index_ReactiveMapOptions as ReactiveMapOptions, type index_ReactiveSinkBackpressureOptions as ReactiveSinkBackpressureOptions, type index_ReactiveSinkConfig as ReactiveSinkConfig, type index_ReactiveSinkHandle as ReactiveSinkHandle, type index_ReactiveSinkOptions as ReactiveSinkOptions, type index_ReactiveSinkRetryOptions as ReactiveSinkRetryOptions, type index_ReadyMessage as ReadyMessage, type index_RedisCheckpointClientLike as RedisCheckpointClientLike, type index_RedisClientLike as RedisClientLike, type index_RedisStreamEntry as RedisStreamEntry, index_ResettableTimer as ResettableTimer, type index_RetryOptions as RetryOptions, type index_RetrySourceOptions as RetrySourceOptions, type index_S3ClientLike as S3ClientLike, type index_SSEEvent as SSEEvent, type index_SignalMessage as SignalMessage, type index_SinkFailure as SinkFailure, type index_SinkHandle as SinkHandle, type index_SinkTransportError as SinkTransportError, type index_SqliteDbLike as SqliteDbLike, type index_SqliteIterableDbLike as SqliteIterableDbLike, type index_StatsDMetric as StatsDMetric, type index_StatsDRegister as StatsDRegister, type index_StatusValue as StatusValue, index_StorageHandle as StorageHandle, index_StorageTier as StorageTier, type index_SyslogMessage as SyslogMessage, type index_SyslogRegister as SyslogRegister, type index_TapObserver as TapObserver, type index_TempoClientLike as TempoClientLike, type index_ThrottleOptions as ThrottleOptions, index_TimeoutError as TimeoutError, type index_ToCSVOptions as ToCSVOptions, type index_ToClickHouseOptions as ToClickHouseOptions, type index_ToFileOptions as ToFileOptions, type index_ToHTTPOptions as ToHTTPOptions, type index_ToKafkaOptions as ToKafkaOptions, type index_ToLokiOptions as ToLokiOptions, type index_ToMongoOptions as ToMongoOptions, type index_ToNATSOptions as ToNATSOptions, index_ToObservableOptions as ToObservableOptions, type index_ToPostgresOptions as ToPostgresOptions, type index_ToPulsarOptions as ToPulsarOptions, type index_ToRabbitMQOptions as ToRabbitMQOptions, type index_ToRedisStreamOptions as ToRedisStreamOptions, type index_ToS3Options as ToS3Options, type index_ToSSEOptions as ToSSEOptions, type index_ToSqliteOptions as ToSqliteOptions, type index_ToTempoOptions as ToTempoOptions, type index_ToWebSocketOptions as ToWebSocketOptions, type index_TokenBucket as TokenBucket, type index_UpsertOptions as UpsertOptions, type index_ValueMessage as ValueMessage, type index_VerifiableBundle as VerifiableBundle, type index_VerifiableOptions as VerifiableOptions, type index_VerifyValue as VerifyValue, type index_WatermarkController as WatermarkController, type index_WatermarkOptions as WatermarkOptions, type index_WebSocketLike as WebSocketLike, type index_WebSocketMessageEventLike as WebSocketMessageEventLike, type index_WebSocketRegister as WebSocketRegister, type index_WebhookRegister as WebhookRegister, type index_WithBreakerBundle as WithBreakerBundle, type index_WithStatusBundle as WithStatusBundle, type index_WorkerBridge as WorkerBridge, type index_WorkerBridgeOptions as WorkerBridgeOptions, type index_WorkerSelfHandle as WorkerSelfHandle, type index_WorkerSelfOptions as WorkerSelfOptions, type index_WorkerTransport as WorkerTransport, index_audit as audit, index_buffer as buffer, index_bufferCount as bufferCount, index_bufferTime as bufferTime, index_cached as cached, index_cascadingCache as cascadingCache, index_catchError as catchError, index_checkpointToRedis as checkpointToRedis, index_checkpointToS3 as checkpointToS3, index_circuitBreaker as circuitBreaker, index_combine as combine, index_combineLatest as combineLatest, index_concat as concat, index_concatMap as concatMap, index_constant as constant, index_createTransport as createTransport, index_createWatermarkController as createWatermarkController, index_csvRows as csvRows, index_debounce as debounce, index_debounceTime as debounceTime, index_decorrelatedJitter as decorrelatedJitter, index_delay as delay, index_deserializeError as deserializeError, index_dictStorage as dictStorage, index_distill as distill, index_distinctUntilChanged as distinctUntilChanged, index_elementAt as elementAt, index_empty as empty, index_escapeRegexChar as escapeRegexChar, index_exhaustMap as exhaustMap, index_exponential as exponential, index_externalBundle as externalBundle, index_externalProducer as externalProducer, index_fallback as fallback, index_fibonacci as fibonacci, index_fileStorage as fileStorage, index_filter as filter, index_find as find, index_first as first, index_firstValueFrom as firstValueFrom, index_firstWhere as firstWhere, index_flatMap as flatMap, index_forEach as forEach, index_fromAny as fromAny, index_fromAsyncIter as fromAsyncIter, index_fromCSV as fromCSV, index_fromClickHouseWatch as fromClickHouseWatch, index_fromCron as fromCron, index_fromDrizzle as fromDrizzle, index_fromEvent as fromEvent, index_fromFSWatch as fromFSWatch, index_fromGitHook as fromGitHook, index_fromHTTP as fromHTTP, index_fromHTTPPoll as fromHTTPPoll, index_fromHTTPStream as fromHTTPStream, index_fromIDBRequest as fromIDBRequest, index_fromIDBTransaction as fromIDBTransaction, index_fromIter as fromIter, index_fromKafka as fromKafka, index_fromKysely as fromKysely, index_fromMCP as fromMCP, index_fromNATS as fromNATS, index_fromNDJSON as fromNDJSON, index_fromOTel as fromOTel, index_fromPrisma as fromPrisma, index_fromPrometheus as fromPrometheus, index_fromPromise as fromPromise, index_fromPulsar as fromPulsar, index_fromRabbitMQ as fromRabbitMQ, index_fromRaf as fromRaf, index_fromRedisStream as fromRedisStream, index_fromSSE as fromSSE, index_fromSqlite as fromSqlite, index_fromSqliteCursor as fromSqliteCursor, index_fromStatsD as fromStatsD, index_fromSyslog as fromSyslog, index_fromTimer as fromTimer, index_fromWebSocket as fromWebSocket, index_fromWebSocketReconnect as fromWebSocketReconnect, index_fromWebhook as fromWebhook, index_globToRegExp as globToRegExp, index_indexedDbStorage as indexedDbStorage, index_interval as interval, index_keepalive as keepalive, index_last as last, index_linear as linear, index_lru as lru, index_map as map, index_matchesAnyPattern as matchesAnyPattern, index_matchesCron as matchesCron, index_memoryStorage as memoryStorage, index_merge as merge, index_mergeMap as mergeMap, index_nameToSignal as nameToSignal, index_ndjsonRows as ndjsonRows, index_never as never, index_of as of, index_pairwise as pairwise, index_parseCron as parseCron, index_parsePrometheusText as parsePrometheusText, index_parseStatsD as parseStatsD, index_parseSyslog as parseSyslog, index_pausable as pausable, index_pubsub as pubsub, index_race as race, index_rateLimiter as rateLimiter, index_reactiveCounter as reactiveCounter, index_reactiveIndex as reactiveIndex, index_reactiveList as reactiveList, index_reactiveLog as reactiveLog, index_reactiveMap as reactiveMap, index_reactiveSink as reactiveSink, index_reduce as reduce, index_repeat as repeat, index_replay as replay, index_rescue as rescue, index_resolveBackoffPreset as resolveBackoffPreset, index_retry as retry, index_retrySource as retrySource, index_sample as sample, index_scan as scan, index_serializeError as serializeError, index_share as share, index_shareReplay as shareReplay, index_signalToName as signalToName, index_skip as skip, index_sqliteStorage as sqliteStorage, index_switchMap as switchMap, index_take as take, index_takeUntil as takeUntil, index_takeWhile as takeWhile, index_tap as tap, index_throttle as throttle, index_throttleTime as throttleTime, index_throwError as throwError, index_timeout as timeout, index_toArray as toArray, index_toCSV as toCSV, index_toClickHouse as toClickHouse, index_toFile as toFile, index_toHTTP as toHTTP, index_toKafka as toKafka, index_toLoki as toLoki, index_toMongo as toMongo, index_toNATS as toNATS, index_toObservable as toObservable, index_toPostgres as toPostgres, index_toPulsar as toPulsar, index_toRabbitMQ as toRabbitMQ, index_toReadableStream as toReadableStream, index_toRedisStream as toRedisStream, index_toS3 as toS3, index_toSSE as toSSE, index_toSSEBytes as toSSEBytes, index_toSqlite as toSqlite, index_toTempo as toTempo, index_toWebSocket as toWebSocket, index_tokenBucket as tokenBucket, index_valve as valve, index_verifiable as verifiable, index_window as window, index_windowCount as windowCount, index_windowTime as windowTime, index_withBreaker as withBreaker, index_withLatestFrom as withLatestFrom, index_withMaxAttempts as withMaxAttempts, index_withStatus as withStatus, index_workerBridge as workerBridge, index_workerSelf as workerSelf, index_zip as zip };
|
|
5016
|
+
export { type index_AckableMessage as AckableMessage, type index_AdapterHandlers as AdapterHandlers, index_AsyncSourceOpts as AsyncSourceOpts, type index_BackoffPreset as BackoffPreset, type index_BackoffStrategy as BackoffStrategy, type index_BatchMessage as BatchMessage, type index_BridgeMessage as BridgeMessage, type index_BufferedSinkHandle as BufferedSinkHandle, type index_BundleTriad as BundleTriad, type index_CSVRow as CSVRow, type index_CacheEvictionPolicy as CacheEvictionPolicy, type index_CascadingCache as CascadingCache, type index_CascadingCacheOptions as CascadingCacheOptions, type index_CheckpointToRedisOptions as CheckpointToRedisOptions, type index_CheckpointToS3Options as CheckpointToS3Options, type index_CircuitBreaker as CircuitBreaker, type index_CircuitBreakerOptions as CircuitBreakerOptions, index_CircuitOpenError as CircuitOpenError, type index_CircuitState as CircuitState, type index_ClickHouseClientLike as ClickHouseClientLike, type index_ClickHouseInsertClientLike as ClickHouseInsertClientLike, type index_ClickHouseRow as ClickHouseRow, type index_CronSchedule as CronSchedule, index_DistillBundle as DistillBundle, index_DistillOptions as DistillOptions, type index_DrizzleQueryLike as DrizzleQueryLike, type index_EmitTriad as EmitTriad, type index_ErrorMessage as ErrorMessage, index_EventTargetLike as EventTargetLike, type index_ExponentialBackoffOptions as ExponentialBackoffOptions, type index_ExternalBundleOptions as ExternalBundleOptions, type index_ExternalRegister as ExternalRegister, index_Extraction as Extraction, type index_FSEvent as FSEvent, type index_FSEventType as FSEventType, type index_FallbackInput as FallbackInput, type index_FileWriterLike as FileWriterLike, type index_FromCSVOptions as FromCSVOptions, type index_FromClickHouseWatchOptions as FromClickHouseWatchOptions, index_FromCronOptions as FromCronOptions, type index_FromDrizzleOptions as FromDrizzleOptions, type index_FromFSWatchOptions as FromFSWatchOptions, type index_FromGitHookOptions as FromGitHookOptions, type index_FromHTTPOptions as FromHTTPOptions, type index_FromHTTPPollOptions as FromHTTPPollOptions, type index_FromHTTPStreamOptions as FromHTTPStreamOptions, type index_FromKafkaOptions as FromKafkaOptions, type index_FromKyselyOptions as FromKyselyOptions, type index_FromMCPOptions as FromMCPOptions, type index_FromNATSOptions as FromNATSOptions, type index_FromNDJSONOptions as FromNDJSONOptions, type index_FromOTelOptions as FromOTelOptions, type index_FromPrismaOptions as FromPrismaOptions, type index_FromPrometheusOptions as FromPrometheusOptions, type index_FromPulsarOptions as FromPulsarOptions, type index_FromRabbitMQOptions as FromRabbitMQOptions, type index_FromRedisStreamOptions as FromRedisStreamOptions, type index_FromSSEOptions as FromSSEOptions, type index_FromSqliteOptions as FromSqliteOptions, type index_FromStatsDOptions as FromStatsDOptions, type index_FromSyslogOptions as FromSyslogOptions, type index_FromWebSocketReconnectOptions as FromWebSocketReconnectOptions, type index_GitEvent as GitEvent, type index_GitHookType as GitHookType, type index_HTTPBundle as HTTPBundle, type index_IndexBackend as IndexBackend, type index_IndexRow as IndexRow, index_IndexedDbStorageSpec as IndexedDbStorageSpec, type index_InitMessage as InitMessage, type index_JitterMode as JitterMode, type index_KafkaConsumerLike as KafkaConsumerLike, type index_KafkaMessage as KafkaMessage, type index_KafkaProducerLike as KafkaProducerLike, type index_KyselyQueryLike as KyselyQueryLike, type index_ListBackend as ListBackend, type index_LogBackend as LogBackend, type index_LokiClientLike as LokiClientLike, type index_LokiStream as LokiStream, type index_MCPClientLike as MCPClientLike, index_MapBackend as MapBackend, type index_MergeMapOptions as MergeMapOptions, type index_MongoCollectionLike as MongoCollectionLike, type index_NATSClientLike as NATSClientLike, type index_NATSMessage as NATSMessage, type index_NATSSubscriptionLike as NATSSubscriptionLike, index_NS_PER_MS as NS_PER_MS, index_NS_PER_SEC as NS_PER_SEC, index_NativeIndexBackend as NativeIndexBackend, index_NativeListBackend as NativeListBackend, index_NativeLogBackend as NativeLogBackend, index_NativeMapBackend as NativeMapBackend, index_NativeMapBackendOptions as NativeMapBackendOptions, index_NativePubSubBackend as NativePubSubBackend, index_NodeInput as NodeInput, type index_OTelBundle as OTelBundle, type index_OTelLog as OTelLog, type index_OTelMetric as OTelMetric, type index_OTelRegister as OTelRegister, type index_OTelSpan as OTelSpan, type index_PostgresClientLike as PostgresClientLike, type index_PrismaModelLike as PrismaModelLike, type index_PrometheusMetric as PrometheusMetric, type index_PubSubBackend as PubSubBackend, type index_PubSubHub as PubSubHub, type index_PubSubHubOptions as PubSubHubOptions, type index_PulsarConsumerLike as PulsarConsumerLike, type index_PulsarMessage as PulsarMessage, type index_PulsarProducerLike as PulsarProducerLike, type index_RabbitMQChannelLike as RabbitMQChannelLike, type index_RabbitMQMessage as RabbitMQMessage, type index_RateLimiterOptions as RateLimiterOptions, index_RateLimiterOverflowError as RateLimiterOverflowError, type index_RateLimiterOverflowPolicy as RateLimiterOverflowPolicy, index_ReactiveCounterBundle as ReactiveCounterBundle, type index_ReactiveIndexBundle as ReactiveIndexBundle, type index_ReactiveIndexOptions as ReactiveIndexOptions, type index_ReactiveListBundle as ReactiveListBundle, type index_ReactiveListOptions as ReactiveListOptions, type index_ReactiveLogBundle as ReactiveLogBundle, type index_ReactiveLogOptions as ReactiveLogOptions, index_ReactiveMapBundle as ReactiveMapBundle, index_ReactiveMapOptions as ReactiveMapOptions, type index_ReactiveSinkBackpressureOptions as ReactiveSinkBackpressureOptions, type index_ReactiveSinkConfig as ReactiveSinkConfig, type index_ReactiveSinkHandle as ReactiveSinkHandle, type index_ReactiveSinkOptions as ReactiveSinkOptions, type index_ReactiveSinkRetryOptions as ReactiveSinkRetryOptions, type index_ReadyMessage as ReadyMessage, type index_RedisCheckpointClientLike as RedisCheckpointClientLike, type index_RedisClientLike as RedisClientLike, type index_RedisStreamEntry as RedisStreamEntry, index_ResettableTimer as ResettableTimer, type index_RetryOptions as RetryOptions, type index_RetrySourceOptions as RetrySourceOptions, type index_S3ClientLike as S3ClientLike, type index_SSEEvent as SSEEvent, type index_SignalMessage as SignalMessage, type index_SinkFailure as SinkFailure, type index_SinkHandle as SinkHandle, type index_SinkTransportError as SinkTransportError, type index_SqliteDbLike as SqliteDbLike, type index_SqliteIterableDbLike as SqliteIterableDbLike, type index_StatsDMetric as StatsDMetric, type index_StatsDRegister as StatsDRegister, type index_StatusValue as StatusValue, index_StorageHandle as StorageHandle, index_StorageTier as StorageTier, type index_SyslogMessage as SyslogMessage, type index_SyslogRegister as SyslogRegister, type index_TapObserver as TapObserver, type index_TempoClientLike as TempoClientLike, type index_ThrottleOptions as ThrottleOptions, index_TimeoutError as TimeoutError, type index_ToCSVOptions as ToCSVOptions, type index_ToClickHouseOptions as ToClickHouseOptions, type index_ToFileOptions as ToFileOptions, type index_ToHTTPOptions as ToHTTPOptions, type index_ToKafkaOptions as ToKafkaOptions, type index_ToLokiOptions as ToLokiOptions, type index_ToMongoOptions as ToMongoOptions, type index_ToNATSOptions as ToNATSOptions, index_ToObservableOptions as ToObservableOptions, type index_ToPostgresOptions as ToPostgresOptions, type index_ToPulsarOptions as ToPulsarOptions, type index_ToRabbitMQOptions as ToRabbitMQOptions, type index_ToRedisStreamOptions as ToRedisStreamOptions, type index_ToS3Options as ToS3Options, type index_ToSSEOptions as ToSSEOptions, type index_ToSqliteOptions as ToSqliteOptions, type index_ToTempoOptions as ToTempoOptions, type index_ToWebSocketOptions as ToWebSocketOptions, type index_TokenBucket as TokenBucket, type index_UpsertOptions as UpsertOptions, type index_ValueMessage as ValueMessage, index_VerifiableBundle as VerifiableBundle, index_VerifiableOptions as VerifiableOptions, index_VerifyValue as VerifyValue, type index_WatermarkController as WatermarkController, type index_WatermarkOptions as WatermarkOptions, type index_WebSocketLike as WebSocketLike, type index_WebSocketMessageEventLike as WebSocketMessageEventLike, type index_WebSocketRegister as WebSocketRegister, type index_WebhookRegister as WebhookRegister, type index_WithBreakerBundle as WithBreakerBundle, type index_WithStatusBundle as WithStatusBundle, type index_WorkerBridge as WorkerBridge, type index_WorkerBridgeOptions as WorkerBridgeOptions, type index_WorkerSelfHandle as WorkerSelfHandle, type index_WorkerSelfOptions as WorkerSelfOptions, type index_WorkerTransport as WorkerTransport, index_audit as audit, index_buffer as buffer, index_bufferCount as bufferCount, index_bufferTime as bufferTime, index_cached as cached, index_cascadingCache as cascadingCache, index_catchError as catchError, index_checkpointToRedis as checkpointToRedis, index_checkpointToS3 as checkpointToS3, index_circuitBreaker as circuitBreaker, index_combine as combine, index_combineLatest as combineLatest, index_concat as concat, index_concatMap as concatMap, index_constant as constant, index_createTransport as createTransport, index_createWatermarkController as createWatermarkController, index_csvRows as csvRows, index_debounce as debounce, index_debounceTime as debounceTime, index_decorrelatedJitter as decorrelatedJitter, index_delay as delay, index_deserializeError as deserializeError, index_dictStorage as dictStorage, index_distill as distill, index_distinctUntilChanged as distinctUntilChanged, index_elementAt as elementAt, index_empty as empty, index_escapeRegexChar as escapeRegexChar, index_exhaustMap as exhaustMap, index_exponential as exponential, index_externalBundle as externalBundle, index_externalProducer as externalProducer, index_fallback as fallback, index_fibonacci as fibonacci, index_fileStorage as fileStorage, index_filter as filter, index_find as find, index_first as first, index_firstValueFrom as firstValueFrom, index_firstWhere as firstWhere, index_flatMap as flatMap, index_forEach as forEach, index_fromAny as fromAny, index_fromAsyncIter as fromAsyncIter, index_fromCSV as fromCSV, index_fromClickHouseWatch as fromClickHouseWatch, index_fromCron as fromCron, index_fromDrizzle as fromDrizzle, index_fromEvent as fromEvent, index_fromFSWatch as fromFSWatch, index_fromGitHook as fromGitHook, index_fromHTTP as fromHTTP, index_fromHTTPPoll as fromHTTPPoll, index_fromHTTPStream as fromHTTPStream, index_fromIDBRequest as fromIDBRequest, index_fromIDBTransaction as fromIDBTransaction, index_fromIter as fromIter, index_fromKafka as fromKafka, index_fromKysely as fromKysely, index_fromMCP as fromMCP, index_fromNATS as fromNATS, index_fromNDJSON as fromNDJSON, index_fromOTel as fromOTel, index_fromPrisma as fromPrisma, index_fromPrometheus as fromPrometheus, index_fromPromise as fromPromise, index_fromPulsar as fromPulsar, index_fromRabbitMQ as fromRabbitMQ, index_fromRaf as fromRaf, index_fromRedisStream as fromRedisStream, index_fromSSE as fromSSE, index_fromSqlite as fromSqlite, index_fromSqliteCursor as fromSqliteCursor, index_fromStatsD as fromStatsD, index_fromSyslog as fromSyslog, index_fromTimer as fromTimer, index_fromWebSocket as fromWebSocket, index_fromWebSocketReconnect as fromWebSocketReconnect, index_fromWebhook as fromWebhook, index_globToRegExp as globToRegExp, index_indexedDbStorage as indexedDbStorage, index_interval as interval, index_keepalive as keepalive, index_last as last, index_linear as linear, index_lru as lru, index_map as map, index_matchesAnyPattern as matchesAnyPattern, index_matchesCron as matchesCron, index_memoryStorage as memoryStorage, index_merge as merge, index_mergeMap as mergeMap, index_nameToSignal as nameToSignal, index_ndjsonRows as ndjsonRows, index_never as never, index_of as of, index_pairwise as pairwise, index_parseCron as parseCron, index_parsePrometheusText as parsePrometheusText, index_parseStatsD as parseStatsD, index_parseSyslog as parseSyslog, index_pausable as pausable, index_pubsub as pubsub, index_race as race, index_rateLimiter as rateLimiter, index_reactiveCounter as reactiveCounter, index_reactiveIndex as reactiveIndex, index_reactiveList as reactiveList, index_reactiveLog as reactiveLog, index_reactiveMap as reactiveMap, index_reactiveSink as reactiveSink, index_reduce as reduce, index_repeat as repeat, index_replay as replay, index_rescue as rescue, index_resolveBackoffPreset as resolveBackoffPreset, index_retry as retry, index_retrySource as retrySource, index_sample as sample, index_scan as scan, index_serializeError as serializeError, index_share as share, index_shareReplay as shareReplay, index_signalToName as signalToName, index_skip as skip, index_sqliteStorage as sqliteStorage, index_switchMap as switchMap, index_take as take, index_takeUntil as takeUntil, index_takeWhile as takeWhile, index_tap as tap, index_throttle as throttle, index_throttleTime as throttleTime, index_throwError as throwError, index_timeout as timeout, index_toArray as toArray, index_toCSV as toCSV, index_toClickHouse as toClickHouse, index_toFile as toFile, index_toHTTP as toHTTP, index_toKafka as toKafka, index_toLoki as toLoki, index_toMongo as toMongo, index_toNATS as toNATS, index_toObservable as toObservable, index_toPostgres as toPostgres, index_toPulsar as toPulsar, index_toRabbitMQ as toRabbitMQ, index_toReadableStream as toReadableStream, index_toRedisStream as toRedisStream, index_toS3 as toS3, index_toSSE as toSSE, index_toSSEBytes as toSSEBytes, index_toSqlite as toSqlite, index_toTempo as toTempo, index_toWebSocket as toWebSocket, index_tokenBucket as tokenBucket, index_valve as valve, index_verifiable as verifiable, index_window as window, index_windowCount as windowCount, index_windowTime as windowTime, index_withBreaker as withBreaker, index_withLatestFrom as withLatestFrom, index_withMaxAttempts as withMaxAttempts, index_withStatus as withStatus, index_workerBridge as workerBridge, index_workerSelf as workerSelf, index_zip as zip };
|
|
5769
5017
|
}
|
|
5770
5018
|
|
|
5771
|
-
export { type
|
|
5019
|
+
export { type FromPulsarOptions as $, type AckableMessage as A, type BackoffPreset as B, type CircuitState as C, type DrizzleQueryLike as D, type EmitTriad as E, type FallbackInput as F, type FSEventType as G, type FileWriterLike as H, type FromCSVOptions as I, type FromClickHouseWatchOptions as J, type FromDrizzleOptions as K, type FromFSWatchOptions as L, type FromGitHookOptions as M, NS_PER_MS as N, type FromHTTPOptions as O, type FromHTTPPollOptions as P, type FromHTTPStreamOptions as Q, type RateLimiterOptions as R, type StatusValue as S, type FromKafkaOptions as T, type FromKyselyOptions as U, type FromMCPOptions as V, type FromNATSOptions as W, type FromNDJSONOptions as X, type FromOTelOptions as Y, type FromPrismaOptions as Z, type FromPrometheusOptions as _, type CircuitBreakerOptions as a, type RedisClientLike as a$, type FromRabbitMQOptions as a0, type FromRedisStreamOptions as a1, type FromSSEOptions as a2, type FromSqliteOptions as a3, type FromStatsDOptions as a4, type FromSyslogOptions as a5, type FromWebSocketReconnectOptions as a6, type GitEvent as a7, type GitHookType as a8, type HTTPBundle as a9, type OTelSpan as aA, type PostgresClientLike as aB, type PrismaModelLike as aC, type PrometheusMetric as aD, type PubSubBackend as aE, type PubSubHub as aF, type PubSubHubOptions as aG, type PulsarConsumerLike as aH, type PulsarMessage as aI, type PulsarProducerLike as aJ, type RabbitMQChannelLike as aK, type RabbitMQMessage as aL, RateLimiterOverflowError as aM, type RateLimiterOverflowPolicy as aN, type ReactiveIndexBundle as aO, type ReactiveIndexOptions as aP, type ReactiveListBundle as aQ, type ReactiveListOptions as aR, type ReactiveLogBundle as aS, type ReactiveLogOptions as aT, type ReactiveSinkBackpressureOptions as aU, type ReactiveSinkConfig as aV, type ReactiveSinkHandle as aW, type ReactiveSinkOptions as aX, type ReactiveSinkRetryOptions as aY, type ReadyMessage as aZ, type RedisCheckpointClientLike as a_, type IndexBackend as aa, type IndexRow as ab, type InitMessage as ac, type JitterMode as ad, type KafkaConsumerLike as ae, type KafkaMessage as af, type KafkaProducerLike as ag, type KyselyQueryLike as ah, type ListBackend as ai, type LogBackend as aj, type LokiClientLike as ak, type LokiStream as al, type MCPClientLike as am, type MergeMapOptions as an, type MongoCollectionLike as ao, type NATSClientLike as ap, type NATSMessage as aq, type NATSSubscriptionLike as ar, NativeIndexBackend as as, NativeListBackend as at, NativeLogBackend as au, NativePubSubBackend as av, type OTelBundle as aw, type OTelLog as ax, type OTelMetric as ay, type OTelRegister as az, type RetryOptions as b, concat as b$, type RedisStreamEntry as b0, ResettableTimer as b1, type RetrySourceOptions as b2, type S3ClientLike as b3, type SSEEvent as b4, type SignalMessage as b5, type SinkFailure as b6, type SinkHandle as b7, type SinkTransportError as b8, type SqliteDbLike as b9, type TokenBucket as bA, type UpsertOptions as bB, type ValueMessage as bC, type WatermarkController as bD, type WatermarkOptions as bE, type WebSocketLike as bF, type WebSocketMessageEventLike as bG, type WebSocketRegister as bH, type WebhookRegister as bI, type WithBreakerBundle as bJ, type WithStatusBundle as bK, type WorkerBridge as bL, type WorkerBridgeOptions as bM, type WorkerSelfHandle as bN, type WorkerSelfOptions as bO, type WorkerTransport as bP, audit as bQ, buffer as bR, bufferCount as bS, bufferTime as bT, cascadingCache as bU, catchError as bV, checkpointToRedis as bW, checkpointToS3 as bX, circuitBreaker as bY, combine as bZ, combineLatest as b_, type SqliteIterableDbLike as ba, type StatsDMetric as bb, type StatsDRegister as bc, type SyslogMessage as bd, type SyslogRegister as be, type TapObserver as bf, type TempoClientLike as bg, type ThrottleOptions as bh, TimeoutError as bi, type ToCSVOptions as bj, type ToClickHouseOptions as bk, type ToFileOptions as bl, type ToHTTPOptions as bm, type ToKafkaOptions as bn, type ToLokiOptions as bo, type ToMongoOptions as bp, type ToNATSOptions as bq, type ToPostgresOptions as br, type ToPulsarOptions as bs, type ToRabbitMQOptions as bt, type ToRedisStreamOptions as bu, type ToS3Options as bv, type ToSSEOptions as bw, type ToSqliteOptions as bx, type ToTempoOptions as by, type ToWebSocketOptions as bz, NS_PER_SEC as c, parseStatsD as c$, concatMap as c0, constant as c1, createTransport as c2, createWatermarkController as c3, csvRows as c4, debounce as c5, debounceTime as c6, decorrelatedJitter as c7, delay as c8, deserializeError as c9, fromOTel as cA, fromPrisma as cB, fromPrometheus as cC, fromPulsar as cD, fromRabbitMQ as cE, fromRedisStream as cF, fromSSE as cG, fromSqlite as cH, fromSqliteCursor as cI, fromStatsD as cJ, fromSyslog as cK, fromWebSocket as cL, fromWebSocketReconnect as cM, fromWebhook as cN, interval as cO, last as cP, linear as cQ, lru as cR, map as cS, matchesCron as cT, merge as cU, mergeMap as cV, nameToSignal as cW, ndjsonRows as cX, pairwise as cY, parseCron as cZ, parsePrometheusText as c_, distinctUntilChanged as ca, elementAt as cb, exhaustMap as cc, exponential as cd, externalBundle as ce, externalProducer as cf, index as cg, fallback as ch, fibonacci as ci, filter as cj, find as ck, first as cl, flatMap as cm, fromCSV as cn, fromClickHouseWatch as co, fromDrizzle as cp, fromFSWatch as cq, fromGitHook as cr, fromHTTP as cs, fromHTTPPoll as ct, fromHTTPStream as cu, fromKafka as cv, fromKysely as cw, fromMCP as cx, fromNATS as cy, fromNDJSON as cz, type AdapterHandlers as d, parseSyslog as d0, pausable as d1, pubsub as d2, race as d3, rateLimiter as d4, reactiveIndex as d5, reactiveList as d6, reactiveLog as d7, reactiveSink as d8, reduce as d9, toNATS as dA, toPostgres as dB, toPulsar as dC, toRabbitMQ as dD, toReadableStream as dE, toRedisStream as dF, toS3 as dG, toSSE as dH, toSSEBytes as dI, toSqlite as dJ, toTempo as dK, toWebSocket as dL, tokenBucket as dM, valve as dN, window as dO, windowCount as dP, windowTime as dQ, withBreaker as dR, withLatestFrom as dS, withMaxAttempts as dT, withStatus as dU, workerBridge as dV, workerSelf as dW, zip as dX, repeat as da, rescue as db, resolveBackoffPreset as dc, retry as dd, retrySource as de, sample as df, scan as dg, serializeError as dh, signalToName as di, skip as dj, switchMap as dk, take as dl, takeUntil as dm, takeWhile as dn, tap as dp, throttle as dq, throttleTime as dr, timeout as ds, toCSV as dt, toClickHouse as du, toFile as dv, toHTTP as dw, toKafka as dx, toLoki as dy, toMongo as dz, type BackoffStrategy as e, type BatchMessage as f, type BridgeMessage as g, type BufferedSinkHandle as h, type BundleTriad as i, type CSVRow as j, type CacheEvictionPolicy as k, type CascadingCache as l, type CascadingCacheOptions as m, type CheckpointToRedisOptions as n, type CheckpointToS3Options as o, type CircuitBreaker as p, CircuitOpenError as q, type ClickHouseClientLike as r, type ClickHouseInsertClientLike as s, type ClickHouseRow as t, type CronSchedule as u, type ErrorMessage as v, type ExponentialBackoffOptions as w, type ExternalBundleOptions as x, type ExternalRegister as y, type FSEvent as z };
|