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

fix(context): Re-export context from graphql-server #10117

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

Josh-Walker-GM
Copy link
Collaborator

Problem
As part of v7 context refactoring we move context from @redwoodjs/graphql-server to @redwoodjs/context. We had a period of time where both locations had the code with the graphql-server variant being deprecated. However, once it was removed from graphql-server this was a breaking change as any user who had specifically imported from graphql-server would now have tp update their code. This reverts this and allows them to continue to import from the graphql-server package.

Changes

  1. Re-export the context and setContext from the package as was done previous to v7.

@Josh-Walker-GM Josh-Walker-GM added the release:fix This PR is a fix label Mar 6, 2024
@Josh-Walker-GM Josh-Walker-GM added this to the next-release-patch milestone Mar 6, 2024
@Josh-Walker-GM Josh-Walker-GM requested a review from jtoar March 6, 2024 08:59
@Josh-Walker-GM Josh-Walker-GM self-assigned this Mar 6, 2024
@jtoar
Copy link
Contributor

jtoar commented Mar 6, 2024

@Josh-Walker-GM some of the checks aren't running (milestone, label, etc), but if you could add a changelog entry i'll merge when everything else passes

@Josh-Walker-GM
Copy link
Collaborator Author

Thanks @jtoar! I'd been hoping the changelog would fail so I could give it my first go - it's been a bit since I committed to the redwood repo itself.

Funny about the check statuses! They must have run because the GitHub mobile app shows them as having run and then the changelog one failed. It seems like it's just something on the presentation side at GitHub and not the job running itself. Cool haha

@jtoar jtoar merged commit e240f9e into main Mar 6, 2024
41 checks passed
@jtoar jtoar deleted the jgmw-fix/reexport-context branch March 6, 2024 09:42
jtoar pushed a commit that referenced this pull request Mar 6, 2024
**Problem**
As part of v7 context refactoring we move context from
`@redwoodjs/graphql-server` to `@redwoodjs/context`. We had a period of
time where both locations had the code with the `graphql-server` variant
being deprecated. However, once it was removed from `graphql-server`
this was a breaking change as any user who had specifically imported
from `graphql-server` would now have tp update their code. This reverts
this and allows them to continue to import from the `graphql-server`
package.

**Changes**
1. Re-export the `context` and `setContext` from the package as was done
previous to v7.
@jtoar jtoar modified the milestones: next-release-patch, v7.0.7 Mar 6, 2024
jtoar pushed a commit that referenced this pull request Mar 6, 2024
**Problem**
As part of v7 context refactoring we move context from
`@redwoodjs/graphql-server` to `@redwoodjs/context`. We had a period of
time where both locations had the code with the `graphql-server` variant
being deprecated. However, once it was removed from `graphql-server`
this was a breaking change as any user who had specifically imported
from `graphql-server` would now have tp update their code. This reverts
this and allows them to continue to import from the `graphql-server`
package.

**Changes**
1. Re-export the `context` and `setContext` from the package as was done
previous to v7.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants