-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore: add ipfs http response package #3884
Conversation
feat: initial implementation
feat: export resolver
The service-worker-gateway was only responding with the correct content-type for some mime-types, see https://github.com/sindresorhus/file-type#supported-file-types. This commit now fall-backs to detecting based on the extension as well. Note that SVGs aren't supported by the `file-type` module.
* feat: support cidv1b32 in resolver - feat: CID support, added resolver.cid - feat: basic support for HAMD sharded directory - not real support, we need ipfs.resolve for that - fix: return data from raw dag without resolv step License: MIT Signed-off-by: Marcin Rataj <[email protected]>
BREAKING CHANGE: v1 CIDs created by this module now default to base32 encoding when stringified Not a direct dependency of this module but ipld-dag-pb changed the case of some property names that are used by this module. License: MIT Signed-off-by: Alan Shaw <[email protected]>
yeah, I think I need to use the same think we did in unixfs with publishDirectory |
Maybe open this PR against the branch in #3879 - it's got all the CJS/ESM learnings from It's a still a little rough rough the edges though. |
oh wat, you are changing everything to ESM already 🎉 🎉 🚢 ❤️ That's rad, yes, I will change the target |
@achingbrain this will likely get problematic keeping the history of this commit and keeping this branch in sync with #3879 Should I just wait until that gets merged instead and then update master here? |
That's probably the easiest way - I'm hoping to get #3879 in today or tomorrow. |
#3879 is in so merging master into this should make most of the red disappear. |
Thanks! 🎉 I will look into it |
8094dfb
to
d335628
Compare
Co-authored-by: Alex Potsides <[email protected]>
2f4cd6f
to
654d84f
Compare
358183e
to
c85bbaa
Compare
c85bbaa
to
f8cc058
Compare
@achingbrain this is ready. The commits should not be squashed, in order to keep repo history and contributors |
This PR adds the content of https://github.com/ipfs/js-ipfs-http-response to this monorepo to smooth its maintenance burden.
This PR includes all the git contribution history and should be merged instead of squashed.
What's next?