Skip to content

Commit

Permalink
validation: Export rules missing in <14.6.0 using legacy names (#2413)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
IvanGoncharov committed Jan 30, 2020
1 parent 0bcef09 commit 46d64d3
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 46d64d3

Please sign in to comment.