Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit ac0f255

Browse files
authored
fix: update ipfs versions (#365)
Updates all examples to use ESM versions of IPFS, swaps parcel for vite everywhere and removes old browserify example because it only understands CJS.
1 parent 1c79b9c commit ac0f255

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"test": "tsc --noEmit"
99
},
1010
"dependencies": {
11-
"ipfs-core": "^0.14.0"
11+
"ipfs-core": "^0.15.2",
12+
"multiformats": "^9.6.5"
1213
},
1314
"devDependencies": {
1415
"typescript": "^4.5.5"

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const { create } = require('ipfs-core')
1+
import { create } from 'ipfs-core'
22

33
/**
44
* @typedef {import('ipfs-core').IPFS} IPFS
5-
* @typedef {import('ipfs-core').CID} CID
5+
* @typedef {import('multiformats/cid').CID} CID
66
*/
77

88
async function main () {

0 commit comments

Comments
 (0)