Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

feat: pubsub #1

Merged
merged 8 commits into from
Jul 8, 2019
Merged

feat: pubsub #1

merged 8 commits into from
Jul 8, 2019

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Jul 8, 2019

No description provided.

@codecov-io
Copy link

codecov-io commented Jul 8, 2019

Codecov Report

Merging #1 into master will increase coverage by 2.67%.
The diff coverage is 91.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #1      +/-   ##
==========================================
+ Coverage   82.33%   85.01%   +2.67%     
==========================================
  Files          24       31       +7     
  Lines         368      447      +79     
==========================================
+ Hits          303      380      +77     
- Misses         65       67       +2
Impacted Files Coverage Δ
src/index.js 100% <ø> (ø) ⬆️
src/ping.js 100% <100%> (ø) ⬆️
src/bitswap/wantlist.js 84.61% <100%> (-2.89%) ⬇️
src/swarm/connect.js 100% <100%> (ø) ⬆️
src/pubsub/unsubscribe.js 100% <100%> (ø)
src/add/index.js 100% <100%> (ø) ⬆️
src/block/put.js 85.71% <100%> (-1.25%) ⬇️
src/pubsub/publish.js 100% <100%> (ø)
src/ls.js 100% <100%> (ø) ⬆️
src/pubsub/ls.js 100% <100%> (ø)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f30e261...3665b85. Read the comment docs.

@alanshaw alanshaw merged commit b045238 into master Jul 8, 2019
@alanshaw alanshaw deleted the feat/pubsub branch July 8, 2019 22:05
alanshaw pushed a commit to ipfs-inactive/js-ipfs-http-client that referenced this pull request Aug 28, 2019
This PR enabled pubsub in the browser and paves the way for a switch to using `fetch` by default and allowing for cancelable requests via the use of `AbortController`.

It's mostly the work done in ipfs-shipyard/js-ipfs-http-client-lite#1 but adapted a bit for use here.

If approved, we can start work moving the other commands to use `fetch`. The work in https://github.com/ipfs-shipyard/js-ipfs-http-client-lite has proven the hard parts (uploading files) are all possible using the `fetch` API.

Since `fetch` is promise based, when moving the other commands it makes sense to just switch to async/await as per ipfs/js-ipfs#1670 (and callbackify instead of promisify).

Depends on:

* [x] ipfs-inactive/interface-js-ipfs-core#505

resolves #518
refs ipfs/js-ipfs#2093
resolves #932

License: MIT
Signed-off-by: Alan Shaw <[email protected]>
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.

2 participants