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

Commit 74aee8b

Browse files
authoredMay 16, 2022
feat: update to libp2p 0.37.x (#4092)
Upgrades libp2p and all supporting versions to the latest version. BREAKING CHANGE: This module is now ESM only and there return types of some methods have changed
1 parent 361dab6 commit 74aee8b

File tree

699 files changed

+4864
-4639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

699 files changed

+4864
-4639
lines changed
 

‎.github/workflows/examples.yml

+109-115
Original file line numberDiff line numberDiff line change
@@ -18,119 +18,113 @@ jobs:
1818
with:
1919
node-version: lts/*
2020
- uses: ipfs/aegir/actions/cache-node-modules@master
21-
with:
22-
build: |
23-
npm run link
2421

25-
test-examples:
26-
name: Test example ${{ matrix.example.name }}
27-
needs: build
28-
runs-on: ubuntu-latest
29-
continue-on-error: true
30-
strategy:
31-
matrix:
32-
example:
33-
- name: ipfs browser add readable stream
34-
repo: https://github.com/ipfs-examples/js-ipfs-browser-add-readable-stream.git
35-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
36-
- name: ipfs browser angular
37-
repo: https://github.com/ipfs-examples/js-ipfs-browser-angular.git
38-
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-core-types@$PWD/packages/ipfs-core-types/dist
39-
- name: ipfs browser browserify
40-
repo: https://github.com/ipfs-examples/js-ipfs-browser-browserify.git
41-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
42-
- name: ipfs browser react
43-
repo: https://github.com/ipfs-examples/js-ipfs-browser-create-react-app.git
44-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
45-
- name: ipfs browser exchange files
46-
repo: https://github.com/ipfs-examples/js-ipfs-browser-exchange-files.git
47-
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs@$PWD/packages/ipfs/dist,ipfs-core-types@$PWD/packages/ipfs-core-types/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
48-
- name: ipfs browser ipns publish
49-
repo: https://github.com/ipfs-examples/js-ipfs-browser-ipns-publish.git
50-
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
51-
- name: ipfs browser mfs
52-
repo: https://github.com/ipfs-examples/js-ipfs-browser-mfs.git
53-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
54-
# fails with No native build was found for platform=darwin arch=x64 runtime=node abi=93 uv=1 libc=glibc node=16.13.0 webpack=true
55-
#- name: ipfs browser nextjs
56-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-nextjs.git
57-
# deps: ipfs-core@$PWD/packages/ipfs-core/dist
58-
- name: ipfs browser parceljs
59-
repo: https://github.com/ipfs-examples/js-ipfs-browser-parceljs.git
60-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
61-
- name: ipfs browser readable stream
62-
repo: https://github.com/ipfs-examples/js-ipfs-browser-readablestream.git
63-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
64-
- name: ipfs browser service worker
65-
repo: https://github.com/ipfs-examples/js-ipfs-browser-service-worker.git
66-
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client/dist,ipfs-message-port-protocol@$PWD/packages/ipfs-message-port-protocol/dist,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server/dist
67-
- name: ipfs browser sharing across tabs
68-
repo: https://github.com/ipfs-examples/js-ipfs-browser-sharing-node-across-tabs.git
69-
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client/dist,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server/dist
70-
- name: ipfs browser video streaming
71-
repo: https://github.com/ipfs-examples/js-ipfs-browser-video-streaming.git
72-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
73-
- name: ipfs browser vue
74-
repo: https://github.com/ipfs-examples/js-ipfs-browser-vue.git
75-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
76-
- name: ipfs browser webpack
77-
repo: https://github.com/ipfs-examples/js-ipfs-browser-webpack.git
78-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
79-
- name: ipfs circuit relaying
80-
repo: https://github.com/ipfs-examples/js-ipfs-circuit-relaying.git
81-
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
82-
- name: ipfs custom ipfs repo
83-
repo: https://github.com/ipfs-examples/js-ipfs-custom-ipfs-repo.git
84-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
85-
- name: ipfs custom ipld formats
86-
repo: https://github.com/ipfs-examples/js-ipfs-custom-ipld-formats.git
87-
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-daemon@$PWD/packages/ipfs-daemon/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
88-
- name: ipfs custom libp2p
89-
repo: https://github.com/ipfs-examples/js-ipfs-custom-libp2p.git
90-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
91-
- name: ipfs-http-client browser pubsub
92-
repo: https://github.com/ipfs-examples/js-ipfs-http-client-browser-pubsub.git
93-
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist,ipfs@$PWD/packages/ipfs/dist
94-
- name: ipfs-http-client bundle webpack
95-
repo: https://github.com/ipfs-examples/js-ipfs-http-client-bundle-webpack.git
96-
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist,ipfs@$PWD/packages/ipfs/dist
97-
- name: ipfs-http-client name api
98-
repo: https://github.com/ipfs-examples/js-ipfs-http-client-name-api.git
99-
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist
100-
- name: ipfs-http-client upload file
101-
repo: https://github.com/ipfs-examples/js-ipfs-http-client-upload-file.git
102-
deps: ipfs@$PWD/packages/ipfs/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
103-
- name: ipfs 101
104-
repo: https://github.com/ipfs-examples/js-ipfs-101.git
105-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
106-
- name: ipfs-client add files
107-
repo: https://github.com/ipfs-examples/js-ipfs-ipfs-client-add-files.git
108-
deps: ipfs@$PWD/packages/ipfs/dist,ipfs-client@$PWD/packages/ipfs-client/dist
109-
- name: ipfs electron js
110-
repo: https://github.com/ipfs-examples/js-ipfs-run-in-electron.git
111-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
112-
- name: ipfs running multiple nodes
113-
repo: https://github.com/ipfs-examples/js-ipfs-running-multiple-nodes.git
114-
deps: ipfs@$PWD/packages/ipfs/dist
115-
- name: ipfs traverse ipld graphs
116-
repo: https://github.com/ipfs-examples/js-ipfs-traverse-ipld-graphs.git
117-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
118-
- name: types with typescript
119-
repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-ts.git
120-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
121-
- name: types with typed js
122-
repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-typed-js.git
123-
deps: ipfs-core@$PWD/packages/ipfs-core/dist
124-
steps:
125-
- uses: actions/checkout@v2
126-
- uses: actions/setup-node@v2
127-
with:
128-
node-version: lts/*
129-
- uses: ipfs/aegir/actions/cache-node-modules@master
130-
with:
131-
build: |
132-
npm run link
133-
- uses: GabrielBB/xvfb-action@v1
134-
name: Run npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
135-
with:
136-
run: npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
22+
# test-examples:
23+
# name: Test example ${{ matrix.example.name }}
24+
# needs: build
25+
# runs-on: ubuntu-latest
26+
# continue-on-error: true
27+
# strategy:
28+
# matrix:
29+
# example:
30+
# - name: ipfs browser add readable stream
31+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-add-readable-stream.git
32+
# deps: ipfs-core@$PWD/packages/ipfs-core
33+
# - name: ipfs browser angular
34+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-angular.git
35+
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-core-types@$PWD/packages/ipfs-core-types
36+
# - name: ipfs browser browserify
37+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-browserify.git
38+
# deps: ipfs-core@$PWD/packages/ipfs-core
39+
# - name: ipfs browser react
40+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-create-react-app.git
41+
# deps: ipfs-core@$PWD/packages/ipfs-core
42+
# - name: ipfs browser exchange files
43+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-exchange-files.git
44+
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs@$PWD/packages/ipfs,ipfs-core-types@$PWD/packages/ipfs-core-types,ipfs-http-client@$PWD/packages/ipfs-http-client
45+
# - name: ipfs browser ipns publish
46+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-ipns-publish.git
47+
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-http-client@$PWD/packages/ipfs-http-client
48+
# - name: ipfs browser mfs
49+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-mfs.git
50+
# deps: ipfs-core@$PWD/packages/ipfs-core
51+
# # fails with No native build was found for platform=darwin arch=x64 runtime=node abi=93 uv=1 libc=glibc node=16.13.0 webpack=true
52+
# #- name: ipfs browser nextjs
53+
# # repo: https://github.com/ipfs-examples/js-ipfs-browser-nextjs.git
54+
# # deps: ipfs-core@$PWD/packages/ipfs-core
55+
# - name: ipfs browser parceljs
56+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-parceljs.git
57+
# deps: ipfs-core@$PWD/packages/ipfs-core
58+
# - name: ipfs browser readable stream
59+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-readablestream.git
60+
# deps: ipfs-core@$PWD/packages/ipfs-core
61+
# - name: ipfs browser service worker
62+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-service-worker.git
63+
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client,ipfs-message-port-protocol@$PWD/packages/ipfs-message-port-protocol,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server
64+
# - name: ipfs browser sharing across tabs
65+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-sharing-node-across-tabs.git
66+
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server
67+
# - name: ipfs browser video streaming
68+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-video-streaming.git
69+
# deps: ipfs-core@$PWD/packages/ipfs-core
70+
# - name: ipfs browser vue
71+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-vue.git
72+
# deps: ipfs-core@$PWD/packages/ipfs-core
73+
# - name: ipfs browser webpack
74+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-webpack.git
75+
# deps: ipfs-core@$PWD/packages/ipfs-core
76+
# - name: ipfs circuit relaying
77+
# repo: https://github.com/ipfs-examples/js-ipfs-circuit-relaying.git
78+
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-http-client@$PWD/packages/ipfs-http-client
79+
# - name: ipfs custom ipfs repo
80+
# repo: https://github.com/ipfs-examples/js-ipfs-custom-ipfs-repo.git
81+
# deps: ipfs-core@$PWD/packages/ipfs-core
82+
# - name: ipfs custom ipld formats
83+
# repo: https://github.com/ipfs-examples/js-ipfs-custom-ipld-formats.git
84+
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-daemon@$PWD/packages/ipfs-daemon,ipfs-http-client@$PWD/packages/ipfs-http-client
85+
# - name: ipfs custom libp2p
86+
# repo: https://github.com/ipfs-examples/js-ipfs-custom-libp2p.git
87+
# deps: ipfs-core@$PWD/packages/ipfs-core
88+
# - name: ipfs-http-client browser pubsub
89+
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-browser-pubsub.git
90+
# deps: ipfs-http-client@$PWD/packages/ipfs-http-client,ipfs@$PWD/packages/ipfs
91+
# - name: ipfs-http-client bundle webpack
92+
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-bundle-webpack.git
93+
# deps: ipfs-http-client@$PWD/packages/ipfs-http-client,ipfs@$PWD/packages/ipfs
94+
# - name: ipfs-http-client name api
95+
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-name-api.git
96+
# deps: ipfs-http-client@$PWD/packages/ipfs-http-client
97+
# - name: ipfs-http-client upload file
98+
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-upload-file.git
99+
# deps: ipfs@$PWD/packages/ipfs,ipfs-http-client@$PWD/packages/ipfs-http-client
100+
# - name: ipfs 101
101+
# repo: https://github.com/ipfs-examples/js-ipfs-101.git
102+
# deps: ipfs-core@$PWD/packages/ipfs-core
103+
# - name: ipfs-client add files
104+
# repo: https://github.com/ipfs-examples/js-ipfs-ipfs-client-add-files.git
105+
# deps: ipfs@$PWD/packages/ipfs,ipfs-client@$PWD/packages/ipfs-client
106+
# - name: ipfs electron js
107+
# repo: https://github.com/ipfs-examples/js-ipfs-run-in-electron.git
108+
# deps: ipfs-core@$PWD/packages/ipfs-core
109+
# - name: ipfs running multiple nodes
110+
# repo: https://github.com/ipfs-examples/js-ipfs-running-multiple-nodes.git
111+
# deps: ipfs@$PWD/packages/ipfs
112+
# - name: ipfs traverse ipld graphs
113+
# repo: https://github.com/ipfs-examples/js-ipfs-traverse-ipld-graphs.git
114+
# deps: ipfs-core@$PWD/packages/ipfs-core
115+
# - name: types with typescript
116+
# repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-ts.git
117+
# deps: ipfs-core@$PWD/packages/ipfs-core
118+
# - name: types with typed js
119+
# repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-typed-js.git
120+
# deps: ipfs-core@$PWD/packages/ipfs-core
121+
# steps:
122+
# - uses: actions/checkout@v2
123+
# - uses: actions/setup-node@v2
124+
# with:
125+
# node-version: lts/*
126+
# - uses: ipfs/aegir/actions/cache-node-modules@master
127+
# - uses: GabrielBB/xvfb-action@v1
128+
# name: Run npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
129+
# with:
130+
# run: npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}

‎.github/workflows/externals.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ jobs:
1818
with:
1919
node-version: lts/*
2020
- uses: ipfs/aegir/actions/cache-node-modules@master
21-
with:
22-
build: |
23-
npm run link
2421

2522
test-externals:
2623
name: Test external ${{ matrix.external.name }}
@@ -31,25 +28,22 @@ jobs:
3128
external:
3229
- name: ipfs webui
3330
repo: https://github.com/ipfs-shipyard/ipfs-webui.git
34-
deps: ipfs@$PWD/packages/ipfs/dist
31+
deps: ipfs@$PWD/packages/ipfs
3532
- name: ipfs companion
3633
repo: https://github.com/ipfs-shipyard/ipfs-companion.git
37-
deps: ipfs@$PWD/packages/ipfs/dist
34+
deps: ipfs@$PWD/packages/ipfs
3835
- name: orbit-db-io
3936
repo: https://github.com/orbitdb/orbit-db-io.git
40-
deps: ipfs@$PWD/packages/ipfs/dist
37+
deps: ipfs@$PWD/packages/ipfs
4138
- name: ipfs-log
4239
repo: https://github.com/orbitdb/ipfs-log.git
43-
deps: ipfs@$PWD/packages/ipfs/dist,orbit-db-io@next
40+
deps: ipfs@$PWD/packages/ipfs,orbit-db-io@next
4441
steps:
4542
- uses: actions/checkout@v2
4643
- uses: actions/setup-node@v2
4744
with:
4845
node-version: lts/*
4946
- uses: ipfs/aegir/actions/cache-node-modules@master
50-
with:
51-
build: |
52-
npm run link
5347
- uses: GabrielBB/xvfb-action@v1
5448
name: Run npm run test:external -- -- -- ${{ matrix.external.repo }} --deps ${{ matrix.external.deps }} --branch ${{ matrix.external.branch }}
5549
continue-on-error: true

0 commit comments

Comments
 (0)
This repository has been archived.