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

feat!: remove deprecated /api/v0 #103

Merged
merged 2 commits into from
Mar 7, 2024
Merged

feat!: remove deprecated /api/v0 #103

merged 2 commits into from
Mar 7, 2024

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Mar 5, 2024

We've just removed it from Kubo, so I think it's a good idea to clean this up here too: ipfs/kubo#10352

@hacdias hacdias requested a review from lidel March 5, 2024 08:32
@hacdias hacdias self-assigned this Mar 5, 2024
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 for cleaning this up. It makes sense, removal from KUBO_RPC_URL reduces confusion, but there will be old code in the wild that uses /api/v0/resolve etc that will break. People don't follow release notes, deprecations, will learn about this from errors.
We should do basic courtesy of returning meaningful error for all /api/v0 requests, allowing them to fix their app without debugging what happened.

Mind addressing below comment? Other than that, lgtm.

handlers.go Show resolved Hide resolved
@hacdias hacdias enabled auto-merge (squash) March 7, 2024 08:32
@hacdias hacdias merged commit fb5e468 into main Mar 7, 2024
10 checks passed
@hacdias hacdias deleted the remove-api-v0 branch March 7, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

2 participants