164 Commits

Author SHA1 Message Date
Pavel Murygin
85dac48621 bump dependencies 2021-04-09 17:10:55 +03:00
Vasco Santos
927a6cf078 chore: update contributors 2021-04-06 14:09:48 +02:00
Vasco Santos
73fe2c553f chore: add no types to release script 2021-04-06 14:04:43 +02:00
Alex Potsides
719ddfe8e2
chore: update deps (#143) 2021-04-06 13:59:19 +02:00
Vasco Santos
af47794289 chore: update contributors 2021-03-29 12:57:18 +02:00
Vasco Santos
f895151451 chore: update contributors 2021-01-26 09:22:15 +01:00
Vasco Santos
e7d0eaa796
chore: update deps (#137) 2021-01-26 09:10:46 +01:00
Vasco Santos
d940099131 chore: update contributors 2020-09-23 19:11:12 +02:00
Vasco Santos
153bc8ea38 chore: update contributors 2020-09-03 18:49:01 +02:00
Jacob Heun
427b46c86e
chore: update contributors 2020-08-07 17:41:52 +02:00
Alex Potsides
d16ce9c2ac
fix: replace node buffers with uint8arrays (#127)
* fix: replace node buffers with uint8arrays

Replaces all uses of node Buffers with Uint8Arrays

BREAKING CHANGES:

- Where node Buffers were returned, now Uint8Arrays are

* chore: remove gh dep
2020-08-07 17:36:22 +02:00
Vasco Santos
c295329300 chore: update contributors 2020-06-23 18:58:04 +02:00
Alex Potsides
bb32b12395
chore: update deps (#126)
Allows for deduping multihashes module
2020-06-23 18:43:30 +02:00
dependabot-preview[bot]
6fd5ca2a12
chore(deps-dev): bump aegir from 21.10.2 to 22.0.0 (#124)
Bumps [aegir](https://github.com/ipfs/aegir) from 21.10.2 to 22.0.0.
- [Release notes](https://github.com/ipfs/aegir/releases)
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ipfs/aegir/compare/v21.10.2...v22.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-28 18:10:20 +02:00
Vasco Santos
e3da29a440 chore: update contributors 2020-04-22 16:35:07 +02:00
Jacob Heun
8cd9dfb137
feat(cli): add support for specifying type and size (#122) 2020-04-22 16:32:38 +02:00
Vasco Santos
5ec88281e2 chore: update contributors 2020-03-26 09:07:55 +01:00
dependabot-preview[bot]
a80c481146
chore(deps): bump cids from 0.7.5 to 0.8.0 (#121)
Bumps [cids](https://github.com/multiformats/js-cid) from 0.7.5 to 0.8.0.
- [Release notes](https://github.com/multiformats/js-cid/releases)
- [Changelog](https://github.com/multiformats/js-cid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/multiformats/js-cid/compare/v0.7.5...v0.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-26 09:05:51 +01:00
Vasco Santos
16e1c74e9a chore: update contributors 2020-03-18 17:38:40 +01:00
Hugo Dias
c305c36b26
fix: add buffer (#120)
related to this https://github.com/ipfs/js-ipfs/issues/2924
2020-03-18 17:33:29 +01:00
dependabot-preview[bot]
7e985b127f
chore(deps-dev): bump @types/mocha from 5.2.7 to 7.0.2 (#119)
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 5.2.7 to 7.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-04 14:23:01 +01:00
dependabot-preview[bot]
40d68cb512 chore(deps-dev): bump aegir from 20.6.1 to 21.2.0
Bumps [aegir](https://github.com/ipfs/aegir) from 20.6.1 to 21.2.0.
- [Release notes](https://github.com/ipfs/aegir/releases)
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ipfs/aegir/compare/v20.6.1...v21.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 08:14:43 -05:00
Vasco Santos
9dc7ce5f5e chore: update contributors 2020-02-19 12:06:42 -05:00
Vasco Santos
71d3a100c9 chore: update contributors 2020-02-18 08:44:52 -05:00
Jacob Heun
d8c307a44f
chore: update contributors 2020-01-27 12:09:59 +01:00
Carson Farmer
a5070aea6e feat: adds typescript types + type tests (#110)
* feat: adds typescript types + type tests

Signed-off-by: Carson Farmer <carson.farmer@gmail.com>

* feat: updates to latest cids release

Signed-off-by: Carson Farmer <carson.farmer@gmail.com>
2020-01-27 12:07:52 +01:00
Vasco Santos
ffe04c12a0 chore: update contributors 2019-12-18 10:43:10 +00:00
Vasco Santos
519052693d chore: update contributors 2019-11-12 15:06:13 +01:00
Vasco Santos
52bd949b43 chore: update contributors 2019-11-04 19:15:07 +01:00
Marcin Rataj
544ca7d74b 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 https://github.com/libp2p/specs/pull/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>
2019-11-04 18:22:29 +01:00
Vasco Santos
8ea480a3b0 chore: update contributors 2019-09-25 16:30:21 +02:00
Vasco Santos
911aa634d3
chore: lead maintainer update (#98) 2019-07-30 21:17:24 +02:00
Jacob Heun
1f1f86f576
chore: update contributors 2019-07-12 18:43:04 +01:00
Maciej Krüger
76864184da feat: add compact protobuf format (#76)
* docs: document .createFromProtobuf and .marshal
* fix: lint
* test: verify .marshal() does it's job
2019-07-12 18:35:46 +01:00
Jacob Heun
6754752b05
chore: update contributors 2019-07-11 20:38:23 +01:00
Arve Knudsen
17440a3f9a feat(peerid): support creating from secp256k1; harmonize algo with Go (#95) 2019-07-11 20:31:39 +01:00
Jacob Heun
52ed9c58a5
chore: update contributors 2019-07-11 18:26:18 +01:00
Henrique Dias
c3463c7421 feat: async await (#87)
BREAKING CHANGE: API refactored to use async/await
2019-07-11 18:09:21 +01:00
Vasco Santos
bbabd7451e chore: add discourse badge (#93) 2019-04-18 19:32:14 +02:00
Pedro Teixeira
ce8a6ff77e chore: update contributors 2019-01-09 15:14:15 +00:00
Hugo Dias
41ce1d4671 chore: fix lint 2019-01-09 15:03:49 +00:00
Hugo Dias
231e553a22 chore: fix lint 2019-01-09 15:03:49 +00:00
Hugo Dias
cd2099305e fix: clean repo and bundle size reduction 2019-01-09 15:03:49 +00:00
Pedro Teixeira
9f69e1ba74 chore: update contributors 2019-01-03 17:10:26 +00:00
Vasco Santos
77000dbd8b chore: update dependencies 2019-01-03 16:46:46 +00:00
Pedro Teixeira
eb062759c6 chore: release version v0.12.0 2018-10-18 11:00:01 +01:00
Pedro Teixeira
39e17c0c0b chore: update contributors 2018-10-18 11:00:01 +01:00
Pedro Teixeira
e03a4098df chore: update contributors 2018-10-18 10:57:19 +01:00
Vasco Santos
6513a02e1e feat: add class-is module 2018-10-04 11:29:31 +01:00
David Dias
bd1dc9bda0
chore: release version v0.11.0 2018-07-02 19:28:04 +02:00