@fireproof/core 0.20.0-dev-preview-10 → 0.20.0-dev-preview-11

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/index.d.cts CHANGED
@@ -1313,11 +1313,7 @@ declare class LedgerImpl implements Ledger {
1313
1313
  private _no_update_notify;
1314
1314
  }
1315
1315
  declare function toStoreURIRuntime(sthis: SuperThis, name?: string, sopts?: StoreUrlsOpts): StoreURIRuntime;
1316
- declare class Fireproof {
1317
- Ledger(name: string, opts?: ConfigOpts): Ledger;
1318
- DB(name: string, opts?: ConfigOpts): Database;
1319
- }
1320
- declare const fireproof: Fireproof;
1316
+ declare function fireproof(name: string, opts?: ConfigOpts): Database;
1321
1317
 
1322
1318
  declare function isDatabase(db: unknown): db is Database;
1323
1319
  declare class DatabaseImpl implements Database {
package/index.d.ts CHANGED
@@ -1313,11 +1313,7 @@ declare class LedgerImpl implements Ledger {
1313
1313
  private _no_update_notify;
1314
1314
  }
1315
1315
  declare function toStoreURIRuntime(sthis: SuperThis, name?: string, sopts?: StoreUrlsOpts): StoreURIRuntime;
1316
- declare class Fireproof {
1317
- Ledger(name: string, opts?: ConfigOpts): Ledger;
1318
- DB(name: string, opts?: ConfigOpts): Database;
1319
- }
1320
- declare const fireproof: Fireproof;
1316
+ declare function fireproof(name: string, opts?: ConfigOpts): Database;
1321
1317
 
1322
1318
  declare function isDatabase(db: unknown): db is Database;
1323
1319
  declare class DatabaseImpl implements Database {
package/index.js CHANGED
@@ -4538,15 +4538,9 @@ function toStoreURIRuntime(sthis, name, sopts) {
4538
4538
  }
4539
4539
  };
4540
4540
  }
4541
- var Fireproof = class {
4542
- Ledger(name, opts) {
4543
- return LedgerFactory(name, opts);
4544
- }
4545
- DB(name, opts) {
4546
- return new DatabaseImpl(this.Ledger(name, opts));
4547
- }
4548
- };
4549
- var fireproof = new Fireproof();
4541
+ function fireproof(name, opts) {
4542
+ return new DatabaseImpl(LedgerFactory(name, opts));
4543
+ }
4550
4544
 
4551
4545
  // src/runtime/index.ts
4552
4546
  var runtime_exports = {};
@@ -4598,7 +4592,7 @@ __export(file_exports, {
4598
4592
 
4599
4593
  // src/version.ts
4600
4594
  var PACKAGE_VERSION = Object.keys({
4601
- "0.20.0-dev-preview-10": "xxxx"
4595
+ "0.20.0-dev-preview-11": "xxxx"
4602
4596
  })[0];
4603
4597
  export {
4604
4598
  CRDTImpl,