@fireproof/core 0.20.0-dev-preview-20 → 0.20.0-dev-preview-22

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
@@ -4,9 +4,9 @@ import { Operation } from '@fireproof/vendor/@web3-storage/pail/crdt/api';
4
4
  import { ByteView, ArrayBufferView, Version, Block as Block$1, UnknownLink, CID, Link, BlockView, MultihashHasher } from 'multiformats';
5
5
  import { BlockFetcher as BlockFetcher$1 } from '@fireproof/vendor/@web3-storage/pail/api';
6
6
  import { EventBlock } from '@fireproof/vendor/@web3-storage/pail/clock';
7
- import { CarReader } from '@fireproof/vendor/@ipld/car';
7
+ import { CarReader } from '@ipld/car';
8
8
  import { ProllyNode as ProllyNode$1 } from 'prolly-trees/db-index';
9
- import { CarReader as CarReader$1 } from '@fireproof/vendor/@ipld/car/reader';
9
+ import { CarReader as CarReader$1 } from '@ipld/car/reader';
10
10
  import { SuperThis as SuperThis$1 } from '@fireproof/core';
11
11
  import { Block as Block$2 } from 'multiformats/block';
12
12
 
package/index.d.ts CHANGED
@@ -4,9 +4,9 @@ import { Operation } from '@fireproof/vendor/@web3-storage/pail/crdt/api';
4
4
  import { ByteView, ArrayBufferView, Version, Block as Block$1, UnknownLink, CID, Link, BlockView, MultihashHasher } from 'multiformats';
5
5
  import { BlockFetcher as BlockFetcher$1 } from '@fireproof/vendor/@web3-storage/pail/api';
6
6
  import { EventBlock } from '@fireproof/vendor/@web3-storage/pail/clock';
7
- import { CarReader } from '@fireproof/vendor/@ipld/car';
7
+ import { CarReader } from '@ipld/car';
8
8
  import { ProllyNode as ProllyNode$1 } from 'prolly-trees/db-index';
9
- import { CarReader as CarReader$1 } from '@fireproof/vendor/@ipld/car/reader';
9
+ import { CarReader as CarReader$1 } from '@ipld/car/reader';
10
10
  import { SuperThis as SuperThis$1 } from '@fireproof/core';
11
11
  import { Block as Block$2 } from 'multiformats/block';
12
12
 
package/index.js CHANGED
@@ -460,7 +460,7 @@ import * as UnixFS from "@ipld/unixfs";
460
460
  import * as raw from "multiformats/codecs/raw";
461
461
  import { withMaxChunkSize } from "@ipld/unixfs/file/chunker/fixed";
462
462
  import { withWidth } from "@ipld/unixfs/file/layout/balanced";
463
- import { exporter } from "@fireproof/vendor/ipfs-unixfs-exporter";
463
+ import { exporter } from "ipfs-unixfs-exporter";
464
464
  var queuingStrategy = UnixFS.withCapacity();
465
465
  var settings = UnixFS.configure({
466
466
  fileChunkEncoder: raw,
@@ -1055,7 +1055,7 @@ import { decodeEventBlock, EventBlock } from "@fireproof/vendor/@web3-storage/pa
1055
1055
  import { base64pad } from "multiformats/bases/base64";
1056
1056
  import { CID } from "multiformats";
1057
1057
  import { fromJSON } from "multiformats/link";
1058
- import { format, parse } from "@fireproof/vendor/@ipld/dag-json";
1058
+ import { format, parse } from "@ipld/dag-json";
1059
1059
  async function dbMetaEvent2Serialized(sthis, dbEvents) {
1060
1060
  return await Promise.all(
1061
1061
  dbEvents.map(async (dbEvent) => {
@@ -1432,7 +1432,7 @@ async function createUnsafe({
1432
1432
 
1433
1433
  // src/indexer-helpers.ts
1434
1434
  import { sha256 as hasher } from "multiformats/hashes/sha2";
1435
- import * as codec from "@fireproof/vendor/@ipld/dag-cbor";
1435
+ import * as codec from "@ipld/dag-cbor";
1436
1436
  import charwise from "charwise";
1437
1437
  import * as DbIndex from "prolly-trees/db-index";
1438
1438
  import { bf, simpleCompare } from "prolly-trees/utils";
@@ -1941,12 +1941,12 @@ import { exception2Result as exception2Result3, ResolveOnce as ResolveOnce4, Res
1941
1941
 
1942
1942
  // src/blockstore/loader.ts
1943
1943
  import pLimit from "p-limit";
1944
- import { CarReader } from "@fireproof/vendor/@ipld/car/reader";
1944
+ import { CarReader } from "@ipld/car/reader";
1945
1945
  import { ResolveOnce as ResolveOnce3 } from "@adviser/cement";
1946
1946
 
1947
1947
  // src/blockstore/loader-helpers.ts
1948
1948
  import { sha256 as hasher2 } from "multiformats/hashes/sha2";
1949
- import * as dagCodec from "@fireproof/vendor/@ipld/dag-cbor";
1949
+ import * as dagCodec from "@ipld/dag-cbor";
1950
1950
  async function parseCarFile(reader, logger) {
1951
1951
  const roots = await reader.getRoots();
1952
1952
  const header = await reader.get(roots[0]);
@@ -2233,9 +2233,9 @@ var CommitQueue = class {
2233
2233
  };
2234
2234
 
2235
2235
  // src/blockstore/commitor.ts
2236
- import * as CBW from "@fireproof/vendor/@ipld/car/buffer-writer";
2236
+ import * as CBW from "@ipld/car/buffer-writer";
2237
2237
  import { sha256 as hasher3 } from "multiformats/hashes/sha2";
2238
- import * as dagCodec2 from "@fireproof/vendor/@ipld/dag-cbor";
2238
+ import * as dagCodec2 from "@ipld/dag-cbor";
2239
2239
  async function encodeCarFile(roots, t, codec3) {
2240
2240
  let size = 0;
2241
2241
  const headerSize = CBW.headerLength({ roots });
@@ -2714,7 +2714,7 @@ var Loader = class {
2714
2714
  let loadedCar = void 0;
2715
2715
  let activeStore = local;
2716
2716
  try {
2717
- this.logger.Debug().Str("cid", cidsString).Msg("loading car");
2717
+ this.logger.Debug().Any("cid", cidsString).Msg("loading car");
2718
2718
  loadedCar = await local.load(cid);
2719
2719
  this.logger.Debug().Bool("loadedCar", loadedCar).Msg("loaded");
2720
2720
  } catch (e) {
@@ -2771,7 +2771,7 @@ __export(keyed_crypto_exports, {
2771
2771
  });
2772
2772
  import { base58btc as base58btc3 } from "multiformats/bases/base58";
2773
2773
  import { sha256 as hasher5 } from "multiformats/hashes/sha2";
2774
- import * as CBOR from "@fireproof/vendor/cborg";
2774
+ import * as CBOR from "cborg";
2775
2775
  var generateIV = {
2776
2776
  random: {
2777
2777
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -2937,7 +2937,7 @@ async function keyedCryptoFactory(url, kb, sthis) {
2937
2937
 
2938
2938
  // src/blockstore/store.ts
2939
2939
  import { EventBlock as EventBlock2 } from "@fireproof/vendor/@web3-storage/pail/clock";
2940
- import { format as format2 } from "@fireproof/vendor/@ipld/dag-json";
2940
+ import { format as format2 } from "@ipld/dag-json";
2941
2941
  import pRetry from "p-retry";
2942
2942
  import pMap from "p-map";
2943
2943
 
@@ -3788,7 +3788,7 @@ var ConnectionBase = class {
3788
3788
  // src/crdt-helpers.ts
3789
3789
  import { parse as parse2 } from "multiformats/link";
3790
3790
  import { sha256 as hasher6 } from "multiformats/hashes/sha2";
3791
- import * as codec2 from "@fireproof/vendor/@ipld/dag-cbor";
3791
+ import * as codec2 from "@ipld/dag-cbor";
3792
3792
  import { put, get, entries, root } from "@fireproof/vendor/@web3-storage/pail/crdt";
3793
3793
  import { EventFetcher, vis } from "@fireproof/vendor/@web3-storage/pail/clock";
3794
3794
  import * as Batch from "@fireproof/vendor/@web3-storage/pail/crdt/batch";
@@ -4659,7 +4659,7 @@ __export(file_exports, {
4659
4659
 
4660
4660
  // src/version.ts
4661
4661
  var PACKAGE_VERSION = Object.keys({
4662
- "0.20.0-dev-preview-20": "xxxx"
4662
+ "0.20.0-dev-preview-22": "xxxx"
4663
4663
  })[0];
4664
4664
  export {
4665
4665
  CRDTImpl,