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-kad-dht
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9e12b7ca5024576f7bb1ccbbf508b4a69d2e851e
Choose a base ref
...
head repository: libp2p/js-libp2p-kad-dht
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9f4e32d14eee05a34df4b1d3b414c9b1c84d7bef
Choose a head ref

Commits on Sep 16, 2017

  1. fix #17

    daviddias authored Sep 16, 2017
    Copy the full SHA
    550c0d9 View commit details
  2. docs: fix #17

    daviddias authored Sep 16, 2017
    Copy the full SHA
    0ca9708 View commit details

Commits on Nov 9, 2017

  1. chore: Windows Interop

    richardschneider authored and daviddias committed Nov 9, 2017
    Copy the full SHA
    2d6e499 View commit details
  2. chore: update contributors

    daviddias committed Nov 9, 2017
    Copy the full SHA
    7e1c2da View commit details
  3. Copy the full SHA
    c53baa0 View commit details
  4. chore: gitignore

    daviddias committed Nov 9, 2017
    Copy the full SHA
    d4f71a9 View commit details

Commits on Jan 30, 2018

  1. Copy the full SHA
    ff87f4b View commit details
  2. Updating CI files (#21)

    This commit updates all CI scripts to the latest version
    victorb authored and daviddias committed Jan 30, 2018
    Copy the full SHA
    d3ee20e View commit details
  3. chore: update deps

    daviddias committed Jan 30, 2018
    Copy the full SHA
    1e4f8f6 View commit details
  4. chore: update contributors

    daviddias committed Jan 30, 2018
    Copy the full SHA
    34307bf View commit details
  5. Copy the full SHA
    8b49eb4 View commit details
  6. chore: update contributors

    daviddias committed Jan 30, 2018
    Copy the full SHA
    81f8b57 View commit details
  7. Copy the full SHA
    5d15733 View commit details
  8. chore: update contributors

    daviddias committed Jan 30, 2018
    Copy the full SHA
    86bf57f View commit details
  9. Copy the full SHA
    a2a5c2e View commit details

Commits on Feb 7, 2018

  1. feat: use libp2p-switch

    daviddias committed Feb 7, 2018
    Copy the full SHA
    054e5e5 View commit details
  2. chore: update contributors

    daviddias committed Feb 7, 2018
    Copy the full SHA
    4687dfa View commit details
  3. Copy the full SHA
    800677d View commit details
  4. chore: update contributors

    daviddias committed Feb 7, 2018
    Copy the full SHA
    02370eb View commit details
  5. Copy the full SHA
    7a906d2 View commit details

Commits on Mar 15, 2018

  1. docs: update README

    daviddias committed Mar 15, 2018
    Copy the full SHA
    a575dc7 View commit details
  2. chore: update deps

    daviddias committed Mar 15, 2018
    Copy the full SHA
    954d6d6 View commit details
  3. chore: update deps

    daviddias committed Mar 15, 2018
    Copy the full SHA
    57bdc84 View commit details
  4. Copy the full SHA
    e98cc85 View commit details
  5. Copy the full SHA
    412f8d5 View commit details
  6. chore: update CI files

    daviddias committed Mar 15, 2018
    Copy the full SHA
    a910f02 View commit details
  7. chore: linting

    daviddias committed Mar 15, 2018
    Copy the full SHA
    35c2c53 View commit details
  8. chore: appveyor no more

    daviddias committed Mar 15, 2018
    Copy the full SHA
    b99e5a7 View commit details
  9. Copy the full SHA
    be12317 View commit details
  10. Copy the full SHA
    b8e0f72 View commit details
  11. Copy the full SHA
    188d7f9 View commit details
  12. chore: update npm scripts

    daviddias committed Mar 15, 2018
    Copy the full SHA
    3a9b485 View commit details
  13. chore: update contributors

    daviddias committed Mar 15, 2018
    Copy the full SHA
    3ed9783 View commit details
  14. Copy the full SHA
    34424ba View commit details

Commits on Apr 5, 2018

  1. chore: update deps

    daviddias committed Apr 5, 2018
    Copy the full SHA
    c6bdcba View commit details
  2. chore: update contributors

    daviddias committed Apr 5, 2018
    Copy the full SHA
    acff75e View commit details
  3. Copy the full SHA
    45f3703 View commit details

Commits on Jun 4, 2018

  1. docs: remove mentions of coral, it's not implemented

    Lars Gierth authored and daviddias committed Jun 4, 2018
    Copy the full SHA
    7a54bd3 View commit details

Commits on Jun 25, 2018

  1. docs: add lead-maintainer

    * docs: add lead-maintainer
    vasco-santos authored Jun 25, 2018
    Copy the full SHA
    cc08abb View commit details

Commits on Jul 13, 2018

  1. chore: update deps

    jacobheun authored and daviddias committed Jul 13, 2018
    Copy the full SHA
    b64d6f0 View commit details
  2. Copy the full SHA
    7a92139 View commit details
  3. chore: remove travis and circle

    jacobheun authored and daviddias committed Jul 13, 2018
    Copy the full SHA
    493be7c View commit details
  4. Copy the full SHA
    a5b4b71 View commit details
  5. Copy the full SHA
    51d425b View commit details
  6. chore: update contributors

    daviddias committed Jul 13, 2018
    Copy the full SHA
    4113d87 View commit details
  7. Copy the full SHA
    012d2c3 View commit details

Commits on Aug 27, 2018

  1. Make logs better for users and fix flaky test (#33)

    * fix: add a b58 formatter for logging and update logs
    jacobheun authored and vasco-santos committed Aug 27, 2018
    Copy the full SHA
    bb5f9af View commit details

Commits on Aug 29, 2018

  1. Copy the full SHA
    fcdb01d View commit details
  2. Copy the full SHA
    f41e3d0 View commit details
  3. Copy the full SHA
    edab8a3 View commit details
Showing with 14,869 additions and 4,324 deletions.
  1. +30 −0 .aegir.js
  2. +8 −0 .github/dependabot.yml
  3. +39 −0 .github/workflows/test.yml
  4. +2 −0 .gitignore
  5. +0 −32 .travis.yml
  6. +966 −0 CHANGELOG.md
  7. +55 −7 README.md
  8. +0 −14 circle.yml
  9. +96 −56 package.json
  10. +14 −5 src/constants.js
  11. +293 −0 src/content-fetching/index.js
  12. +196 −0 src/content-routing/index.js
  13. +354 −0 src/dual-kad-dht.js
  14. +0 −13 src/errors.js
  15. +32 −551 src/index.js
  16. +506 −0 src/kad-dht.js
  17. +0 −33 src/limited-peer-list.js
  18. +297 −0 src/message/dht.d.ts
  19. +923 −0 src/message/dht.js
  20. +4 −4 src/message/{dht.proto.js → dht.proto}
  21. +54 −39 src/message/index.js
  22. +128 −167 src/network.js
  23. +17 −18 src/{peer-list.js → peer-list/index.js}
  24. +95 −0 src/peer-list/peer-distance-list.js
  25. +0 −101 src/peer-queue.js
  26. +318 −0 src/peer-routing/index.js
  27. +0 −638 src/private.js
  28. +181 −213 src/providers.js
  29. +78 −0 src/query-self.js
  30. +0 −193 src/query.js
  31. +152 −0 src/query/events.js
  32. +148 −0 src/query/manager.js
  33. +230 −0 src/query/query-path.js
  34. +22 −0 src/query/types.ts
  35. +1,026 −0 src/routing-table/generated-prefix-list-browser.json
  36. +4,098 −0 src/routing-table/generated-prefix-list.json
  37. +201 −0 src/routing-table/index.js
  38. +276 −0 src/routing-table/refresh.js
  39. +26 −0 src/routing-table/types.ts
  40. +0 −153 src/routing.js
  41. +61 −30 src/rpc/handlers/add-provider.js
  42. +58 −33 src/rpc/handlers/find-node.js
  43. +76 −54 src/rpc/handlers/get-providers.js
  44. +99 −39 src/rpc/handlers/get-value.js
  45. +33 −13 src/rpc/handlers/index.js
  46. +16 −8 src/rpc/handlers/ping.js
  47. +37 −26 src/rpc/handlers/put-value.js
  48. +79 −71 src/rpc/index.js
  49. +6 −0 src/rpc/types.ts
  50. +65 −0 src/topology-listener.js
  51. +180 −0 src/types.ts
  52. +113 −117 src/utils.js
  53. +1 −0 test/generate-peers/.gitignore
  54. +85 −0 test/generate-peers/generate-peer.go
  55. +87 −0 test/generate-peers/generate-peers.spec.js
  56. +701 −426 test/kad-dht.spec.js
  57. +54 −0 test/kad-utils.spec.js
  58. +0 −41 test/limited-peer-list.spec.js
  59. +58 −83 test/message.spec.js
  60. +112 −0 test/multiple-nodes.spec.js
  61. +74 −97 test/network.spec.js
  62. +114 −0 test/peer-distance-list.spec.js
  63. +4 −12 test/peer-list.spec.js
  64. +0 −51 test/peer-queue.spec.js
  65. +126 −133 test/providers.spec.js
  66. +561 −73 test/query.spec.js
  67. +182 −0 test/routing-table.spec.js
  68. +0 −130 test/routing.spec.js
  69. +61 −87 test/rpc/handlers/add-provider.spec.js
  70. +103 −58 test/rpc/handlers/find-node.spec.js
  71. +72 −72 test/rpc/handlers/get-providers.spec.js
  72. +72 −94 test/rpc/handlers/get-value.spec.js
  73. +17 −32 test/rpc/handlers/ping.spec.js
  74. +47 −48 test/rpc/handlers/put-value.spec.js
  75. +66 −57 test/rpc/index.spec.js
  76. +12 −0 test/simulation/README.md
  77. +233 −0 test/simulation/index.js
  78. +0 −126 test/utils.spec.js
  79. +20 −0 test/utils/create-peer-id.js
  80. +20 −0 test/utils/create-values.js
  81. +48 −76 test/utils/index.js
  82. +30 −0 test/utils/sort-closest-peers.js
  83. +190 −0 test/utils/test-dht.js
  84. +17 −0 test/utils/to-buffer.js
  85. +14 −0 tsconfig.json
30 changes: 30 additions & 0 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
'use strict'

/** @type {import('aegir').Options["build"]["config"]} */
const esbuild = {
plugins: [
{
name: 'node built ins',
setup (build) {
build.onResolve({ filter: /^stream$/ }, () => {
return { path: require.resolve('readable-stream') }
})
}
}
]
}

/** @type {import('aegir').PartialOptions} */
module.exports = {
test: {
browser: {
config: {
buildConfig: esbuild
}
}
},
build: {
bundlesizeMax: '499KB',
config: esbuild
}
}
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "11:00"
open-pull-requests-limit: 10
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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
- uses: gozala/typescript-error-reporter-action@v1.0.8
- run: npx aegir build
- run: npx aegir dep-check
- uses: ipfs/aegir/actions/bundle-size@master
name: size
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
test-node:
needs: check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [14, 16]
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx nyc --reporter=lcov aegir test -t node -- --bail
- uses: codecov/codecov-action@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
**/*.log
test/repo-tests*
**/bundle.js
docs

# Logs
logs
@@ -41,3 +42,4 @@ test/test-data/go-ipfs-repo/LOG.old
# while testing npm5
package-lock.json
yarn.lock
.nyc_output
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

Loading