Skip to content

feat: dynamically import codecs and hashers and remove from bundle #452

@SgtPooki

Description

@SgtPooki

Is your feature request related to a problem? Please describe.

When bundling this package, we want to make it possible for consumers to customize codecs and hashers. #415 made it possible to customize the links; now, we should allow consumers bundling this package to decide whether they want to import all the hashers & codecs or only some.

Describe the solution you'd like

Describe alternatives you've considered

  • Include all imports not-dynamically: this increases bundle size and requires us to come edit this package any time we want to edit the explorer in explore.ipld.io or ipfs-webui

Additional context

This package is only included in ipfs-webui and explore.ipld.io, but we may wish to add new hashers, or remove others, and it would be nice if we could do that easily.

What is enabled by adding this feature

We will be able to allow further customization without as many edits to this package

This issue isn't tracking the work to customize hashers & codecs, but that should be the next step. Ideally we could pass functions into HeliaProvider or ExploreProvider to load hashers & codecs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right noweffort/daysEstimated to take multiple days, but less than a weekexp/noviceSomeone with a little familiarity can pick upgood first issueGood issue for new contributorshelp wantedSeeking public contribution on this issuekind/architectureCore architecture of projectkind/enhancementA net-new feature or improvement to an existing featurestatus/readyReady to be worked

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions