Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
language: node_js
cache: npm
branches:
only:
- master
- /^release\/.*$/
stages:
- check
- test
- cov

node_js:
- '12'
- '14'
- '15'

os:
- linux
- osx
- windows

script: npx nyc -s npm run test:node -- --bail
script: npx nyc -s npm run test -- -t node --bail
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov

jobs:
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
- [`bucket.toJSON()`](#buckettojson)
- [`bucket.prettyPrint()`](#bucketprettyprint)
- [`bucket.tableSize()`](#buckettablesize)
- [`hamt.isBucket(other)`](#hamtisbucketother)
- [Contribute](#contribute)
- [License](#license)

Expand Down Expand Up @@ -157,15 +156,6 @@ for await (const child of bucket.eachLeafSeries()) {
### `bucket.toJSON()`
### `bucket.prettyPrint()`
### `bucket.tableSize()`
### `hamt.isBucket(other)`

```javascript
const hamt = require('hamt-sharding')
const bucket = hamt({...})

console.info(hamt.isBucket(bucket)) // true
console.info(hamt.isBucket(true)) // false
```

## Contribute

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"main": "src/index.js",
"scripts": {
"test": "aegir test",
"test:node": "aegir test -t node",
"test:browser": "aegir test -t browser",
"test:webworker": "aegir test -t webworker",
"build": "aegir build",
"prepare": "aegir build --no-bundle",
"lint": "aegir lint",
"release": "aegir release",
"release-minor": "aegir release --type minor",
Expand All @@ -35,14 +32,17 @@
},
"homepage": "https://github.com/ipfs-shipyard/js-hamt-sharding#readme",
"devDependencies": {
"aegir": "^20.5.0",
"aegir": "^30.3.0",
"chai": "^4.2.0",
"dirty-chai": "^2.0.1"
"dirty-chai": "^2.0.1",
"multihashing-async": "^2.1.0"
},
"dependencies": {
"sparse-array": "^1.3.1"
"sparse-array": "^1.3.1",
"uint8arrays": "^2.1.2"
},
"contributors": [
"achingbrain <[email protected]>"
]
],
"types": "dist/src/index.d.ts"
}
Loading