Skip to content

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

Merged
IvanGoncharov merged 1 commit into
graphql:masterfrom
IvanGoncharov:pr_branch
Jan 30, 2020
Merged

validation: Export rules missing in <14.6.0 using legacy names#2413
IvanGoncharov merged 1 commit into
graphql:masterfrom
IvanGoncharov:pr_branch

Conversation

@IvanGoncharov

Copy link
Copy Markdown
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
Copy Markdown
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

@trevor-scheer trevor-scheer left a comment

Copy link
Copy Markdown
Contributor

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.

2 participants