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

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/js-ipfs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7a98755fd9b03b99eb4a37e4216966257a47ab35
Choose a base ref
..
head repository: ipfs/js-ipfs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0dbf1335369470844283b73f057a8d8ddbb9c1d5
Choose a head ref
Showing with 1,232 additions and 1,214 deletions.
  1. +1 −0 .aegir.js
  2. +0 −36 .npmignore
  3. +17 −2 .travis.yml
  4. +28 −0 CHANGELOG.md
  5. +27 −24 README.md
  6. +0 −1 examples/README.md
  7. +14 −0 examples/browser-mfs/README.md
  8. BIN examples/browser-mfs/screenshot_1.png
  9. BIN examples/browser-mfs/screenshot_2.png
  10. +1 −1 examples/browser-video-streaming/index.html
  11. +1 −1 examples/browser-webpack/package.json
  12. +1 −1 examples/circuit-relaying/package.json
  13. +1 −0 examples/circuit-relaying/src/app.js
  14. +1 −0 examples/circuit-relaying/src/helpers.js
  15. +4 −0 examples/exchange-files-in-browser/README.md
  16. +2 −3 examples/run-in-electron/package.json
  17. +0 −13 examples/run-in-electron/rebuild.sh
  18. +0 −16 greenkeeper.json
  19. +84 −76 package.json
  20. +11 −4 src/cli/bin.js
  21. +6 −5 src/cli/commands/add.js
  22. +1 −2 src/cli/commands/bitswap/stat.js
  23. +1 −2 src/cli/commands/bitswap/unwant.js
  24. +1 −2 src/cli/commands/bitswap/wantlist.js
  25. +1 −3 src/cli/commands/block/get.js
  26. +1 −2 src/cli/commands/block/put.js
  27. +1 −3 src/cli/commands/block/rm.js
  28. +1 −2 src/cli/commands/block/stat.js
  29. +1 −3 src/cli/commands/bootstrap/add.js
  30. +1 −3 src/cli/commands/bootstrap/list.js
  31. +1 −2 src/cli/commands/bootstrap/rm.js
  32. +2 −2 src/cli/commands/commands.js
  33. +2 −3 src/cli/commands/config.js
  34. +1 −2 src/cli/commands/config/show.js
  35. +3 −2 src/cli/commands/daemon.js
  36. +2 −2 src/cli/commands/dag/get.js
  37. +2 −7 src/cli/commands/dht/find-peer.js
  38. +1 −3 src/cli/commands/dht/find-providers.js
  39. +1 −4 src/cli/commands/dht/get.js
  40. +1 −3 src/cli/commands/dht/query.js
  41. +1 −2 src/cli/commands/dns.js
  42. +2 −4 src/cli/commands/file/ls.js
  43. +1 −2 src/cli/commands/get.js
  44. +1 −2 src/cli/commands/id.js
  45. +5 −6 src/cli/commands/init.js
  46. +1 −3 src/cli/commands/key/gen.js
  47. +1 −2 src/cli/commands/key/import.js
  48. +1 −3 src/cli/commands/key/list.js
  49. +1 −3 src/cli/commands/key/rename.js
  50. +1 −3 src/cli/commands/key/rm.js
  51. +2 −2 src/cli/commands/ls.js
  52. +10 −14 src/cli/commands/name/publish.js
  53. +1 −3 src/cli/commands/name/pubsub/cancel.js
  54. +1 −3 src/cli/commands/name/pubsub/state.js
  55. +1 −3 src/cli/commands/name/pubsub/subs.js
  56. +3 −9 src/cli/commands/name/resolve.js
  57. +1 −3 src/cli/commands/object/data.js
  58. +1 −2 src/cli/commands/object/get.js
  59. +1 −2 src/cli/commands/object/links.js
  60. +1 −2 src/cli/commands/object/new.js
  61. +1 −2 src/cli/commands/object/patch/add-link.js
  62. +1 −2 src/cli/commands/object/patch/append-data.js
  63. +1 −2 src/cli/commands/object/patch/rm-link.js
  64. +1 −2 src/cli/commands/object/patch/set-data.js
  65. +1 −2 src/cli/commands/object/put.js
  66. +1 −3 src/cli/commands/object/stat.js
  67. +1 −2 src/cli/commands/pin/add.js
  68. +1 −2 src/cli/commands/pin/ls.js
  69. +1 −2 src/cli/commands/pin/rm.js
  70. +2 −3 src/cli/commands/ping.js
  71. +1 −3 src/cli/commands/pubsub/ls.js
  72. +1 −3 src/cli/commands/pubsub/peers.js
  73. +1 −3 src/cli/commands/pubsub/sub.js
  74. +1 −3 src/cli/commands/refs-local.js
  75. +1 −3 src/cli/commands/refs.js
  76. +1 −3 src/cli/commands/repo/stat.js
  77. +1 −3 src/cli/commands/repo/version.js
  78. +1 −2 src/cli/commands/resolve.js
  79. +1 −2 src/cli/commands/stats/bw.js
  80. +1 −3 src/cli/commands/stats/repo.js
  81. +2 −4 src/cli/commands/swarm/addrs/local.js
  82. +2 −5 src/cli/commands/swarm/connect.js
  83. +2 −5 src/cli/commands/swarm/disconnect.js
  84. +2 −4 src/cli/commands/swarm/peers.js
  85. +1 −1 src/cli/commands/version.js
  86. +7 −7 src/cli/parser.js
  87. +0 −2 src/cli/utils.js
  88. +2 −2 src/core/components/dag.js
  89. +6 −2 src/core/components/files-regular/add-pull-stream.js
  90. +1 −1 src/core/components/files-regular/utils.js
  91. +27 −0 src/core/components/libp2p.js
  92. +64 −27 src/core/components/name.js
  93. +9 −0 src/core/components/no-keychain.js
  94. +2 −2 src/core/components/object.js
  95. +4 −4 src/core/components/pin.js
  96. +20 −11 src/core/components/stats.js
  97. +1 −0 src/core/config.js
  98. +11 −1 src/core/index.js
  99. +19 −15 src/core/ipns/index.js
  100. +7 −6 src/core/ipns/publisher.js
  101. +1 −1 src/core/ipns/routing/config.js
  102. +2 −1 src/core/preload.js
  103. +2 −1 src/core/runtime/config-browser.js
  104. +2 −1 src/core/runtime/config-nodejs.js
  105. +1 −1 src/http/api/resources/block.js
  106. +1 −3 src/http/api/resources/bootstrap.js
  107. +1 −1 src/http/api/resources/config.js
  108. +3 −3 src/http/api/resources/dag.js
  109. +1 −1 src/http/api/resources/dht.js
  110. +1 −1 src/http/api/resources/dns.js
  111. +1 −1 src/http/api/resources/file.js
  112. +1 −1 src/http/api/resources/files-regular.js
  113. +2 −2 src/http/api/resources/key.js
  114. +2 −2 src/http/api/resources/name.js
  115. +1 −1 src/http/api/resources/object.js
  116. +2 −2 src/http/api/resources/pin.js
  117. +1 −1 src/http/api/resources/pubsub.js
  118. +1 −1 src/http/api/resources/stats.js
  119. +1 −1 src/http/api/resources/swarm.js
  120. +1 −1 src/http/api/routes/debug.js
  121. +16 −7 src/http/api/routes/webui.js
  122. +53 −54 src/http/gateway/resources/gateway.js
  123. +37 −14 src/http/gateway/routes/gateway.js
  124. +1 −1 src/http/gateway/routes/index.js
  125. +1 −1 src/http/gateway/utils/path.js
  126. +5 −1 src/http/index.js
  127. +87 −0 src/utils/tlru.js
  128. +2 −1 test/cli/daemon.js
  129. +1 −1 test/cli/dag.js
  130. +1 −1 test/cli/dht.js
  131. +1 −1 test/cli/init.js
  132. +4 −54 test/cli/name-pubsub.js
  133. +45 −291 test/cli/name.js
  134. +2 −1 test/cli/object.js
  135. +1 −1 test/cli/swarm.js
  136. +2 −1 test/core/bitswap.spec.js
  137. +2 −1 test/core/block.spec.js
  138. +2 −1 test/core/bootstrap.spec.js
  139. +2 −1 test/core/circuit-relay.js
  140. +4 −0 test/core/config.spec.js
  141. +30 −14 test/core/create-node.spec.js
  142. +5 −5 test/core/dag.spec.js
  143. +2 −1 test/core/dht.spec.js
  144. +13 −22 test/core/files-regular-utils.js
  145. +4 −2 test/core/files-sharding.spec.js
  146. +4 −4 test/core/files.spec.js
  147. +2 −1 test/core/init.spec.js
  148. +1 −33 test/core/interface.spec.js
  149. +3 −2 test/core/kad-dht.node.js
  150. +3 −2 test/core/key-exchange.js
  151. +73 −0 test/core/libp2p.spec.js
  152. +33 −3 test/core/name-pubsub.js
  153. +14 −127 test/core/{name.js → name.spec.js}
  154. +0 −1 test/core/node.js
  155. +4 −4 test/core/object.spec.js
  156. +2 −1 test/core/pin-set.js
  157. +92 −9 test/core/pin.js
  158. +4 −4 test/core/pin.spec.js
  159. +2 −1 test/core/ping.spec.js
  160. +4 −4 test/core/stats.spec.js
  161. +4 −4 test/core/swarm.spec.js
  162. +2 −1 test/core/utils.js
  163. +105 −9 test/gateway/index.js
  164. +2 −1 test/http-api/block.js
  165. +1 −1 test/http-api/inject/bitswap.js
  166. +1 −1 test/http-api/inject/id.js
  167. +1 −1 test/http-api/inject/pin.js
  168. +28 −2 test/http-api/interface.js
  169. +5 −4 test/http-api/routes.js
  170. +5 −4 test/utils/clean.js
  171. +1 −4 test/utils/create-repo-nodejs.js
  172. +0 −16 test/utils/dns-fetch-stub.js
  173. +2 −1 test/utils/interface-common-factory.js
  174. +4 −1 test/utils/ipfs-exec.js
  175. +8 −7 test/utils/on-and-off.js
1 change: 1 addition & 0 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ const ipfsdServer = IPFSFactory.createServer()
const preloadNode = MockPreloadNode.createNode()

module.exports = {
bundlesize: { maxSize: '881kB' },
webpack: {
resolve: {
mainFields: ['browser', 'main'],
36 changes: 0 additions & 36 deletions .npmignore

This file was deleted.

19 changes: 17 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -11,20 +11,25 @@ stages:

node_js:
- '10'
- '12'

os:
- linux
- osx
- windows

script: npx nyc -s npm run test:node -- --bail
script: npx nyc -s npx aegir test -t node --timeout 10000 --bail
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov

jobs:
include:
- os: windows
filter_secrets: false
cache: false

- stage: check
script:
- npx aegir commitlint --travis
- npx aegir build --bundlesize
- npx aegir dep-check -- -i wrtc -i electron-webrtc
- npm run lint

@@ -44,5 +49,15 @@ jobs:
- npx aegir test -t browser -- --browsers FirefoxHeadless
- npx aegir test -t webworker -- --browsers FirefoxHeadless

- stage: test
name: electron-main
script:
- xvfb-run npx aegir test -t electron-main -- --bail --timeout 10000

- stage: test
name: electron-renderer
script:
- xvfb-run npx aegir test -t electron-renderer -- --bail --timeout 10000

notifications:
email: false
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
<a name="0.36.4"></a>
## [0.36.4](https://github.com/ipfs/js-ipfs/compare/v0.36.3...v0.36.4) (2019-06-18)



<a name="0.36.3"></a>
## [0.36.3](https://github.com/ipfs/js-ipfs/compare/v0.36.2...v0.36.3) (2019-05-30)


### Bug Fixes

* double callback in object.links for cbor data ([#2111](https://github.com/ipfs/js-ipfs/issues/2111)) ([5d080c0](https://github.com/ipfs/js-ipfs/commit/5d080c0))
* fixes rabin chunker truncating files ([#2114](https://github.com/ipfs/js-ipfs/issues/2114)) ([76689ff](https://github.com/ipfs/js-ipfs/commit/76689ff))
* **package:** update bignumber.js to version 9.0.0 ([#2123](https://github.com/ipfs/js-ipfs/issues/2123)) ([37903ad](https://github.com/ipfs/js-ipfs/commit/37903ad))



<a name="0.36.2"></a>
## [0.36.2](https://github.com/ipfs/js-ipfs/compare/v0.36.1...v0.36.2) (2019-05-24)


### Bug Fixes

* file support when added as object ([#2105](https://github.com/ipfs/js-ipfs/issues/2105)) ([ba80e40](https://github.com/ipfs/js-ipfs/commit/ba80e40))
* upgrade electron examples ([#2104](https://github.com/ipfs/js-ipfs/issues/2104)) ([67e1b59](https://github.com/ipfs/js-ipfs/commit/67e1b59))



<a name="0.36.1"></a>
## [0.36.1](https://github.com/ipfs/js-ipfs/compare/v0.36.0...v0.36.1) (2019-05-22)

51 changes: 27 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@
<p align="center">
<a href="https://travis-ci.com/ipfs/js-ipfs"><img src="https://badgen.net/travis/ipfs/js-ipfs" /></a>
<a href="https://codecov.io/gh/ipfs/js-ipfs"><img src="https://badgen.net/codecov/c/github/ipfs/js-ipfs" /></a>
<a href="https://bundlephobia.com/result?p=ipfs"><img src="https://flat.badgen.net/bundlephobia/minzip/ipfs"></a>
<a href="https://david-dm.org/ipfs/js-ipfs"><img src="https://david-dm.org/ipfs/js-ipfs.svg?style=flat" /></a>
<a href="https://github.com/feross/standard"><img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat"></a>
<a href=""><img src="https://img.shields.io/badge/npm-%3E%3D6.0.0-orange.svg?style=flat" /></a>
@@ -122,15 +123,22 @@ The CLI is available by using the command `jsipfs` in your terminal. This is ali

Learn how to bundle with browserify and webpack in the [`examples`](https://github.com/ipfs/js-ipfs/tree/master/examples) folder.

You can also load it using a `<script>` using the [unpkg](https://unpkg.com) CDN or the [jsDelivr](https://www.jsdelivr.com/package/npm/ipfs) CDN. Inserting one of the following lines will make a `Ipfs` object available in the global namespace.
You can also load it using a `<script>` using the [unpkg](https://unpkg.com) CDN **or** the [jsDelivr](https://www.jsdelivr.com/package/npm/ipfs) CDN. Inserting one of the following lines will make an `Ipfs` object available in the global namespace.

```html
<!-- loading the minified version -->
<!-- loading the minified version using unpkg -->
<script src="https://unpkg.com/ipfs/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ipfs/dist/index.min.js"></script>

<!-- loading the human-readable (not minified) version -->
<!-- loading the human-readable (not minified) version using unpkg -->
<script src="https://unpkg.com/ipfs/dist/index.js"></script>
```
**OR THIS:**

```html
<!-- loading the minified version using jsDelivr -->
<script src="https://cdn.jsdelivr.net/npm/ipfs/dist/index.min.js"></script>

<!-- loading the human-readable (not minified) version jsDelivr -->
<script src="https://cdn.jsdelivr.net/npm/ipfs/dist/index.js"></script>
```

@@ -332,6 +340,18 @@ Enable and configure experimental features.
Modify the default IPFS node config. This object will be *merged* with the default config; it will not replace it.
###### Configuring Delegate Routers
If you need to support Delegated Content and/or Peer Routing, you can enable it by specifying the multiaddrs of your delegate nodes in the config via `options.config.Addresses.Delegates`. If you need to run a delegate router we encourage you to run your own, with go-ipfs. You can see instructions for doing so in the [delegated routing example](https://github.com/libp2p/js-libp2p/tree/master/examples/delegated-routing).
If you are not able to run your own delegate router nodes, we currently have two nodes that support delegated routing. **Important**: As many people may be leveraging these nodes, performance may be affected, which is why we recommend running your own nodes in production.
Available delegate multiaddrs are:
- `/dns4/node0.preload.ipfs.io/tcp/443/https`
- `/dns4/node1.preload.ipfs.io/tcp/443/https`
**Note**: If more than 1 delegate multiaddr is specified, the actual delegate will be randomly selected on startup.
##### `options.ipld`
| Type | Default |
@@ -954,25 +974,8 @@ A way to mitigate this in Chrome, is to run your IPFS node inside a Service Work
Yes you can and in many ways. Read https://github.com/ipfs/notes/issues/256 for the multiple options.
If your [electron-rebuild step is failing](https://github.com/ipfs/js-ipfs/issues/843), all you need to do is:
```bash
# Electron's version.
export npm_config_target=4.2.0
# The architecture of Electron, can be ia32 or x64.
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://atom.io/download/electron
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
# Install all dependencies, and store cache to ~/.electron-gyp.
HOME=~/.electron-gyp npm rebuild
```
If you find any other issue, please check the [`Electron Support` issue](https://github.com/ipfs/js-ipfs/issues/843).
We now support Electron v5.0.0 without the need to rebuilt native modules.
Still if you run into problems with native modules follow these instructions [here](https://electronjs.org/docs/tutorial/using-native-node-modules).
#### Have more questions?
@@ -1033,7 +1036,7 @@ Listing of the main packages used in the IPFS ecosystem. There are also three sp
| [`ipfs-repo`](//github.com/ipfs/js-ipfs-repo) | [![npm](https://img.shields.io/npm/v/ipfs-repo.svg?maxAge=86400&style=flat)](//github.com/ipfs/js-ipfs-repo/releases) | [![Deps](https://david-dm.org/ipfs/js-ipfs-repo.svg?style=flat)](https://david-dm.org/ipfs/js-ipfs-repo) | [![Travis CI](https://travis-ci.com/ipfs/js-ipfs-repo.svg?branch=master)](https://travis-ci.com/ipfs/js-ipfs-repo) | [![codecov](https://codecov.io/gh/ipfs/js-ipfs-repo/branch/master/graph/badge.svg)](https://codecov.io/gh/ipfs/js-ipfs-repo) | [Jacob Heun](mailto:jacobheun@gmail.com) |
| **Exchange** |
| [`ipfs-block-service`](//github.com/ipfs/js-ipfs-block-service) | [![npm](https://img.shields.io/npm/v/ipfs-block-service.svg?maxAge=86400&style=flat)](//github.com/ipfs/js-ipfs-block-service/releases) | [![Deps](https://david-dm.org/ipfs/js-ipfs-block-service.svg?style=flat)](https://david-dm.org/ipfs/js-ipfs-block-service) | [![Travis CI](https://travis-ci.com/ipfs/js-ipfs-block-service.svg?branch=master)](https://travis-ci.com/ipfs/js-ipfs-block-service) | [![codecov](https://codecov.io/gh/ipfs/js-ipfs-block-service/branch/master/graph/badge.svg)](https://codecov.io/gh/ipfs/js-ipfs-block-service) | [Volker Mische](mailto:volker.mische@gmail.com) |
| [`ipfs-bitswap`](//github.com/ipfs/js-ipfs-bitswap) | [![npm](https://img.shields.io/npm/v/ipfs-bitswap.svg?maxAge=86400&style=flat)](//github.com/ipfs/js-ipfs-bitswap/releases) | [![Deps](https://david-dm.org/ipfs/js-ipfs-bitswap.svg?style=flat)](https://david-dm.org/ipfs/js-ipfs-bitswap) | [![Travis CI](https://travis-ci.com/ipfs/js-ipfs-bitswap.svg?branch=master)](https://travis-ci.com/ipfs/js-ipfs-bitswap) | [![codecov](https://codecov.io/gh/ipfs/js-ipfs-bitswap/branch/master/graph/badge.svg)](https://codecov.io/gh/ipfs/js-ipfs-bitswap) | [Volker Mische](mailto:volker.mische@gmail.com) |
| [`ipfs-bitswap`](//github.com/ipfs/js-ipfs-bitswap) | [![npm](https://img.shields.io/npm/v/ipfs-bitswap.svg?maxAge=86400&style=flat)](//github.com/ipfs/js-ipfs-bitswap/releases) | [![Deps](https://david-dm.org/ipfs/js-ipfs-bitswap.svg?style=flat)](https://david-dm.org/ipfs/js-ipfs-bitswap) | [![Travis CI](https://travis-ci.com/ipfs/js-ipfs-bitswap.svg?branch=master)](https://travis-ci.com/ipfs/js-ipfs-bitswap) | [![codecov](https://codecov.io/gh/ipfs/js-ipfs-bitswap/branch/master/graph/badge.svg)](https://codecov.io/gh/ipfs/js-ipfs-bitswap) | [Dirk McCormick](mailto:dirk@protocol.ai) |
| **libp2p** |
| [`libp2p`](//github.com/libp2p/js-libp2p) | [![npm](https://img.shields.io/npm/v/libp2p.svg?maxAge=86400&style=flat)](//github.com/libp2p/js-libp2p/releases) | [![Deps](https://david-dm.org/libp2p/js-libp2p.svg?style=flat)](https://david-dm.org/libp2p/js-libp2p) | [![Travis CI](https://travis-ci.com/libp2p/js-libp2p.svg?branch=master)](https://travis-ci.com/libp2p/js-libp2p) | [![codecov](https://codecov.io/gh/libp2p/js-libp2p/branch/master/graph/badge.svg)](https://codecov.io/gh/libp2p/js-libp2p) | [Jacob Heun](mailto:jacobheun@gmail.com) |
| [`libp2p-circuit`](//github.com/libp2p/js-libp2p-circuit) | [![npm](https://img.shields.io/npm/v/libp2p-circuit.svg?maxAge=86400&style=flat)](//github.com/libp2p/js-libp2p-circuit/releases) | [![Deps](https://david-dm.org/libp2p/js-libp2p-circuit.svg?style=flat)](https://david-dm.org/libp2p/js-libp2p-circuit) | [![Travis CI](https://travis-ci.com/libp2p/js-libp2p-circuit.svg?branch=master)](https://travis-ci.com/libp2p/js-libp2p-circuit) | [![codecov](https://codecov.io/gh/libp2p/js-libp2p-circuit/branch/master/graph/badge.svg)](https://codecov.io/gh/libp2p/js-libp2p-circuit) | [Jacob Heun](mailto:jacobheun@gmail.com) |
1 change: 0 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@ Let us know if you find any issue or if you want to contribute and add a new tut

- [Tutorial: IPFS 101, spawn a node and add a file to IPFS](./ipfs-101)
- [Tutorial: Build a tiny browser app to exchange files between nodes](./exchange-files-in-browser)
- [Tutorial: Interact with IPFS directly from your Terminal](./ipfs-cli-fun)
- [Tutorial: Resolve through IPLD graphs with the dag API](./traverse-ipld-graphs)
- [Tutorial: Use IPFS to explore the Ethereum BlockChain](./explore-ethereum-blockchain)
- [Tutorial (Video): How to build an application with IPFS PubSub Room](https://www.youtube.com/watch?v=Nv_Teb--1zg)
14 changes: 14 additions & 0 deletions examples/browser-mfs/README.md
Original file line number Diff line number Diff line change
@@ -2,8 +2,22 @@

The MFS is a file system abstraction built on top of IPFS. It supports all the operations you would expect such as creating directories, adding files to them, renaming, coping, deleting, etc.

This demo allows you to upload files from your computer and use them to explore MFS methods from within your web browser.

![screenshot](screenshot_1.png)

![screenshot](screenshot_2.png)

## Running the demo

Fork and clone this repo.

Navigate into this directory:

```
$ cd js-ipfs/examples/browser-mfs
```

In this directory:

```
Binary file added examples/browser-mfs/screenshot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/browser-mfs/screenshot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/browser-video-streaming/index.html
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<body>
<video id="video" controls></video>
<script src="https://unpkg.com/ipfs/dist/index.js"></script>
<script src="https://unpkg.com/hlsjs-ipfs-loader@0.1.3/dist/index.js"></script>
<script src="https://unpkg.com/hlsjs-ipfs-loader@0.1.4/dist/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script src="streaming.js"></script>
</body>
2 changes: 1 addition & 1 deletion examples/browser-webpack/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"babel-loader": "^8.0.5",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-hot-loader": "^4.6.3",
"react-hot-loader": "^4.8.8",
"webpack": "^4.28.4",
"webpack-dev-server": "^3.1.14"
},
2 changes: 1 addition & 1 deletion examples/circuit-relaying/package.json
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
"ipfs-pubsub-room": "^1.4.0"
},
"devDependencies": {
"aegir": "^18.0.3",
"aegir": "^19.0.3",
"ipfs-css": "~0.12.0",
"parcel-bundler": "^1.6.2",
"tachyons": "^4.9.1"
1 change: 1 addition & 0 deletions examples/circuit-relaying/src/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
'use strict'

const IPFS = require('ipfs')
1 change: 1 addition & 0 deletions examples/circuit-relaying/src/helpers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
'use strict'

const Room = require('ipfs-pubsub-room')
4 changes: 4 additions & 0 deletions examples/exchange-files-in-browser/README.md
Original file line number Diff line number Diff line change
@@ -175,6 +175,10 @@ Check that you got connected:

![](img/connect-2.png)

> It only works on localhost environments because of a restriction with WebCrypto where it will not load in a page unless that page is loaded over https, or the page is served from localhost: [libp2p/js-libp2p-crypto#105][js-libp2p-crypto#105]
[js-libp2p-crypto#105]: https://github.com/libp2p/js-libp2p-crypto/issues/105

### 5. Transfer files between all of your nodes!

Now you can add files through the CLI with:
5 changes: 2 additions & 3 deletions examples/run-in-electron/package.json
Original file line number Diff line number Diff line change
@@ -4,8 +4,7 @@
"description": "A minimal Electron application with js-ipfs",
"main": "main.js",
"scripts": {
"start": "electron .",
"postinstall": "./rebuild.sh"
"start": "electron ."
},
"keywords": [
"Electron",
@@ -15,7 +14,7 @@
"author": "David Dias <daviddias@ipfs.io>",
"license": "MIT",
"devDependencies": {
"electron": "^4.2.0",
"electron": "^5.0.2",
"electron-rebuild": "^1.8.4",
"ipfs": "ipfs/js-ipfs"
},
13 changes: 0 additions & 13 deletions examples/run-in-electron/rebuild.sh

This file was deleted.

16 changes: 0 additions & 16 deletions greenkeeper.json
Original file line number Diff line number Diff line change
@@ -4,22 +4,6 @@
"packages": [
"package.json"
]
},
"examples": {
"packages": [
"examples/browser-browserify/package.json",
"examples/browser-create-react-app/package.json",
"examples/browser-mfs/package.json",
"examples/browser-parceljs/package.json",
"examples/browser-readablestream/package.json",
"examples/browser-webpack/package.json",
"examples/circuit-relaying/package.json",
"examples/custom-ipfs-repo/package.json",
"examples/custom-libp2p/package.json",
"examples/exchange-files-in-browser/package.json",
"examples/ipfs-101/package.json",
"examples/run-in-electron/package.json"
]
}
}
}
Loading