Skip to content

Releases: Quramy/ts-graphql-plugin

v4.0.2

03 Apr 09:40
Compare
Choose a tag to compare

What's Changed

  • feat: Allow glob wildcard character in exclude option by @Quramy in #1291

Full Changelog: v4.0.1...v4.0.2

v4.0.1

02 Apr 15:44
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.0...v4.0.1

v4.0.0

29 Mar 11:53
Compare
Choose a tag to compare

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: v3.2.0...v4.0.0

v3.2.0

27 Mar 04:19
Compare
Choose a tag to compare

New Features

Misc Changes

Full Changelog: v3.1.2...v3.2.0

v3.1.2

18 Mar 09:38
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.1.1...v3.1.2

v3.1.1

15 Mar 16:01
Compare
Choose a tag to compare

What's Changed

  • fix: Add addons js to npm files entries by @Quramy in #1238

Full Changelog: v3.1.0...v3.1.1

v3.1.0

15 Mar 15:43
Compare
Choose a tag to compare

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: v3.0.2...v3.1.0

v3.0.2

29 Feb 13:02
Compare
Choose a tag to compare

Misc changes

New Contributors

Full Changelog: v3.0.1...v3.0.2

v3.0.1

30 Mar 01:04
Compare
Choose a tag to compare

Misc

  • Allow TypeScript v5 as peer dependency

v3.0.0

25 Dec 13:54
Compare
Choose a tag to compare

Breaking Changes