Compare commits

...

4 Commits

Author SHA1 Message Date
82ed140b42 chore: skip abort while reading for webrtc 2020-08-11 15:18:43 +02:00
13aa6cbfa0 chore: release version v0.4.0 2020-08-10 12:36:11 +02:00
a8ba13da4b chore: update contributors 2020-08-10 12:36:11 +02:00
75f6777d89 chore: update deps (#57)
* chore: update deps

Pulls in latest peer id with Uint8Arrays

BREAKING CHANGES:

- The peer id dep of this module has replaced node Buffers with Uint8Arrays

* chore: update gh deps
2020-08-10 12:23:45 +02:00
4 changed files with 27 additions and 8 deletions

View File

@ -1,3 +1,20 @@
<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)
### Chores
* update deps ([#57](https://github.com/libp2p/js-interfaces/issues/57)) ([75f6777](https://github.com/libp2p/js-interfaces/commit/75f6777))
### BREAKING CHANGES
* - The peer id dep of this module has replaced node Buffers with Uint8Arrays
* chore: update gh deps
<a name="0.3.2"></a>
## [0.3.2](https://github.com/libp2p/js-interfaces/compare/v0.3.1...v0.3.2) (2020-07-15)

View File

@ -1,6 +1,6 @@
{
"name": "libp2p-interfaces",
"version": "0.3.2",
"version": "0.4.0",
"description": "Interfaces for JS Libp2p",
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
"main": "src/index.js",
@ -47,11 +47,11 @@
"it-pair": "^1.0.0",
"it-pipe": "^1.1.0",
"libp2p-tcp": "^0.14.5",
"multiaddr": "^7.5.0",
"multiaddr": "^8.0.0",
"p-defer": "^3.0.0",
"p-limit": "^2.3.0",
"p-wait-for": "^3.1.0",
"peer-id": "^0.13.13",
"peer-id": "^0.14.0",
"sinon": "^9.0.2",
"streaming-iterables": "^5.0.2"
},

View File

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

View File

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