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: Add missing rule exports #2399

Merged
merged 1 commit into from
Jan 26, 2020

Conversation

IvanGoncharov
Copy link
Member

No description provided.

@IvanGoncharov IvanGoncharov added the PR: feature 🚀 requires increase of "minor" version number label Jan 26, 2020
@IvanGoncharov IvanGoncharov merged commit 9ad68e9 into graphql:master Jan 26, 2020
@IvanGoncharov IvanGoncharov deleted the pr_branch branch January 26, 2020 14:56
IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this pull request Jan 26, 2020
Backport of graphql#2399 on `14.x.x` branch
IvanGoncharov added a commit that referenced this pull request Jan 26, 2020
Backport of #2399 on `14.x.x` branch
IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this pull request Jan 27, 2020
Technically it's not a breaking change since only stuff exported from
`graphql` and `graphql/validation` are part of public API.
However, many tools/libraries depended on this "internal" imports to
blacklist certain rules so in graphql#2399 I added missing exports so now
you can import them like so:
```
import { ExecutableDefinitionsRule } from 'graphql/validation';
```

Also I backported missing exports to `14.6.0` release.
If this change broke your code please try to migrate it as shown above
and please feel free to open an issue if you need assistance with migration.
IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this pull request Jan 27, 2020
Long awaited change, see this disscussion:
graphql#808 (comment)

Technically it's not a breaking change since only stuff exported from
`graphql` and `graphql/validation` are part of public API.
However, many tools/libraries depended on this "internal" imports to
blacklist certain rules so in graphql#2399 I added missing exports so now
you can import them like so:
```
import { ExecutableDefinitionsRule } from 'graphql/validation';
```

Also I backported missing exports to `14.6.0` release.
If this change broke your code please try to migrate it as shown above
and please feel free to open an issue if you need assistance with migration.
IvanGoncharov added a commit that referenced this pull request Jan 27, 2020
Long awaited change, see this disscussion:
#808 (comment)

Technically it's not a breaking change since only stuff exported from
`graphql` and `graphql/validation` are part of public API.
However, many tools/libraries depended on this "internal" imports to
blacklist certain rules so in #2399 I added missing exports so now
you can import them like so:
```
import { ExecutableDefinitionsRule } from 'graphql/validation';
```

Also I backported missing exports to `14.6.0` release.
If this change broke your code please try to migrate it as shown above
and please feel free to open an issue if you need assistance with migration.
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.

1 participant