Releases: eddeee888/graphql-code-generator-plugins
@eddeee888/[email protected]
Minor Changes
- cbffd3d: Support migrating to near-operation-file
@eddeee888/[email protected]
Patch Changes
- 209b7c2: Fix Windows support
@eddeee888/[email protected]
Patch Changes
- e0dc41a: Add base preset to migrate to co-location and Server Preset
@eddeee888/[email protected]
Patch Changes
-
7f03d24: Avoid low-level TypeScript typechecker usage unncessarily, which breaks when running static analysis
Originally,
getTypefunction was called during static analysis to get low-levelTypefor each type property declarations. These types can be used in typechecker'sisAssignableTofunction, which would have a significant perf boost (if done right). However, there needs to be a significant change to use.isAssignableTo, sogetTypewas left there so we can continue the work later.However, declarations of a node could be
undefinedif the type is wrapped in generics that synthesies properties(?). This causes the runtime error. Relevant convoFor now, we can just remove the
getTypecall, until we know how to handle these typing issues.
@eddeee888/[email protected]
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]
@eddeee888/[email protected]
Patch Changes
- 19e1f03: Fix __resolveReference being required all the time
@eddeee888/[email protected]
@eddeee888/[email protected]
Patch Changes
- 7f281c9: Fix scalarOverrides not giving full control to users
@eddeee888/[email protected]
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]
Patch Changes
- 9088222: Fix interface mappers not being detected automatically