mindoodb 0.0.56 → 0.0.58

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.
Files changed (80) hide show
  1. package/README-server.md +25 -1
  2. package/README.md +1 -0
  3. package/dist/browser/index.mjs +1 -0
  4. package/dist/core/appendonlystores/network/IrohNetworkTransport.d.ts +93 -0
  5. package/dist/core/appendonlystores/network/IrohNetworkTransport.d.ts.map +1 -0
  6. package/dist/core/appendonlystores/network/IrohNetworkTransport.js +260 -0
  7. package/dist/core/appendonlystores/network/IrohNetworkTransport.js.map +1 -0
  8. package/dist/core/appendonlystores/network/IrohStreamIO.d.ts +121 -0
  9. package/dist/core/appendonlystores/network/IrohStreamIO.d.ts.map +1 -0
  10. package/dist/core/appendonlystores/network/IrohStreamIO.js +213 -0
  11. package/dist/core/appendonlystores/network/IrohStreamIO.js.map +1 -0
  12. package/dist/core/appendonlystores/network/irohLocator.d.ts +28 -0
  13. package/dist/core/appendonlystores/network/irohLocator.d.ts.map +1 -0
  14. package/dist/core/appendonlystores/network/irohLocator.js +94 -0
  15. package/dist/core/appendonlystores/network/irohLocator.js.map +1 -0
  16. package/dist/core/appendonlystores/network/reactNativeIrohStreamIO.d.ts +7 -0
  17. package/dist/core/appendonlystores/network/reactNativeIrohStreamIO.d.ts.map +1 -0
  18. package/dist/core/appendonlystores/network/reactNativeIrohStreamIO.js +44 -0
  19. package/dist/core/appendonlystores/network/reactNativeIrohStreamIO.js.map +1 -0
  20. package/dist/core/appendonlystores/sqlite/SqliteContentAddressedStore.d.ts +60 -0
  21. package/dist/core/appendonlystores/sqlite/SqliteContentAddressedStore.d.ts.map +1 -0
  22. package/dist/core/appendonlystores/sqlite/SqliteContentAddressedStore.js +349 -0
  23. package/dist/core/appendonlystores/sqlite/SqliteContentAddressedStore.js.map +1 -0
  24. package/dist/core/appendonlystores/sqlite/SqliteDriver.d.ts +51 -0
  25. package/dist/core/appendonlystores/sqlite/SqliteDriver.d.ts.map +1 -0
  26. package/dist/core/appendonlystores/sqlite/SqliteDriver.js +290 -0
  27. package/dist/core/appendonlystores/sqlite/SqliteDriver.js.map +1 -0
  28. package/dist/core/appendonlystores/sqlite/expoSqliteDriver.d.ts +13 -0
  29. package/dist/core/appendonlystores/sqlite/expoSqliteDriver.d.ts.map +1 -0
  30. package/dist/core/appendonlystores/sqlite/expoSqliteDriver.js +26 -0
  31. package/dist/core/appendonlystores/sqlite/expoSqliteDriver.js.map +1 -0
  32. package/dist/core/index.d.ts +2 -1
  33. package/dist/core/index.d.ts.map +1 -1
  34. package/dist/core/index.js +4 -2
  35. package/dist/core/index.js.map +1 -1
  36. package/dist/core/indexing/summary/extractSummaryFields.d.ts +19 -0
  37. package/dist/core/indexing/summary/extractSummaryFields.d.ts.map +1 -1
  38. package/dist/core/indexing/summary/extractSummaryFields.js +43 -2
  39. package/dist/core/indexing/summary/extractSummaryFields.js.map +1 -1
  40. package/dist/core/indexing/summary/index.d.ts +1 -1
  41. package/dist/core/indexing/summary/index.d.ts.map +1 -1
  42. package/dist/core/indexing/summary/index.js.map +1 -1
  43. package/dist/core/indexing/summary/types.d.ts +18 -0
  44. package/dist/core/indexing/summary/types.d.ts.map +1 -1
  45. package/dist/core/indexing/summary/types.js +10 -0
  46. package/dist/core/indexing/summary/types.js.map +1 -1
  47. package/dist/iroh/index.d.ts +8 -0
  48. package/dist/iroh/index.d.ts.map +1 -0
  49. package/dist/iroh/index.js +25 -0
  50. package/dist/iroh/index.js.map +1 -0
  51. package/dist/node/server/IrohServerEndpoint.d.ts +23 -0
  52. package/dist/node/server/IrohServerEndpoint.d.ts.map +1 -0
  53. package/dist/node/server/IrohServerEndpoint.js +156 -0
  54. package/dist/node/server/IrohServerEndpoint.js.map +1 -0
  55. package/dist/node/server/IrohServerRpc.d.ts +52 -0
  56. package/dist/node/server/IrohServerRpc.d.ts.map +1 -0
  57. package/dist/node/server/IrohServerRpc.js +120 -0
  58. package/dist/node/server/IrohServerRpc.js.map +1 -0
  59. package/dist/node/server/MindooDBServer.d.ts +3 -0
  60. package/dist/node/server/MindooDBServer.d.ts.map +1 -1
  61. package/dist/node/server/MindooDBServer.js +34 -0
  62. package/dist/node/server/MindooDBServer.js.map +1 -1
  63. package/dist/node/server/config.d.ts.map +1 -1
  64. package/dist/node/server/config.js +28 -0
  65. package/dist/node/server/config.js.map +1 -1
  66. package/dist/node/server/serverinit.js +2 -0
  67. package/dist/node/server/serverinit.js.map +1 -1
  68. package/dist/node/server/types.d.ts +16 -0
  69. package/dist/node/server/types.d.ts.map +1 -1
  70. package/dist/node/server/types.js +6 -1
  71. package/dist/node/server/types.js.map +1 -1
  72. package/dist/reactnative/index.d.ts +5 -0
  73. package/dist/reactnative/index.d.ts.map +1 -1
  74. package/dist/reactnative/index.js +20 -1
  75. package/dist/reactnative/index.js.map +1 -1
  76. package/dist/sqlite/index.d.ts +7 -0
  77. package/dist/sqlite/index.d.ts.map +1 -0
  78. package/dist/sqlite/index.js +16 -0
  79. package/dist/sqlite/index.js.map +1 -0
  80. package/package.json +14 -2
@@ -185,7 +185,23 @@ export interface ServerConfig {
185
185
  capabilities: Record<string, SystemAdminPrincipal[]>;
186
186
  rateLimits?: ServerRateLimitsConfig;
187
187
  cluster?: ServerClusterConfig;
188
+ /**
189
+ * Join the Iroh network and accept MindooDB sync on ALPN `mindoodb/sync-v5`.
190
+ * Off when omitted. HTTP listen stays unchanged.
191
+ */
192
+ iroh?: ServerIrohConfig;
193
+ }
194
+ /** Optional Iroh listen settings in config.json. Default is disabled. */
195
+ export interface ServerIrohConfig {
196
+ enabled: boolean;
197
+ /**
198
+ * Path to the 32-byte secret key (hex). Relative paths are resolved against
199
+ * the server data directory. Created on first start when missing.
200
+ */
201
+ secretKeyPath?: string;
188
202
  }
203
+ /** Written into new `config.json` files. `--update` does not rewrite existing files. */
204
+ export declare const DEFAULT_SERVER_IROH_CONFIG: ServerIrohConfig;
189
205
  /** Node-level cluster settings; per-peer settings live in `trusted-servers.json`. */
190
206
  export interface ServerClusterConfig {
191
207
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/node/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEpF;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAE5C;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,gBAAgB,EAAE,MAAM,CAAC;IACzB,uDAAuD;IACvD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,wCAAwC;IACxC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,kEAAkE;IAClE,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,iFAAiF;IACjF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,qBAAqB,EAAE,MAAM,CAAC;IAC9B,uEAAuE;IACvE,wBAAwB,EAAE,MAAM,CAAC;IAEjC,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,SAAS,CAAC;I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C;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED,yEAAyE;AACzE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wFAAwF;AACxF,eAAO,MAAM,0BAA0B,EAAE,gBAGxC,CAAC;AAEF,qFAAqF;AACrF,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ;IACnB,8EAA8E;;IAE9E;;;;OAIG;;IAEH;;;;;OAKG;;IAEH;;;;;;;OAOG;;IAEH;;;;OAIG;;IAEH;;;;;;;;;;OAUG;;CAEK,CAAC"}
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ENV_VARS = void 0;
3
+ exports.ENV_VARS = exports.DEFAULT_SERVER_IROH_CONFIG = void 0;
4
+ /** Written into new `config.json` files. `--update` does not rewrite existing files. */
5
+ exports.DEFAULT_SERVER_IROH_CONFIG = {
6
+ enabled: false,
7
+ secretKeyPath: "iroh-secret.key",
8
+ };
4
9
  /**
5
10
  * Environment variables used by the server.
6
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/node/server/types.ts"],"names":[],"mappings":";;;AAiOA;;GAEG;AACU,QAAA,QAAQ,GAAG;IACtB,8EAA8E;IAC9E,eAAe,EAAE,0BAA0B;IAC3C;;;;OAIG;IACH,oBAAoB,EAAE,+BAA+B;IACrD;;;;;OAKG;IACH,iBAAiB,EAAE,4BAA4B;IAC/C;;;;;;;OAOG;IACH,WAAW,EAAE,sBAAsB;IACnC;;;;OAIG;IACH,wBAAwB,EAAE,mCAAmC;IAC7D;;;;;;;;;;OAUG;IACH,aAAa,EAAE,wBAAwB;CAC/B,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/node/server/types.ts"],"names":[],"mappings":";;;AAkOA,wFAAwF;AAC3E,QAAA,0BAA0B,GAAqB;IAC1D,OAAO,EAAE,KAAK;IACd,aAAa,EAAE,iBAAiB;CACjC,CAAC;AAgBF;;GAEG;AACU,QAAA,QAAQ,GAAG;IACtB,8EAA8E;IAC9E,eAAe,EAAE,0BAA0B;IAC3C;;;;OAIG;IACH,oBAAoB,EAAE,+BAA+B;IACrD;;;;;OAKG;IACH,iBAAiB,EAAE,4BAA4B;IAC/C;;;;;;;OAOG;IACH,WAAW,EAAE,sBAAsB;IACnC;;;;OAIG;IACH,wBAAwB,EAAE,mCAAmC;IAC7D;;;;;;;;;;OAUG;IACH,aAAa,EAAE,wBAAwB;CAC/B,CAAC"}
@@ -6,4 +6,9 @@ export { ReactNativeCryptoAdapter, createCryptoAdapter } from "./crypto/ReactNat
6
6
  export { ExpoGoCryptoAdapter } from "./crypto/ExpoGoCryptoAdapter";
7
7
  export { QuickCryptoAdapter, isQuickCryptoAvailable } from "./crypto/QuickCryptoAdapter";
8
8
  export { MMKVLocalCacheStore, type MMKVInterface, type AsyncStorageInterface } from "./cache/MMKVLocalCacheStore";
9
+ export { SqliteContentAddressedStore, SqliteContentAddressedStoreFactory, createMemorySqliteBackend, createSqlBackend, createExpoSqliteBackend, createExpoSqliteExecutor, } from "../sqlite/index";
10
+ export type { SqliteExecutor, SqliteStoreBackend, SqliteValue, ExpoSqliteLike } from "../sqlite/index";
11
+ export { MINDOODB_IROH_ALPN, IrohNetworkTransport, IrohPeerStore, createLoopbackIrohPair, createReactNativeIrohStreamIO, createStoreIrohHandler, listenForIrohPeers, serveIrohRpc, } from "../iroh/index";
12
+ export type { IrohByteStream, IrohStreamIO, IrohRpcHandler, IrohRpcContext } from "../iroh/index";
13
+ export { ServerNetworkContentAddressedStore } from "../appendonlystores/network/ServerNetworkContentAddressedStore";
9
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reactnative/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAG1E,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGzF,OAAO,EAAE,mBAAmB,EAAE,KAAK,aAAa,EAAE,KAAK,qBAAqB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reactnative/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAG1E,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGzF,OAAO,EAAE,mBAAmB,EAAE,KAAK,aAAa,EAAE,KAAK,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGlH,OAAO,EACL,2BAA2B,EAC3B,kCAAkC,EAClC,yBAAyB,EACzB,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,kBAAkB,EAClB,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gEAAgE,CAAC"}
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.MMKVLocalCacheStore = exports.isQuickCryptoAvailable = exports.QuickCryptoAdapter = exports.ExpoGoCryptoAdapter = exports.createCryptoAdapter = exports.ReactNativeCryptoAdapter = exports.BaseMindooTenantFactory = exports.BaseMindooTenant = exports.BaseMindooDB = void 0;
19
+ exports.ServerNetworkContentAddressedStore = exports.serveIrohRpc = exports.listenForIrohPeers = exports.createStoreIrohHandler = exports.createReactNativeIrohStreamIO = exports.createLoopbackIrohPair = exports.IrohPeerStore = exports.IrohNetworkTransport = exports.MINDOODB_IROH_ALPN = exports.createExpoSqliteExecutor = exports.createExpoSqliteBackend = exports.createSqlBackend = exports.createMemorySqliteBackend = exports.SqliteContentAddressedStoreFactory = exports.SqliteContentAddressedStore = exports.MMKVLocalCacheStore = exports.isQuickCryptoAvailable = exports.QuickCryptoAdapter = exports.ExpoGoCryptoAdapter = exports.createCryptoAdapter = exports.ReactNativeCryptoAdapter = exports.BaseMindooTenantFactory = exports.BaseMindooTenant = exports.BaseMindooDB = void 0;
20
20
  // Re-export all core exports
21
21
  __exportStar(require("../core/index"), exports);
22
22
  // Re-export Base* classes that aren't in core/index
@@ -38,4 +38,23 @@ Object.defineProperty(exports, "isQuickCryptoAvailable", { enumerable: true, get
38
38
  // React Native-specific cache store
39
39
  var MMKVLocalCacheStore_1 = require("./cache/MMKVLocalCacheStore");
40
40
  Object.defineProperty(exports, "MMKVLocalCacheStore", { enumerable: true, get: function () { return MMKVLocalCacheStore_1.MMKVLocalCacheStore; } });
41
+ // Additive native persistence + P2P (not imported by mindoodb/browser)
42
+ var index_1 = require("../sqlite/index");
43
+ Object.defineProperty(exports, "SqliteContentAddressedStore", { enumerable: true, get: function () { return index_1.SqliteContentAddressedStore; } });
44
+ Object.defineProperty(exports, "SqliteContentAddressedStoreFactory", { enumerable: true, get: function () { return index_1.SqliteContentAddressedStoreFactory; } });
45
+ Object.defineProperty(exports, "createMemorySqliteBackend", { enumerable: true, get: function () { return index_1.createMemorySqliteBackend; } });
46
+ Object.defineProperty(exports, "createSqlBackend", { enumerable: true, get: function () { return index_1.createSqlBackend; } });
47
+ Object.defineProperty(exports, "createExpoSqliteBackend", { enumerable: true, get: function () { return index_1.createExpoSqliteBackend; } });
48
+ Object.defineProperty(exports, "createExpoSqliteExecutor", { enumerable: true, get: function () { return index_1.createExpoSqliteExecutor; } });
49
+ var index_2 = require("../iroh/index");
50
+ Object.defineProperty(exports, "MINDOODB_IROH_ALPN", { enumerable: true, get: function () { return index_2.MINDOODB_IROH_ALPN; } });
51
+ Object.defineProperty(exports, "IrohNetworkTransport", { enumerable: true, get: function () { return index_2.IrohNetworkTransport; } });
52
+ Object.defineProperty(exports, "IrohPeerStore", { enumerable: true, get: function () { return index_2.IrohPeerStore; } });
53
+ Object.defineProperty(exports, "createLoopbackIrohPair", { enumerable: true, get: function () { return index_2.createLoopbackIrohPair; } });
54
+ Object.defineProperty(exports, "createReactNativeIrohStreamIO", { enumerable: true, get: function () { return index_2.createReactNativeIrohStreamIO; } });
55
+ Object.defineProperty(exports, "createStoreIrohHandler", { enumerable: true, get: function () { return index_2.createStoreIrohHandler; } });
56
+ Object.defineProperty(exports, "listenForIrohPeers", { enumerable: true, get: function () { return index_2.listenForIrohPeers; } });
57
+ Object.defineProperty(exports, "serveIrohRpc", { enumerable: true, get: function () { return index_2.serveIrohRpc; } });
58
+ var ServerNetworkContentAddressedStore_1 = require("../appendonlystores/network/ServerNetworkContentAddressedStore");
59
+ Object.defineProperty(exports, "ServerNetworkContentAddressedStore", { enumerable: true, get: function () { return ServerNetworkContentAddressedStore_1.ServerNetworkContentAddressedStore; } });
41
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reactnative/index.ts"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,6EAA6E;;;;;;;;;;;;;;;;;AAE7E,6BAA6B;AAC7B,gDAA8B;AAE9B,oDAAoD;AACpD,qDAAoD;AAA3C,4GAAA,YAAY,OAAA;AACrB,6DAA4D;AAAnD,oHAAA,gBAAgB,OAAA;AACzB,2EAA0E;AAAjE,kIAAA,uBAAuB,OAAA;AAEhC,wCAAwC;AACxC,8EAAkG;AAAzF,oIAAA,wBAAwB,OAAA;AAAE,+HAAA,mBAAmB,OAAA;AACtD,oEAAmE;AAA1D,0HAAA,mBAAmB,OAAA;AAC5B,kEAAyF;AAAhF,wHAAA,kBAAkB,OAAA;AAAE,4HAAA,sBAAsB,OAAA;AAEnD,oCAAoC;AACpC,mEAAkH;AAAzG,0HAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reactnative/index.ts"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,6EAA6E;;;;;;;;;;;;;;;;;AAE7E,6BAA6B;AAC7B,gDAA8B;AAE9B,oDAAoD;AACpD,qDAAoD;AAA3C,4GAAA,YAAY,OAAA;AACrB,6DAA4D;AAAnD,oHAAA,gBAAgB,OAAA;AACzB,2EAA0E;AAAjE,kIAAA,uBAAuB,OAAA;AAEhC,wCAAwC;AACxC,8EAAkG;AAAzF,oIAAA,wBAAwB,OAAA;AAAE,+HAAA,mBAAmB,OAAA;AACtD,oEAAmE;AAA1D,0HAAA,mBAAmB,OAAA;AAC5B,kEAAyF;AAAhF,wHAAA,kBAAkB,OAAA;AAAE,4HAAA,sBAAsB,OAAA;AAEnD,oCAAoC;AACpC,mEAAkH;AAAzG,0HAAA,mBAAmB,OAAA;AAE5B,uEAAuE;AACvE,yCAOyB;AANvB,oHAAA,2BAA2B,OAAA;AAC3B,2HAAA,kCAAkC,OAAA;AAClC,kHAAA,yBAAyB,OAAA;AACzB,yGAAA,gBAAgB,OAAA;AAChB,gHAAA,uBAAuB,OAAA;AACvB,iHAAA,wBAAwB,OAAA;AAG1B,uCASuB;AARrB,2GAAA,kBAAkB,OAAA;AAClB,6GAAA,oBAAoB,OAAA;AACpB,sGAAA,aAAa,OAAA;AACb,+GAAA,sBAAsB,OAAA;AACtB,sHAAA,6BAA6B,OAAA;AAC7B,+GAAA,sBAAsB,OAAA;AACtB,2GAAA,kBAAkB,OAAA;AAClB,qGAAA,YAAY,OAAA;AAGd,qHAAoH;AAA3G,wJAAA,kCAAkC,OAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Additive SQLite ContentAddressedStore. Not imported by `mindoodb/browser`.
3
+ */
4
+ export { SqliteContentAddressedStore, SqliteContentAddressedStoreFactory, } from "../core/appendonlystores/sqlite/SqliteContentAddressedStore";
5
+ export { createMemorySqliteBackend, createSqlBackend, type SqliteExecutor, type SqliteStoreBackend, type SqliteValue, } from "../core/appendonlystores/sqlite/SqliteDriver";
6
+ export { createExpoSqliteBackend, createExpoSqliteExecutor, type ExpoSqliteLike, } from "../core/appendonlystores/sqlite/expoSqliteDriver";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sqlite/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,2BAA2B,EAC3B,kCAAkC,GACnC,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,WAAW,GACjB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,KAAK,cAAc,GACpB,MAAM,kDAAkD,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createExpoSqliteExecutor = exports.createExpoSqliteBackend = exports.createSqlBackend = exports.createMemorySqliteBackend = exports.SqliteContentAddressedStoreFactory = exports.SqliteContentAddressedStore = void 0;
4
+ /**
5
+ * Additive SQLite ContentAddressedStore. Not imported by `mindoodb/browser`.
6
+ */
7
+ var SqliteContentAddressedStore_1 = require("../core/appendonlystores/sqlite/SqliteContentAddressedStore");
8
+ Object.defineProperty(exports, "SqliteContentAddressedStore", { enumerable: true, get: function () { return SqliteContentAddressedStore_1.SqliteContentAddressedStore; } });
9
+ Object.defineProperty(exports, "SqliteContentAddressedStoreFactory", { enumerable: true, get: function () { return SqliteContentAddressedStore_1.SqliteContentAddressedStoreFactory; } });
10
+ var SqliteDriver_1 = require("../core/appendonlystores/sqlite/SqliteDriver");
11
+ Object.defineProperty(exports, "createMemorySqliteBackend", { enumerable: true, get: function () { return SqliteDriver_1.createMemorySqliteBackend; } });
12
+ Object.defineProperty(exports, "createSqlBackend", { enumerable: true, get: function () { return SqliteDriver_1.createSqlBackend; } });
13
+ var expoSqliteDriver_1 = require("../core/appendonlystores/sqlite/expoSqliteDriver");
14
+ Object.defineProperty(exports, "createExpoSqliteBackend", { enumerable: true, get: function () { return expoSqliteDriver_1.createExpoSqliteBackend; } });
15
+ Object.defineProperty(exports, "createExpoSqliteExecutor", { enumerable: true, get: function () { return expoSqliteDriver_1.createExpoSqliteExecutor; } });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sqlite/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,2GAGqE;AAFnE,0IAAA,2BAA2B,OAAA;AAC3B,iJAAA,kCAAkC,OAAA;AAEpC,6EAMsD;AALpD,yHAAA,yBAAyB,OAAA;AACzB,gHAAA,gBAAgB,OAAA;AAKlB,qFAI0D;AAHxD,2HAAA,uBAAuB,OAAA;AACvB,4HAAA,wBAAwB,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindoodb",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "engines": {
5
5
  "node": ">=22.13.0"
6
6
  },
@@ -39,7 +39,15 @@
39
39
  "default": "./dist/browser/index.mjs"
40
40
  },
41
41
  "./node": "./dist/node/index.js",
42
- "./reactnative": "./dist/reactnative/index.js"
42
+ "./reactnative": "./dist/reactnative/index.js",
43
+ "./sqlite": {
44
+ "types": "./dist/sqlite/index.d.ts",
45
+ "default": "./dist/sqlite/index.js"
46
+ },
47
+ "./iroh": {
48
+ "types": "./dist/iroh/index.d.ts",
49
+ "default": "./dist/iroh/index.js"
50
+ }
43
51
  },
44
52
  "files": [
45
53
  "dist",
@@ -80,6 +88,7 @@
80
88
  "typescript": "^5.6.0"
81
89
  },
82
90
  "peerDependencies": {
91
+ "@number0/iroh": "^1.0.0",
83
92
  "expo-standard-web-crypto": "^3.0.0",
84
93
  "node-forge": "^1.3.1",
85
94
  "react-native-automerge-generated": "^0.1.0",
@@ -101,6 +110,9 @@
101
110
  },
102
111
  "tweetnacl": {
103
112
  "optional": true
113
+ },
114
+ "@number0/iroh": {
115
+ "optional": true
104
116
  }
105
117
  },
106
118
  "scripts": {