Compare commits

..

3 Commits

Author SHA1 Message Date
Jacob Heun
a60ae091e5 chore: release version v0.4.1 2020-08-11 15:26:28 +02:00
Jacob Heun
4902542e78 chore: update contributors 2020-08-11 15:26:27 +02:00
Alex Potsides
4d5f56d06f chore: update libp2p-tcp (#59)
Updates libp2p-tcp to a version that depends on the same multiaddr as this module.
2020-08-11 15:22:43 +02:00
4 changed files with 12 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
<a name="0.4.1"></a>
## [0.4.1](https://github.com/libp2p/js-interfaces/compare/v0.4.0...v0.4.1) (2020-08-11)
<a name="0.4.0"></a> <a name="0.4.0"></a>
# [0.4.0](https://github.com/libp2p/js-interfaces/compare/v0.3.2...v0.4.0) (2020-08-10) # [0.4.0](https://github.com/libp2p/js-interfaces/compare/v0.3.2...v0.4.0) (2020-08-10)

View File

@@ -1,6 +1,6 @@
{ {
"name": "libp2p-interfaces", "name": "libp2p-interfaces",
"version": "0.4.0", "version": "0.4.1",
"description": "Interfaces for JS Libp2p", "description": "Interfaces for JS Libp2p",
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>", "leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
"main": "src/index.js", "main": "src/index.js",
@@ -46,7 +46,7 @@
"it-goodbye": "^2.0.1", "it-goodbye": "^2.0.1",
"it-pair": "^1.0.0", "it-pair": "^1.0.0",
"it-pipe": "^1.1.0", "it-pipe": "^1.1.0",
"libp2p-tcp": "^0.14.5", "libp2p-tcp": "^0.15.0",
"multiaddr": "^8.0.0", "multiaddr": "^8.0.0",
"p-defer": "^3.0.0", "p-defer": "^3.0.0",
"p-limit": "^2.3.0", "p-limit": "^2.3.0",

View File

@@ -31,8 +31,7 @@ module.exports = (common) => {
} }
} }
describe('dial', function () { describe('dial', () => {
this.timeout(20 * 1000)
let addrs let addrs
let transport let transport
let connector let connector
@@ -130,7 +129,7 @@ module.exports = (common) => {
expect.fail('Did not throw error with code ' + AbortError.code) expect.fail('Did not throw error with code ' + AbortError.code)
}) })
it.skip('abort while reading throws AbortError', async () => { it('abort while reading throws AbortError', async () => {
// Add a delay to the response from the server // Add a delay to the response from the server
async function * delayedResponse (source) { async function * delayedResponse (source) {
for await (const val of source) { for await (const val of source) {

View File

@@ -31,8 +31,7 @@ module.exports = (common) => {
} }
} }
describe('listen', function () { describe('listen', () => {
this.timeout(20 * 1000)
let addrs let addrs
let transport let transport
@@ -52,7 +51,7 @@ module.exports = (common) => {
await listener.close() await listener.close()
}) })
it.skip('close listener with connections, through timeout', async () => { it('close listener with connections, through timeout', async () => {
const upgradeSpy = sinon.spy(upgrader, 'upgradeInbound') const upgradeSpy = sinon.spy(upgrader, 'upgradeInbound')
const listenerConns = [] const listenerConns = []
@@ -95,7 +94,7 @@ module.exports = (common) => {
expect(upgradeSpy.callCount).to.equal(2) expect(upgradeSpy.callCount).to.equal(2)
}) })
it.skip('should not handle connection if upgradeInbound throws', async () => { it('should not handle connection if upgradeInbound throws', async () => {
sinon.stub(upgrader, 'upgradeInbound').throws() sinon.stub(upgrader, 'upgradeInbound').throws()
const listener = transport.createListener(() => { const listener = transport.createListener(() => {