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

refactor(core): Remove getOperationName helper from @urql/core #3062

Merged
merged 4 commits into from
Mar 16, 2023

Conversation

kitten
Copy link
Member

@kitten kitten commented Mar 16, 2023

Summary

I don't think there's a good reason for us to expose this, as we also don't expose getOperationType, et al. I think this went a step too far and removing it now with a breaking change is likely appropriate.

Set of changes

  • Remove getOperationName export from @urql/core
  • Replace getOperationName implementation on @urql/exchange-execute
  • Fix getOperationName returning first name rather than the first operation's name

@kitten kitten added the major 🚚 Changes queued for a new major release, which will include breaking changes label Mar 16, 2023
@kitten kitten merged commit 557ee4e into main Mar 16, 2023
@kitten kitten deleted the refactor/remove-operation-name-helper branch March 16, 2023 14:17
This was referenced Mar 16, 2023
@github-actions github-actions bot mentioned this pull request Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major 🚚 Changes queued for a new major release, which will include breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants