date | permalink | title | description | author | header_image | tags | ||
---|---|---|---|---|---|---|---|---|
2019-05-22 |
/89-js-ipfs-0-36/ |
js-ipfs 0.36.0 released |
Alan Shaw |
/header-image-js-ipfs-placeholder.png |
|
URL safe CIDs, refs commands, DOM File support and more!
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>A wild and excitable JS #IPFS 0.36 just darted across the street and into the npm module store 🏇💨. It's got 🧬 Base32 encoded v1 CIDs, 👉 refs and refs local commands, 🗄 support for adding DOM File objects and loads more! https://t.co/zIFEfQX325
— Alan Shaw (@_alanshaw) May 22, 2019
As a stepping stone towards switching to CIDv1 by default for all CIDs, we're shipping a small change to v1 CIDs that means their string form is base32
encoded instead of base58btc
. So, instead of:
$ jsipfs add --cid-version 1 guardian.jpg
added zb2rhk6GMPQF3hfzwXTaNYFLKomMeC6UXdUt6jZKPpeVirLtV guardian.jpg
You'll now get back a base32
encoded CID:
$ jsipfs add --cid-version 1 guardian.jpg
added bafkreibu6pkzh33dfwfa3bg3twih7uiohu6d6cr34txljekdn3cvwoujiu guardian.jpg
You can read more about this change here.
We've added the refs
and refs local
commands to the core, CLI and HTTP API. These commands allow you to list out all the CIDs referenced by a given DAG node or all the CIDs in your local repo. You can even choose the display format.
Finally! You can just add a File
to IPFS without having to jump through hoops converting it to a Buffer
first. Sensational!
A File
, by the way, is what you'll get back from a <input type="file">
or the drag and drop API, so being able to easily take that file and add it to IPFS makes onboarding new frontend devs way easier (as well as way more convenient for all you old frontend devs 😜).
The libp2p discovery module for finding IPFS nodes over MDNS has been updated so that your JS IPFS node is now able to find Go IPFS nodes on the local network too. It's a backwards compatible change so older nodes will still be able to find your node and you'll still be able to find them.
We switched the multiplexing implementation to one that's simpler, smaller and faster. We're estimating it to be around 28% faster than the old implementation.
The IPFS HTTP gateway that JS IPFS exposes when run as a daemon in Node.js has been upgraded to support a number of HTTP features like conditional requests, byte range requests as well as getting some bug fixes, mini features and other improvements. There's too much to list here but check out the PR for and in depth description of what's changed.
Messages sent over Pubsub will now be automatically signed by the initial publisher, and included as a signature property on each Pubsub message. IPFS and Libp2p will be verifying the signatures of Pubsub messages by default in future releases, which will enable us to verify the authenticity of all messages sent over the network before they are processed. Verification is not yet required by default, but it will be in future releases, and all unsigned messages will not be processed or forwarded.
- BREAKING: The default string encoding for version 1 CIDs has changed to
base32
- BREAKING: IPLD formats have been updated to the latest versions. IPLD nodes returned by
ipfs.dag
andipfs.object
commands have significant breaking changes. If you are using these commands in your application you are likely to encounter the following changes todag-pb
nodes (the default node type that IPFS creates):DAGNode
properties have been renamed as follows:data
=>Data
links
=>Links
size
=>size
(Note: no change)
- Additionally, the
Links
property of aDAGNode
now returns plain JS objects withHash
,Name
andTsize
properties, NOTDAGLink
instances DAGLink
properties have been renamed as follows:cid
=>Hash
name
=>Name
size
=>Tsize
- See CHANGELOGs for each IPLD format for it's respective changes, you can read more about the
dag-pb
changes in the CHANGELOG
- Commands
refs
andrefs local
have been added to core, the CLI and the HTTP API - Support for DOM File objects has been added to
ipfs.add
In alphabetical order, here are all the humans that contributed to the release:
- Adam Uhlíř (1 PR, 3 issues, 1 review, 1 comment)
- Agent of User (5 comments)
- Alan Shaw (21 PRs, 5 issues, 59 reviews, 126 comments)
- Alex Potsides (16 PRs, 7 issues, 14 reviews, 14 comments)
- André Cruz (1 comment)
- André Medeiros (1 comment)
- Arie Trouw (1 issue)
- Beeno Tung (2 comments)
- bleonard252 (1 comment)
- bruinxs (1 issue, 1 comment)
- David Dias (5 comments)
- Davit Barbakadze (5 comments)
- Despoinis (2 issues, 3 comments)
- Dietrich Ayala (1 PR, 2 issues, 2 comments)
- Diogo Silva (1 PR)
- dirkmc (5 PRs, 3 issues, 46 reviews, 60 comments)
- edoo (1 comment)
- Francis Gulotta (1 comment)
- Friedel Ziegelmayer (1 review)
- Gopalakrishna Palem (3 PRs, 1 issue, 3 reviews, 5 comments)
- Guilherme Gervasio (1 comment)
- Guo Liu (1 issue, 1 comment)
- Guy Sviry (2 PRs, 2 issues, 15 comments)
- Henrique Dias (1 PR)
- Hugo Dias (5 PRs, 4 issues, 6 reviews, 17 comments)
- Irakli Gozalishvili (1 PR, 3 reviews, 3 comments)
- Ishan Joshi (1 issue)
- Jacob Heun (12 PRs, 3 issues, 55 reviews, 66 comments)
- Jake Hemmerle (3 comments)
- Jared Wright (1 issue)
- Jonybang (1 PR, 3 issues, 8 comments)
- jzstern (1 comment)
- Kavanaugh Latiolais (3 comments)
- Keith Smith (2 issues)
- kumavis (9 PRs, 16 issues, 8 reviews, 53 comments)
- Lorenzo Setale (2 comments)
- Łukasz Magiera (1 review, 1 comment)
- Maciej Krüger (1 review, 11 comments)
- Marcin Rataj (2 PRs, 4 issues, 11 reviews, 13 comments)
- Mark Robert Henderson (2 issues)
- Mars Robertson (1 issue)
- Matt Ober (1 issue, 2 comments)
- Michael Bradley (1 PR, 1 issue, 5 comments)
- Michael Muré (2 comments)
- Mikeal Rogers (1 issue, 8 reviews, 1 comment)
- Mikerah (1 comment)
- Mitra Ardron (2 issues, 2 comments)
- MonarthS (1 issue)
- Nate Foss (1 issue, 1 comment)
- nijynot (1 PR)
- Nikhil-Bathula (1 issue, 3 comments)
- Oli Evans (1 review, 15 comments)
- Pedro Teixeira (2 reviews)
- pinanklakhani (1 issue)
- pldespaigne (1 issue, 1 comment)
- Portia Burton (1 review)
- pruflyos (1 issue)
- reasv (2 issues, 2 comments)
- Rod Vagg (76 reviews, 8 comments)
- sachaaaaa (1 PR)
- ShareTheWorld (1 issue, 2 comments)
- Shivam Rawat (1 PR)
- Steven Allen (1 PR, 1 review, 4 comments)
- Vasco Santos (16 PRs, 5 issues, 24 reviews, 26 comments)
- Volker Mische (17 PRs, 3 issues, 23 reviews, 49 comments)
- William LeGate (3 comments)
- X5 Engine (2 comments)
- 李小明 (1 issue, 4 comments)
Would you like to contribute to the IPFS project and don't know how? Well, there are a few places you can get started:
- Check the issues with the
help wanted
label in the js-ipfs repo - Join an IPFS All Hands, introduce yourself and let us know where you would like to contribute - https://github.com/ipfs/team-mgmt/#weekly-ipfs-all-hands
- Hack with IPFS and show us what you made! The All Hands call is also the perfect venue for demos, join in and show us what you built
- Join the discussion at http://discuss.ipfs.tech/ and help users finding their answers.
- Join the ⚡️ⒿⓈ Core Dev Team Weekly Sync 🙌🏽 and be part of the Sprint action!
The best place to ask your questions about IPFS, how it works and what you can do with it is at discuss.ipfs.tech. We are also available at the #ipfs
channel on Freenode.