Skip to content

Commit

Permalink
chore!: update deps (#159)
Browse files Browse the repository at this point in the history
Updates all libp2p interfaces and test suites

BREAKING CHANGE: updates to the single-issue libp2p interface definitions
  • Loading branch information
achingbrain authored Jun 17, 2022
1 parent 74f7f6f commit 2c138df
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 28 deletions.
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,20 @@
"prebuild": "mkdirp dist/src && cp -R src/proto dist/src",
"lint": "aegir lint",
"lint:fix": "aegir lint --fix",
"test": "aegir test -f \"./dist/test/**/*.spec.js\"",
"test:node": "npm run test -- -t node",
"test:browser": "npm run test -- -t browser -t webworker",
"test:electron-main": "npm run test -- -t electron-main",
"test": "aegir test",
"test:node": "aegir test -t node",
"test:browser": "aegir test -t browser -t webworker",
"test:electron-main": "aegir test -t electron-main",
"docs": "aegir docs",
"proto:gen": "protons ./src/proto/payload.proto",
"prepublish": "npm run build"
},
"dependencies": {
"@libp2p/crypto": "^0.22.9",
"@libp2p/interfaces": "^2.0.1",
"@libp2p/logger": "^1.1.2",
"@libp2p/crypto": "^1.0.0",
"@libp2p/interface-connection-encrypter": "^1.0.2",
"@libp2p/interface-keys": "^1.0.2",
"@libp2p/interface-peer-id": "^1.0.2",
"@libp2p/logger": "^2.0.0",
"@libp2p/peer-collections": "^1.0.0",
"@libp2p/peer-id": "^1.1.8",
"@stablelib/chacha20poly1305": "^1.0.1",
Expand All @@ -84,9 +86,9 @@
"uint8arrays": "^3.0.0"
},
"devDependencies": {
"@libp2p/interface-connection-encrypter-compliance-tests": "^1.0.1",
"@libp2p/peer-id-factory": "^1.0.8",
"@libp2p/interface-compliance-tests": "^2.0.1",
"aegir": "^37.0.15",
"aegir": "^37.3.0",
"benchmark": "^2.1.4",
"events": "^3.3.0",
"microtime": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/@types/handshake-interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { bytes } from './basic.js'
import type { NoiseSession } from './handshake.js'

Expand Down
2 changes: 1 addition & 1 deletion src/@types/libp2p.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ConnectionEncrypter } from '@libp2p/interfaces/connection-encrypter'
import type { ConnectionEncrypter } from '@libp2p/interface-connection-encrypter'
import type { bytes, bytes32 } from './basic.js'

export interface KeyPair {
Expand Down
2 changes: 1 addition & 1 deletion src/handshake-ik.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { ProtobufStream } from 'it-pb-stream'
import type { CipherState, NoiseSession } from './@types/handshake.js'
import type { bytes, bytes32 } from './@types/basic.js'
Expand Down
2 changes: 1 addition & 1 deletion src/handshake-xx-fallback.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { ProtobufStream } from 'it-pb-stream'
import type { bytes, bytes32 } from './@types/basic.js'
import type { KeyPair } from './@types/libp2p.js'
Expand Down
4 changes: 2 additions & 2 deletions src/handshake-xx.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import { InvalidCryptoExchangeError, UnexpectedPeerError } from '@libp2p/interfaces/connection-encrypter/errors'
import type { PeerId } from '@libp2p/interface-peer-id'
import { InvalidCryptoExchangeError, UnexpectedPeerError } from '@libp2p/interface-connection-encrypter/errors'
import type { ProtobufStream } from 'it-pb-stream'
import type { bytes, bytes32 } from './@types/basic.js'
import type { CipherState, NoiseSession } from './@types/handshake.js'
Expand Down
2 changes: 1 addition & 1 deletion src/keycache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import { PeerMap } from '@libp2p/peer-collections'
import type { bytes32 } from './@types/basic.js'

Expand Down
4 changes: 2 additions & 2 deletions src/noise.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { SecuredConnection } from '@libp2p/interfaces/connection-encrypter'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { SecuredConnection } from '@libp2p/interface-connection-encrypter'
import { pbStream, ProtobufStream } from 'it-pb-stream'
import { duplexPair } from 'it-pair/duplex'
import { pipe } from 'it-pipe'
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { unmarshalPublicKey, unmarshalPrivateKey } from '@libp2p/crypto/keys'
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import { peerIdFromKeys } from '@libp2p/peer-id'
import { concat as uint8ArrayConcat } from 'uint8arrays/concat'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
Expand Down
2 changes: 1 addition & 1 deletion test/compliance.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import tests from '@libp2p/interface-compliance-tests/connection-encrypter'
import tests from '@libp2p/interface-connection-encrypter-compliance-tests'
import { Noise } from '../src/index.js'

describe('spec compliance tests', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/peer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import { createEd25519PeerId, createFromJSON } from '@libp2p/peer-id-factory'

// ed25519 keys
Expand Down
2 changes: 1 addition & 1 deletion test/ik-handshake.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import { Buffer } from 'buffer'
import { pbStream } from 'it-pb-stream'
import { duplexPair } from 'it-pair/duplex'
Expand Down
2 changes: 1 addition & 1 deletion test/keycache.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import { Buffer } from 'buffer'
import { assert } from 'aegir/chai'
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
Expand Down
2 changes: 1 addition & 1 deletion test/noise.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { randomBytes } from '@libp2p/crypto'
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import { Buffer } from 'buffer'
import { assert, expect } from 'aegir/chai'
import { duplexPair } from 'it-pair/duplex'
Expand Down
4 changes: 2 additions & 2 deletions test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { keys } from '@libp2p/crypto'
import type { PrivateKey } from '@libp2p/interfaces/keys'
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PrivateKey } from '@libp2p/interface-keys'
import type { PeerId } from '@libp2p/interface-peer-id'
import { Buffer } from 'buffer'
import type { KeyPair } from '../src/@types/libp2p.js'

Expand Down
2 changes: 1 addition & 1 deletion test/xx-fallback-handshake.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import { Buffer } from 'buffer'
import { assert } from 'aegir/chai'
import { pbStream } from 'it-pb-stream'
Expand Down
2 changes: 1 addition & 1 deletion test/xx-handshake.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { PeerId } from '@libp2p/interface-peer-id'
import { Buffer } from 'buffer'
import { assert, expect } from 'aegir/chai'
import { duplexPair } from 'it-pair/duplex'
Expand Down

0 comments on commit 2c138df

Please sign in to comment.