@fireproof/core 0.19.119 → 0.19.121-dev
Sign up to get free protection for your applications and to get access to all the features.
- package/{chunk-WVN66YAN.js → chunk-F4FC6B2T.js} +5 -13
- package/chunk-F4FC6B2T.js.map +1 -0
- package/{chunk-2D2X6HIB.js → chunk-RXC4JGJT.js} +13 -2
- package/chunk-RXC4JGJT.js.map +1 -0
- package/deno.json +2 -2
- package/{gateway-G4CPXEQF.js → gateway-C62S56GY.js} +2 -2
- package/{gateway-G4CPXEQF.js.map → gateway-C62S56GY.js.map} +1 -1
- package/{gateway-2O7QPHGW.js → gateway-VVS4QWDA.js} +3 -3
- package/gateway-VVS4QWDA.js.map +1 -0
- package/index.cjs +22 -18
- package/index.cjs.map +1 -1
- package/index.d.cts +2 -1
- package/index.d.ts +2 -1
- package/index.js +12 -10
- package/index.js.map +1 -1
- package/{key-bag-file-CBCAWTVG.js → key-bag-file-PWZ3QE7B.js} +3 -3
- package/{key-bag-indexdb-RTSMSGM7.js → key-bag-indexdb-SYG3YD4D.js} +3 -3
- package/metafile-cjs.json +1 -1
- package/metafile-esm.json +1 -1
- package/node/mem-filesystem.cjs.map +1 -1
- package/node/mem-filesystem.d.cts +1 -1
- package/node/mem-filesystem.d.ts +1 -1
- package/node/mem-filesystem.js.map +1 -1
- package/node/metafile-cjs.json +1 -1
- package/node/metafile-esm.json +1 -1
- package/node/node-filesystem.cjs.map +1 -1
- package/node/node-filesystem.d.cts +1 -2
- package/node/node-filesystem.d.ts +1 -2
- package/node/node-filesystem.js.map +1 -1
- package/package.json +14 -14
- package/react/index.cjs.map +1 -1
- package/react/index.d.cts +4 -33
- package/react/index.d.ts +4 -33
- package/react/index.js.map +1 -1
- package/react/metafile-cjs.json +1 -1
- package/react/metafile-esm.json +1 -1
- package/tests/fireproof/config.test.ts +1 -0
- package/tests/fireproof/multiple-ledger.test.ts +1 -1
- package/{utils-XESRUKDJ.js → utils-ZVVGAXFE.js} +3 -3
- package/web/gateway-impl.cjs +24 -167
- package/web/gateway-impl.cjs.map +1 -1
- package/web/gateway-impl.d.cts +5 -59
- package/web/gateway-impl.d.ts +5 -59
- package/web/gateway-impl.js +7 -162
- package/web/gateway-impl.js.map +1 -1
- package/web/metafile-cjs.json +1 -1
- package/web/metafile-esm.json +1 -1
- package/chunk-2D2X6HIB.js.map +0 -1
- package/chunk-WVN66YAN.js.map +0 -1
- package/gateway-2O7QPHGW.js.map +0 -1
- package/node/types-DARSfXlb.d.cts +0 -23
- package/node/types-DARSfXlb.d.ts +0 -23
- /package/{key-bag-file-CBCAWTVG.js.map → key-bag-file-PWZ3QE7B.js.map} +0 -0
- /package/{key-bag-indexdb-RTSMSGM7.js.map → key-bag-indexdb-SYG3YD4D.js.map} +0 -0
- /package/{utils-XESRUKDJ.js.map → utils-ZVVGAXFE.js.map} +0 -0
package/index.d.cts
CHANGED
@@ -43,6 +43,7 @@ declare class CommitQueue<T = void> {
|
|
43
43
|
processNext(): void;
|
44
44
|
}
|
45
45
|
|
46
|
+
declare function onSuperThis(fn: (sthis: SuperThis) => void): () => void;
|
46
47
|
declare function ensureSuperThis(osthis?: Partial<SuperThisOpts>): SuperThis;
|
47
48
|
declare function ensureSuperLog(sthis: SuperThis, componentName: string, ctx?: Record<string, unknown>): SuperThis;
|
48
49
|
declare function ensureLogger(sthis: SuperThis, componentName: string, ctx?: Record<string, unknown>): Logger;
|
@@ -1137,5 +1138,5 @@ declare namespace index {
|
|
1137
1138
|
|
1138
1139
|
declare const PACKAGE_VERSION: string;
|
1139
1140
|
|
1140
|
-
export { type AllDocsQueryOpts, type AllDocsResponse, CRDT, type CRDTEntry, type CRDTMeta, type ChangesOptions, type ChangesResponse, type ChangesResponseRow, type ClockHead, type ClockLink, type ConfigOpts, type Connectable, Database, type DocBase, type DocFileMeta, type DocFiles, type DocFragment, type DocLiteral, type DocObject, type DocRecord, type DocResponse, type DocSet, type DocTypes, type DocUpdate, type DocValue, type DocWithId, type Falsy, type FileTransactionMeta, type IdxMeta, type IdxMetaMap, Index, type IndexKey, type IndexKeyType, type IndexRow, type IndexRows, type IndexTransactionMeta, type IndexUpdate, type IndexUpdateString, type Joiner, type KeyLiteral, type ListenerFn, type MapFn, type MetaType, type NoUpdateListenerFn, NotFoundError, PACKAGE_VERSION, type PathOps, type QueryOpts, type Store, type StoreType, type SuperThis, type SuperThisOpts, type SysFileSystem, type TextEndeCoder, UInt8ArrayEqual, type UnknownDoc, type UpdateListenerFn, index$3 as blockstore, index$3 as bs, dataDir, ensureLogger, ensureSuperLog, ensureSuperThis, exceptionWrapper, falsyToUndef, fireproof, getKey, getName, getStore, index$2 as index, isFalsy, isNotFoundError, index as rt, index as runtime, throwFalsy };
|
1141
|
+
export { type AllDocsQueryOpts, type AllDocsResponse, CRDT, type CRDTEntry, type CRDTMeta, type ChangesOptions, type ChangesResponse, type ChangesResponseRow, type ClockHead, type ClockLink, type ConfigOpts, type Connectable, Database, type DocBase, type DocFileMeta, type DocFiles, type DocFragment, type DocLiteral, type DocObject, type DocRecord, type DocResponse, type DocSet, type DocTypes, type DocUpdate, type DocValue, type DocWithId, type Falsy, type FileTransactionMeta, type IdxMeta, type IdxMetaMap, Index, type IndexKey, type IndexKeyType, type IndexRow, type IndexRows, type IndexTransactionMeta, type IndexUpdate, type IndexUpdateString, type Joiner, type KeyLiteral, type ListenerFn, type MapFn, type MetaType, type NoUpdateListenerFn, NotFoundError, PACKAGE_VERSION, type PathOps, type QueryOpts, type Store, type StoreType, type SuperThis, type SuperThisOpts, type SysFileSystem, type TextEndeCoder, UInt8ArrayEqual, type UnknownDoc, type UpdateListenerFn, index$3 as blockstore, index$3 as bs, dataDir, ensureLogger, ensureSuperLog, ensureSuperThis, exceptionWrapper, falsyToUndef, fireproof, getKey, getName, getStore, index$2 as index, isFalsy, isNotFoundError, onSuperThis, index as rt, index as runtime, throwFalsy };
|
1141
1142
|
declare module '@fireproof/core'
|
package/index.d.ts
CHANGED
@@ -43,6 +43,7 @@ declare class CommitQueue<T = void> {
|
|
43
43
|
processNext(): void;
|
44
44
|
}
|
45
45
|
|
46
|
+
declare function onSuperThis(fn: (sthis: SuperThis) => void): () => void;
|
46
47
|
declare function ensureSuperThis(osthis?: Partial<SuperThisOpts>): SuperThis;
|
47
48
|
declare function ensureSuperLog(sthis: SuperThis, componentName: string, ctx?: Record<string, unknown>): SuperThis;
|
48
49
|
declare function ensureLogger(sthis: SuperThis, componentName: string, ctx?: Record<string, unknown>): Logger;
|
@@ -1137,5 +1138,5 @@ declare namespace index {
|
|
1137
1138
|
|
1138
1139
|
declare const PACKAGE_VERSION: string;
|
1139
1140
|
|
1140
|
-
export { type AllDocsQueryOpts, type AllDocsResponse, CRDT, type CRDTEntry, type CRDTMeta, type ChangesOptions, type ChangesResponse, type ChangesResponseRow, type ClockHead, type ClockLink, type ConfigOpts, type Connectable, Database, type DocBase, type DocFileMeta, type DocFiles, type DocFragment, type DocLiteral, type DocObject, type DocRecord, type DocResponse, type DocSet, type DocTypes, type DocUpdate, type DocValue, type DocWithId, type Falsy, type FileTransactionMeta, type IdxMeta, type IdxMetaMap, Index, type IndexKey, type IndexKeyType, type IndexRow, type IndexRows, type IndexTransactionMeta, type IndexUpdate, type IndexUpdateString, type Joiner, type KeyLiteral, type ListenerFn, type MapFn, type MetaType, type NoUpdateListenerFn, NotFoundError, PACKAGE_VERSION, type PathOps, type QueryOpts, type Store, type StoreType, type SuperThis, type SuperThisOpts, type SysFileSystem, type TextEndeCoder, UInt8ArrayEqual, type UnknownDoc, type UpdateListenerFn, index$3 as blockstore, index$3 as bs, dataDir, ensureLogger, ensureSuperLog, ensureSuperThis, exceptionWrapper, falsyToUndef, fireproof, getKey, getName, getStore, index$2 as index, isFalsy, isNotFoundError, index as rt, index as runtime, throwFalsy };
|
1141
|
+
export { type AllDocsQueryOpts, type AllDocsResponse, CRDT, type CRDTEntry, type CRDTMeta, type ChangesOptions, type ChangesResponse, type ChangesResponseRow, type ClockHead, type ClockLink, type ConfigOpts, type Connectable, Database, type DocBase, type DocFileMeta, type DocFiles, type DocFragment, type DocLiteral, type DocObject, type DocRecord, type DocResponse, type DocSet, type DocTypes, type DocUpdate, type DocValue, type DocWithId, type Falsy, type FileTransactionMeta, type IdxMeta, type IdxMetaMap, Index, type IndexKey, type IndexKeyType, type IndexRow, type IndexRows, type IndexTransactionMeta, type IndexUpdate, type IndexUpdateString, type Joiner, type KeyLiteral, type ListenerFn, type MapFn, type MetaType, type NoUpdateListenerFn, NotFoundError, PACKAGE_VERSION, type PathOps, type QueryOpts, type Store, type StoreType, type SuperThis, type SuperThisOpts, type SysFileSystem, type TextEndeCoder, UInt8ArrayEqual, type UnknownDoc, type UpdateListenerFn, index$3 as blockstore, index$3 as bs, dataDir, ensureLogger, ensureSuperLog, ensureSuperThis, exceptionWrapper, falsyToUndef, fireproof, getKey, getName, getStore, index$2 as index, isFalsy, isNotFoundError, onSuperThis, index as rt, index as runtime, throwFalsy };
|
1141
1142
|
declare module '@fireproof/core'
|
package/index.js
CHANGED
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
getFileName,
|
6
6
|
getFileSystem,
|
7
7
|
getPath
|
8
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-F4FC6B2T.js";
|
9
9
|
import {
|
10
10
|
NotFoundError,
|
11
11
|
Result,
|
@@ -18,8 +18,9 @@ import {
|
|
18
18
|
getKey,
|
19
19
|
getName,
|
20
20
|
getStore,
|
21
|
-
isNotFoundError
|
22
|
-
|
21
|
+
isNotFoundError,
|
22
|
+
onSuperThis
|
23
|
+
} from "./chunk-RXC4JGJT.js";
|
23
24
|
import {
|
24
25
|
__export
|
25
26
|
} from "./chunk-PZ5AY32C.js";
|
@@ -683,14 +684,14 @@ var keyBagProviderFactories = new Map(
|
|
683
684
|
{
|
684
685
|
protocol: "file:",
|
685
686
|
factory: async (url, sthis) => {
|
686
|
-
const { KeyBagProviderFile } = await import("./key-bag-file-
|
687
|
+
const { KeyBagProviderFile } = await import("./key-bag-file-PWZ3QE7B.js");
|
687
688
|
return new KeyBagProviderFile(url, sthis);
|
688
689
|
}
|
689
690
|
},
|
690
691
|
{
|
691
692
|
protocol: "indexdb:",
|
692
693
|
factory: async (url, sthis) => {
|
693
|
-
const { KeyBagProviderIndexDB } = await import("./key-bag-indexdb-
|
694
|
+
const { KeyBagProviderIndexDB } = await import("./key-bag-indexdb-SYG3YD4D.js");
|
694
695
|
return new KeyBagProviderIndexDB(url, sthis);
|
695
696
|
}
|
696
697
|
}
|
@@ -2243,22 +2244,22 @@ function toStoreRuntime(opts, sthis) {
|
|
2243
2244
|
registerStoreProtocol({
|
2244
2245
|
protocol: "file:",
|
2245
2246
|
gateway: async (sthis) => {
|
2246
|
-
const { FileGateway } = await import("./gateway-
|
2247
|
+
const { FileGateway } = await import("./gateway-VVS4QWDA.js");
|
2247
2248
|
return new FileGateway(sthis);
|
2248
2249
|
},
|
2249
2250
|
test: async (sthis) => {
|
2250
|
-
const { FileTestStore } = await import("./gateway-
|
2251
|
+
const { FileTestStore } = await import("./gateway-VVS4QWDA.js");
|
2251
2252
|
return new FileTestStore(sthis);
|
2252
2253
|
}
|
2253
2254
|
});
|
2254
2255
|
registerStoreProtocol({
|
2255
2256
|
protocol: "indexdb:",
|
2256
2257
|
gateway: async (sthis) => {
|
2257
|
-
const { IndexDBGateway } = await import("./gateway-
|
2258
|
+
const { IndexDBGateway } = await import("./gateway-C62S56GY.js");
|
2258
2259
|
return new IndexDBGateway(sthis);
|
2259
2260
|
},
|
2260
2261
|
test: async (sthis) => {
|
2261
|
-
const { IndexDBTestStore } = await import("./gateway-
|
2262
|
+
const { IndexDBTestStore } = await import("./gateway-C62S56GY.js");
|
2262
2263
|
return new IndexDBTestStore(sthis);
|
2263
2264
|
}
|
2264
2265
|
});
|
@@ -3484,7 +3485,7 @@ var INDEXDB_VERSION = "v0.19-indexdb";
|
|
3484
3485
|
|
3485
3486
|
// src/version.ts
|
3486
3487
|
var PACKAGE_VERSION = Object.keys({
|
3487
|
-
"0.19.
|
3488
|
+
"0.19.121-dev": "xxxx"
|
3488
3489
|
})[0];
|
3489
3490
|
export {
|
3490
3491
|
CRDT,
|
@@ -3509,6 +3510,7 @@ export {
|
|
3509
3510
|
index,
|
3510
3511
|
isFalsy,
|
3511
3512
|
isNotFoundError,
|
3513
|
+
onSuperThis,
|
3512
3514
|
runtime_exports as rt,
|
3513
3515
|
runtime_exports as runtime,
|
3514
3516
|
throwFalsy
|