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

Upgrade GraphiQL setup, support more options #3193

Closed
wants to merge 2 commits into from

Conversation

bgentry
Copy link
Contributor

@bgentry bgentry commented Mar 4, 2024

This upgrades all dependencies in the GraphiQL package. In doing so, I had to partially re-patch the @graphiql/react dep. It was unclear to me whether the full patch was still needed and in my testing I didn't see any need for it, but a maintainer is probably better placed to verify this.

I also added support for some newer options to the graphiql plugin, such as the ability to persist headers between refreshes.

Copy link

changeset-bot bot commented Mar 4, 2024

⚠️ No Changeset found

Latest commit: 3b0fc6a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

},
},
define: {
'process.env.NODE_ENV': '"production"',
// 'process.env.NODE_ENV': '"production"',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was necessary to get the vite server to actually function locally, however I'm not sure whether or not it should be removed altogether. Thoughts?

@bgentry
Copy link
Contributor Author

bgentry commented Mar 5, 2024

The typescript failures here appear to be unrelated to my changes, though maybe they resulted from some of the version upgrades I bundled in here. Happy to try to back those out if you think that's the right course of action, or maybe somebody on your side wants to figure out how to roll forward with them.

@saihaj saihaj requested a review from dimaMachina March 6, 2024 20:28
@bgentry
Copy link
Contributor Author

bgentry commented Apr 5, 2024

Hi @dimaMachina @saihaj, wondering if we can do what's necessary to get the GraphiQL setup upgraded within yoga. There are a lot of options and improvements I'd like to have access to, and the version in yoga is very dated. Thank you and sorry for the additional ping 🙏

@Urigo
Copy link
Collaborator

Urigo commented Apr 5, 2024

Hi @bgentry
Thank you so much for working on this!
Sorry it takes a while to merge, I'll make sure the team will review and hopefully merge and release it next week

Also, I would love to learn more about how you use Yoga and GraphQL in general and get any feedback you have for us on things we can improve
If you are using Slack at work, we can maybe setup a shared Slack channel or we can simply schedule a call

Thanks again and we'll hopefully get this done very soon

@ardatan
Copy link
Collaborator

ardatan commented Apr 8, 2024

Thanks for the PR, and sorry for the late review :) Unfortunately integration tests are failing :/
Could you take a look by any chance?

@EmrysMyrddin
Copy link
Collaborator

Closed in favor of #3279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants