1. IPFS点滴资讯首页
  2. 官方更新
  3. IPFS

js-ipfs 0.30.0 released

Feature parity with go-ipfs just got a whole lot closer!

js-ipfs 0.30 has been released live at the #IPFS Dev Meeting. Thank you everyone for all the love ❤️ https://t.co/YB9NfGM7WC and big hi5 to @_alanshaw for driving the whole release forward and being an awesome Lead Maintainer for #JS #IPFS 🚀 pic.twitter.com/6arftXUxBe

— David Dias (@daviddias) July 9, 2018

🔦 Highlights

🔀 Mutable File System (MFS)

MFS, the mutable file system is finally here in js-ipfs. The MFS API allows you to use IPFS like a regular Unix file system. Add, edit, move, copy, rename and delete your files while keeping all that content addressable, Merkle DAGgy goodness.

📌 Pin API implemented

Ever wanted to keep the things you add to IPFS? Well now you can! Pinning a hash in IPFS land tells your node to keep the data around in your local repo until you decide to unpin it. No amount of garbage collection will take it! Next stop, implement garbage collection 😝

🤝 libp2p connection manager added

The new libp2p connection manager gives you the power to disconnect peers when you have too many or when certain bandwidth restrictions are reached. Really useful for preserving resources on resource constrained devices such as mobile phones or IoT.

See the options at: https://github.com/libp2p/js-libp2p-connection-manager#create-a-connectionmanager

📇 bitswap improvements

Swapping your bits has never been so easy to keep track of. You can now inspect the “wantlist” (the list of hashes currently wanted by various peers) on a per peer basis, and you can manually “unwant” hashes in your own list.

☯️ Content hashes interop

If you add a file to go-ipfs and also add it to js-ipfs then you might get a different hash. It doesn’t mean the hash is wrong, just that the layout of the DAG nodes that were created for your file was different. Good news folks, we fixed that. You should now get the same hash whether you add your file to go-ipfs or js-ipfs. Hooray /o/.

🙅 Node.js 10 support

Now you can run your js-ipfs node on the latest and greatest Node.js yet.

🏗 API Changes

  • libp2p configuration property names for custom modules has changed
    • old: libp2p.modules.discovery
    • new: libp2p.modules.peerDiscovery
  • Custom libp2p modules you provide now replace default modules
  • Pin API added (spec)
  • bitswap.wantlist peer ID parameter added (spec)
  • bitswap.unwant implemented (spec)
  • MFS API added (spec)

🙌🏽 Want to contribute?

Would you like to contribute to the IPFS project and don’t know how? Well, there are a few places you can get started:

⁉️ Do you have questions?

The best place to ask your questions about IPFS, how it works and what you can do with it is at discuss.ipfs.io. We are also available at the #ipfs channel on Freenode.

That is all for this post. Thank you for being part of the community. I bid you a good day!



点对点科技深耘IPFS与Filecoin技术,坚持区块链技术改变未来的信念。点对点 IPFS 数据中心是目前国内技术领先,性价比高、保障优的投资标的。自建杭州数据中心,合作数据中心分布于上海、宁波、河北、香港、斯德哥尔摩(瑞典)等地。点对点数据中心具有优秀的硬件配置与目前国内优质的网络节点资源。点对点科技力求将IPFS爱好者升级为IPFS领军者与受益者,让IPFS颠覆传统互联网,共同开启 WEB 3.0时代。


Filecoin测试网二阶段昨日重启,点对点出块第一! | 点滴资讯



电子邮件地址不会被公开。 必填项已用*标注