@peerbit/blocks 2.0.19 → 2.0.21

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.
@@ -1,5 +1,5 @@
1
1
  import { Blocks } from "@peerbit/blocks-interface";
2
- import { PeerId } from "@libp2p/interface/peer-id";
2
+ import { PeerId } from "@libp2p/interface";
3
3
  import { PublicSignKey } from "@peerbit/crypto";
4
4
  import { AnyStore } from "@peerbit/any-store";
5
5
  export declare class AnyBlockStore implements Blocks {
@@ -3,7 +3,7 @@ import { Blocks as IBlocks } from "@peerbit/blocks-interface";
3
3
  import { PublicSignKey } from "@peerbit/crypto";
4
4
  import { AnyBlockStore } from "./any-blockstore.js";
5
5
  import { GetOptions } from "@peerbit/blocks-interface";
6
- import type { PeerId } from "@libp2p/interface/peer-id";
6
+ import type { PeerId } from "@libp2p/interface";
7
7
  export declare class BlockMessage {
8
8
  }
9
9
  export declare class BlockRequest extends BlockMessage {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peerbit/blocks",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "description": "Block store streaming",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -49,16 +49,16 @@
49
49
  "dao.xyz"
50
50
  ],
51
51
  "devDependencies": {
52
- "@peerbit/libp2p-test-utils": "2.1.0"
52
+ "@peerbit/libp2p-test-utils": "2.1.1"
53
53
  },
54
54
  "dependencies": {
55
55
  "@dao-xyz/borsh": "^5.2.1",
56
56
  "@ipld/dag-cbor": "^9.0.2",
57
- "@peerbit/any-store": "^1.0.12",
58
- "@peerbit/blocks-interface": "1.2.11",
59
- "@peerbit/crypto": "2.1.6",
60
- "@peerbit/stream": "3.0.9",
61
- "libp2p": "^1.1.0"
57
+ "@peerbit/any-store": "^1.0.13",
58
+ "@peerbit/blocks-interface": "1.2.13",
59
+ "@peerbit/crypto": "2.1.7",
60
+ "@peerbit/stream": "3.0.11",
61
+ "libp2p": "^1.2.1"
62
62
  },
63
- "gitHead": "954ec9009b2cd65baf4558009504b83eb17badf6"
63
+ "gitHead": "9b281c236fbc086bbf7cd585e66a07bbc9e3ac17"
64
64
  }
@@ -8,7 +8,7 @@ import {
8
8
  } from "./block.js";
9
9
  import * as Block from "multiformats/block";
10
10
  import { waitFor } from "@peerbit/time";
11
- import { PeerId } from "@libp2p/interface/peer-id";
11
+ import { PeerId } from "@libp2p/interface";
12
12
  import { PublicSignKey } from "@peerbit/crypto";
13
13
  import { AnyStore, createStore } from "@peerbit/any-store";
14
14
 
package/src/remote.ts CHANGED
@@ -14,7 +14,7 @@ import { AnyBlockStore } from "./any-blockstore.js";
14
14
  import { GetOptions } from "@peerbit/blocks-interface";
15
15
  import PQueue from "p-queue";
16
16
  import { AbortError } from "@peerbit/time";
17
- import type { PeerId } from "@libp2p/interface/peer-id";
17
+ import type { PeerId } from "@libp2p/interface";
18
18
  import { TypedEventEmitter, CustomEvent } from "@libp2p/interface";
19
19
 
20
20
  export class BlockMessage {}