You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
As part of the async iterator refactor some peer IDs were being returned as CIDs - the conversion was done in IPFS but not in libp2p, which meant that where IPFS exposes libp2p directly, peer IDs were being returned as strings, e.g. pubsub topic subscribers, message senders, etc.
A roundup of the following PRs:
feat: return CID of flushed path from ipfs.files.flush
fix: writing mfs files using offsets bigger than the file now works
format option is no longer supported as everything is dag-pb all of the time.
IPFS is all dag-pb yet we allow passing dag-cbor as the format of IPLD node to use. This is likely to break anything that uses it as tools expect IPFS stuff to be dag-pb, possibly with raw leaves.
Adds mode and mtime properties to normalised .add inputs, also adds functions for turning metadata into strings for CLI use.
Support for Node.js streams and Pull Streams has been removed
This is a round up of the remaining async/await PRs along with some cleanup and docs fixes.
Errors returned from request failures are now all HTTPErrors which carry a response property. This is a Response that can be used to inspect all information relating to the HTTP response. This means that the err.status or err.statusCode property should now be accessed via err.response.status.
files in src/files-regular have moved to src. The src/files-mfs directory has been renamed to src/files. If you were previously requiring files from these directories e.g. require('ipfs-http-client/src/files-regular/add') then please be aware that they have moved.
Also corrects ipfs.config.profiles.list example.
New method:
swarm tests need promise based setup check PRs below
pubsub is now enabled by default and the experimental flag was removed
recursive is now true by default in ipfs resolve
The default pubsub implementation has changed from floodsub to gossipsub. Additionally, to enable pubsub programmatically set pubsub.enabled: true instead of EXPERIMENTAL.pubsub: true or via the CLI pass --enable-pubsub instead of --enable-pubsub-experiment to jsipfs daemon.
This module used to export a class that extended EventEmitter, now it exports a function that returns an async iterable.
the ipfs-api library has been renamed to ipfs-http-client.
Object API refactor.
Files API methods add*, cat*, get* have moved from files to the root namespace.
Files API methods add*, cat*, get* have moved from files to the root namespace.
dag-cbor nodes now represent links as CID objects
No further changes are needed as js-ipfs-api is getting the raw blocks from IPFS and does the whole parsing client-sided in JavaScript.
Prior to this change the ipld-dag-cbor and ipld-dag-pb modules are re-exported so that can be accessed within the Browser bundle. Those modules normally don't need to be used directly, they are kind of implementation details of IPLD. Hence remove them.
Prior to this change the ipld-dag-cbor and ipld-dag-pb modules are re-exported so that can be accessed within the Browser bundle. Those modules normally don't need to be used directly, they are kind of implementation details of IPLD. Hence remove them.
Requires go-ipfs 0.4.17 as it allows for specifying the data encoding format when requesting object data.
new: libp2p.modules.peerDiscovery
Consumers of this test suite now have fine grained control over what tests are run. Tests can now be skipped and "onlyed" (run only specific tests). This can be done on a test, command and sub-system level. See the updated usage guide for instructions: https://github.com/ipfs/interface-ipfs-core/blob/master/README.md#usage.
pubsub.unsubscribe is now async and argument order for pubsub.subscribe has changed
pubsub.unsubscribe is now async and argument order for pubsub.subscribe has changed
Thank you for submitting this PR!
A maintainer will be here shortly to review it.
We are super grateful, but we are also overloaded! Help us by making sure that:
The context for this PR is clear, with relevant discussion, decisions
and stakeholders linked/mentioned.
Your contribution itself is clear (code comments, self-review for the
rest) and in its best form. Follow the code contribution
guidelines
if they apply.
Getting other community members to do a review would be great help too on complex PRs (you can ask in the chats/forums). If you are unsure about something, just leave us a comment.
Next steps:
A maintainer will triage and assign priority to this PR, commenting on
any missing things and potentially assigning a reviewer for high
priority items.
The PR gets reviews, discussed and approvals as needed.
The PR is merged by maintainers when it has been approved and comments addressed.
We currently aim to provide initial feedback/triaging within two business days. Please keep an eye on any labelling actions, as these will indicate priorities and status of your contribution.
We are very grateful for your contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 I have created a release *beep* *boop*
1.0.0 (2021-09-22)
⚠ BREAKING CHANGES
ipfs.gethas changed and therecursiveoption has been removed fromipfs.lssince it was not supported everywhereipfs.files.lsare now strings, in line with the docs but different to previous behaviourBufferis no longer exported from coreformatoption is no longer supported as everything isdag-pball of the time.dag-pbyet we allow passingdag-cboras the format of IPLD node to use. This is likely to break anything that uses it as tools expect IPFS stuff to bedag-pb, possibly withrawleaves.HTTPErrors which carry aresponseproperty. This is aResponsethat can be used to inspect all information relating to the HTTP response. This means that theerr.statusorerr.statusCodeproperty should now be accessed viaerr.response.status.src/files-regularhave moved tosrc. Thesrc/files-mfsdirectory has been renamed tosrc/files. If you were previously requiring files from these directories e.g.require('ipfs-http-client/src/files-regular/add')then please be aware that they have moved.ipfs.config.profiles.listexample.recursiveis nowtrueby default inipfs resolvepubsub.enabled: trueinstead ofEXPERIMENTAL.pubsub: trueor via the CLI pass--enable-pubsubinstead of--enable-pubsub-experimenttojsipfs daemon./index.htmlwhen accessing a directory/instead of redirecting to/index.html.base32.{ ref, err }not{ Ref, Err }ipld-dag-pb,ipld-dag-cborandipld-rawIPLD codecs. Other codecs should be added manually, see https://github.com/ipfs/js-ipfs/blob/master/README.md#optionsipld for details.nullvalues or unknown properties.--localoption has been renamed to--offlinebig.jsinstances now returnbignumber.jsinstances.big.jsinstances now returnbignumber.jsinstances.ipfs-apilibrary has been renamed toipfs-http-client.add*,cat*,get*have moved fromfilesto the root namespace.add*,cat*,get*have moved fromfilesto the root namespace.ipld-dag-cborandipld-dag-pbmodules are re-exported so that can be accessed within the Browser bundle. Those modules normally don't need to be used directly, they are kind of implementation details of IPLD. Hence remove them.ipld-dag-cborandipld-dag-pbmodules are re-exported so that can be accessed within the Browser bundle. Those modules normally don't need to be used directly, they are kind of implementation details of IPLD. Hence remove them.libp2p.modules.peerDiscoveryFeatures
ipfs versionflags +ipfs repo version(#1181) (#1188) (494da7f)--enable-preloadto enable/disable preloading for daemons (#1909) (9470900)addFromFsmethod (#1777) (7315aa1)ipfs repo stat --human. (#2609) (f81086c)dag putanddag resolvecli commands (#2521) (8759bf8)findprovs()(#337) (99f74f5)Bug Fixes
cpandmvtests to the current spec (#515) (b107e57)findProvs()API (#1457) (99911b1), closes #1322block rmcommand (#1576) (af30ea5)ky.extend(#1130) (25b6043)http.requestwith request (1588294)countas well aslength(e787bf9)Performance Improvements
Reverts
Documentation
Code Refactoring
Miscellaneous Chores
This PR was generated with Release Please. See documentation.