Skip to content

Commit 91f780e

Browse files
committed
merge upsteam changes
2 parents f21a1ba + 712c1c4 commit 91f780e

5 files changed

Lines changed: 22 additions & 9 deletions

File tree

.github/workflows/test-and-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Checkout Repository
1313
uses: actions/checkout@v3
1414
- name: Use Node.js ${{ matrix.node }}
15-
uses: actions/setup-node@v3.0.0
15+
uses: actions/setup-node@v3.3.0
1616
with:
1717
node-version: ${{ matrix.node }}
1818
- name: Install Dependencies
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
fetch-depth: 0
3535
- name: Setup Node.js
36-
uses: actions/setup-node@v3.0.0
36+
uses: actions/setup-node@v3.3.0
3737
with:
3838
node-version: 14
3939
- name: Install dependencies

.github/workflows/typecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v3
2020
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3.0.0
21+
uses: actions/setup-node@v3.3.0
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
- name: Install dependencies

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### [9.6.5](https://github.com/multiformats/js-multiformats/compare/v9.6.4...v9.6.5) (2022-05-06)
2+
3+
4+
### Trivial Changes
5+
6+
* **no-release:** bump actions/checkout from 2.4.0 to 3 ([#172](https://github.com/multiformats/js-multiformats/issues/172)) ([a1b38c2](https://github.com/multiformats/js-multiformats/commit/a1b38c235809287e284c7bde80634e669e6d1ac6))
7+
* **no-release:** bump actions/setup-node from 2.5.1 to 3.0.0 ([#169](https://github.com/multiformats/js-multiformats/issues/169)) ([8deb4d5](https://github.com/multiformats/js-multiformats/commit/8deb4d5dae2e01d8fd60f2dd6e944747c4ee2ef1))
8+
* **no-release:** bump actions/setup-node from 3.0.0 to 3.1.0 ([#174](https://github.com/multiformats/js-multiformats/issues/174)) ([9bcd7fe](https://github.com/multiformats/js-multiformats/commit/9bcd7fef62888d7cefe8e4f5e929d4e3c9dadda9))
9+
* **no-release:** bump mocha from 9.2.2 to 10.0.0 ([#179](https://github.com/multiformats/js-multiformats/issues/179)) ([b2951dc](https://github.com/multiformats/js-multiformats/commit/b2951dcbee5812522f2336bbf7c28eab9babdfa9))
10+
* **no-release:** bump polendina from 2.0.15 to 3.0.0 ([#180](https://github.com/multiformats/js-multiformats/issues/180)) ([659516b](https://github.com/multiformats/js-multiformats/commit/659516bb231bcc8332d93ded03ebcfa8e675f2dc))
11+
* **no-release:** bump standard from 16.0.4 to 17.0.0 ([#178](https://github.com/multiformats/js-multiformats/issues/178)) ([2683344](https://github.com/multiformats/js-multiformats/commit/268334426ca97f38a8c2eab0c834943c6e1a04d0))
12+
* update tsdoc for CID `code` param to clarify "what kind of code?" ([#181](https://github.com/multiformats/js-multiformats/issues/181)) ([adec0c4](https://github.com/multiformats/js-multiformats/commit/adec0c4714ef39879c3b059dc9a4882e19406420))
13+
114
### [9.6.4](https://github.com/multiformats/js-multiformats/compare/v9.6.3...v9.6.4) (2022-02-14)
215

316

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@
119119
"chai-as-promised": "^7.1.1",
120120
"cids": "^1.1.9",
121121
"ipjs": "^5.2.0",
122-
"mocha": "^9.1.3",
123-
"polendina": "^2.0.0",
124-
"standard": "^16.0.4",
122+
"mocha": "^10.0.0",
123+
"polendina": "^3.0.0",
124+
"standard": "^17.0.0",
125125
"typescript": "^4.5.4"
126126
},
127127
"standard": {

src/cid.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export const asCID = (input) => {
2525
return value
2626
} else if (value != null && value.asCID === value) {
2727
// If value isn't instance of this CID class but `this.asCID === this` is
28-
// true it is CID instance coming from a different implemnetation (diff
28+
// true it is CID instance coming from a different implementation (diff
2929
// version or duplicate). In that case we rebase it to this `CID`
30-
// implemnetation so caller is guaranteed to get instance with expected
30+
// implementation so caller is guaranteed to get instance with expected
3131
// API.
3232
const { version, code, multihash, bytes } = value
3333
return new CID(
@@ -283,7 +283,7 @@ const baseCache = (cid) => {
283283
export class CID {
284284
/**
285285
* @param {Version} version
286-
* @param {Format} code
286+
* @param {Format} code - multicodec code, see https://github.com/multiformats/multicodec/blob/master/table.csv
287287
* @param {API.MultihashDigest<Alg>} multihash
288288
* @param {Uint8Array} bytes
289289
*

0 commit comments

Comments
 (0)