Skip to content

Releases: eddeee888/graphql-code-generator-plugins

@eddeee888/[email protected]

03 Aug 13:50
ed1d934

Choose a tag to compare

Minor Changes

  • cbffd3d: Support migrating to near-operation-file

@eddeee888/[email protected]

26 Jul 10:47
9c50b48

Choose a tag to compare

Patch Changes

@eddeee888/[email protected]

25 Jul 13:20
a8ea6b8

Choose a tag to compare

Patch Changes

  • e0dc41a: Add base preset to migrate to co-location and Server Preset

@eddeee888/[email protected]

17 May 12:22
221d095

Choose a tag to compare

Patch Changes

  • 7f03d24: Avoid low-level TypeScript typechecker usage unncessarily, which breaks when running static analysis

    Originally, getType function was called during static analysis to get low-level Type for each type property declarations. These types can be used in typechecker's isAssignableTo function, which would have a significant perf boost (if done right). However, there needs to be a significant change to use .isAssignableTo, so getType was left there so we can continue the work later.

    However, declarations of a node could be undefined if the type is wrapped in generics that synthesies properties(?). This causes the runtime error. Relevant convo

    For now, we can just remove the getType call, until we know how to handle these typing issues.

@eddeee888/[email protected]

29 Jan 09:06
5f1a62d

Choose a tag to compare

Minor Changes

  • e84fb01: Add mappersRelativeTargetDir config option

    string (Default: ./)

    By default, mappers must be siblings with the schema they represent. For example, if the schema file is /path/to/schema.graphql, the mapper file is /path/to/schema.mappers.ts. This extension allows mappers to reside in a different directory relative to the schema file using the pattern <schemaPath>/<mappersRelativeTargetDir>/<schemaName><mappersFileExtension>.

  • 221c671: Add moduleNamingMode option to determine the module name for each schema file

    • last: The module name is derived from the last directory (within the schema directory) in the file's path.
    • first: The module name is derived from the first directory (within the schema directory) in the file's path.
    • any number: The module name is derived from the nth zero-indexed directory (within the schema directory) in the file's path. Supports negative numbers which select the nth directory from the back of the file's path.

Patch Changes

  • 19e1f03: Fix __resolveReference being required all the time
  • b4c501c: Update internals to use faster approach to run static analysis
  • df77f2e: Fix issue generated type names with custom naming convention breaks mappers static analysis
  • Updated dependencies [19e1f03]

@eddeee888/[email protected]

29 Jan 09:06
5f1a62d

Choose a tag to compare

Patch Changes

  • 19e1f03: Fix __resolveReference being required all the time

@eddeee888/[email protected]

30 Oct 12:27
4bf8ddf

Choose a tag to compare

Minor Changes

  • 9b45bf3: Use @graphql-codegen/typescript-resolvers meta to handle federation__resolveType
  • 9b45bf3: Do not add files on filesystem that have not been touched by codemod

Patch Changes

  • 9b45bf3: Do not report namingConvention usage as it is fully supported

@eddeee888/[email protected]

07 Aug 11:13
029d791

Choose a tag to compare

Patch Changes

  • 7f281c9: Fix scalarOverrides not giving full control to users

@eddeee888/[email protected]

01 Aug 05:37
ba0d7de

Choose a tag to compare

Patch Changes

  • de78270: Ensure __isTypeOf is in the picked properties so users can choose this way to handle abstract type should they choose

@eddeee888/[email protected]

06 Jul 09:21
741c9e1

Choose a tag to compare

Patch Changes

  • 9088222: Fix interface mappers not being detected automatically