Releases: eddeee888/graphql-code-generator-plugins
@eddeee888/gcg-typescript-resolver-files@0.12.1
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-levelType
for each type property declarations. These types can be used in typechecker'sisAssignableTo
function, which would have a significant perf boost (if done right). However, there needs to be a significant change to use.isAssignableTo
, sogetType
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 convoFor now, we can just remove the
getType
call, until we know how to handle these typing issues.
@eddeee888/gcg-typescript-resolver-files@0.12.0
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
@eddeee888/gcg-server-config@0.2.3
Patch Changes
- 19e1f03: Fix __resolveReference being required all the time
@eddeee888/gcg-typescript-resolver-files@0.11.0
@eddeee888/gcg-typescript-resolver-files@0.10.4
Patch Changes
- 7f281c9: Fix scalarOverrides not giving full control to users
@eddeee888/gcg-typescript-resolver-files@0.10.3
Patch Changes
- de78270: Ensure __isTypeOf is in the picked properties so users can choose this way to handle abstract type should they choose
@eddeee888/gcg-typescript-resolver-files@0.10.2
Patch Changes
- 9088222: Fix interface mappers not being detected automatically
@eddeee888/gcg-typescript-resolver-files@0.10.1
@eddeee888/gcg-server-config@0.2.2
Patch Changes
- 906d454: Bump @graphql-codegen/typescript-resolvers to v4.2.1
@eddeee888/gcg-typescript-resolver-files@0.10.0
Minor Changes
- 8ec553b: Handle enum resolverGeneration, autowireup and mapper. Enable enum resolvers generation by default.
- 8ec553b: Use reported generated type names from @graphql-codegen/typescript-resolvers meta to support all naming convention
- 8ec553b: Add
fixObjectTypeResolvers.enum = smart
option to ensure all allowedValues are generated - 8ec553b: Fully support namingConvention for resolvers map
- Use schema-ast plugin to generate a merged schema. This is a useful artifact if user needs an easy way to share the schema with another codebase or use it with libraries that support parsing only one schema file.