@libp2p/interface-connection
Advanced tools
Comparing version 2.1.1 to 3.0.0
@@ -6,2 +6,3 @@ import type { Multiaddr } from '@multiformats/multiaddr'; | ||
import type { AbortOptions } from '@libp2p/interfaces'; | ||
import type { Uint8ArrayList } from 'uint8arraylist'; | ||
export interface ConnectionTimeline { | ||
@@ -63,3 +64,3 @@ open: number; | ||
*/ | ||
export interface Stream extends Duplex<Uint8Array> { | ||
export interface Stream extends Duplex<Uint8ArrayList, Uint8ArrayList | Uint8Array> { | ||
/** | ||
@@ -222,3 +223,3 @@ * Close a stream for reading and writing | ||
*/ | ||
export interface MultiaddrConnection extends Duplex<Uint8Array> { | ||
export interface MultiaddrConnection<T extends Uint8Array | Uint8ArrayList = Uint8Array> extends Duplex<T> { | ||
close: (err?: Error) => Promise<void>; | ||
@@ -225,0 +226,0 @@ remoteAddr: Multiaddr; |
{ | ||
"name": "@libp2p/interface-connection", | ||
"version": "2.1.1", | ||
"version": "3.0.0", | ||
"description": "Connection interface for libp2p", | ||
@@ -89,11 +89,11 @@ "license": "Apache-2.0 OR MIT", | ||
{ | ||
"type": "chore", | ||
"type": "docs", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "docs", | ||
"type": "test", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "test", | ||
"type": "deps", | ||
"release": "patch" | ||
@@ -128,5 +128,9 @@ }, | ||
"type": "docs", | ||
"section": "Trivial Changes" | ||
"section": "Documentation" | ||
}, | ||
{ | ||
"type": "deps", | ||
"section": "Dependencies" | ||
}, | ||
{ | ||
"type": "test", | ||
@@ -156,3 +160,4 @@ "section": "Tests" | ||
"@multiformats/multiaddr": "^10.2.0", | ||
"it-stream-types": "^1.0.4" | ||
"it-stream-types": "^1.0.4", | ||
"uint8arraylist": "^2.1.1" | ||
}, | ||
@@ -159,0 +164,0 @@ "devDependencies": { |
@@ -6,2 +6,3 @@ import type { Multiaddr } from '@multiformats/multiaddr' | ||
import type { AbortOptions } from '@libp2p/interfaces' | ||
import type { Uint8ArrayList } from 'uint8arraylist' | ||
@@ -75,3 +76,3 @@ export interface ConnectionTimeline { | ||
*/ | ||
export interface Stream extends Duplex<Uint8Array> { | ||
export interface Stream extends Duplex<Uint8ArrayList, Uint8ArrayList | Uint8Array> { | ||
/** | ||
@@ -260,3 +261,3 @@ * Close a stream for reading and writing | ||
*/ | ||
export interface MultiaddrConnection extends Duplex<Uint8Array> { | ||
export interface MultiaddrConnection<T extends Uint8Array | Uint8ArrayList = Uint8Array> extends Duplex<T> { | ||
close: (err?: Error) => Promise<void> | ||
@@ -263,0 +264,0 @@ remoteAddr: Multiaddr |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
35603
465
5
1
+ Addeduint8arraylist@^2.1.1
+ Addedmultiformats@13.3.1(transitive)
+ Addeduint8arraylist@2.4.8(transitive)
+ Addeduint8arrays@5.1.0(transitive)