Skip to content
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-peer-id
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ffed0465953447c3c980c58e85141500817cf03a
Choose a base ref
...
head repository: libp2p/js-peer-id
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6f0945d7ef749940fa5f688dc94997b70fd0a1b1
Choose a head ref

Commits on Jun 4, 2018

  1. chore: update deps

    daviddias committed Jun 4, 2018
    Copy the full SHA
    d74bdeb View commit details
  2. docs: add lead maintainer

    daviddias committed Jun 4, 2018
    Copy the full SHA
    417fd33 View commit details
  3. Copy the full SHA
    a786018 View commit details

Commits on Jul 2, 2018

  1. Copy the full SHA
    e8ab1b9 View commit details
  2. chore: update deps

    daviddias committed Jul 2, 2018
    Copy the full SHA
    35556c3 View commit details
  3. chore: update contributors

    daviddias committed Jul 2, 2018
    Copy the full SHA
    31cbb5d View commit details
  4. Copy the full SHA
    bd1dc9b View commit details

Commits on Oct 4, 2018

  1. Copy the full SHA
    6513a02 View commit details

Commits on Oct 12, 2018

  1. docs: various readme tweaks

    mkg20001 committed Oct 12, 2018
    Copy the full SHA
    6ecd9a8 View commit details
  2. Merge pull request #86 from libp2p/docs/readme-tweaks

    docs: various readme tweaks
    Pedro Teixeira authored Oct 12, 2018
    Copy the full SHA
    b388257 View commit details

Commits on Oct 17, 2018

  1. Copy the full SHA
    2e5e666 View commit details

Commits on Oct 18, 2018

  1. Merge pull request #84 from libp2p/feat/add-class-is-module

    feat: add class-is module
    Pedro Teixeira authored Oct 18, 2018
    Copy the full SHA
    d7e633a View commit details
  2. chore: update contributors

    pgte committed Oct 18, 2018
    Copy the full SHA
    e03a409 View commit details
  3. chore: update contributors

    pgte committed Oct 18, 2018
    Copy the full SHA
    39e17c0 View commit details
  4. chore: release version v0.12.0

    pgte committed Oct 18, 2018
    Copy the full SHA
    eb06275 View commit details

Commits on Jan 3, 2019

  1. Copy the full SHA
    77000db View commit details
  2. Merge pull request #91 from libp2p/chore/update-deps-20190103

    chore: update dependencies
    Pedro Teixeira authored Jan 3, 2019
    Copy the full SHA
    cbc8c5e View commit details
  3. chore: update contributors

    pgte committed Jan 3, 2019
    Copy the full SHA
    9f69e1b View commit details
  4. chore: release version v0.12.1

    pgte committed Jan 3, 2019
    Copy the full SHA
    8e030b2 View commit details

Commits on Jan 9, 2019

  1. fix: clean repo and bundle size reduction

    hugomrdias authored and Pedro Teixeira committed Jan 9, 2019
    Copy the full SHA
    cd20993 View commit details
  2. chore: fix lint

    hugomrdias authored and Pedro Teixeira committed Jan 9, 2019
    Copy the full SHA
    231e553 View commit details
  3. chore: fix lint

    hugomrdias authored and Pedro Teixeira committed Jan 9, 2019
    Copy the full SHA
    41ce1d4 View commit details
  4. chore: update contributors

    pgte committed Jan 9, 2019
    Copy the full SHA
    ce8a6ff View commit details
  5. chore: release version v0.12.2

    pgte committed Jan 9, 2019
    Copy the full SHA
    1624b0f View commit details

Commits on Apr 18, 2019

  1. chore: add discourse badge (#93)

    vasco-santos authored and jacobheun committed Apr 18, 2019
    Copy the full SHA
    bbabd74 View commit details

Commits on Jul 11, 2019

  1. feat: async await (#87)

    BREAKING CHANGE: API refactored to use async/await
    hacdias authored and jacobheun committed Jul 11, 2019
    Copy the full SHA
    c3463c7 View commit details
  2. chore: update contributors

    jacobheun committed Jul 11, 2019
    Copy the full SHA
    52ed9c5 View commit details
  3. Copy the full SHA
    989b413 View commit details
  4. Copy the full SHA
    17440a3 View commit details
  5. chore: update contributors

    jacobheun committed Jul 11, 2019
    Copy the full SHA
    6754752 View commit details
  6. Copy the full SHA
    f50b2ac View commit details

Commits on Jul 12, 2019

  1. feat: add compact protobuf format (#76)

    * docs: document .createFromProtobuf and .marshal
    * fix: lint
    * test: verify .marshal() does it's job
    mkg20001 authored and jacobheun committed Jul 12, 2019
    Copy the full SHA
    7686418 View commit details
  2. chore: update contributors

    jacobheun committed Jul 12, 2019
    Copy the full SHA
    1f1f86f View commit details
  3. Copy the full SHA
    94aa348 View commit details

Commits on Jul 30, 2019

  1. Copy the full SHA
    911aa63 View commit details

Commits on Sep 25, 2019

  1. Copy the full SHA
    f39fb24 View commit details
  2. Copy the full SHA
    8ea480a View commit details
  3. Copy the full SHA
    ed211a9 View commit details

Commits on Sep 28, 2019

  1. chore: fix docs typo (#103)

    npfoss authored and vasco-santos committed Sep 28, 2019
    Copy the full SHA
    a2ac32a View commit details

Commits on Sep 29, 2019

  1. Copy the full SHA
    4d5bb2c View commit details

Commits on Nov 4, 2019

  1. fix: bang in bin.js (#106)

    mkg20001 authored and vasco-santos committed Nov 4, 2019
    Copy the full SHA
    11d4ec1 View commit details
  2. feat: support Peer ID represented as CID (#105)

    * feat: support Peer ID represented as CID
    
    This change adds two functions:
    
    - createFromCID accepts CID as String|CID|Buffer
      and creates PeerId from the multihash value inside of it
    - toCIDString serializes PeerId multihash into a CIDv1 in Base32,
      as agreed in libp2p/specs#209
    
    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    
    * refactor: rename toCIDString to toString
    
    CIDv1 is self describing, and toString was not defined.
    Makes sense to use generic toString in this case.
    
    This change also:
    - remembers string with CID, so it is lazily generated only once
    - switches createFromB58String to createFromCID (b58 is CIDv0),
      making it easier to migrate existing codebases.
    
    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    
    * docs: comment tests
    
    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    
    * feat: validate CID multicodec
    
    - require CID with 'libp2p-key' (CIDv1) or 'dag-pb' (CIDv0 converted to CIDv1)
    - delegate CID validation to CID constructor
    
    License: MIT
    Signed-off-by: Marcin Rataj <lidel@lidel.org>
    lidel authored and vasco-santos committed Nov 4, 2019
    Copy the full SHA
    544ca7d View commit details
  3. Copy the full SHA
    52bd949 View commit details
  4. Copy the full SHA
    4fbf859 View commit details

Commits on Nov 12, 2019

  1. Copy the full SHA
    bbf0416 View commit details
  2. Copy the full SHA
    5190526 View commit details
  3. Copy the full SHA
    b5335cd View commit details

Commits on Nov 28, 2019

  1. Copy the full SHA
    74cdb24 View commit details

Commits on Dec 18, 2019

  1. Copy the full SHA
    65e0b74 View commit details
  2. Copy the full SHA
    ffe04c1 View commit details
Showing with 1,663 additions and 512 deletions.
  1. +8 −0 .aegir.js
  2. +8 −0 .github/dependabot.yml
  3. +50 −0 .github/workflows/main.yml
  4. +0 −28 .npmignore
  5. +0 −32 .travis.yml
  6. +315 −0 CHANGELOG.md
  7. +119 −20 README.md
  8. +0 −29 appveyor.yml
  9. +0 −2 ci/Jenkinsfile
  10. +0 −15 circle.yml
  11. +52 −27 package.json
  12. +0 −13 src/bin.js
  13. +214 −0 src/index.d.ts
  14. +276 −137 src/index.js
  15. +71 −0 src/proto.d.ts
  16. +214 −0 src/proto.js
  17. +7 −0 src/proto.proto
  18. +2 −1 test/fixtures/sample-id.js
  19. +315 −208 test/peer-id.spec.js
  20. +12 −0 tsconfig.json
8 changes: 8 additions & 0 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict'

module.exports = {
build: {
bundlesizeMax: '121KB',
types: false
}
}
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
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

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
- run: npm run build
test-node:
needs: check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [16]
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install @mapbox/node-pre-gyp -g
- run: npm install
- run: npx aegir test -t node --cov --bail
- uses: codecov/codecov-action@v1
test-chrome:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npx aegir test -t browser -t webworker --bail
test-firefox:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npx aegir test -t browser -t webworker --bail -- --browser firefox
28 changes: 0 additions & 28 deletions .npmignore

This file was deleted.

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

This file was deleted.

Loading