forked from ipfs/js-ipfs
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pull] master from ipfs:master #1
Merged
Merged
Conversation
This file contains 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
I linked from the npm package listing and was suprised to end up at the interface-ipfs-core package.
Co-authored-by: kvutien <kvutien@VTKT5.fritz.box> Co-authored-by: Marcin Rataj <lidel@lidel.org>
I had to skip a couple of tests as they use the ipfs api directly which hasn't been migrated yet so it doesn't understand the new CID class. They can be unskipped once js-ipfs ships with the new multiformats module, or the circular dependency between this module and js-ipfs is broken. BREAKING CHANGE: pulls in new multiformats modules
- Replaces the old [interface-ipld-format](https://github.com/ipld/interface-ipld-format) stack with the new [multiformats](https://github.com/multiformats/js-multiformats) stack. - The Block API takes/returns `Uint8Array`s instead of [ipld-block](https://github.com/ipld/js-ipld-block) objects BREAKING CHANGE: ipld-formats no longer supported, use multiformat BlockCodecs instead Co-authored-by: Rod Vagg <rod@vagg.org> Co-authored-by: achingbrain <alex@achingbrain.net>
This changes the default behaviour of the `jsipfs resolve` cli command to be recursive by default. Closes #3692. ```shell # in packages/ipfs node src/cli.js resolve /ipns/ipfs.io /ipfs/bafybeiagozluzfopjadeigrjlsmktseozde2xc5prvighob7452imnk76a ``` BREAKING CHANGE: resolve is now recursive by default Co-authored-by: Alex Potsides <alex@achingbrain.net>
Applying all the magic from #3584, updating the dependencies, adding tips (address example) for working with a local node Co-authored-by: Vasco Santos <vasco.santos@ua.pt> Co-authored-by: Alen Šiljak <code@alensiljak.eu.org> Co-authored-by: achingbrain <alex@achingbrain.net>
`.ts` should be `.d.ts`
Dividing the bandwidth stats sometimes results in a fraction which we cannot convert to a `BigInteger` since it's not an integer... Fixes #3726
* fix: support @web-std/file in normalize input * chore: validate blob/file have a stream property * chore: fallback to web-std blob * fix: tests * chore: use latest file version
In the http client, when we subscribe to a topic we open a HTTP connection which we keep open for the duration of the subscription. When we unsubscribe we abort the connection but it can remain open for a little while after the abort, even if we try to wait on the `fetch` command ending before continuting, which leads to the topic still being present in the subs list, so retry asserting that the subs list is empty in the tests within a certain time window. Fixes this sort of error: ``` ipfs: 1) interface-ipfs-core over ipfs-http-client tests against go-ipfs ipfs: .pubsub.unsubscribe ipfs: should subscribe 5 handlers and unsubscribe once with no reference to the handlers: ipfs: AssertionError: expected [ Array(1) ] to deeply equal [] ipfs: + expected - actual ipfs: -[ ipfs: - "pubsub-tests-SVOFzpM5DtbcI7jBETrmm" ipfs: -] ipfs: +[] ```
Co-authored-by: kvutien <kvutien@VTKT5.fritz.box> Co-authored-by: Alex Potsides <alex@achingbrain.net>
* Upgrade to GitHub-native Dependabot * chore: remove ignores Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides <alex@achingbrain.net>
Fixes docker build problems
If we run a node in offline mode only, it'll never go to the network to fetch a CID it doesn't have, so we can't really test timeouts properly.
- interface-ipfs-core@0.148.0 - ipfs-cli@0.7.0 - ipfs-client@0.5.0 - ipfs-core-types@0.6.0 - ipfs-core-utils@0.9.0 - ipfs-core@0.9.0 - ipfs-daemon@0.8.0 - ipfs-grpc-client@0.4.0 - ipfs-grpc-server@0.4.0 - ipfs-http-client@51.0.0 - ipfs-http-gateway@0.5.0 - ipfs-http-server@0.6.0 - ipfs-message-port-client@0.7.0 - ipfs-message-port-protocol@0.8.0 - ipfs-message-port-server@0.8.0 - ipfs@0.56.0
These were removed during the multiformats upgrade but they are quite useful as a demo of how to configure extra multiformat blockcodecs/hashers
No need to run example tests if we've just changed docs etc.
Use the `@multiformats/sha3` module instead of rolling our own
Improve docs around how to configure custom block codecs/multibase codecs, etc.
Restores level-js options from https://github.com/ipfs/js-ipfs-repo/blob/b82938fcef0f949517fbd6f63700c2c0178ef117/src/default-options-browser.js The ones that are valid anyway.
Fixes: #3776 Co-authored-by: achingbrain <alex@achingbrain.net>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
With the addition of an export-map the `src/types.ts` file is no longer importable so make sure we can import the various ipfs-http-client type defs from the root.
findProvs (as mentioned on lines 87-89) is expecting a CID, not a string Co-authored-by: Alex Potsides <alex@achingbrain.net>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Assign according to the type
Fixes #4119 Moved 0.61.0 to proper order Linked to the upgrade guide for v0.63.0
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fixes configuration regression, use the default websocket transport filters, e.g. only connect to wss and/or DNS addresses in the browser and anything goes in node. Fixes: #4141
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Make changelogs consistent. Hopefully my regex-fu hasn't made a mess of this. Fixes: #4137
From field should be a peer id as per the types.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Houseclean ipfs-core/README.md * Linked to community docs
* Houseclean README.md
* Houseclean ./README.md * Link to community docs page
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
See Commits and Changes for more details.
Created by pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )