Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit ae7cbc9

Browse files
authored
feat!: update helia to v3 and multiformats to v13 (#87)
Updates all deps and fixes linting errors. BREAKING CHANGE: uses multiformats v13 and helia v3
1 parent 1184ea6 commit ae7cbc9

File tree

12 files changed

+123
-248
lines changed

12 files changed

+123
-248
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ updates:
55
schedule:
66
interval: daily
77
time: "10:00"
8-
open-pull-requests-limit: 10
8+
open-pull-requests-limit: 20
99
commit-message:
1010
prefix: "deps"
1111
prefix-development: "deps(dev)"
Lines changed: 18 additions & 173 deletions
Original file line numberDiff line numberDiff line change
@@ -1,182 +1,27 @@
11
name: test & maybe release
2+
23
on:
34
push:
45
branches:
56
- main
67
pull_request:
8+
workflow_dispatch:
79

8-
jobs:
9-
10-
check:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
15-
with:
16-
node-version: lts/*
17-
- uses: ipfs/aegir/actions/cache-node-modules@master
18-
- run: npm run --if-present lint
19-
- run: npm run --if-present dep-check
20-
- run: npm run --if-present doc-check
21-
22-
test-node:
23-
needs: check
24-
runs-on: ${{ matrix.os }}
25-
strategy:
26-
matrix:
27-
os: [windows-latest, ubuntu-latest, macos-latest]
28-
node: [lts/*]
29-
fail-fast: true
30-
steps:
31-
- uses: actions/checkout@v3
32-
- uses: actions/setup-node@v3
33-
with:
34-
node-version: ${{ matrix.node }}
35-
- uses: ipfs/aegir/actions/cache-node-modules@master
36-
- run: npm run --if-present test:node
37-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
38-
with:
39-
flags: node
40-
41-
test-chrome:
42-
needs: check
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v3
46-
- uses: actions/setup-node@v3
47-
with:
48-
node-version: lts/*
49-
- uses: ipfs/aegir/actions/cache-node-modules@master
50-
- run: npm run --if-present test:chrome
51-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
52-
with:
53-
flags: chrome
54-
55-
test-chrome-webworker:
56-
needs: check
57-
runs-on: ubuntu-latest
58-
steps:
59-
- uses: actions/checkout@v3
60-
- uses: actions/setup-node@v3
61-
with:
62-
node-version: lts/*
63-
- uses: ipfs/aegir/actions/cache-node-modules@master
64-
- run: npm run --if-present test:chrome-webworker
65-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
66-
with:
67-
flags: chrome-webworker
10+
permissions:
11+
contents: write
12+
id-token: write
13+
packages: write
14+
pull-requests: write
6815

69-
test-firefox:
70-
needs: check
71-
runs-on: ubuntu-latest
72-
steps:
73-
- uses: actions/checkout@v3
74-
- uses: actions/setup-node@v3
75-
with:
76-
node-version: lts/*
77-
- uses: ipfs/aegir/actions/cache-node-modules@master
78-
- run: npm run --if-present test:firefox
79-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
80-
with:
81-
flags: firefox
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
18+
cancel-in-progress: true
8219

83-
test-firefox-webworker:
84-
needs: check
85-
runs-on: ubuntu-latest
86-
steps:
87-
- uses: actions/checkout@v3
88-
- uses: actions/setup-node@v3
89-
with:
90-
node-version: lts/*
91-
- uses: ipfs/aegir/actions/cache-node-modules@master
92-
- run: npm run --if-present test:firefox-webworker
93-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
94-
with:
95-
flags: firefox-webworker
96-
97-
test-webkit:
98-
needs: check
99-
runs-on: ${{ matrix.os }}
100-
strategy:
101-
matrix:
102-
os: [ubuntu-latest, macos-latest]
103-
node: [lts/*]
104-
fail-fast: true
105-
steps:
106-
- uses: actions/checkout@v3
107-
- uses: actions/setup-node@v3
108-
with:
109-
node-version: lts/*
110-
- uses: ipfs/aegir/actions/cache-node-modules@master
111-
- run: npm run --if-present test:webkit
112-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
113-
with:
114-
flags: webkit
115-
116-
test-webkit-webworker:
117-
needs: check
118-
runs-on: ${{ matrix.os }}
119-
strategy:
120-
matrix:
121-
os: [ubuntu-latest, macos-latest]
122-
node: [lts/*]
123-
fail-fast: true
124-
steps:
125-
- uses: actions/checkout@v3
126-
- uses: actions/setup-node@v3
127-
with:
128-
node-version: lts/*
129-
- uses: ipfs/aegir/actions/cache-node-modules@master
130-
- run: npm run --if-present test:webkit-webworker
131-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
132-
with:
133-
flags: webkit-webworker
134-
135-
test-electron-main:
136-
needs: check
137-
runs-on: ubuntu-latest
138-
steps:
139-
- uses: actions/checkout@v3
140-
- uses: actions/setup-node@v3
141-
with:
142-
node-version: lts/*
143-
- uses: ipfs/aegir/actions/cache-node-modules@master
144-
- run: npx xvfb-maybe npm run --if-present test:electron-main
145-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
146-
with:
147-
flags: electron-main
148-
149-
test-electron-renderer:
150-
needs: check
151-
runs-on: ubuntu-latest
152-
steps:
153-
- uses: actions/checkout@v3
154-
- uses: actions/setup-node@v3
155-
with:
156-
node-version: lts/*
157-
- uses: ipfs/aegir/actions/cache-node-modules@master
158-
- run: npx xvfb-maybe npm run --if-present test:electron-renderer
159-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
160-
with:
161-
flags: electron-renderer
162-
163-
release:
164-
needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-webkit, test-webkit-webworker, test-electron-main, test-electron-renderer]
165-
runs-on: ubuntu-latest
166-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
167-
steps:
168-
- uses: actions/checkout@v3
169-
with:
170-
fetch-depth: 0
171-
- uses: actions/setup-node@v3
172-
with:
173-
node-version: lts/*
174-
- uses: ipfs/aegir/actions/cache-node-modules@master
175-
- uses: ipfs/aegir/actions/docker-login@master
176-
with:
177-
docker-token: ${{ secrets.DOCKER_TOKEN }}
178-
docker-username: ${{ secrets.DOCKER_USERNAME }}
179-
- run: npm run --if-present release
180-
env:
181-
GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN || github.token }}
182-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
jobs:
21+
js-test-and-release:
22+
uses: pl-strflt/uci/.github/workflows/[email protected]
23+
secrets:
24+
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
25+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Semantic PR
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
uses: pl-strflt/.github/.github/workflows/[email protected]

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</a>
55
</p>
66

7-
# @helia/strings <!-- omit in toc -->
7+
# @helia/strings
88

99
[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)
1010
[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)
@@ -13,30 +13,23 @@
1313

1414
> Add/get IPLD blocks containing strings with your Helia node
1515
16-
## Table of contents <!-- omit in toc -->
17-
18-
- [Structure](#structure)
19-
- [API Docs](#api-docs)
20-
- [License](#license)
21-
- [Contribute](#contribute)
22-
23-
## Structure
16+
# Packages
2417

2518
- [`/packages/interop`](./packages/interop) Interop tests for @helia/strings
2619
- [`/packages/strings`](./packages/strings) Add/get IPLD blocks containing strings with your Helia node
2720

28-
## API Docs
21+
# API Docs
2922

3023
- <https://ipfs.github.io/helia-strings>
3124

32-
## License
25+
# License
3326

3427
Licensed under either of
3528

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

39-
## Contribute
32+
# Contribute
4033

4134
Contributions welcome! Please check out [the issues](https://github.com/ipfs/helia-strings/issues).
4235

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"bugs": {
1212
"url": "https://github.com/ipfs/helia-strings/issues"
1313
},
14+
"publishConfig": {
15+
"access": "public",
16+
"provenance": true
17+
},
1418
"keywords": [
1519
"ipfs"
1620
],
@@ -36,7 +40,7 @@
3640
"docs:no-publish": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs --publish false -- --exclude packages/interop"
3741
},
3842
"devDependencies": {
39-
"aegir": "^41.0.0",
43+
"aegir": "^42.0.1",
4044
"npm-run-all": "^4.1.5"
4145
},
4246
"type": "module",

packages/interop/README.md

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</a>
55
</p>
66

7-
# @helia/strings-interop <!-- omit in toc -->
7+
# @helia/strings-interop
88

99
[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)
1010
[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)
@@ -13,40 +13,14 @@
1313

1414
> Interop tests for @helia/strings
1515
16-
## Table of contents <!-- omit in toc -->
17-
18-
- [Install](#install)
19-
- [Browser `<script>` tag](#browser-script-tag)
20-
- [API Docs](#api-docs)
21-
- [License](#license)
22-
- [Contribute](#contribute)
23-
24-
## Install
25-
26-
```console
27-
$ npm i @helia/strings-interop
28-
```
29-
30-
### Browser `<script>` tag
31-
32-
Loading this module through a script tag will make it's exports available as `HeliaStringsInterop` in the global namespace.
33-
34-
```html
35-
<script src="https://unpkg.com/@helia/strings-interop/dist/index.min.js"></script>
36-
```
37-
38-
## API Docs
39-
40-
- <https://ipfs.github.io/helia-strings/modules/_helia_strings_interop.html>
41-
42-
## License
16+
# License
4317

4418
Licensed under either of
4519

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

49-
## Contribute
23+
# Contribute
5024

5125
Contributions welcome! Please check out [the issues](https://github.com/ipfs/helia-strings/issues).
5226

0 commit comments

Comments
 (0)