-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Comparing changes
Open a pull request
base repository: ipfs/js-ipfs
base: [email protected]
head repository: ipfs/js-ipfs
compare: [email protected]
Commits on Jun 24, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3808ac0 - Browse repository at this point
Copy the full SHA 3808ac0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 881bc08 - Browse repository at this point
Copy the full SHA 881bc08View commit details
Commits on Jun 25, 2020
-
chore(deps): bump multihashing-async from 0.8.2 to 1.0.0 (#3122)
Bumps [multihashing-async](https://github.com/multiformats/js-multihashing-async) from 0.8.2 to 1.0.0. - [Release notes](https://github.com/multiformats/js-multihashing-async/releases) - [Changelog](https://github.com/multiformats/js-multihashing-async/blob/master/CHANGELOG.md) - [Commits](multiformats/js-multihashing-async@v0.8.2...v1.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 343bd45 - Browse repository at this point
Copy the full SHA 343bd45View commit details
Commits on Jul 1, 2020
-
fix: still load dag-pb, dag-cbor and raw when specifying custom forma…
…ts (#3132) If we specify a `formats` array as part of the ipld options in in-proc nodes, it replaces the default list of dag-pb, dag-cbor and raw. This change allows the `loadFormat` function to still resolve those formats even if the user has passed a `format` array that does not contain them. Fixes #3129
Configuration menu - View commit details
-
Copy full SHA for a96e3bc - Browse repository at this point
Copy the full SHA a96e3bcView commit details -
chore: update example with public webrtc servers (#3126)
Per #2779 , this PR adds the public webrtc servers to the browser example. This allows users to run easily the example, but also provides information for how users should use a signaling server for production.
Configuration menu - View commit details
-
Copy full SHA for 0b64c3e - Browse repository at this point
Copy the full SHA 0b64c3eView commit details
Commits on Jul 2, 2020
-
feat: store blocks by multihash instead of CID (#3124)
Updates the `ipfs-repo` dep to a version that stores blocks by multihash instead of CID to support CIDv1 and CIDv0 access to the same block. New features: - Adds a `--multihash` argument to the cli command `ipfs refs local` which prints the base32 encoded multihash of each block BREAKING CHANGES: - `ipfs.refs.local` now returns a v1 CID with the raw codec for every block and not the original CID by which it was added to the blockstore Co-authored-by: Hugo Dias <hugomrdias@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 03b17f5 - Browse repository at this point
Copy the full SHA 03b17f5View commit details -
feat: add interface and http client versions to version output (#3125)
Adds `interface-ipfs-core` and `ipfs-http-client` versions to the output of the `ipfs version` command, also the git commit id if it's available. Closes #2878
Configuration menu - View commit details
-
Copy full SHA for 65f8b23 - Browse repository at this point
Copy the full SHA 65f8b23View commit details -
fix: optional arguments go in the options object (#3118)
We have a few older APIs that take multiple optional arguments, which makes our code more complicated as it has to guess the users' intent, sometimes by inspecting properties on the passed args to see if they happen to correspond with properties on the actual options object. The options object was recently added to all API calls and is the right place for optional arguments to go, so the change here is to move all optional arguments into the options object, except where the presence of an optional argument dramatically changes the behaviour of the call (`ipfs.bootstrap` I'm mostly looking at you), in which case the methods are split out into multiple versions that do distinct things. Only the programatic API is affected, the CLI and HTTP APIs do not change. BREAKING CHANGES: - `ipfs.bitswap.wantlist([peer], [options])` is split into: - `ipfs.bitswap.wantlist([options])` - `ipfs.bitswap.wantlistForPeer(peer, [options])` - `ipfs.bootstrap.add([addr], [options])` is split into: - `ipfs.bootstrap.add(addr, [options])` - add a bootstrap node - `ipfs.bootstrap.reset()` - restore the default list of bootstrap nodes - `ipfs.bootstrap.rm([addr], [options])` is split into: - `ipfs.bootstrap.rm(addr, [options])` - remove a bootstrap node - `ipfs.bootstrap.clear([options])` - empty the bootstrap list - `ipfs.dag.get(cid, [path], [options])` becomes `ipfs.dag.get(cid, [options])` - `path` is moved into the `options` object - `ipfs.dag.tree(cid, [path], [options])` becomes `ipfs.dag.tree(cid, [options])` - `path` is moved into the `options` object - `ipfs.dag.resolve(cid, [path], [options])` becomes `ipfs.dag.resolve(cid, [options])` - `path` is moved into the `options` object - `ipfs.files.flush([path], [options])` becomes `ipfs.files.flush(path, [options])` - `ipfs.files.ls([path], [options])` becomes `ipfs.files.ls(path, [options])` - `ipfs.object.new([template], [options])` becomes `ipfs.object.new([options])` - `template` is moved into the `options` object - `ipfs.pin.ls([paths], [options])` becomes `ipfs.pin.ls([options])` - `paths` is moved into the `options` object Co-authored-by: Hugo Dias <hugomrdias@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8cb8c73 - Browse repository at this point
Copy the full SHA 8cb8c73View commit details
Commits on Jul 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 62c1422 - Browse repository at this point
Copy the full SHA 62c1422View commit details
Commits on Jul 7, 2020
-
feat: add size-only flag to cli repo stat command (#3143)
Makes `stats repo` an alias for `repo stat` to make formatting the same across commmands in line with go-ipfs. Also adds `-s` flag to both commands to print just the size info.
Configuration menu - View commit details
-
Copy full SHA for b4d3bf8 - Browse repository at this point
Copy the full SHA b4d3bf8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77ecfef - Browse repository at this point
Copy the full SHA 77ecfefView commit details -
Configuration menu - View commit details
-
Copy full SHA for ab3127f - Browse repository at this point
Copy the full SHA ab3127fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4309e10 - Browse repository at this point
Copy the full SHA 4309e10View commit details -
fix: unhandledpromiserejection in electron tests (#3146)
When this method is async (without any actual async work) the 'should fail to publish if does not receive private key' test experiences an UnhandledPromiseRejection in electron, though the test still passes.
Configuration menu - View commit details
-
Copy full SHA for 4c0c67f - Browse repository at this point
Copy the full SHA 4c0c67fView commit details -
chore(deps-dev): bump nock from 12.0.3 to 13.0.2 (#3136)
Bumps [nock](https://github.com/nock/nock) from 12.0.3 to 13.0.2. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](nock/nock@v12.0.3...v13.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 5fe9495 - Browse repository at this point
Copy the full SHA 5fe9495View commit details
Commits on Jul 8, 2020
-
fix: use post for preloading (#3149)
As we don't accept get requests via the http api any more
Configuration menu - View commit details
-
Copy full SHA for c9700f7 - Browse repository at this point
Copy the full SHA c9700f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 335c13d - Browse repository at this point
Copy the full SHA 335c13dView commit details
Commits on Jul 9, 2020
-
fix: do not list raw nodes in a dag as directories (#3155)
`ipfs ls QMfoo` was listing raw nodes as directories when present in a DAG. Also does not try to parse chmod strings as octals to allow `+x` etc on the command line the same as the programattic API
Configuration menu - View commit details
-
Copy full SHA for 585a142 - Browse repository at this point
Copy the full SHA 585a142View commit details -
refactor: return promise from dag resolve (#3152)
Makes `ipfs.dag.resolve` behave the same when calling into core and over the http api. Adds documentation and interface tests for `ipfs.dag.resolve`. Supersedes #3131 Fixes #2962 BREAKING CHANGES: - `ipfs.dag.resolve` returns `Promise<{ cid, remainderPath }` instead of `AsyncIterator<{ value, remainderPath }>` - Previously the core api returned an async iterator and the http client returned a simple promise Co-authored-by: Tarun Batra <tarun.batra00@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f20cdf1 - Browse repository at this point
Copy the full SHA f20cdf1View commit details -
fix: peer ids are strings now (#3162)
Cleans up last bits of libp2p's peerID -> string migration
Configuration menu - View commit details
-
Copy full SHA for 281bfe6 - Browse repository at this point
Copy the full SHA 281bfe6View commit details
Commits on Jul 10, 2020
-
feat: enable DHT by Routing.Type config key (#3153)
Updates use of the kad-dht module in the codebase. New features: 1. Adds [Routing.Type](https://github.com/ipfs/go-ipfs/blob/b86e93045aaa0ac357d939884e1c7996b0fcdbd4/docs/config.md#routing) configuration key with values - `'none'` default, DHT disabled - `'dht'` DHT start-as-client-auto-upgrade-to-server (not implemented in `js-libp2p-kad-dht` yet) - `'dhtserver'` DHT server mode - `'dhtclient'` DHT client mode 2. Updates Core API to be compliant with the docs Co-authored-by: Jacob Heun <jacobheun@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for dfe15d7 - Browse repository at this point
Copy the full SHA dfe15d7View commit details -
feat: turn on delegate nodes by default (#3148)
To help find content and peers on the network, turn on delegate nodes by default. Disables delegate nodes while using the `test` config profile.
Configuration menu - View commit details
-
Copy full SHA for 3fd2ca8 - Browse repository at this point
Copy the full SHA 3fd2ca8View commit details
Commits on Jul 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c6cd95c - Browse repository at this point
Copy the full SHA c6cd95cView commit details
Commits on Jul 15, 2020
-
docs: fix weird whitespace character (#3170)
VSCode seems to insert this weird whitespace character that isn't a space but looks like a space and then messes up all the formatting in markdown files.
Configuration menu - View commit details
-
Copy full SHA for f3f8d2a - Browse repository at this point
Copy the full SHA f3f8d2aView commit details -
docs: update http client examples (#3172)
Moves http client examples to the examples folder and adds tests to prevent regressions.
Configuration menu - View commit details
-
Copy full SHA for 5b5eabc - Browse repository at this point
Copy the full SHA 5b5eabcView commit details
Commits on Jul 16, 2020
-
chore: swap go-ipfs-dep for go-ipfs (#3174)
It has a much better name.
Configuration menu - View commit details
-
Copy full SHA for 8c122e8 - Browse repository at this point
Copy the full SHA 8c122e8View commit details -
refactor: make add only work on single items (#3167)
`ipfs.add` now returns single items only. Where a source would result in multiple items returned, only the last item is returned. As a first pass `ipfs.add` still takes multiple items but only accepting single items is documented and considered supported. In the future it may throw if multiple items are passed. `ipfs.addAll` retains the previous behaviour of `ipfs.add`. Examples: ```javascript const { cid, path, mode, mtime } = await ipfs.add('Hello world') ``` ```javascript const { cid } = await ipfs.add(Uint8Array.from([0, 1, 2])) ``` ```javascript const { cid } = await ipfs.add(fs.createReadStream('/path/to/file.txt')) ``` ```javascript const { cid } = await ipfs.add({ path: '/foo/bar/baz.txt', content: 'File content' }) // Creates a DAG with multiple levels of directories. // The returned cid is the CID for the root directory /foo // You can retrieve the file content with an IPFS path for await (const buf of ipfs.cat(`/ipfs/${cid}/bar/baz.txt`)) { ... } // Or get the CID of the nested file with ipfs.files.stat const { cid: fileCid } = await ipfs.files.stat(`/ipfs/${cid}/bar/baz.txt`) // or ipfs.dag.resolve const { cid: fileCid } = await ipfs.dag.resolve(`/ipfs/${cid}/bar/baz.txt`) ``` ```javascript // To have `/foo` included in the ipfs path, wrap it in a directory: const { cid } = await ipfs.add({ path: '/foo/bar/baz.txt', content: 'File content' }, { wrapWithDirectory: true }) for await (const buf of ipfs.cat(`/ipfs/${cid}/foo/bar/baz.txt`)) { ... } ``` BREAKING CHANGES: - `ipfs.add` only works on single items - a Uint8Array, a String, an AsyncIterable<Uint8Array> etc - `ipfs.addAll` works on multiple items
Configuration menu - View commit details
-
Copy full SHA for 1760b89 - Browse repository at this point
Copy the full SHA 1760b89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d4604d - Browse repository at this point
Copy the full SHA 0d4604dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40e0e7b - Browse repository at this point
Copy the full SHA 40e0e7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b780935 - Browse repository at this point
Copy the full SHA b780935View commit details -
- interface-ipfs-core@0.138.0 - ipfs-core-utils@0.3.0 - ipfs-http-client@45.0.0 - ipfs@0.48.0
Configuration menu - View commit details
-
Copy full SHA for a64939b - Browse repository at this point
Copy the full SHA a64939bView commit details
There are no files selected for viewing