-
Notifications
You must be signed in to change notification settings - Fork 470
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
Replace deprecated use of getErrors
with onError
#1908
Replace deprecated use of getErrors
with onError
#1908
Conversation
Would be great to have this one merged. Other packages in my monorepo work with 15.0.0, which makes codegen fail. Sticking to an older version of graphql works for now, but would still be great to be able to upgrade. |
Great to see the PR 🎉 It would be great to merge this PR to unlock upgrading the graphql package to 15.x. |
Friendly bump @JakeDawkins Is there any chance to approve this PR to unlock upgrading the graphql package to 15.x? 🙏🏻 |
@JakeDawkins @trevor-scheer @martijnwalraven Is there any sign that this could be merged after resolving the conflicts? |
Thanks, @benhjames for resolving the conflicts! 🙌 |
Caveat: consider this a drive-by comment for now since it's information I don't want overlooked but I'm unable to go too deep on this right now. Given the current dependency range:
And the release milestone for the related PR whose feature this PR aims to make use of (v14.5.0): I think this is a breaking change for projects that depend on Due to the nature of the For some additional context on what I've just mentioned, you can take a dive into the history of my past struggles with graphql's versioning and the |
Thanks @trevor-scheer, that's a good point! I think I can see two primary ways forward here:
|
Thanks for the complete and reasonable reply @trevor-scheer May I add my two cents in on this? I believe it would be the best to provide backwards compatibility, like you suggested @benhjames. |
@benhjames I fully agree with the second option and I'd feel comfortable landing that change. Some comments around that logic explaining why it's necessary and what we can clean up in the next major release would be much appreciated. I'm thinking we may want to expand the This seems like an acceptable change with the caveat that cc @abernix |
@benhjames Update: either today or tomorrow I'm going to open a v15 compat PR. You should feel comfortable making the changes we've talked about, I'll be addressing any other potential issues I can find. Thanks! |
f36f6e0
to
3677ac4
Compare
Thanks again @trevor-scheer, I've added the backwards-compatible condition and comments explaining what's going on. |
@trevor-scheer Will this change land ahead of the v15 compat PR you mentioned, and if so do you have an estimated timeframe for when this will be published to npm? |
Hey everyone following along, little delay on my end for this but I'll be picking up work on the backcompat PR today. @dstreet I'd like to land mine first due to the previously mentioned desire to expand the range of the |
@benhjames those changes are perfect, thank you! This is ready to land pending the changes I intend to introduce. |
Checking back in, have been dealing with some setbacks (particularly, wading through repo infrastructure issues dd46903) as well as some other prioritized work. This is still on my radar. Apologies for the delay! Worth mentioning that @abernix was way ahead of his time. As I've nursed the repo and his branch back to health, it seems the I'll likely end up closing this PR in favor of that one, but I'll communicate that either way. Please feel free to follow along over there as well, and thanks again! |
Sounds great, thanks! I should have looked harder before opening this...! 😅 Feel free to close this PR in favour of #1743. |
Thanks for your understanding @benhjames - for what it's worth, I was also unaware or I would've pointed to it sooner! For anyone looking for an update, please see my comment on the related PR here: There are a couple one-off builds that you're welcome to try out (and feedback or confirmation would be much appreciated!). P.S. I'm going to leave this PR open until we land the other one because there are a number of people subscribed to this one and I'd like to continue keeping them looped in over here as well. |
Update: The releases associated with this change can be found on the • To install the CLI from the I'll be closing this PR in favor of the previously mentioned PRs. Thanks again @benhjames for the help with this! Please try them out and provide feedback on the release PR #2032. Barring any issues I'll release this officially before the end of the week. |
[email protected]
has a breaking change removing the deprecatedgetErrors
method (see graphql/graphql-js#2130). This PR replaces it with the supportedonError
method specified in the constructor.TODO:
*Make sure changelog entries note which project(s) has been affected. See older entries for examples on what this looks like.