Skip to content
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

chore: update dependencies and ipld #287

Merged
merged 12 commits into from
Apr 2, 2021
Merged

Conversation

rafaelramalho19
Copy link
Contributor

@rafaelramalho19 rafaelramalho19 commented Apr 1, 2021

  • Fixes tests
  • Fixes eslint
  • Removes IPLD dependencies (now IPFS is the one responsible for providing IPLD codecs formatters)
  • Changes lazy loading library to @loadable/component to match webui next release

Notes

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
The accent color is already used for raw leaves in the d3 graph,
this makes sure we remove confusion between git-raw and raw

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
@lidel lidel force-pushed the chore/update-ipld-and-deps branch from 29502c3 to d72adbc Compare April 2, 2021 19:06
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
IPFS publishing is broken atm and does not seem to be very useful in
this repo anyway – actual website is build at
https://github.com/ipfs/explore.ipld.io

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
This aims to match changes that happened in ipfs-webui over past year.

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @rafaelramalho19 for untangling this mess ❤️

LGTM, added small cosmetic fixes and chores:

  • multihash-as-hex was broken due to type change in js-ipfs
  • bumped i18next stack to match ipfs-webui
  • bumped some deps related to cid decoding just in case
  • fixed CI

@lidel lidel merged commit 4a1e16a into master Apr 2, 2021
@lidel lidel deleted the chore/update-ipld-and-deps branch April 2, 2021 22:09
lidel added a commit that referenced this pull request Apr 12, 2021
This PR partially  reverts
#287
because `/api/v0/dag` in go-ipfs do not implement latest IPLD features
yet, and ipfs-http-client delegates path traversal and resolution to
go-ipfs, so codecs in JS are never used.

By reverting to standalone js-ipld we decouple IPLD explorer from what
is available in go-ipfs – we simply fetch raw block and do all decoding
the old way, in JS.

We will revisit this in the future, after IPLD Prime work lands in
go-ipfs, but for now this is the only way to fix IPLD Explorer to work
against go-ipfs backend.

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
lidel added a commit that referenced this pull request Apr 12, 2021
This PR partially  reverts
#287
because `/api/v0/dag` in go-ipfs do not implement latest IPLD features
yet, and ipfs-http-client delegates path traversal and resolution to
go-ipfs, so codecs in JS are never used.

By reverting to standalone js-ipld we decouple IPLD explorer from what
is available in go-ipfs – we simply fetch raw block and do all decoding
the old way, in JS.

We will revisit this in the future, after IPLD Prime work lands in
go-ipfs, but for now this is the only way to fix IPLD Explorer to work
against go-ipfs backend.
Comment on lines +22 to +23
'git-raw': { shortName: 'GIT', name: 'Git', color: '#378085' },
'raw': { shortName: 'RAW', name: 'Raw Block', color: '#f14e32' }, // eslint-disable-line quote-props
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the color for git-raw gets swapped for raw here. @lidel @rafaelramalho19

Copy link
Member

@lidel lidel Apr 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was intentional: we used the same accent for git and raw blocks, and raw ones are way more important in CIDv1 world (used for leaves).

I want to add raw and dag-cbor examples (ipld/explore.ipld.io#62 (comment)), but had no bandwidth for that, so for now only ensured we remove confusion between git and raw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants