Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: libp2p/js-libp2p-mdns
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0642fc438a7a4fb789259a097127c0aaf80f2c48
Choose a base ref
...
head repository: libp2p/js-libp2p-mdns
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: afca4bfaad8c0c571d5c929934a150ea9051d5d1
Choose a head ref

Commits on Feb 1, 2018

  1. feat: service names (#68)

    * fix: use 'ipfs.local' as service name
    
    * test: must cope with async
    
    * fix: support IPv6
    
    * feat: more debug logging
    
    * fix: immediately start a query, then do it every interval
    
    * test: working stop test
    richardschneider authored and daviddias committed Feb 1, 2018
    Copy the full SHA
    fa8fe22 View commit details

Commits on Feb 13, 2018

  1. feat: Use latest multicast-dns and dns-packet (#69)

    * fix: use latest multicast-dns and dns-packet
    
    * chore: multicast-dns 7.0.0 released
    richardschneider authored and daviddias committed Feb 13, 2018
    Copy the full SHA
    cb69f2f View commit details

Commits on Feb 20, 2018

  1. Copy the full SHA
    c69ab01 View commit details

Commits on Apr 5, 2018

  1. chore: update deps

    daviddias committed Apr 5, 2018
    Copy the full SHA
    2048b24 View commit details
  2. chore: update deps

    daviddias committed Apr 5, 2018
    Copy the full SHA
    78b9f3e View commit details
  3. chore: fix npm scripts

    daviddias committed Apr 5, 2018
    Copy the full SHA
    856136f View commit details
  4. Copy the full SHA
    7017875 View commit details
  5. chore: update contributors

    daviddias committed Apr 5, 2018
    Copy the full SHA
    db03208 View commit details
  6. Copy the full SHA
    526392b View commit details

Commits on Jun 5, 2018

  1. Copy the full SHA
    d3eeb6e View commit details
  2. docs: update README

    daviddias committed Jun 5, 2018
    Copy the full SHA
    02eea97 View commit details
  3. chore: update contributors

    daviddias committed Jun 5, 2018
    Copy the full SHA
    fcee5be View commit details
  4. Copy the full SHA
    85ced60 View commit details
  5. chore: update gitignore

    daviddias committed Jun 5, 2018
    Copy the full SHA
    313f74c View commit details

Commits on Jun 26, 2018

  1. chore: add lead maintainer and fix readme headers (#75)

    * chore: add lead maintainer and fix readme headers
    
    * Update package.json
    Jacob Heun authored Jun 26, 2018
    Copy the full SHA
    28a1177 View commit details

Commits on Nov 26, 2018

  1. chore: upgrade dependencies

    vasco-santos authored and jacobheun committed Nov 26, 2018
    Copy the full SHA
    d267551 View commit details
  2. chore: update contributors

    jacobheun committed Nov 26, 2018
    Copy the full SHA
    0ab8893 View commit details
  3. chore: release version v0.12.1

    License: MIT
    Signed-off-by: Jacob Heun <jacobheun@gmail.com>
    jacobheun committed Nov 26, 2018
    Copy the full SHA
    7398c19 View commit details

Commits on Jan 4, 2019

  1. chore: update deps

    License: MIT
    Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
    Alan Shaw authored and jacobheun committed Jan 4, 2019
    Copy the full SHA
    bd333c8 View commit details
  2. chore: update contributors

    jacobheun committed Jan 4, 2019
    Copy the full SHA
    d38e84b View commit details
  3. chore: release version v0.12.2

    License: MIT
    Signed-off-by: Jacob Heun <jacobheun@gmail.com>
    jacobheun committed Jan 4, 2019
    Copy the full SHA
    c4e90b4 View commit details

Commits on Mar 22, 2019

  1. chore: use travis ci (#79)

    * chore: use travis and update badges
    
    * chore: update package.json files and pre push
    
    License: MIT
    Signed-off-by: Jacob Heun <jacobheun@gmail.com>
    
    * chore: add missing debug module
    
    License: MIT
    Signed-off-by: Jacob Heun <jacobheun@gmail.com>
    jacobheun authored Mar 22, 2019
    Copy the full SHA
    f89f433 View commit details

Commits on Apr 12, 2019

  1. chore: add discourse badge (#82)

    vasco-santos authored and jacobheun committed Apr 12, 2019
    Copy the full SHA
    92cfb26 View commit details

Commits on May 9, 2019

  1. feat: compatibility with go-libp2p-mdns (#80)

    Adds an additional mdns poller to interop with go-libp2p until both implementations comply with the new spec, https://github.com/libp2p/specs/blob/4c5a459ae8fb9a250e5f87f0c64fadaa7997266a/discovery/mdns.md.
    Alan Shaw authored and jacobheun committed May 9, 2019
    Copy the full SHA
    c6d1d49 View commit details
  2. chore: update contributors

    jacobheun committed May 9, 2019
    Copy the full SHA
    c3e4288 View commit details
  3. chore: release version v0.12.3

    License: MIT
    Signed-off-by: Jacob Heun <jacobheun@gmail.com>
    jacobheun committed May 9, 2019
    Copy the full SHA
    64a16d7 View commit details

Commits on Sep 27, 2019

  1. refactor: callbacks -> async / await (#78)

    BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await
    
    * chore: update CI file
    * test: add compliance tests
    dirkmc authored and jacobheun committed Sep 27, 2019
    Copy the full SHA
    46d78eb View commit details
  2. chore: update contributors

    jacobheun committed Sep 27, 2019
    Copy the full SHA
    8a5cced View commit details
  3. chore: release version v0.13.0

    License: MIT
    Signed-off-by: Jacob Heun <jacobheun@gmail.com>
    jacobheun committed Sep 27, 2019
    Copy the full SHA
    de2c897 View commit details

Commits on Jan 17, 2020

  1. fix: do not emit empty peer info objects (#85)

    I noticed stack traces in the logs from trying to access properties
    of `undefined`. It seems this module emits `undefined` `peerInfo`
    values, for example when recieving a response to your own mDNS
    query or a response with an invalid PeerID.
    
    This PR guards on empty PeerInfo objects from `query.gotResponse`
    achingbrain authored and jacobheun committed Jan 17, 2020
    Copy the full SHA
    a88483c View commit details
  2. chore: update contributors

    jacobheun committed Jan 17, 2020
    Copy the full SHA
    a02a6d2 View commit details
  3. Copy the full SHA
    a9661bd View commit details

Commits on Feb 2, 2020

  1. chore: remove unused dep async (#86)

    Alan Shaw authored Feb 2, 2020
    Copy the full SHA
    084ee53 View commit details
  2. chore: update contributors

    jacobheun committed Feb 2, 2020
    Copy the full SHA
    0d2c1a1 View commit details
  3. Copy the full SHA
    bea3dd1 View commit details

Commits on Feb 17, 2020

  1. fix: remove use of assert module (#87)

    The polyfill is big, we can simulate it by throwing an Error and it doesn't work under React Native.
    achingbrain authored Feb 17, 2020
    Copy the full SHA
    e362b04 View commit details
  2. chore(deps-dev): bump aegir from 20.6.1 to 21.0.2

    Bumps [aegir](https://github.com/ipfs/aegir) from 20.6.1 to 21.0.2.
    - [Release notes](https://github.com/ipfs/aegir/releases)
    - [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
    - [Commits](ipfs/aegir@v20.6.1...v21.0.2)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored and jacobheun committed Feb 17, 2020
    Copy the full SHA
    cf180e1 View commit details
  3. chore: update contributors

    jacobheun committed Feb 17, 2020
    Copy the full SHA
    28c0ae1 View commit details
  4. Copy the full SHA
    ecdda6e View commit details

Commits on Apr 23, 2020

  1. chore: peer-discovery not using peer-info (#90)

    * chore: peer-discovery not using peer-info
    
    BREAKING CHANGE: peer event emitted with id and multiaddrs properties instead of peer-info
    
    * chore: add tests for peer-discovery interface
    
    * chore: apply suggestions from code review
    
    Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
    
    * chore: update readme with peerData and peerId
    
    Co-authored-by: Jacob Heun <jacobheun@gmail.com>
    vasco-santos and jacobheun authored Apr 23, 2020
    Copy the full SHA
    fca175e View commit details
  2. chore: update contributors

    jacobheun committed Apr 23, 2020
    Copy the full SHA
    bcf3e44 View commit details
  3. Copy the full SHA
    5b46aaa View commit details

Commits on Apr 29, 2020

  1. Copy the full SHA
    cfe90c6 View commit details
  2. Copy the full SHA
    3dc9475 View commit details
  3. chore: update contributors

    jacobheun committed Apr 29, 2020
    Copy the full SHA
    edec51d View commit details
  4. Copy the full SHA
    60a0dbe View commit details

Commits on Jul 2, 2020

  1. fix: actually check tcp multiaddrs (#94)

    * chore: update deps
    
    * fix: only use actual tcp addresses
    jacobheun authored Jul 2, 2020
    Copy the full SHA
    9f45f73 View commit details
  2. chore: update contributors

    jacobheun committed Jul 2, 2020
    Copy the full SHA
    183c065 View commit details
  3. Copy the full SHA
    9186dbf View commit details

Commits on Aug 7, 2020

  1. Copy the full SHA
    9fea1f6 View commit details
Showing with 1,615 additions and 322 deletions.
  1. +33 −0 .github/workflows/main.yml
  2. +2 −0 .gitignore
  3. +0 −29 .npmignore
  4. +0 −32 .travis.yml
  5. +206 −0 CHANGELOG.md
  6. +66 −14 README.md
  7. +0 −29 appveyor.yml
  8. +0 −2 ci/Jenkinsfile
  9. +0 −15 circle.yml
  10. +31 −25 package.json
  11. +6 −0 src/compat/constants.js
  12. +67 −0 src/compat/index.js
  13. +171 −0 src/compat/querier.js
  14. +100 −0 src/compat/responder.js
  15. +76 −29 src/index.js
  16. +51 −48 src/query.js
  17. +86 −0 test/compat/go-multicast-dns.spec.js
  18. +295 −0 test/compat/querier.spec.js
  19. +168 −0 test/compat/responder.spec.js
  20. +43 −0 test/compliance.spec.js
  21. +214 −99 test/multicast-dns.spec.js
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npx aegir lint
- run: npx aegir dep-check
test-node:
needs: check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [14, 15]
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx aegir test -t node --bail --cov
- uses: codecov/codecov-action@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
docs
**/node_modules/
**/*.log
test/repo-tests*
**/bundle.js
.nyc_output

# Logs
logs
29 changes: 0 additions & 29 deletions .npmignore

This file was deleted.

32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

206 changes: 206 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,209 @@
# [0.17.0](https://github.com/libp2p/js-libp2p-mdns/compare/v0.16.0...v0.17.0) (2021-07-08)


### chore

* update deps ([#100](https://github.com/libp2p/js-libp2p-mdns/issues/100)) ([0b974bc](https://github.com/libp2p/js-libp2p-mdns/commit/0b974bc9e0d110303e2d15a173447ec5631d15f9))


### BREAKING CHANGES

* uses then new multiaddr and friends



# [0.16.0](https://github.com/libp2p/js-libp2p-mdns/compare/v0.13.3...v0.16.0) (2021-04-13)


### Bug Fixes

* actually check tcp multiaddrs ([#94](https://github.com/libp2p/js-libp2p-mdns/issues/94)) ([9f45f73](https://github.com/libp2p/js-libp2p-mdns/commit/9f45f731e91f225016d11cc3471bd0874e4b5490))
* ensure event handlers are removed on MulticastDNS.stop ([#96](https://github.com/libp2p/js-libp2p-mdns/issues/96)) ([9fea1f6](https://github.com/libp2p/js-libp2p-mdns/commit/9fea1f6eb9d68b8e7c145e8b615ac504e0031b0e))


### chore

* peer-discovery not using peer-info ([#90](https://github.com/libp2p/js-libp2p-mdns/issues/90)) ([fca175e](https://github.com/libp2p/js-libp2p-mdns/commit/fca175e6bc706be07a14b81ef3b3c8143ce97a0a))


### BREAKING CHANGES

* peer event emitted with id and multiaddrs properties instead of peer-info

* chore: add tests for peer-discovery interface

* chore: apply suggestions from code review

Co-Authored-By: Jacob Heun <jacobheun@gmail.com>

* chore: update readme with peerData and peerId

Co-authored-by: Jacob Heun <jacobheun@gmail.com>



<a name="0.15.0"></a>
# [0.15.0](https://github.com/libp2p/js-libp2p-mdns/compare/v0.14.3...v0.15.0) (2020-08-11)


### Chores

* upgrade deps ([#97](https://github.com/libp2p/js-libp2p-mdns/issues/97)) ([3cf0e75](https://github.com/libp2p/js-libp2p-mdns/commit/3cf0e75))


### BREAKING CHANGES

* - All deps of this module now use Uint8Arrays instead of node Buffers

* chore: address pr comments



<a name="0.14.3"></a>
## [0.14.3](https://github.com/libp2p/js-libp2p-mdns/compare/v0.14.2...v0.14.3) (2020-08-07)


### Bug Fixes

* ensure event handlers are removed on MulticastDNS.stop ([#96](https://github.com/libp2p/js-libp2p-mdns/issues/96)) ([9fea1f6](https://github.com/libp2p/js-libp2p-mdns/commit/9fea1f6))



<a name="0.14.2"></a>
## [0.14.2](https://github.com/libp2p/js-libp2p-mdns/compare/v0.14.1...v0.14.2) (2020-07-02)


### Bug Fixes

* actually check tcp multiaddrs ([#94](https://github.com/libp2p/js-libp2p-mdns/issues/94)) ([9f45f73](https://github.com/libp2p/js-libp2p-mdns/commit/9f45f73))



<a name="0.14.1"></a>
## [0.14.1](https://github.com/libp2p/js-libp2p-mdns/compare/v0.14.0...v0.14.1) (2020-04-29)



<a name="0.14.0"></a>
# [0.14.0](https://github.com/libp2p/js-libp2p-mdns/compare/v0.13.3...v0.14.0) (2020-04-23)


### Chores

* peer-discovery not using peer-info ([#90](https://github.com/libp2p/js-libp2p-mdns/issues/90)) ([fca175e](https://github.com/libp2p/js-libp2p-mdns/commit/fca175e))


### BREAKING CHANGES

* peer event emitted with id and multiaddrs properties instead of peer-info

* chore: add tests for peer-discovery interface

* chore: apply suggestions from code review

Co-Authored-By: Jacob Heun <jacobheun@gmail.com>

* chore: update readme with peerData and peerId

Co-authored-by: Jacob Heun <jacobheun@gmail.com>



<a name="0.13.3"></a>
## [0.13.3](https://github.com/libp2p/js-libp2p-mdns/compare/v0.13.2...v0.13.3) (2020-02-17)


### Bug Fixes

* remove use of assert module ([#87](https://github.com/libp2p/js-libp2p-mdns/issues/87)) ([e362b04](https://github.com/libp2p/js-libp2p-mdns/commit/e362b04))



<a name="0.13.2"></a>
## [0.13.2](https://github.com/libp2p/js-libp2p-mdns/compare/v0.13.1...v0.13.2) (2020-02-02)



<a name="0.13.1"></a>
## [0.13.1](https://github.com/libp2p/js-libp2p-mdns/compare/v0.13.0...v0.13.1) (2020-01-17)


### Bug Fixes

* do not emit empty peer info objects ([#85](https://github.com/libp2p/js-libp2p-mdns/issues/85)) ([a88483c](https://github.com/libp2p/js-libp2p-mdns/commit/a88483c))



<a name="0.13.0"></a>
# [0.13.0](https://github.com/libp2p/js-libp2p-mdns/compare/v0.12.3...v0.13.0) (2019-09-27)


### Code Refactoring

* callbacks -> async / await ([#78](https://github.com/libp2p/js-libp2p-mdns/issues/78)) ([46d78eb](https://github.com/libp2p/js-libp2p-mdns/commit/46d78eb))


### BREAKING CHANGES

* All places in the API that used callbacks are now replaced with async/await

* chore: update CI file
* test: add compliance tests



<a name="0.12.3"></a>
## [0.12.3](https://github.com/libp2p/js-libp2p-mdns/compare/v0.12.2...v0.12.3) (2019-05-09)


### Features

* compatibility with go-libp2p-mdns ([#80](https://github.com/libp2p/js-libp2p-mdns/issues/80)) ([c6d1d49](https://github.com/libp2p/js-libp2p-mdns/commit/c6d1d49))



<a name="0.12.2"></a>
## [0.12.2](https://github.com/libp2p/js-libp2p-mdns/compare/v0.12.1...v0.12.2) (2019-01-04)



<a name="0.12.1"></a>
## [0.12.1](https://github.com/libp2p/js-libp2p-mdns/compare/v0.12.0...v0.12.1) (2018-11-26)



<a name="0.12.0"></a>
# [0.12.0](https://github.com/libp2p/js-libp2p-mdns/compare/v0.11.0...v0.12.0) (2018-06-05)


### Features

* (BREAKING CHANGE) update constructor. add tag ([d3eeb6e](https://github.com/libp2p/js-libp2p-mdns/commit/d3eeb6e))



<a name="0.11.0"></a>
# [0.11.0](https://github.com/libp2p/js-libp2p-mdns/compare/v0.9.2...v0.11.0) (2018-04-05)


### Features

* service names ([#68](https://github.com/libp2p/js-libp2p-mdns/issues/68)) ([fa8fe22](https://github.com/libp2p/js-libp2p-mdns/commit/fa8fe22))
* Use latest multicast-dns and dns-packet ([#69](https://github.com/libp2p/js-libp2p-mdns/issues/69)) ([cb69f2f](https://github.com/libp2p/js-libp2p-mdns/commit/cb69f2f))



<a name="0.10.0"></a>
# [0.10.0](https://github.com/libp2p/js-libp2p-mdns/compare/v0.9.2...v0.10.0) (2018-04-05)


### Features

* service names ([#68](https://github.com/libp2p/js-libp2p-mdns/issues/68)) ([fa8fe22](https://github.com/libp2p/js-libp2p-mdns/commit/fa8fe22))
* Use latest multicast-dns and dns-packet ([#69](https://github.com/libp2p/js-libp2p-mdns/issues/69)) ([cb69f2f](https://github.com/libp2p/js-libp2p-mdns/commit/cb69f2f))



<a name="0.9.2"></a>
## [0.9.2](https://github.com/libp2p/js-libp2p-mdns/compare/v0.9.1...v0.9.2) (2018-01-30)

Loading