ts-graphql-plugin

TypeScript Language Service Plugin for GraphQL developers

MIT License

Downloads
142.2K
Stars
721
Committers
15

Bot releases are hidden (Show)

ts-graphql-plugin - v4.0.3 Latest Release

Published by Quramy 3 months ago

What's Changed

  • Update lower version graphql-language-service to 5.2.1

Full Changelog: https://github.com/Quramy/ts-graphql-plugin/compare/v4.0.2...v4.0.3

ts-graphql-plugin - v4.0.2

Published by Quramy 7 months ago

What's Changed

Full Changelog: https://github.com/Quramy/ts-graphql-plugin/compare/v4.0.1...v4.0.2

ts-graphql-plugin - v4.0.1

Published by Quramy 7 months ago

What's Changed

Full Changelog: https://github.com/Quramy/ts-graphql-plugin/compare/v4.0.0...v4.0.1

ts-graphql-plugin - v4.0.0

Published by Quramy 7 months ago

Breaking Changes

  • Change plugin default configuration values
    • Global fragment registry by default
    • Default tag values
  • Set lower supported Node.js version to v18

Global fragment registry by default

We introduce "Global Fragment Registry" feature at version 3.1, which was opt-in. We set this feature enabled by default in version 4.

Default tag values

In ts-graphql-plugin up to version 3, tag name of template literal strings for GraphQL document should be set explicitly.
In almost all cases, this is set to gql or graphql. So we change the default value of tag this value since version 4.

What's Changed

Full Changelog: https://github.com/Quramy/ts-graphql-plugin/compare/v3.2.0...v4.0.0

ts-graphql-plugin - v3.2.0

Published by Quramy 7 months ago

New Features

Misc Changes

Full Changelog: https://github.com/Quramy/ts-graphql-plugin/compare/v3.1.2...v3.2.0

ts-graphql-plugin - v3.1.2

Published by Quramy 7 months ago

What's Changed

Full Changelog: https://github.com/Quramy/ts-graphql-plugin/compare/v3.1.1...v3.1.2

ts-graphql-plugin - v3.1.1

Published by Quramy 7 months ago

What's Changed

Full Changelog: https://github.com/Quramy/ts-graphql-plugin/compare/v3.1.0...v3.1.1

ts-graphql-plugin - v3.1.0

Published by Quramy 7 months ago

New Features

🎉 ts-graphql-plugin gets compat graphql-codegen 🎉

  • The new enabledGlobalFragments option allows to analyze operation and fragments defined in different templates without interpolation(e.g. ${postFragment}).
  • Function call expression is available as GraphQL document via tag option .

In combination these, ts-graplql-plugin works with graphql-codegen compatible code such as:

import { graphql } from "./gql";

const postFragment = graphql(`
  fragment PostFragment on Post {
    title
    author {
      name
    }
  }
`);

const query = graphql(`
  query AppQuery {
    popularPosts {
      id
      ...PostFragment
    }
  }
`);

See example If you want more details,

What's Changed

Full Changelog: https://github.com/Quramy/ts-graphql-plugin/compare/v3.0.2...v3.1.0

ts-graphql-plugin - v3.0.2

Published by Quramy 8 months ago

Misc changes

New Contributors

Full Changelog: https://github.com/Quramy/ts-graphql-plugin/compare/v3.0.1...v3.0.2

ts-graphql-plugin - v3.0.1

Published by Quramy over 1 year ago

Misc

  • Allow TypeScript v5 as peer dependency
ts-graphql-plugin - v3.0.0

Published by Quramy almost 2 years ago

Breaking Changes

ts-graphql-plugin - v2.1.8

Published by Quramy over 2 years ago

Misc

  • Make compatible to TypeScript v4.7
ts-graphql-plugin - v2.1.7

Published by Quramy over 2 years ago

Misc

  • Update graphql peer dependencies version( allow graphql: "^16") (#808)
ts-graphql-plugin - v2.1.6

Published by Quramy over 2 years ago

Misc

  • Make compatible with TypeScript 4.6
ts-graphql-plugin - v2.1.2

Published by Quramy almost 4 years ago

Bug fix

  • Check circular references for input types (#292 )
ts-graphql-plugin - v2.1.1

Published by Quramy almost 4 years ago

Bug fix

  • Don't include *.tsbuildinfo files.
ts-graphql-plugin - v2.1.0

Published by Quramy almost 4 years ago

New features

  • Customize type generator #232
  • Addon to export a type using graphql-js's TypedQueryDocumentNode #253

Misc

  • Fix option name spelling (removeFrafmentDefiniton for transformer ) #254
ts-graphql-plugin - v2.0.2

Published by Quramy almost 4 years ago

Bug fix

  • Set optional when the variable is nullable ( #182 )
  • webpack v5 support ( #181 )
ts-graphql-plugin - v2.0.0

Published by Quramy about 4 years ago

Breaking Changes

  • Requires graphql >= v15 or later (#121)
ts-graphql-plugin - v1.10.0

Published by Quramy over 4 years ago

Features

  • Custom transformer and webpack plugin ( #82 )
Package Rankings
Top 2.47% on Npmjs.org
Badges
Extracted from project README's
github actions codecov npm version GitHub license
Related Projects