Skip to content

Commit

Permalink
validation: Export rules missing in <14.6.0 using legacy names
Browse files Browse the repository at this point in the history
It's recomended to update to 14.6.0 and start using correct exports
added in graphql#2400 but if you stuck on earlier version you can use these
exports as temporary workaround.
Note: these exports are deprecated and will be removed in v16
  • Loading branch information
IvanGoncharov committed Jan 29, 2020
1 parent 0bcef09 commit f3917f6
Show file tree
Hide file tree
Showing 16 changed files with 144 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/validation/rules/ExecutableDefinitions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @deprecated and will be removed in v16
* Please use either:
* import { ExecutableDefinitionsRule } from 'graphql'
* or
* import { ExecutableDefinitionsRule } from 'graphql/validation'
*/
export { ExecutableDefinitionsRule as ExecutableDefinitions } from './ExecutableDefinitionsRule';
10 changes: 10 additions & 0 deletions src/validation/rules/ExecutableDefinitions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @flow strict

/**
* @deprecated and will be removed in v16
* Please use either:
* import { ExecutableDefinitionsRule } from 'graphql'
* or
* import { ExecutableDefinitionsRule } from 'graphql/validation'
*/
export { ExecutableDefinitionsRule as ExecutableDefinitions } from './ExecutableDefinitionsRule';
8 changes: 8 additions & 0 deletions src/validation/rules/LoneSchemaDefinition.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @deprecated and will be removed in v16
* Please use either:
* import { LoneSchemaDefinitionRule } from 'graphql'
* or
* import { LoneSchemaDefinitionRule } from 'graphql/validation'
*/
export { LoneSchemaDefinitionRule as LoneSchemaDefinition } from './LoneSchemaDefinitionRule';
10 changes: 10 additions & 0 deletions src/validation/rules/LoneSchemaDefinition.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @flow strict

/**
* @deprecated and will be removed in v16
* Please use either:
* import { LoneSchemaDefinitionRule } from 'graphql'
* or
* import { LoneSchemaDefinitionRule } from 'graphql/validation'
*/
export { LoneSchemaDefinitionRule as LoneSchemaDefinition } from './LoneSchemaDefinitionRule';
8 changes: 8 additions & 0 deletions src/validation/rules/PossibleTypeExtensions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @deprecated and will be removed in v16
* Please use either:
* import { PossibleTypeExtensionsRule } from 'graphql'
* or
* import { PossibleTypeExtensionsRule } from 'graphql/validation'
*/
export { PossibleTypeExtensionsRule as PossibleTypeExtensions } from './PossibleTypeExtensionsRule';
10 changes: 10 additions & 0 deletions src/validation/rules/PossibleTypeExtensions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @flow strict

/**
* @deprecated and will be removed in v16
* Please use either:
* import { PossibleTypeExtensionsRule } from 'graphql'
* or
* import { PossibleTypeExtensionsRule } from 'graphql/validation'
*/
export { PossibleTypeExtensionsRule as PossibleTypeExtensions } from './PossibleTypeExtensionsRule';
8 changes: 8 additions & 0 deletions src/validation/rules/UniqueDirectiveNames.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueDirectiveNamesRule } from 'graphql'
* or
* import { UniqueDirectiveNamesRule } from 'graphql/validation'
*/
export { UniqueDirectiveNamesRule as UniqueDirectiveNames } from './UniqueDirectiveNamesRule';
10 changes: 10 additions & 0 deletions src/validation/rules/UniqueDirectiveNames.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @flow strict

/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueDirectiveNamesRule } from 'graphql'
* or
* import { UniqueDirectiveNamesRule } from 'graphql/validation'
*/
export { UniqueDirectiveNamesRule as UniqueDirectiveNames } from './UniqueDirectiveNamesRule';
8 changes: 8 additions & 0 deletions src/validation/rules/UniqueEnumValueNames.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueEnumValueNamesRule } from 'graphql'
* or
* import { UniqueEnumValueNamesRule } from 'graphql/validation'
*/
export { UniqueEnumValueNamesRule as UniqueEnumValueNames } from './UniqueEnumValueNamesRule';
10 changes: 10 additions & 0 deletions src/validation/rules/UniqueEnumValueNames.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @flow strict

/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueEnumValueNamesRule } from 'graphql'
* or
* import { UniqueEnumValueNamesRule } from 'graphql/validation'
*/
export { UniqueEnumValueNamesRule as UniqueEnumValueNames } from './UniqueEnumValueNamesRule';
8 changes: 8 additions & 0 deletions src/validation/rules/UniqueFieldDefinitionNames.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueFieldDefinitionNamesRule } from 'graphql'
* or
* import { UniqueFieldDefinitionNamesRule } from 'graphql/validation'
*/
export { UniqueFieldDefinitionNamesRule as UniqueFieldDefinitionNames } from './UniqueFieldDefinitionNamesRule';
10 changes: 10 additions & 0 deletions src/validation/rules/UniqueFieldDefinitionNames.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @flow strict

/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueFieldDefinitionNamesRule } from 'graphql'
* or
* import { UniqueFieldDefinitionNamesRule } from 'graphql/validation'
*/
export { UniqueFieldDefinitionNamesRule as UniqueFieldDefinitionNames } from './UniqueFieldDefinitionNamesRule';
8 changes: 8 additions & 0 deletions src/validation/rules/UniqueOperationTypes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueOperationTypesRule } from 'graphql'
* or
* import { UniqueOperationTypesRule } from 'graphql/validation'
*/
export { UniqueOperationTypesRule as UniqueOperationTypes } from './UniqueOperationTypesRule';
10 changes: 10 additions & 0 deletions src/validation/rules/UniqueOperationTypes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @flow strict

/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueOperationTypesRule } from 'graphql'
* or
* import { UniqueOperationTypesRule } from 'graphql/validation'
*/
export { UniqueOperationTypesRule as UniqueOperationTypes } from './UniqueOperationTypesRule';
8 changes: 8 additions & 0 deletions src/validation/rules/UniqueTypeNames.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueTypeNamesRule } from 'graphql'
* or
* import { UniqueTypeNamesRule } from 'graphql/validation'
*/
export { UniqueTypeNamesRule as UniqueTypeNames } from './UniqueTypeNamesRule';
10 changes: 10 additions & 0 deletions src/validation/rules/UniqueTypeNames.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @flow strict

/**
* @deprecated and will be removed in v16
* Please use either:
* import { UniqueTypeNamesRule } from 'graphql'
* or
* import { UniqueTypeNamesRule } from 'graphql/validation'
*/
export { UniqueTypeNamesRule as UniqueTypeNames } from './UniqueTypeNamesRule';

0 comments on commit f3917f6

Please sign in to comment.