Releases: graphql-hive/graphql-eslint
August 03, 2024
@graphql-eslint/[email protected]
Patch Changes
-
#2466
da608d7
Thanks @dimaMachina! - fixrequire is not defined
in flat
configs for Vue/Svelte projects -
#2468
733a66e
Thanks @dimaMachina! - - rename flat configs exports-graphql.flatConfigs['schema-recommended'].rules +graphql.configs['flat/schema-recommended'] -graphql.flatConfigs['schema-relay'].rules +graphql.configs['flat/schema-relay'] -graphql.flatConfigs['schema-all'].rules +graphql.configs['flat/schema-all'] -graphql.flatConfigs['operations-recommended'].rules +graphql.configs['flat/operations-recommended'] -graphql.flatConfigs['operations-all'].rules +graphql.configs['flat/operations-all']
- fix with programmatic usage when passing large schema as string causes
pattern too long
error - fix loading ESM
graphql.config.js
configs
- fix with programmatic usage when passing large schema as string causes
July 31, 2024
@graphql-eslint/[email protected]
Patch Changes
-
#2455
08a8a13
Thanks @dimaMachina! - fix caching issues for
no-unreachable-types
/no-unused-fields
rules for multi projects -
#2458
9096458
Thanks @dimaMachina! - addmeta
object withname
and
version
toparser
andprocessor
to be compatible with ESLint 9
July 29, 2024
@graphql-eslint/[email protected]
Major Changes
August 29, 2023
@graphql-eslint/[email protected]
Major Changes
-
#1794
4079167e
Thanks @B2o5T! - - bring backpossible-type-extension
rule to
schema-recommended
config- add
unique-operation-name
andunique-fragment-name
rules tooperations-recommended
config
The concept of sibling operations provided by graphql-config's
documents
fields is based on
uniquely named operations and fragments, for omitting false-positive/negative cases when
operations and fragments are located in separate files. For this reason, these rules must be
included in the recommended config- rename
relay
config toschema-relay
To avoid confusing when users extend this config for executable definitions (operations and
fragments) - add
-
#1812
bf475e88
Thanks @B2o5T! - -alphabetize
rule changes-
add
definitions: true
option forschema-all
/operations-all
configs -
rename
values: ['EnumTypeDefinition']
tovalues: true
-
rename
variables: ['OperationDefinition']
tovariables: true
-
add
groups: ['id', '*', 'createdAt', 'updatedAt']
forschema-all
/operations-all
configs -
require-id-when-available
rule changes- rename rule to
require-selections
- rename rule to
-
update
schema-all
/operations-all
configs -
require-description
rule changes- add
rootField: true
option forschema-recommended
config
- add
-
require
eslint
at least>=8.44.0
as peerDependency -
naming-convention
- add new options for
schema-recommended
config
{ 'EnumTypeDefinition,EnumTypeExtension': { forbiddenPrefixes: ['Enum'], forbiddenSuffixes: ['Enum'] }, 'InterfaceTypeDefinition,InterfaceTypeExtension': { forbiddenPrefixes: ['Interface'], forbiddenSuffixes: ['Interface'] }, 'UnionTypeDefinition,UnionTypeExtension': { forbiddenPrefixes: ['Union'], forbiddenSuffixes: ['Union'] }, 'ObjectTypeDefinition,ObjectTypeExtension': { forbiddenPrefixes: ['Type'], forbiddenSuffixes: ['Type'] } }
- add new options for
-
remove graphql-js'
unique-enum-value-names
rule -
rename
no-case-insensitive-enum-values-duplicates
tounique-enum-value-names
Since this rule reports case-insensitive enum values duplicates too
-
require-nullable-result-in-root
rule changesDo not check subscriptions
-
-
#1795
2f46a717
Thanks @B2o5T! - - removeparserOptions.schema
-
remove
parserOptions.documents
-
remove
parserOptions.extensions
-
remove
parserOptions.include
-
remove
parserOptions.exclude
-
remove
parserOptions.projects
-
remove
parserOptions.schemaOptions
-
remove
parserOptions.graphQLParserOptions
-
remove
parserOptions.skipGraphQLConfig
-
remove
parserOptions.operations
-
add
parserOptions.graphQLConfig?: IGraphQLConfig
for programmatic usage
-
-
#1793
6593482b
Thanks @B2o5T! - drop support of Node.js 12/14/16, GraphQL 14/15 -
#1792
804f8b61
Thanks @B2o5T! - RemoveGraphQLRuleTester
from bundle, to test your
rules use regularRuleTester
from eslintNote: with this change unnecessary dependency
@babel/code-frame
was removed tooimport { RuleTester } from 'eslint' const ruleTester = new RuleTester({ parser: require.resolve('@graphql-eslint/eslint-plugin') })
Patch Changes
-
#1813
1c2d220
Thanks @B2o5T! - dependencies updates:- Updated dependency
graphql-config@^4.5.0
↗︎ (from
^4.4.0
, independencies
) - Removed dependency
@babel/code-frame@^7.18.6
↗︎ (from
dependencies
) - Removed dependency
chalk@^4.1.2
↗︎ (from
dependencies
) - Removed dependency
tslib@^2.4.1
↗︎ (from
dependencies
) - Updated dependency
graphql@^16
↗︎ (from
^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0
,
inpeerDependencies
) - Added dependency
eslint@>=8.44.0
↗︎ (to
peerDependencies
)
- Updated dependency
-
#1792
804f8b61
Thanks @B2o5T! - dependencies updates:- Removed dependency
@babel/code-frame@^7.18.6
↗︎ (from
dependencies
)
- Removed dependency
July 13, 2023
@graphql-eslint/[email protected]
Patch Changes
July 04, 2023
@graphql-eslint/[email protected]
Minor Changes
July 02, 2023
@graphql-eslint/[email protected]
Patch Changes
June 30, 2023
@graphql-eslint/[email protected]
Patch Changes
- #1716
40c1523
Thanks @BlakeGardner! - broken rule url for
require-import-fragment
andrequire-nullable-result-in-root
May 23, 2023
@graphql-eslint/[email protected]
Patch Changes
May 22, 2023
@graphql-eslint/[email protected]
Minor Changes
- #1657
0a571bb
Thanks @nishtahir! - Addrequire-nullable-result-in-root
rule to
report on non-null fields in root types