Socket
Socket
Sign inDemoInstall

eslint-plugin-graphql

Package Overview
Dependencies
142
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345Next

4.0.0

Diff

Changelog

Source

v4.0.0

  • Improve identity template literal tag docs. PR #254 by Jayden Seric.
  • Add support for GraphQL 15. PR #271 by Scott Taylor.
  • Update all devDependencies - upgrades the project to use Babel 7 and ESLint 6. PR #271 by Scott Taylor.
  • BREAKING: Minimum supported Node.js version is now Node.js 10; Dropped support for Node.js 8. PR #271 by Scott Taylor.
jnwng
published 3.1.1 •

Changelog

Source

v3.1.1

  • Update the required-fields rule to handle inline fragments without field ancestors. PR #240 by Henry Q. Dineen
jnwng
published 3.1.0 •

Changelog

Source

v3.1.0

  • Fix an issue that caused graphql/required-fields to throw on non-existent field references. PR #231 by Vitor Balocco
  • chore: Update dependency graphql-tools to v4.0.5. PR #239
  • chore: Update dependency eslint to v5.16.0. PR #218
  • chore: Update dependency graphql to v14.4.2. PR #220
  • chore: Update dependency test-all-versions to v4.1.1. PR #230
  • chore: Update dependency lodash to v4.17.13. PR #234
  • chore: Update dependency mocha to v6. PR #213
  • chore: Running prettier on all files PR #237
apollo-bot
published 3.0.3 •

Changelog

Source

v3.0.3

  • chore: Update dependency graphql-tools to v4.0.4. PR #210
  • chore: Update dependency eslint to v5.12.1. PR #206
  • chore: Update dependency graphql to v14.1.1. PR #208
apollo-bot
published 3.0.2 •

Changelog

Source

v3.0.2

  • Fix regression which caused graphql/required-fields to throw on non-existent field references. PR #203 by Matt Bretl
sashko
published 3.0.1 •

Changelog

Source

v3.0.1

sashko
published 3.0.0 •

Changelog

Source

v3.0.0

  • BREAKING: The required-fields rule has been significantly changed to make it a completely reliable method of ensuring an id field (or any other field name) is always requested when available. PR #199 Here is the behavior, let's say we are requiring field id:
    • On any field whose return type defines a field called id, the selection set must directly contain id.
    • In any named fragment declaration whose type defines a field called id, the selection set must directly contain id.
    • An inline fragment whose type defines a field called id must contain id in its selection set unless its parent is also an inline fragment that contains the field id.
    • Here's a specific case which is no longer valid:
      • query { greetings { hello ... on Greetings { id } } }
      • This must now be written as query { greetings { id hello ... on Greetings { id } } }
    • This is a more conservative approach than before, driven by the fact that it's quite hard to ensure that a combination of inline fragments actually covers all of the possible types of a selection set.
  • Fix breaking change in graphql@^14.0.0 that renamed ProvidedNonNullArguments to ProvidedRequiredArguments #192
  • Update dependencies to graphql-tools 4 and eslint 5.9 #193
jnwng
published 2.1.1 •

Changelog

Source

v2.1.1

  • Fix support for InlineFragments with the required-fields rule in #140 by Steve Hollaar
  • Fix error location information for literal .graphql files and strings with leading newlines in #122 by Dan Freeman
  • Add fraql environment
jnwng
published 2.1.0 •

Changelog

Source

v2.1.0

  • Retrieves .graphqlconfig relative to the file being linted, which re-enables support for vscode-eslint using .graphqlconfig in #108 by [Jon Wong][https://github.com/jnwng/]
  • Cache schema reading/parsing results each time a rule is created in #137 by Kristján Oddsson
jnwng
published 2.1.0-0 •

2345Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc