Skip to content

Commit

Permalink
feat: remove support for SECIO (#3295)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: this removes support for SECIO making Noise the only security transport.

Closes ipfs/js-ipfs#3210

Co-authored-by: achingbrain <alex@achingbrain.net>
  • Loading branch information
jacobheun and achingbrain committed Oct 6, 2020
1 parent feb3aaa commit a49e9e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const MulticastDNS = require('libp2p-mdns')
const Bootstrap = require('libp2p-bootstrap')
const KadDHT = require('libp2p-kad-dht')
const MPLEX = require('libp2p-mplex')
const SECIO = require('libp2p-secio')
const { NOISE } = require('libp2p-noise')

/**
* Options for the libp2p bundle
Expand Down Expand Up @@ -49,7 +49,7 @@ const libp2pBundle = (opts) => {
MPLEX
],
connEncryption: [
SECIO
NOISE
],
peerDiscovery: [
MulticastDNS,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"libp2p-kad-dht": "^0.20.0",
"libp2p-mdns": "^0.15.0",
"libp2p-mplex": "^0.10.0",
"libp2p-secio": "^0.13.0",
"libp2p-noise": "^2.0.1",
"libp2p-tcp": "^0.15.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const execa = require('execa')
const Libp2p = require('libp2p')
const TCP = require('libp2p-tcp')
const MPLEX = require('libp2p-mplex')
const SECIO = require('libp2p-secio')
const { NOISE } = require('libp2p-noise')
const PeerId = require('peer-id')
const uint8ArrayToString = require('uint8arrays/to-string')

Expand Down Expand Up @@ -41,7 +41,7 @@ async function test () {
MPLEX
],
connEncryption: [
SECIO
NOISE
]
}
})
Expand Down

0 comments on commit a49e9e8

Please sign in to comment.