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

Commit 8ff0548

Browse files
authored
feat: use kubo-rpc-client (#517)
* feat: use kubo-rpc-client fixes ipfs/js-kubo-rpc-client#37 * fix(http-client-name-api): re-add ipfs-http-client
1 parent 49250ad commit 8ff0548

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

examples/browser-ipns-publish/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"dependencies": {
2626
"@libp2p/websockets": "^3.0.3",
2727
"ipfs-core": "^0.16.0",
28-
"ipfs-http-client": "^58.0.0",
28+
"kubo-rpc-client": "^1.0.1",
2929
"ipfs-utils": "^9.0.6",
3030
"ipns": "^2.0.3",
3131
"it-last": "^1.0.4",

examples/browser-ipns-publish/tests/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { test, expect } from '@playwright/test'
22
import { playwright } from 'test-util-ipfs-example'
33
import * as goIpfsModule from 'go-ipfs'
4-
import * as ipfsHttpModule from 'ipfs-http-client'
4+
import * as kuboRpcModule from 'kubo-rpc-client'
55

66
// Setup
77
const play = test.extend({
88
...playwright.servers(),
99
...playwright.daemons(
1010
{
11-
ipfsHttpModule,
11+
kuboRpcModule,
1212
ipfsBin: goIpfsModule.path(),
1313
args: [
1414
"--enable-pubsub-experiment",

examples/http-client-browser-pubsub/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
},
1616
"browserslist": "last 1 Chrome version",
1717
"dependencies": {
18-
"ipfs-http-client": "^58.0.0"
18+
"ipfs-http-client": "^58.0.0",
19+
"kubo-rpc-client": "^1.0.1"
1920
},
2021
"devDependencies": {
2122
"@babel/core": "^7.14.8",

examples/http-client-browser-pubsub/tests/test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@ import { test } from '@playwright/test';
22
import { playwright } from 'test-util-ipfs-example'
33
import * as ipfsModule from 'ipfs'
44
import * as ipfsHttpModule from 'ipfs-http-client'
5+
import * as kuboRpcModule from 'kubo-rpc-client'
56
import * as goIpfsModule from 'go-ipfs'
67

78
// Setup
89
const play = test.extend({
910
...playwright.servers(),
1011
...playwright.daemons(
1112
{
12-
ipfsHttpModule,
1313
},
1414
{
1515
js: {
16+
ipfsHttpModule,
1617
ipfsBin: ipfsModule.path()
1718
},
1819
go: {
1920
ipfsBin: goIpfsModule.path(),
21+
kuboRpcModule,
2022
args: ['--enable-pubsub-experiment']
2123
}
2224
},

examples/http-client-name-api/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
},
1616
"browserslist": "last 1 Chrome version",
1717
"dependencies": {
18-
"ipfs-http-client": "^58.0.0"
18+
"ipfs-http-client": "^58.0.0",
19+
"kubo-rpc-client": "^1.0.1"
1920
},
2021
"devDependencies": {
2122
"@babel/core": "^7.14.8",

examples/http-client-name-api/tests/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { test, expect } from '@playwright/test';
22
import { playwright } from 'test-util-ipfs-example';
3-
import * as ipfsHttpModule from 'ipfs-http-client'
3+
import * as kuboRpcModule from 'kubo-rpc-client'
44
import * as goIpfsModule from 'go-ipfs'
55

66
// Setup
77
const play = test.extend({
88
...playwright.servers(),
99
...playwright.daemons(
1010
{
11-
ipfsHttpModule,
11+
kuboRpcModule,
1212
ipfsBin: goIpfsModule.path(),
1313
args: ['--enable-pubsub-experiment']
1414
},

0 commit comments

Comments
 (0)