Skip to content

Commit 46d64d3

Browse files
validation: Export rules missing in <14.6.0 using legacy names (#2413)
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 can use these exports as a temporary workaround. Note: these exports are deprecated and will be removed in v16
1 parent 0bcef09 commit 46d64d3

16 files changed

+144
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @deprecated and will be removed in v16
3+
* Please use either:
4+
* import { ExecutableDefinitionsRule } from 'graphql'
5+
* or
6+
* import { ExecutableDefinitionsRule } from 'graphql/validation'
7+
*/
8+
export { ExecutableDefinitionsRule as ExecutableDefinitions } from './ExecutableDefinitionsRule';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @flow strict
2+
3+
/**
4+
* @deprecated and will be removed in v16
5+
* Please use either:
6+
* import { ExecutableDefinitionsRule } from 'graphql'
7+
* or
8+
* import { ExecutableDefinitionsRule } from 'graphql/validation'
9+
*/
10+
export { ExecutableDefinitionsRule as ExecutableDefinitions } from './ExecutableDefinitionsRule';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @deprecated and will be removed in v16
3+
* Please use either:
4+
* import { LoneSchemaDefinitionRule } from 'graphql'
5+
* or
6+
* import { LoneSchemaDefinitionRule } from 'graphql/validation'
7+
*/
8+
export { LoneSchemaDefinitionRule as LoneSchemaDefinition } from './LoneSchemaDefinitionRule';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @flow strict
2+
3+
/**
4+
* @deprecated and will be removed in v16
5+
* Please use either:
6+
* import { LoneSchemaDefinitionRule } from 'graphql'
7+
* or
8+
* import { LoneSchemaDefinitionRule } from 'graphql/validation'
9+
*/
10+
export { LoneSchemaDefinitionRule as LoneSchemaDefinition } from './LoneSchemaDefinitionRule';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @deprecated and will be removed in v16
3+
* Please use either:
4+
* import { PossibleTypeExtensionsRule } from 'graphql'
5+
* or
6+
* import { PossibleTypeExtensionsRule } from 'graphql/validation'
7+
*/
8+
export { PossibleTypeExtensionsRule as PossibleTypeExtensions } from './PossibleTypeExtensionsRule';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @flow strict
2+
3+
/**
4+
* @deprecated and will be removed in v16
5+
* Please use either:
6+
* import { PossibleTypeExtensionsRule } from 'graphql'
7+
* or
8+
* import { PossibleTypeExtensionsRule } from 'graphql/validation'
9+
*/
10+
export { PossibleTypeExtensionsRule as PossibleTypeExtensions } from './PossibleTypeExtensionsRule';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @deprecated and will be removed in v16
3+
* Please use either:
4+
* import { UniqueDirectiveNamesRule } from 'graphql'
5+
* or
6+
* import { UniqueDirectiveNamesRule } from 'graphql/validation'
7+
*/
8+
export { UniqueDirectiveNamesRule as UniqueDirectiveNames } from './UniqueDirectiveNamesRule';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @flow strict
2+
3+
/**
4+
* @deprecated and will be removed in v16
5+
* Please use either:
6+
* import { UniqueDirectiveNamesRule } from 'graphql'
7+
* or
8+
* import { UniqueDirectiveNamesRule } from 'graphql/validation'
9+
*/
10+
export { UniqueDirectiveNamesRule as UniqueDirectiveNames } from './UniqueDirectiveNamesRule';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @deprecated and will be removed in v16
3+
* Please use either:
4+
* import { UniqueEnumValueNamesRule } from 'graphql'
5+
* or
6+
* import { UniqueEnumValueNamesRule } from 'graphql/validation'
7+
*/
8+
export { UniqueEnumValueNamesRule as UniqueEnumValueNames } from './UniqueEnumValueNamesRule';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @flow strict
2+
3+
/**
4+
* @deprecated and will be removed in v16
5+
* Please use either:
6+
* import { UniqueEnumValueNamesRule } from 'graphql'
7+
* or
8+
* import { UniqueEnumValueNamesRule } from 'graphql/validation'
9+
*/
10+
export { UniqueEnumValueNamesRule as UniqueEnumValueNames } from './UniqueEnumValueNamesRule';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @deprecated and will be removed in v16
3+
* Please use either:
4+
* import { UniqueFieldDefinitionNamesRule } from 'graphql'
5+
* or
6+
* import { UniqueFieldDefinitionNamesRule } from 'graphql/validation'
7+
*/
8+
export { UniqueFieldDefinitionNamesRule as UniqueFieldDefinitionNames } from './UniqueFieldDefinitionNamesRule';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @flow strict
2+
3+
/**
4+
* @deprecated and will be removed in v16
5+
* Please use either:
6+
* import { UniqueFieldDefinitionNamesRule } from 'graphql'
7+
* or
8+
* import { UniqueFieldDefinitionNamesRule } from 'graphql/validation'
9+
*/
10+
export { UniqueFieldDefinitionNamesRule as UniqueFieldDefinitionNames } from './UniqueFieldDefinitionNamesRule';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @deprecated and will be removed in v16
3+
* Please use either:
4+
* import { UniqueOperationTypesRule } from 'graphql'
5+
* or
6+
* import { UniqueOperationTypesRule } from 'graphql/validation'
7+
*/
8+
export { UniqueOperationTypesRule as UniqueOperationTypes } from './UniqueOperationTypesRule';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @flow strict
2+
3+
/**
4+
* @deprecated and will be removed in v16
5+
* Please use either:
6+
* import { UniqueOperationTypesRule } from 'graphql'
7+
* or
8+
* import { UniqueOperationTypesRule } from 'graphql/validation'
9+
*/
10+
export { UniqueOperationTypesRule as UniqueOperationTypes } from './UniqueOperationTypesRule';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @deprecated and will be removed in v16
3+
* Please use either:
4+
* import { UniqueTypeNamesRule } from 'graphql'
5+
* or
6+
* import { UniqueTypeNamesRule } from 'graphql/validation'
7+
*/
8+
export { UniqueTypeNamesRule as UniqueTypeNames } from './UniqueTypeNamesRule';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @flow strict
2+
3+
/**
4+
* @deprecated and will be removed in v16
5+
* Please use either:
6+
* import { UniqueTypeNamesRule } from 'graphql'
7+
* or
8+
* import { UniqueTypeNamesRule } from 'graphql/validation'
9+
*/
10+
export { UniqueTypeNamesRule as UniqueTypeNames } from './UniqueTypeNamesRule';

0 commit comments

Comments
 (0)