@graphrefly/graphrefly 0.44.0 → 0.45.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 +21 -17
- package/dist/compat/index.cjs +20 -10
- package/dist/compat/index.cjs.map +1 -0
- package/dist/compat/index.d.cts +1 -22
- package/dist/compat/index.d.ts +1 -22
- package/dist/compat/index.js +3 -1
- package/dist/compat/index.js.map +1 -0
- package/dist/compat/jotai/index.cjs +21 -1
- package/dist/compat/jotai/index.cjs.map +1 -0
- package/dist/compat/jotai/index.d.cts +1 -2
- package/dist/compat/jotai/index.d.ts +1 -2
- package/dist/compat/jotai/index.js +3 -1
- package/dist/compat/jotai/index.js.map +1 -0
- package/dist/compat/nanostores/index.cjs +21 -1
- package/dist/compat/nanostores/index.cjs.map +1 -0
- package/dist/compat/nanostores/index.d.cts +1 -2
- package/dist/compat/nanostores/index.d.ts +1 -2
- package/dist/compat/nanostores/index.js +3 -1
- package/dist/compat/nanostores/index.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +20 -10
- package/dist/compat/nestjs/index.cjs.map +1 -0
- package/dist/compat/nestjs/index.d.cts +1 -13
- package/dist/compat/nestjs/index.d.ts +1 -13
- package/dist/compat/nestjs/index.js +3 -1
- package/dist/compat/nestjs/index.js.map +1 -0
- package/dist/compat/react/index.cjs +21 -1
- package/dist/compat/react/index.cjs.map +1 -0
- package/dist/compat/react/index.d.cts +1 -2
- package/dist/compat/react/index.d.ts +1 -2
- package/dist/compat/react/index.js +3 -1
- package/dist/compat/react/index.js.map +1 -0
- package/dist/compat/solid/index.cjs +21 -1
- package/dist/compat/solid/index.cjs.map +1 -0
- package/dist/compat/solid/index.d.cts +1 -2
- package/dist/compat/solid/index.d.ts +1 -2
- package/dist/compat/solid/index.js +3 -1
- package/dist/compat/solid/index.js.map +1 -0
- package/dist/compat/svelte/index.cjs +21 -1
- package/dist/compat/svelte/index.cjs.map +1 -0
- package/dist/compat/svelte/index.d.cts +1 -2
- package/dist/compat/svelte/index.d.ts +1 -2
- package/dist/compat/svelte/index.js +3 -1
- package/dist/compat/svelte/index.js.map +1 -0
- package/dist/compat/vue/index.cjs +21 -1
- package/dist/compat/vue/index.cjs.map +1 -0
- package/dist/compat/vue/index.d.cts +1 -3
- package/dist/compat/vue/index.d.ts +1 -3
- package/dist/compat/vue/index.js +3 -1
- package/dist/compat/vue/index.js.map +1 -0
- package/dist/compat/zustand/index.cjs +21 -3
- package/dist/compat/zustand/index.cjs.map +1 -0
- package/dist/compat/zustand/index.d.cts +1 -6
- package/dist/compat/zustand/index.d.ts +1 -6
- package/dist/compat/zustand/index.js +3 -1
- package/dist/compat/zustand/index.js.map +1 -0
- package/dist/core/index.cjs +21 -1
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +1 -3
- package/dist/core/index.d.ts +1 -3
- package/dist/core/index.js +3 -1
- package/dist/core/index.js.map +1 -0
- package/dist/extra/browser.cjs +21 -1
- package/dist/extra/browser.cjs.map +1 -0
- package/dist/extra/browser.d.cts +1 -4
- package/dist/extra/browser.d.ts +1 -4
- package/dist/extra/browser.js +3 -1
- package/dist/extra/browser.js.map +1 -0
- package/dist/extra/index.cjs +20 -19
- package/dist/extra/index.cjs.map +1 -0
- package/dist/extra/index.d.cts +1 -17
- package/dist/extra/index.d.ts +1 -17
- package/dist/extra/index.js +3 -1
- package/dist/extra/index.js.map +1 -0
- package/dist/extra/node.cjs +21 -2
- package/dist/extra/node.cjs.map +1 -0
- package/dist/extra/node.d.cts +1 -187
- package/dist/extra/node.d.ts +1 -187
- package/dist/extra/node.js +3 -2
- package/dist/extra/node.js.map +1 -0
- package/dist/extra/operators.cjs +21 -1
- package/dist/extra/operators.cjs.map +1 -0
- package/dist/extra/operators.d.cts +1 -958
- package/dist/extra/operators.d.ts +1 -958
- package/dist/extra/operators.js +3 -1
- package/dist/extra/operators.js.map +1 -0
- package/dist/extra/reactive.cjs +21 -1
- package/dist/extra/reactive.cjs.map +1 -0
- package/dist/extra/reactive.d.cts +1 -353
- package/dist/extra/reactive.d.ts +1 -353
- package/dist/extra/reactive.js +3 -1
- package/dist/extra/reactive.js.map +1 -0
- package/dist/extra/render/index.cjs +21 -5
- package/dist/extra/render/index.cjs.map +1 -0
- package/dist/extra/render/index.d.cts +1 -183
- package/dist/extra/render/index.d.ts +1 -183
- package/dist/extra/render/index.js +3 -1
- package/dist/extra/render/index.js.map +1 -0
- package/dist/extra/sources.cjs +21 -3
- package/dist/extra/sources.cjs.map +1 -0
- package/dist/extra/sources.d.cts +1 -584
- package/dist/extra/sources.d.ts +1 -584
- package/dist/extra/sources.js +3 -1
- package/dist/extra/sources.js.map +1 -0
- package/dist/extra/storage-browser.cjs +21 -1
- package/dist/extra/storage-browser.cjs.map +1 -0
- package/dist/extra/storage-browser.d.cts +1 -37
- package/dist/extra/storage-browser.d.ts +1 -37
- package/dist/extra/storage-browser.js +3 -1
- package/dist/extra/storage-browser.js.map +1 -0
- package/dist/extra/storage-core.cjs +21 -1
- package/dist/extra/storage-core.cjs.map +1 -0
- package/dist/extra/storage-core.d.cts +1 -28
- package/dist/extra/storage-core.d.ts +1 -28
- package/dist/extra/storage-core.js +3 -1
- package/dist/extra/storage-core.js.map +1 -0
- package/dist/extra/storage-node.cjs +20 -0
- package/dist/extra/storage-node.cjs.map +1 -0
- package/dist/extra/storage-node.d.cts +1 -2
- package/dist/extra/storage-node.d.ts +1 -2
- package/dist/extra/storage-node.js +3 -0
- package/dist/extra/storage-node.js.map +1 -0
- package/dist/extra/storage-tiers-browser.cjs +21 -1
- package/dist/extra/storage-tiers-browser.cjs.map +1 -0
- package/dist/extra/storage-tiers-browser.d.cts +1 -120
- package/dist/extra/storage-tiers-browser.d.ts +1 -120
- package/dist/extra/storage-tiers-browser.js +3 -1
- package/dist/extra/storage-tiers-browser.js.map +1 -0
- package/dist/extra/storage-tiers-node.cjs +21 -1
- package/dist/extra/storage-tiers-node.cjs.map +1 -0
- package/dist/extra/storage-tiers-node.d.cts +1 -210
- package/dist/extra/storage-tiers-node.d.ts +1 -210
- package/dist/extra/storage-tiers-node.js +3 -1
- package/dist/extra/storage-tiers-node.js.map +1 -0
- package/dist/extra/storage-tiers.cjs +21 -1
- package/dist/extra/storage-tiers.cjs.map +1 -0
- package/dist/extra/storage-tiers.d.cts +1 -412
- package/dist/extra/storage-tiers.d.ts +1 -412
- package/dist/extra/storage-tiers.js +3 -1
- package/dist/extra/storage-tiers.js.map +1 -0
- package/dist/extra/storage-wal.cjs +21 -0
- package/dist/extra/storage-wal.cjs.map +1 -0
- package/dist/extra/storage-wal.d.cts +1 -0
- package/dist/extra/storage-wal.d.ts +1 -0
- package/dist/extra/storage-wal.js +3 -0
- package/dist/extra/storage-wal.js.map +1 -0
- package/dist/graph/index.cjs +21 -7
- package/dist/graph/index.cjs.map +1 -0
- package/dist/graph/index.d.cts +1 -7
- package/dist/graph/index.d.ts +1 -7
- package/dist/graph/index.js +3 -1
- package/dist/graph/index.js.map +1 -0
- package/dist/index.cjs +20 -227
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +45 -95
- package/dist/index.d.ts +45 -95
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -0
- package/dist/patterns/ai/browser.cjs +20 -7
- package/dist/patterns/ai/browser.cjs.map +1 -0
- package/dist/patterns/ai/browser.d.cts +1 -127
- package/dist/patterns/ai/browser.d.ts +1 -127
- package/dist/patterns/ai/browser.js +3 -3
- package/dist/patterns/ai/browser.js.map +1 -0
- package/dist/patterns/ai/index.cjs +20 -73
- package/dist/patterns/ai/index.cjs.map +1 -0
- package/dist/patterns/ai/index.d.cts +1 -20
- package/dist/patterns/ai/index.d.ts +1 -20
- package/dist/patterns/ai/index.js +3 -1
- package/dist/patterns/ai/index.js.map +1 -0
- package/dist/patterns/ai/node.cjs +21 -1
- package/dist/patterns/ai/node.cjs.map +1 -0
- package/dist/patterns/ai/node.d.cts +1 -59
- package/dist/patterns/ai/node.d.ts +1 -59
- package/dist/patterns/ai/node.js +3 -1
- package/dist/patterns/ai/node.js.map +1 -0
- package/dist/patterns/cqrs/index.cjs +21 -3
- package/dist/patterns/cqrs/index.cjs.map +1 -0
- package/dist/patterns/cqrs/index.d.cts +1 -8
- package/dist/patterns/cqrs/index.d.ts +1 -8
- package/dist/patterns/cqrs/index.js +3 -1
- package/dist/patterns/cqrs/index.js.map +1 -0
- package/dist/patterns/demo-shell/index.cjs +21 -5
- package/dist/patterns/demo-shell/index.cjs.map +1 -0
- package/dist/patterns/demo-shell/index.d.cts +1 -7
- package/dist/patterns/demo-shell/index.d.ts +1 -7
- package/dist/patterns/demo-shell/index.js +3 -1
- package/dist/patterns/demo-shell/index.js.map +1 -0
- package/dist/patterns/domain-templates/index.cjs +21 -3
- package/dist/patterns/domain-templates/index.cjs.map +1 -0
- package/dist/patterns/domain-templates/index.d.cts +1 -6
- package/dist/patterns/domain-templates/index.d.ts +1 -6
- package/dist/patterns/domain-templates/index.js +3 -1
- package/dist/patterns/domain-templates/index.js.map +1 -0
- package/dist/patterns/graphspec/index.cjs +21 -86
- package/dist/patterns/graphspec/index.cjs.map +1 -0
- package/dist/patterns/graphspec/index.d.cts +1 -8
- package/dist/patterns/graphspec/index.d.ts +1 -8
- package/dist/patterns/graphspec/index.js +3 -1
- package/dist/patterns/graphspec/index.js.map +1 -0
- package/dist/patterns/harness/index.cjs +21 -48
- package/dist/patterns/harness/index.cjs.map +1 -0
- package/dist/patterns/harness/index.d.cts +1 -13
- package/dist/patterns/harness/index.d.ts +1 -13
- package/dist/patterns/harness/index.js +3 -1
- package/dist/patterns/harness/index.js.map +1 -0
- package/dist/patterns/inspect/index.cjs +21 -3
- package/dist/patterns/inspect/index.cjs.map +1 -0
- package/dist/patterns/inspect/index.d.cts +1 -9
- package/dist/patterns/inspect/index.d.ts +1 -9
- package/dist/patterns/inspect/index.js +3 -1
- package/dist/patterns/inspect/index.js.map +1 -0
- package/dist/patterns/job-queue/index.cjs +21 -3
- package/dist/patterns/job-queue/index.cjs.map +1 -0
- package/dist/patterns/job-queue/index.d.cts +1 -9
- package/dist/patterns/job-queue/index.d.ts +1 -9
- package/dist/patterns/job-queue/index.js +3 -1
- package/dist/patterns/job-queue/index.js.map +1 -0
- package/dist/patterns/memory/index.cjs +21 -3
- package/dist/patterns/memory/index.cjs.map +1 -0
- package/dist/patterns/memory/index.d.cts +1 -8
- package/dist/patterns/memory/index.d.ts +1 -8
- package/dist/patterns/memory/index.js +3 -1
- package/dist/patterns/memory/index.js.map +1 -0
- package/dist/patterns/messaging/index.cjs +21 -3
- package/dist/patterns/messaging/index.cjs.map +1 -0
- package/dist/patterns/messaging/index.d.cts +1 -7
- package/dist/patterns/messaging/index.d.ts +1 -7
- package/dist/patterns/messaging/index.js +3 -1
- package/dist/patterns/messaging/index.js.map +1 -0
- package/dist/patterns/orchestration/index.cjs +21 -3
- package/dist/patterns/orchestration/index.cjs.map +1 -0
- package/dist/patterns/orchestration/index.d.cts +1 -8
- package/dist/patterns/orchestration/index.d.ts +1 -8
- package/dist/patterns/orchestration/index.js +3 -1
- package/dist/patterns/orchestration/index.js.map +1 -0
- package/dist/patterns/process/index.cjs +21 -3
- package/dist/patterns/process/index.cjs.map +1 -0
- package/dist/patterns/process/index.d.cts +1 -10
- package/dist/patterns/process/index.d.ts +1 -10
- package/dist/patterns/process/index.js +3 -1
- package/dist/patterns/process/index.js.map +1 -0
- package/dist/patterns/reactive-layout/index.cjs +21 -4
- package/dist/patterns/reactive-layout/index.cjs.map +1 -0
- package/dist/patterns/reactive-layout/index.d.cts +1 -7
- package/dist/patterns/reactive-layout/index.d.ts +1 -7
- package/dist/patterns/reactive-layout/index.js +3 -1
- package/dist/patterns/reactive-layout/index.js.map +1 -0
- package/dist/patterns/reduction/index.cjs +21 -3
- package/dist/patterns/reduction/index.cjs.map +1 -0
- package/dist/patterns/reduction/index.d.cts +1 -6
- package/dist/patterns/reduction/index.d.ts +1 -6
- package/dist/patterns/reduction/index.js +3 -1
- package/dist/patterns/reduction/index.js.map +1 -0
- package/dist/patterns/surface/index.cjs +21 -13
- package/dist/patterns/surface/index.cjs.map +1 -0
- package/dist/patterns/surface/index.d.cts +1 -9
- package/dist/patterns/surface/index.d.ts +1 -9
- package/dist/patterns/surface/index.js +3 -1
- package/dist/patterns/surface/index.js.map +1 -0
- package/dist/patterns/topology-view/index.cjs +21 -0
- package/dist/patterns/topology-view/index.cjs.map +1 -0
- package/dist/patterns/topology-view/index.d.cts +1 -0
- package/dist/patterns/topology-view/index.d.ts +1 -0
- package/dist/patterns/topology-view/index.js +3 -0
- package/dist/patterns/topology-view/index.js.map +1 -0
- package/dist/testing/index.cjs +21 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +1 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -0
- package/package.json +608 -584
- package/dist/backoff-HPZMEZNF.js +0 -1
- package/dist/cascading-BglDkMdX.d.cts +0 -199
- package/dist/cascading-MFgxu7Yo.d.ts +0 -199
- package/dist/chunk-2T7U5EU6.js +0 -1
- package/dist/chunk-3G5U5QNE.js +0 -5
- package/dist/chunk-4VVTGLXJ.js +0 -1
- package/dist/chunk-5M4CCMMD.js +0 -45
- package/dist/chunk-5QDBSZBV.js +0 -1
- package/dist/chunk-5XJ6B66J.js +0 -1
- package/dist/chunk-6QZNQS5B.js +0 -1
- package/dist/chunk-6X7AFUJV.js +0 -9
- package/dist/chunk-7K6PWTDQ.js +0 -1
- package/dist/chunk-7LIAPXJB.js +0 -1
- package/dist/chunk-7WPU3UHQ.js +0 -1
- package/dist/chunk-A5WCQ5NO.js +0 -1
- package/dist/chunk-APPIWSGD.js +0 -84
- package/dist/chunk-BEZWM2SY.js +0 -1
- package/dist/chunk-C72GO4IZ.js +0 -1
- package/dist/chunk-CB676TKJ.js +0 -1
- package/dist/chunk-CE6TI2TL.js +0 -1
- package/dist/chunk-CE72X3WO.js +0 -1
- package/dist/chunk-CK2E7BTU.js +0 -1
- package/dist/chunk-CLVB32RD.js +0 -1
- package/dist/chunk-CRVT7D2P.js +0 -1
- package/dist/chunk-D5RFJOZ2.js +0 -1
- package/dist/chunk-D7GPHKFH.js +0 -1
- package/dist/chunk-DHRX7JX4.js +0 -2
- package/dist/chunk-ESMPEKEV.js +0 -1
- package/dist/chunk-F672GV32.js +0 -1
- package/dist/chunk-FZMYDOWV.js +0 -1
- package/dist/chunk-GHBWHMRZ.js +0 -1
- package/dist/chunk-GLERH466.js +0 -1
- package/dist/chunk-GPW2V3RE.js +0 -1
- package/dist/chunk-HIDYF36O.js +0 -1
- package/dist/chunk-HITNVN6B.js +0 -3
- package/dist/chunk-HY4DJBA7.js +0 -5
- package/dist/chunk-KZIEYVXN.js +0 -1
- package/dist/chunk-L6NSJVJZ.js +0 -1
- package/dist/chunk-N4MQX6JU.js +0 -18
- package/dist/chunk-N7FHEL4D.js +0 -1
- package/dist/chunk-NTEURFZH.js +0 -1
- package/dist/chunk-OIVP6KFV.js +0 -1
- package/dist/chunk-OPHBU3LG.js +0 -1
- package/dist/chunk-OYQOZP2F.js +0 -5
- package/dist/chunk-PTZK576G.js +0 -1
- package/dist/chunk-QYADASLV.js +0 -1
- package/dist/chunk-ST7UXLWR.js +0 -1
- package/dist/chunk-SVY7VUYU.js +0 -1
- package/dist/chunk-TK3NWWD4.js +0 -1
- package/dist/chunk-TSOYJ743.js +0 -1
- package/dist/chunk-UNGSTR4X.js +0 -61
- package/dist/chunk-VIMF6LGM.js +0 -1
- package/dist/chunk-VJLMUKOI.js +0 -1
- package/dist/chunk-VN6RDSK2.js +0 -1
- package/dist/chunk-VV4N5P64.js +0 -1
- package/dist/chunk-W3I423PS.js +0 -1
- package/dist/chunk-WJR24TAG.js +0 -1
- package/dist/chunk-XTGKMHSW.js +0 -1
- package/dist/chunk-YBB7ZGTY.js +0 -1
- package/dist/chunk-Z4NPUARF.js +0 -1
- package/dist/chunk-ZGNQRPDT.js +0 -1
- package/dist/chunk-ZKPSFFKU.js +0 -1
- package/dist/chunk-ZLV5SQSX.js +0 -1
- package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
- package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
- package/dist/decay-BvOWTZ00.d.ts +0 -112
- package/dist/decay-CFlLvXUT.d.cts +0 -112
- package/dist/fallback-74oxi34l.d.cts +0 -250
- package/dist/fallback-DUyyBTBK.d.ts +0 -250
- package/dist/graph-CWvEUQAq.d.cts +0 -1861
- package/dist/graph-D9LFnda9.d.ts +0 -1861
- package/dist/index-5k1T6jl0.d.cts +0 -121
- package/dist/index-9770hRuQ.d.cts +0 -779
- package/dist/index-B-_tFaqV.d.cts +0 -468
- package/dist/index-B17QddL1.d.cts +0 -374
- package/dist/index-B1F8Enjf.d.ts +0 -704
- package/dist/index-B5S8ULbU.d.ts +0 -515
- package/dist/index-B8YnZpIR.d.ts +0 -102
- package/dist/index-BHskSB8v.d.ts +0 -3413
- package/dist/index-BIYAkbAi.d.cts +0 -26
- package/dist/index-BQSKmbuG.d.cts +0 -127
- package/dist/index-BaQaY_IQ.d.cts +0 -231
- package/dist/index-BmZXHqkE.d.ts +0 -36
- package/dist/index-BoJ5JHxI.d.ts +0 -557
- package/dist/index-BocU7pqs.d.ts +0 -779
- package/dist/index-BrPrLl4e.d.cts +0 -86
- package/dist/index-BxNs2HB9.d.cts +0 -1858
- package/dist/index-Byu-OpX_.d.ts +0 -113
- package/dist/index-C1T3d7V-.d.cts +0 -704
- package/dist/index-C5ri2Axc.d.cts +0 -301
- package/dist/index-C5stwKcw.d.cts +0 -44
- package/dist/index-C9l6OEBL.d.ts +0 -26
- package/dist/index-CBBLl_rc.d.ts +0 -127
- package/dist/index-CBGUK09R.d.ts +0 -754
- package/dist/index-CC-AvFTy.d.cts +0 -557
- package/dist/index-CJF1URuX.d.ts +0 -121
- package/dist/index-CK29LV56.d.cts +0 -34
- package/dist/index-CMh5Rz1y.d.ts +0 -385
- package/dist/index-CPQlGA29.d.ts +0 -34
- package/dist/index-CR8QpwX8.d.ts +0 -2680
- package/dist/index-CS0LTlB8.d.cts +0 -385
- package/dist/index-CSOmP7xT.d.cts +0 -291
- package/dist/index-CYq8vAyV.d.ts +0 -291
- package/dist/index-CZ3r5Rxp.d.ts +0 -374
- package/dist/index-CasX6Pfq.d.cts +0 -358
- package/dist/index-CdAlHFEt.d.ts +0 -44
- package/dist/index-CdTelp1M.d.ts +0 -202
- package/dist/index-CeFiHtAg.d.ts +0 -468
- package/dist/index-Cj3WohTd.d.cts +0 -202
- package/dist/index-Climxqsu.d.cts +0 -754
- package/dist/index-Co7uli2l.d.cts +0 -3413
- package/dist/index-CviRnE4K.d.ts +0 -45
- package/dist/index-Cwv0KWcU.d.cts +0 -102
- package/dist/index-CzLVrjxn.d.ts +0 -231
- package/dist/index-D0aciIex.d.cts +0 -209
- package/dist/index-DHen9Klo.d.ts +0 -1858
- package/dist/index-DV_1YuVk.d.cts +0 -221
- package/dist/index-Dc4AYqrJ.d.cts +0 -515
- package/dist/index-Dgl1HpPn.d.ts +0 -86
- package/dist/index-DisjX8a-.d.ts +0 -221
- package/dist/index-UPSiS-X7.d.cts +0 -2680
- package/dist/index-Yq60JP3s.d.ts +0 -209
- package/dist/index-ZVQhLa2i.d.cts +0 -37
- package/dist/index-_6ODbuOu.d.cts +0 -45
- package/dist/index-hcDJ8PSI.d.cts +0 -36
- package/dist/index-nozs3fFC.d.ts +0 -301
- package/dist/index-p09KSrTN.d.ts +0 -358
- package/dist/index-sqkqlb1p.d.ts +0 -37
- package/dist/index-tRCxuAXF.d.cts +0 -113
- package/dist/node-kK3CvTrR.d.cts +0 -1347
- package/dist/node-kK3CvTrR.d.ts +0 -1347
- package/dist/observable-DWjNfLvC.d.ts +0 -36
- package/dist/observable-e3eiPPFy.d.cts +0 -36
- package/dist/pipeline-graph-CIKhynsF.d.cts +0 -142
- package/dist/pipeline-graph-Sgj0gCwn.d.ts +0 -142
- package/dist/reactive-layout-DOTs9P3X.d.ts +0 -183
- package/dist/reactive-layout-DgctbqZo.d.cts +0 -183
- package/dist/reactive-log-BKALbfal.d.ts +0 -223
- package/dist/reactive-log-DIGdYqQ6.d.cts +0 -223
- package/dist/reactive-map-CEFGp8TK.d.cts +0 -296
- package/dist/reactive-map-DS_SIAxv.d.ts +0 -296
- package/dist/resilience-6LYQJAC5.js +0 -1
- package/dist/sugar-DQjFmVqb.d.cts +0 -399
- package/dist/sugar-fhLIE7TT.d.ts +0 -399
- package/dist/topology-tree-Bcz27hpF.d.cts +0 -25
- package/dist/topology-tree-xvaD0fOX.d.ts +0 -25
- package/dist/types-C0_yquda.d.cts +0 -442
- package/dist/types-CWFysE9E.d.ts +0 -442
|
@@ -1,210 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Node-only Audit 4 storage backends + convenience factories.
|
|
5
|
-
*
|
|
6
|
-
* Imports `node:fs`, `node:path`, `node:crypto`, `node:sqlite`. Browser-safe
|
|
7
|
-
* consumers should not import this module.
|
|
8
|
-
*
|
|
9
|
-
* @module
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Creates a filesystem backend that maps each key to a file under `dir`.
|
|
14
|
-
*
|
|
15
|
-
* Writes are atomic via temp + rename. Keys are percent-encoded to safe
|
|
16
|
-
* filenames; `list(prefix)` enumerates `.bin` files in the directory.
|
|
17
|
-
*
|
|
18
|
-
* @param dir - Directory path where key files are stored (created on first write).
|
|
19
|
-
* @returns `StorageBackend` backed by the filesystem under `dir`.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* import { fileBackend, snapshotStorage } from "@graphrefly/graphrefly/extra/node";
|
|
24
|
-
*
|
|
25
|
-
* const backend = fileBackend("./checkpoints");
|
|
26
|
-
* const tier = snapshotStorage(backend, { name: "my-graph" });
|
|
27
|
-
* await tier.save({ name: "my-graph", state: { count: 1 } });
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @category extra
|
|
31
|
-
*/
|
|
32
|
-
declare function fileBackend(dir: string): StorageBackend;
|
|
33
|
-
/**
|
|
34
|
-
* Creates a SQLite backend using Node 22.5+ `node:sqlite`.
|
|
35
|
-
*
|
|
36
|
-
* Stores byte values under string keys in a single `graphrefly_storage` table.
|
|
37
|
-
* The caller owns the connection lifetime — call `.close()` for explicit teardown.
|
|
38
|
-
* Requires Node 22.5 or later for `node:sqlite`.
|
|
39
|
-
*
|
|
40
|
-
* @param path - Filesystem path to the SQLite database file (created if absent).
|
|
41
|
-
* @returns `StorageBackend` with an extra `close()` method for explicit teardown.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* import { sqliteBackend, snapshotStorage } from "@graphrefly/graphrefly/extra/node";
|
|
46
|
-
*
|
|
47
|
-
* const backend = sqliteBackend("./state.db");
|
|
48
|
-
* const tier = snapshotStorage(backend, { name: "my-graph" });
|
|
49
|
-
* await tier.save({ name: "my-graph", state: { count: 1 } });
|
|
50
|
-
* backend.close();
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @category extra
|
|
54
|
-
*/
|
|
55
|
-
declare function sqliteBackend(path: string): StorageBackend & {
|
|
56
|
-
close(): void;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Creates a filesystem snapshot tier backed by a `fileBackend` under `dir`.
|
|
60
|
-
*
|
|
61
|
-
* Convenience wrapper for `snapshotStorage(fileBackend(dir), opts)`.
|
|
62
|
-
* Writes are atomic (temp + rename). Requires Node.js with filesystem access.
|
|
63
|
-
*
|
|
64
|
-
* @param dir - Directory path where snapshot files are stored.
|
|
65
|
-
* @param opts - Optional snapshot storage options (name, codec, filter, keyOf, debounce, compactEvery).
|
|
66
|
-
* @returns `SnapshotStorageTier<T>` backed by the filesystem.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* import { fileSnapshot } from "@graphrefly/graphrefly/extra/node";
|
|
71
|
-
*
|
|
72
|
-
* const tier = fileSnapshot<{ count: number }>("./checkpoints", { name: "counter" });
|
|
73
|
-
* await tier.save({ count: 1 });
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @category extra
|
|
77
|
-
*/
|
|
78
|
-
declare function fileSnapshot<T>(dir: string, opts?: Omit<SnapshotStorageOptions<T>, "name"> & {
|
|
79
|
-
name?: string;
|
|
80
|
-
}): SnapshotStorageTier<T>;
|
|
81
|
-
/**
|
|
82
|
-
* Creates a filesystem append-log tier backed by a `fileBackend` under `dir`.
|
|
83
|
-
*
|
|
84
|
-
* Convenience wrapper for `appendLogStorage(fileBackend(dir), opts)`.
|
|
85
|
-
* Writes are atomic (temp + rename). Requires Node.js with filesystem access.
|
|
86
|
-
*
|
|
87
|
-
* @param dir - Directory path where append-log files are stored.
|
|
88
|
-
* @param opts - Optional append-log storage options (name, codec, keyOf, debounce, compactEvery).
|
|
89
|
-
* @returns `AppendLogStorageTier<T>` backed by the filesystem.
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```ts
|
|
93
|
-
* import { fileAppendLog } from "@graphrefly/graphrefly/extra/node";
|
|
94
|
-
*
|
|
95
|
-
* const tier = fileAppendLog<{ type: string; id: number }>("./events");
|
|
96
|
-
* await tier.appendEntries([{ type: "created", id: 1 }]);
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @category extra
|
|
100
|
-
*/
|
|
101
|
-
declare function fileAppendLog<T>(dir: string, opts?: Omit<AppendLogStorageOptions<T>, "name"> & {
|
|
102
|
-
name?: string;
|
|
103
|
-
}): AppendLogStorageTier<T>;
|
|
104
|
-
/**
|
|
105
|
-
* Creates a SQLite snapshot tier; caller owns the connection lifetime.
|
|
106
|
-
*
|
|
107
|
-
* Convenience wrapper for `snapshotStorage(sqliteBackend(path), opts)`.
|
|
108
|
-
* The returned tier exposes an extra `close()` method — call it for explicit
|
|
109
|
-
* teardown of the underlying SQLite connection.
|
|
110
|
-
*
|
|
111
|
-
* @param path - Filesystem path to the SQLite database file.
|
|
112
|
-
* @param opts - Optional snapshot storage options (name, codec, filter, keyOf, debounce, compactEvery).
|
|
113
|
-
* @returns `SnapshotStorageTier<T>` with a `close()` method for connection teardown.
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```ts
|
|
117
|
-
* import { sqliteSnapshot } from "@graphrefly/graphrefly/extra/node";
|
|
118
|
-
*
|
|
119
|
-
* const tier = sqliteSnapshot<{ count: number }>("./state.db", { name: "counter" });
|
|
120
|
-
* await tier.save({ count: 42 });
|
|
121
|
-
* tier.close();
|
|
122
|
-
* ```
|
|
123
|
-
*
|
|
124
|
-
* @category extra
|
|
125
|
-
*/
|
|
126
|
-
declare function sqliteSnapshot<T>(path: string, opts?: Omit<SnapshotStorageOptions<T>, "name"> & {
|
|
127
|
-
name?: string;
|
|
128
|
-
}): SnapshotStorageTier<T> & {
|
|
129
|
-
close(): void;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Creates a SQLite append-log tier; caller owns the connection lifetime.
|
|
133
|
-
*
|
|
134
|
-
* Convenience wrapper for `appendLogStorage(sqliteBackend(path), opts)`.
|
|
135
|
-
* The returned tier exposes an extra `close()` method — call it for explicit
|
|
136
|
-
* teardown of the underlying SQLite connection.
|
|
137
|
-
*
|
|
138
|
-
* @param path - Filesystem path to the SQLite database file.
|
|
139
|
-
* @param opts - Optional append-log storage options (name, codec, keyOf, debounce, compactEvery).
|
|
140
|
-
* @returns `AppendLogStorageTier<T>` with a `close()` method for connection teardown.
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* ```ts
|
|
144
|
-
* import { sqliteAppendLog } from "@graphrefly/graphrefly/extra/node";
|
|
145
|
-
*
|
|
146
|
-
* const tier = sqliteAppendLog<{ type: string }>("./events.db", { name: "events" });
|
|
147
|
-
* await tier.appendEntries([{ type: "created" }]);
|
|
148
|
-
* tier.close();
|
|
149
|
-
* ```
|
|
150
|
-
*
|
|
151
|
-
* @category extra
|
|
152
|
-
*/
|
|
153
|
-
declare function sqliteAppendLog<T>(path: string, opts?: Omit<AppendLogStorageOptions<T>, "name"> & {
|
|
154
|
-
name?: string;
|
|
155
|
-
}): AppendLogStorageTier<T> & {
|
|
156
|
-
close(): void;
|
|
157
|
-
};
|
|
158
|
-
/**
|
|
159
|
-
* Creates a filesystem key-value tier backed by a `fileBackend` under `dir`.
|
|
160
|
-
*
|
|
161
|
-
* Convenience wrapper for `kvStorage(fileBackend(dir), opts)`.
|
|
162
|
-
* Each key is stored as a separate file; writes are atomic (temp + rename).
|
|
163
|
-
*
|
|
164
|
-
* @param dir - Directory path where key files are stored.
|
|
165
|
-
* @param opts - Optional kv storage options (name, codec, filter, debounce, compactEvery).
|
|
166
|
-
* @returns `KvStorageTier<T>` backed by the filesystem.
|
|
167
|
-
*
|
|
168
|
-
* @example
|
|
169
|
-
* ```ts
|
|
170
|
-
* import { fileKv } from "@graphrefly/graphrefly/extra/node";
|
|
171
|
-
*
|
|
172
|
-
* const kv = fileKv<{ score: number }>("./scores");
|
|
173
|
-
* await kv.save("player1", { score: 100 });
|
|
174
|
-
* const val = await kv.load("player1");
|
|
175
|
-
* ```
|
|
176
|
-
*
|
|
177
|
-
* @category extra
|
|
178
|
-
*/
|
|
179
|
-
declare function fileKv<T>(dir: string, opts?: Omit<KvStorageOptions<T>, "name"> & {
|
|
180
|
-
name?: string;
|
|
181
|
-
}): KvStorageTier<T>;
|
|
182
|
-
/**
|
|
183
|
-
* Creates a SQLite key-value tier; caller owns the connection lifetime.
|
|
184
|
-
*
|
|
185
|
-
* Convenience wrapper for `kvStorage(sqliteBackend(path), opts)`.
|
|
186
|
-
* The returned tier exposes an extra `close()` method — call it for explicit
|
|
187
|
-
* teardown of the underlying SQLite connection.
|
|
188
|
-
*
|
|
189
|
-
* @param path - Filesystem path to the SQLite database file.
|
|
190
|
-
* @param opts - Optional kv storage options (name, codec, filter, debounce, compactEvery).
|
|
191
|
-
* @returns `KvStorageTier<T>` with a `close()` method for connection teardown.
|
|
192
|
-
*
|
|
193
|
-
* @example
|
|
194
|
-
* ```ts
|
|
195
|
-
* import { sqliteKv } from "@graphrefly/graphrefly/extra/node";
|
|
196
|
-
*
|
|
197
|
-
* const kv = sqliteKv<{ score: number }>("./scores.db");
|
|
198
|
-
* await kv.save("player1", { score: 100 });
|
|
199
|
-
* kv.close();
|
|
200
|
-
* ```
|
|
201
|
-
*
|
|
202
|
-
* @category extra
|
|
203
|
-
*/
|
|
204
|
-
declare function sqliteKv<T>(path: string, opts?: Omit<KvStorageOptions<T>, "name"> & {
|
|
205
|
-
name?: string;
|
|
206
|
-
}): KvStorageTier<T> & {
|
|
207
|
-
close(): void;
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export { fileAppendLog, fileBackend, fileKv, fileSnapshot, sqliteAppendLog, sqliteBackend, sqliteKv, sqliteSnapshot };
|
|
1
|
+
export * from '@graphrefly/pure-ts/extra/storage-tiers-node';
|
|
@@ -1,210 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Node-only Audit 4 storage backends + convenience factories.
|
|
5
|
-
*
|
|
6
|
-
* Imports `node:fs`, `node:path`, `node:crypto`, `node:sqlite`. Browser-safe
|
|
7
|
-
* consumers should not import this module.
|
|
8
|
-
*
|
|
9
|
-
* @module
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Creates a filesystem backend that maps each key to a file under `dir`.
|
|
14
|
-
*
|
|
15
|
-
* Writes are atomic via temp + rename. Keys are percent-encoded to safe
|
|
16
|
-
* filenames; `list(prefix)` enumerates `.bin` files in the directory.
|
|
17
|
-
*
|
|
18
|
-
* @param dir - Directory path where key files are stored (created on first write).
|
|
19
|
-
* @returns `StorageBackend` backed by the filesystem under `dir`.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* import { fileBackend, snapshotStorage } from "@graphrefly/graphrefly/extra/node";
|
|
24
|
-
*
|
|
25
|
-
* const backend = fileBackend("./checkpoints");
|
|
26
|
-
* const tier = snapshotStorage(backend, { name: "my-graph" });
|
|
27
|
-
* await tier.save({ name: "my-graph", state: { count: 1 } });
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @category extra
|
|
31
|
-
*/
|
|
32
|
-
declare function fileBackend(dir: string): StorageBackend;
|
|
33
|
-
/**
|
|
34
|
-
* Creates a SQLite backend using Node 22.5+ `node:sqlite`.
|
|
35
|
-
*
|
|
36
|
-
* Stores byte values under string keys in a single `graphrefly_storage` table.
|
|
37
|
-
* The caller owns the connection lifetime — call `.close()` for explicit teardown.
|
|
38
|
-
* Requires Node 22.5 or later for `node:sqlite`.
|
|
39
|
-
*
|
|
40
|
-
* @param path - Filesystem path to the SQLite database file (created if absent).
|
|
41
|
-
* @returns `StorageBackend` with an extra `close()` method for explicit teardown.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* import { sqliteBackend, snapshotStorage } from "@graphrefly/graphrefly/extra/node";
|
|
46
|
-
*
|
|
47
|
-
* const backend = sqliteBackend("./state.db");
|
|
48
|
-
* const tier = snapshotStorage(backend, { name: "my-graph" });
|
|
49
|
-
* await tier.save({ name: "my-graph", state: { count: 1 } });
|
|
50
|
-
* backend.close();
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @category extra
|
|
54
|
-
*/
|
|
55
|
-
declare function sqliteBackend(path: string): StorageBackend & {
|
|
56
|
-
close(): void;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Creates a filesystem snapshot tier backed by a `fileBackend` under `dir`.
|
|
60
|
-
*
|
|
61
|
-
* Convenience wrapper for `snapshotStorage(fileBackend(dir), opts)`.
|
|
62
|
-
* Writes are atomic (temp + rename). Requires Node.js with filesystem access.
|
|
63
|
-
*
|
|
64
|
-
* @param dir - Directory path where snapshot files are stored.
|
|
65
|
-
* @param opts - Optional snapshot storage options (name, codec, filter, keyOf, debounce, compactEvery).
|
|
66
|
-
* @returns `SnapshotStorageTier<T>` backed by the filesystem.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* import { fileSnapshot } from "@graphrefly/graphrefly/extra/node";
|
|
71
|
-
*
|
|
72
|
-
* const tier = fileSnapshot<{ count: number }>("./checkpoints", { name: "counter" });
|
|
73
|
-
* await tier.save({ count: 1 });
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @category extra
|
|
77
|
-
*/
|
|
78
|
-
declare function fileSnapshot<T>(dir: string, opts?: Omit<SnapshotStorageOptions<T>, "name"> & {
|
|
79
|
-
name?: string;
|
|
80
|
-
}): SnapshotStorageTier<T>;
|
|
81
|
-
/**
|
|
82
|
-
* Creates a filesystem append-log tier backed by a `fileBackend` under `dir`.
|
|
83
|
-
*
|
|
84
|
-
* Convenience wrapper for `appendLogStorage(fileBackend(dir), opts)`.
|
|
85
|
-
* Writes are atomic (temp + rename). Requires Node.js with filesystem access.
|
|
86
|
-
*
|
|
87
|
-
* @param dir - Directory path where append-log files are stored.
|
|
88
|
-
* @param opts - Optional append-log storage options (name, codec, keyOf, debounce, compactEvery).
|
|
89
|
-
* @returns `AppendLogStorageTier<T>` backed by the filesystem.
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```ts
|
|
93
|
-
* import { fileAppendLog } from "@graphrefly/graphrefly/extra/node";
|
|
94
|
-
*
|
|
95
|
-
* const tier = fileAppendLog<{ type: string; id: number }>("./events");
|
|
96
|
-
* await tier.appendEntries([{ type: "created", id: 1 }]);
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @category extra
|
|
100
|
-
*/
|
|
101
|
-
declare function fileAppendLog<T>(dir: string, opts?: Omit<AppendLogStorageOptions<T>, "name"> & {
|
|
102
|
-
name?: string;
|
|
103
|
-
}): AppendLogStorageTier<T>;
|
|
104
|
-
/**
|
|
105
|
-
* Creates a SQLite snapshot tier; caller owns the connection lifetime.
|
|
106
|
-
*
|
|
107
|
-
* Convenience wrapper for `snapshotStorage(sqliteBackend(path), opts)`.
|
|
108
|
-
* The returned tier exposes an extra `close()` method — call it for explicit
|
|
109
|
-
* teardown of the underlying SQLite connection.
|
|
110
|
-
*
|
|
111
|
-
* @param path - Filesystem path to the SQLite database file.
|
|
112
|
-
* @param opts - Optional snapshot storage options (name, codec, filter, keyOf, debounce, compactEvery).
|
|
113
|
-
* @returns `SnapshotStorageTier<T>` with a `close()` method for connection teardown.
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```ts
|
|
117
|
-
* import { sqliteSnapshot } from "@graphrefly/graphrefly/extra/node";
|
|
118
|
-
*
|
|
119
|
-
* const tier = sqliteSnapshot<{ count: number }>("./state.db", { name: "counter" });
|
|
120
|
-
* await tier.save({ count: 42 });
|
|
121
|
-
* tier.close();
|
|
122
|
-
* ```
|
|
123
|
-
*
|
|
124
|
-
* @category extra
|
|
125
|
-
*/
|
|
126
|
-
declare function sqliteSnapshot<T>(path: string, opts?: Omit<SnapshotStorageOptions<T>, "name"> & {
|
|
127
|
-
name?: string;
|
|
128
|
-
}): SnapshotStorageTier<T> & {
|
|
129
|
-
close(): void;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Creates a SQLite append-log tier; caller owns the connection lifetime.
|
|
133
|
-
*
|
|
134
|
-
* Convenience wrapper for `appendLogStorage(sqliteBackend(path), opts)`.
|
|
135
|
-
* The returned tier exposes an extra `close()` method — call it for explicit
|
|
136
|
-
* teardown of the underlying SQLite connection.
|
|
137
|
-
*
|
|
138
|
-
* @param path - Filesystem path to the SQLite database file.
|
|
139
|
-
* @param opts - Optional append-log storage options (name, codec, keyOf, debounce, compactEvery).
|
|
140
|
-
* @returns `AppendLogStorageTier<T>` with a `close()` method for connection teardown.
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* ```ts
|
|
144
|
-
* import { sqliteAppendLog } from "@graphrefly/graphrefly/extra/node";
|
|
145
|
-
*
|
|
146
|
-
* const tier = sqliteAppendLog<{ type: string }>("./events.db", { name: "events" });
|
|
147
|
-
* await tier.appendEntries([{ type: "created" }]);
|
|
148
|
-
* tier.close();
|
|
149
|
-
* ```
|
|
150
|
-
*
|
|
151
|
-
* @category extra
|
|
152
|
-
*/
|
|
153
|
-
declare function sqliteAppendLog<T>(path: string, opts?: Omit<AppendLogStorageOptions<T>, "name"> & {
|
|
154
|
-
name?: string;
|
|
155
|
-
}): AppendLogStorageTier<T> & {
|
|
156
|
-
close(): void;
|
|
157
|
-
};
|
|
158
|
-
/**
|
|
159
|
-
* Creates a filesystem key-value tier backed by a `fileBackend` under `dir`.
|
|
160
|
-
*
|
|
161
|
-
* Convenience wrapper for `kvStorage(fileBackend(dir), opts)`.
|
|
162
|
-
* Each key is stored as a separate file; writes are atomic (temp + rename).
|
|
163
|
-
*
|
|
164
|
-
* @param dir - Directory path where key files are stored.
|
|
165
|
-
* @param opts - Optional kv storage options (name, codec, filter, debounce, compactEvery).
|
|
166
|
-
* @returns `KvStorageTier<T>` backed by the filesystem.
|
|
167
|
-
*
|
|
168
|
-
* @example
|
|
169
|
-
* ```ts
|
|
170
|
-
* import { fileKv } from "@graphrefly/graphrefly/extra/node";
|
|
171
|
-
*
|
|
172
|
-
* const kv = fileKv<{ score: number }>("./scores");
|
|
173
|
-
* await kv.save("player1", { score: 100 });
|
|
174
|
-
* const val = await kv.load("player1");
|
|
175
|
-
* ```
|
|
176
|
-
*
|
|
177
|
-
* @category extra
|
|
178
|
-
*/
|
|
179
|
-
declare function fileKv<T>(dir: string, opts?: Omit<KvStorageOptions<T>, "name"> & {
|
|
180
|
-
name?: string;
|
|
181
|
-
}): KvStorageTier<T>;
|
|
182
|
-
/**
|
|
183
|
-
* Creates a SQLite key-value tier; caller owns the connection lifetime.
|
|
184
|
-
*
|
|
185
|
-
* Convenience wrapper for `kvStorage(sqliteBackend(path), opts)`.
|
|
186
|
-
* The returned tier exposes an extra `close()` method — call it for explicit
|
|
187
|
-
* teardown of the underlying SQLite connection.
|
|
188
|
-
*
|
|
189
|
-
* @param path - Filesystem path to the SQLite database file.
|
|
190
|
-
* @param opts - Optional kv storage options (name, codec, filter, debounce, compactEvery).
|
|
191
|
-
* @returns `KvStorageTier<T>` with a `close()` method for connection teardown.
|
|
192
|
-
*
|
|
193
|
-
* @example
|
|
194
|
-
* ```ts
|
|
195
|
-
* import { sqliteKv } from "@graphrefly/graphrefly/extra/node";
|
|
196
|
-
*
|
|
197
|
-
* const kv = sqliteKv<{ score: number }>("./scores.db");
|
|
198
|
-
* await kv.save("player1", { score: 100 });
|
|
199
|
-
* kv.close();
|
|
200
|
-
* ```
|
|
201
|
-
*
|
|
202
|
-
* @category extra
|
|
203
|
-
*/
|
|
204
|
-
declare function sqliteKv<T>(path: string, opts?: Omit<KvStorageOptions<T>, "name"> & {
|
|
205
|
-
name?: string;
|
|
206
|
-
}): KvStorageTier<T> & {
|
|
207
|
-
close(): void;
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export { fileAppendLog, fileBackend, fileKv, fileSnapshot, sqliteAppendLog, sqliteBackend, sqliteKv, sqliteSnapshot };
|
|
1
|
+
export * from '@graphrefly/pure-ts/extra/storage-tiers-node';
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/extra/storage-tiers-node.ts
|
|
2
|
+
export * from "@graphrefly/pure-ts/extra/storage-tiers-node";
|
|
3
|
+
//# sourceMappingURL=storage-tiers-node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/extra/storage-tiers-node.ts"],"sourcesContent":["// Phase 13.9.A shim — re-export from pure-TS sibling until\n// @graphrefly/native (napi binding) and per-milestone swap-overs land.\nexport * from \"@graphrefly/pure-ts/extra/storage-tiers-node\";\n"],"mappings":";AAEA,cAAc;","names":[]}
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/extra/storage-tiers.ts
|
|
18
|
+
var storage_tiers_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(storage_tiers_exports);
|
|
20
|
+
__reExport(storage_tiers_exports, require("@graphrefly/pure-ts/extra/storage-tiers"), module.exports);
|
|
21
|
+
//# sourceMappingURL=storage-tiers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/extra/storage-tiers.ts"],"sourcesContent":["// Phase 13.9.A shim — re-export from pure-TS sibling until\n// @graphrefly/native (napi binding) and per-milestone swap-overs land.\nexport * from \"@graphrefly/pure-ts/extra/storage-tiers\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAEA,kCAAc,oDAFd;","names":[]}
|