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

Update ipld formats async await mfs and unixfs and base32 cids #2068

Merged

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented May 19, 2019

Down to the last 150 or so failing tests (locally at least). Most of them are interface tests and seem to be ref related.

Maybe we can divide & conquer.

Depends on

resolves #1995

BREAKING CHANGE: The default string encoding for version 1 CIDs has changed to base32.

IPLD formats have been updated to the latest versions. IPLD nodes returned by ipfs.dag and ipfs.object commands have significant breaking changes. If you are using these commands in your application you are likely to encounter the following changes to dag-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)
  • 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

vmx and others added 20 commits May 21, 2019 09:19
This is part of the Awesome Endeavour: Async Iterators:
#1670
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@alanshaw alanshaw force-pushed the update-ipld-formats-async-await-mfs-and-unixfs-and-base32-cids branch from d8cf619 to d1f98cd Compare May 21, 2019 08:19
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
Alan Shaw added 2 commits May 21, 2019 11:43
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@alanshaw alanshaw merged commit 813048f into master May 21, 2019
@alanshaw alanshaw deleted the update-ipld-formats-async-await-mfs-and-unixfs-and-base32-cids branch May 21, 2019 12:08
@achingbrain achingbrain mentioned this pull request May 22, 2019
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch CIDv1 from Base58 to Base32 (js-ipfs)
3 participants