Skip to content

Commit

Permalink
deps: update aegir to 37.x.x (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Aug 11, 2022
1 parent 0c6fd46 commit bec52e7
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ updates:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
commit-message:
prefix: "deps"
prefix-development: "deps(dev)"
42 changes: 27 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
# hamt-sharding <!-- omit in toc -->

[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
[![Build Status](https://github.com/ipfs/js-hamt-sharding/actions/workflows/js-test-and-release.yml/badge.svg?branch=main)](https://github.com/ipfs/js-hamt-sharding/actions/workflows/js-test-and-release.yml)
[![Codecov](https://codecov.io/gh/ipfs-shipyard/js-hamt-sharding/branch/master/graph/badge.svg)](https://codecov.io/gh/ipfs-shipyard/js-hamt-sharding)
[![Dependency Status](https://david-dm.org/ipfs-shipyard/js-hamt-sharding.svg?style=flat-square)](https://david-dm.org/ipfs/js-hamt-sharding)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
![](https://img.shields.io/badge/npm-%3E%3D3.0.0-orange.svg?style=flat-square)
![](https://img.shields.io/badge/Node.js-%3E%3D10.0.0-orange.svg?style=flat-square)
[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)
[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)
[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-hamt-sharding.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-hamt-sharding)
[![CI](https://img.shields.io/github/workflow/status/ipfs/js-hamt-sharding/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-hamt-sharding/actions/workflows/js-test-and-release.yml)

> JavaScript implementation of hamt for use in sharding
> JavaScript implementation of sharding using hash array mapped tries
## Table of Contents <!-- omit in toc -->
## Table of contents <!-- omit in toc -->

- [Install](#install)
- [Usage](#usage)
Expand All @@ -33,11 +28,12 @@
- [`bucket.tableSize()`](#buckettablesize)
- [Contribute](#contribute)
- [License](#license)
- [Contribute](#contribute-1)

## Install

```
> npm install hamt-sharding
```console
$ npm i hamt-sharding
```

## Usage
Expand Down Expand Up @@ -131,6 +127,7 @@ console.info(bucket.childrenCount()) // 234 -- dependent on hashing algorithm
```

### `bucket.onlyChild()`

### `bucket.eachLeafSeries()`

```javascript
Expand All @@ -145,9 +142,13 @@ for await (const child of bucket.eachLeafSeries()) {
```

### `bucket.serialize(map, reduce)`

### `bucket.asyncTransform(asyncMap, asyncReduce)`

### `bucket.toJSON()`

### `bucket.prettyPrint()`

### `bucket.tableSize()`

## Contribute
Expand All @@ -160,4 +161,15 @@ This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/c

## License

[MIT](LICENSE)
Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

## Contribute

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-unixfs-importer/issues)!

This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)
37 changes: 20 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
Expand Down Expand Up @@ -66,15 +67,15 @@
"release": "patch"
},
{
"type": "chore",
"type": "docs",
"release": "patch"
},
{
"type": "docs",
"type": "test",
"release": "patch"
},
{
"type": "test",
"type": "deps",
"release": "patch"
},
{
Expand Down Expand Up @@ -104,7 +105,11 @@
},
{
"type": "docs",
"section": "Trivial Changes"
"section": "Documentation"
},
{
"type": "deps",
"section": "Dependencies"
},
{
"type": "test",
Expand All @@ -121,26 +126,24 @@
]
},
"scripts": {
"build": "tsc",
"pretest": "npm run build",
"test": "aegir test -f ./dist/test/*.js -f ./dist/test/**/*.js",
"test:node": "npm run test -- -t node",
"test:chrome": "npm run test -- -t browser",
"test:chrome-webworker": "npm run test -- -t webworker",
"test:firefox": "npm run test -- -t browser -- --browser firefox",
"test:firefox-webworker": "npm run test -- -t webworker -- --browser firefox",
"test:electron-main": "npm run test -- -t electron-main",
"prepare": "npm run build",
"build": "aegir build",
"test": "aegir test",
"test:node": "aegir test -t node --cov",
"test:chrome": "aegir test -t browser --cov",
"test:chrome-webworker": "aegir test -t webworker",
"test:firefox": "aegir test -t browser -- --browser firefox",
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
"test:electron-main": "aegir test -t electron-main",
"lint": "aegir lint",
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
"release": "semantic-release"
"dep-check": "aegir dep-check",
"release": "aegir release"
},
"dependencies": {
"sparse-array": "^1.3.1",
"uint8arrays": "^3.0.0"
},
"devDependencies": {
"aegir": "^36.1.3",
"aegir": "^37.5.0",
"it-length": "^1.0.3",
"multihashing-async": "^2.1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion test/hamt-consumable-buffer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env mocha */
import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'

import { ConsumableBuffer } from '../src/consumable-buffer.js'

Expand Down
2 changes: 1 addition & 1 deletion test/hamt-consumable-hash.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env mocha */
import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import multihashing from 'multihashing-async'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'

Expand Down
2 changes: 1 addition & 1 deletion test/hamt.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env mocha */
import { expect } from 'aegir/utils/chai.js'
import { expect } from 'aegir/chai'
import multihashing from 'multihashing-async'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import length from 'it-length'
Expand Down

0 comments on commit bec52e7

Please sign in to comment.