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

fix: ipfs-http-client should lowercase key type when submitting to kubo #4303

Closed
wants to merge 1 commit into from

Conversation

RangerMauve
Copy link
Contributor

Fixes #4272

Without this one cannot generate a new key in TypeScript with Kubo since the TypeScript types require uppercase key names.

Not sure if the types should be changed since I'm not sure if js-ipfs-core relies on the uppercase version.

@RangerMauve
Copy link
Contributor Author

Actually I'm not sure what to do here since I'm getting TypeScript errors now.

If I update the types to reflect what Kubo supports it'd be a major breaking change in the API. :/

Maybe we can relax the type to be | string to allow for arbitrary type values?

@achingbrain
Copy link
Member

Thank you so much for opening this PR and for your patience in getting it merged. js-ipfs is being deprecated in favor of Helia. You can #4336 and read the migration guide.

Please swap out ipfs-http-client for kubo-rpc-client - it's a drop in replacement and where bug fixes & features will land in future.

@achingbrain achingbrain closed this Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Can't generate a new key using ipfs-core
3 participants