Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
fix: update to new aegir (#115)
Browse files Browse the repository at this point in the history
- Updates aegir to v31
- Removes typeVersions

BREAKING CHANGE: No longer supports deep type imports only from the entrypoint.
  • Loading branch information
hugomrdias committed Mar 1, 2021
1 parent c530aeb commit 1d8348d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 25 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/main.yml
Expand Up @@ -18,7 +18,6 @@ jobs:
- 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:
Expand All @@ -27,30 +26,41 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [12, 14]
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 nyc --reporter=lcov aegir test -t node -- --bail
- run: npx aegir test -t node --bail --cov
- uses: codecov/codecov-action@v1
test-chrome:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
- run: npm install
- run: npx aegir test -t browser -t webworker --bail
- run: npx aegir test -t browser -t webworker --bail --cov
- uses: codecov/codecov-action@v1
test-firefox:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
- run: npm install
- run: npx aegir test -t browser -t webworker --bail -- --browser firefox
test-webkit:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
- run: npm install
- run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless
- run: npx aegir test -t browser -t webworker --bail -- --browser webkit
test-electron-main:
needs: check
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -35,4 +35,5 @@ node_modules

dist
docs
yarn.lock
yarn.lock
.nyc_output
26 changes: 10 additions & 16 deletions package.json
Expand Up @@ -30,30 +30,24 @@
},
"main": "src/index.js",
"types": "dist/src/index.d.ts",
"typesVersions": {
"*": {
"src/*": [
"dist/src/*",
"dist/src/*/index"
],
"src/": [
"dist/src/index"
]
}
},
"repository": "github:multiformats/js-multihash",
"dependencies": {
"multibase": "^3.1.0",
"uint8arrays": "^2.0.5",
"multibase": "^4.0.1",
"uint8arrays": "^2.1.3",
"varint": "^6.0.0"
},
"devDependencies": {
"aegir": "^30.3.0",
"ipfs-utils": "^5.0.1"
"aegir": "^31.0.0",
"ipfs-utils": "^6.0.1"
},
"eslintConfig": {
"extends": "ipfs"
},
"aegir": {
"build": {
"bundlesizeMax": "5.8kB"
}
},
"contributors": [
"David Dias <daviddias.p@gmail.com>",
"Hugo Dias <hugomrdias@gmail.com>",
Expand All @@ -79,7 +73,7 @@
"Alan Shaw <alan@tableflip.io>"
],
"engines": {
"node": ">=10.0.0",
"node": ">=14.0.0",
"npm": ">=6.0.0"
}
}
5 changes: 2 additions & 3 deletions src/index.js
@@ -1,7 +1,5 @@
/**
* Multihash implementation in JavaScript.
*
* @module multihash
*/
'use strict'

Expand All @@ -19,6 +17,7 @@ for (const key in names) {
const name = /** @type {HashName} */(key)
codes[names[name]] = name
}
Object.freeze(codes)

/**
* Convert the given multihash to a hex encoded string.
Expand Down Expand Up @@ -229,7 +228,7 @@ function prefix (multihash) {

module.exports = {
names,
codes: Object.freeze(codes),
codes,
toHexString,
fromHexString,
toB58String,
Expand Down
File renamed without changes.

0 comments on commit 1d8348d

Please sign in to comment.