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

validation: Export rules missing in <14.6.0 using legacy names #2413

Merged
merged 1 commit into from Jan 30, 2020

Conversation

IvanGoncharov
Copy link
Member

It's recommended to update to 14.6.0 and start using correct exports
added in #2400 but if you stuck on the earlier version you could use these
exports as a temporary workaround.
Note: these exports are deprecated and will be removed in v16

It's recommended to update to 14.6.0 and start using correct exports
added in graphql#2400 but if you stuck on the earlier version you can use these
exports as a temporary workaround.
Note: these exports are deprecated and will be removed in v16
@IvanGoncharov IvanGoncharov added the PR: feature 🚀 requires increase of "minor" version number label Jan 29, 2020
@IvanGoncharov
Copy link
Member Author

@trevor-scheer Can you please review it?

@IvanGoncharov IvanGoncharov merged commit 46d64d3 into graphql:master Jan 30, 2020
@IvanGoncharov IvanGoncharov deleted the pr_branch branch January 30, 2020 02:31
Copy link
Contributor

@trevor-scheer trevor-scheer left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

For anyone else curious why some of the rules in this change aren't updated / supported, they should be exported from the top-level with the Rule suffix already.

For example, for our use case we previously had:

import { UniqueTypeNames } from 'graphql/validation/rules/UniqueTypeNames';

Which becomes:

import { UniqueTypeNamesRule } from 'graphql';

trevor-scheer added a commit to apollographql/apollo-server that referenced this pull request Jan 30, 2020
abernix pushed a commit to apollographql/apollo-server that referenced this pull request Jan 31, 2020
This update is in response to the below referenced PRs.

The `UniqueDirectivesPerLocationRule` has been exported at the root since forever (at least 0.12.0.

graphql/graphql-js#2400
graphql/graphql-js#2413
abernix pushed a commit to apollographql/federation that referenced this pull request Sep 4, 2020
…ver#3741)

This update is in response to the below referenced PRs.

The `UniqueDirectivesPerLocationRule` has been exported at the root since forever (at least 0.12.0.

graphql/graphql-js#2400
graphql/graphql-js#2413
Apollo-Orig-Commit-AS: apollographql/apollo-server@5e9054c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature 🚀 requires increase of "minor" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants