Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency @eddeee888/gcg-typescript-resolver-files to v0.12.0 #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 21, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@eddeee888/gcg-typescript-resolver-files (source) 0.4.0 -> 0.12.0 age adoption passing confidence

Release Notes

eddeee888/graphql-code-generator-plugins (@​eddeee888/gcg-typescript-resolver-files)

v0.12.0

Compare Source

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

v0.11.0

Compare Source

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

v0.10.4

Compare Source

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

v0.10.3

Compare Source

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

v0.10.2

Compare Source

Patch Changes
  • 9088222: Fix interface mappers not being detected automatically

v0.10.1

Compare Source

Patch Changes

v0.10.0

Compare Source

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

v0.9.4

Compare Source

Patch Changes
  • b734d8b: Revert VariableStatement assumption that can cause runtime errors

v0.9.3

Compare Source

Patch Changes
  • 386bb30: Fix issue where variable statements without type node does not get type node added
  • 6715a49: Prefer detected scalar file on filesystem over scalar modules when wiring up resolvers map
  • 86babc6: Fix issue where GraphQLScalarType is imported all the time, regardless of whether it's used

v0.9.2

Compare Source

Patch Changes
  • 538eb24: Fix issue where whitelisted/blacklisted module can incorrectly detect extended resolvers to wire up to resolvers.generated.ts
  • 263604f: Fix externalResolvers config not working for enums

v0.9.1

Compare Source

Patch Changes
  • e999093: Add hooks to defineConfig context

v0.9.0

Compare Source

Minor Changes
  • 454d1df: Add resolverGeneration 'minimal' mode

    minimal is the equivalent of:

    {
      "query": "*",
      "mutation": "*",
      "subscription": "*",
      "scalar": "*",
      "object": "",
      "union": "",
      "interface": ""
    }
  • 454d1df: Implement file auto-wireup if detected at the right filesystem location

Patch Changes
  • c48e8c6: Update internals to avoid parsing schema twice

v0.8.1

Compare Source

Patch Changes

v0.8.0

Compare Source

Minor Changes
  • 6bf957d: Extend resolverGeneration functionality

    Allow passing in an object that to control which files to be generated. By default (i.e. resolverGeneration: 'recommended'), it's equivalent to the following settings:

    defineConfig({
      resolverGeneration: {
        query: '*',
        mutation: '*',
        subscription: '*',
        scalar: '*',
        object: '*',
        union: '',
        interface: '',
      },
    });

    Each option can take a glob pattern to tell the preset which files of a given type to be generated based on its normalized file name.


    A normalized file name has this pattern:

    <Module name>.<Top-level type name>.<Field resolver>?
    

    Consider this schema:

v0.7.5

Compare Source

Patch Changes
  • 4ab8016: Use TypeScript typechecker to collect type properties

    Previously, we manually walked through the program to collect properties of types. This is problematic as there are lots of ways to declare mappers that we cannot manually handle. On top of this, type property properties can be handled natively correctly by TypeScript typechecker.

    Note: class declaration private properties are picked up by TypeScript typechecker, which could be problematic. We are keeping that case as-is.

v0.7.4

Compare Source

Patch Changes
  • e909a17: fix path to output resolver files in main resolver files for nested schema files
  • 067bd7e: Add params to generated resolvers
  • 47c8fa6: Update package.json with missing deps
  • 891f718: fix path to output resolver files so they are always generated near to schema.graphql
  • b226761: Implement recursively pick interface extensions
  • Updated dependencies [47c8fa6]

v0.7.3

Compare Source

Patch Changes
  • 9f3b82b: Federation support: Add __resolveReference to picked fields when extending object types

v0.7.2

Compare Source

Patch Changes
  • 8ed14fc: Fix issue where dashes were not handled correctly when using extended object pattern across multiple schemas
  • 7567190: Declare tslib as a dependency

v0.7.1

Compare Source

Patch Changes
  • 73d9936: Relax presetConfig.typesPluginsConfig.namingConvention enforcement. Warn if used.

    In v0.7.0, we've made presetConfig.typesPluginsConfig.namingConvention to throw if used. In this release, we've relaxed it because certain options may still work e.g. upperCaseFirst . If namingConvention is used, we warn instead.

    Currently, the preset naively uses the schema type spelling/casing as the generated type. Therefore, it's important to have namingConvention option as keep. In the future, we can revisit to make sure generated resolvers have the same namingConvention support as the generated type file.

v0.7.0

Compare Source

Minor Changes
  • ab6a9e7: Support extending non-root object types

    For example, given this schema:

v0.6.0

Compare Source

Minor Changes
  • d0e17ad: Add resolverGeneration option

    disabled or recommended or all (Default: recommended)

    Decides which resolvers to generate:

    • disabled: generates no resolvers. Use this if you want to use your own structures. Note: if custom scalars are detected and used, resolver main files are still generated.
    • recommended: generates the minimal amount of resolvers. Use this if you want a managed experience.
      • no union/interface resolvers are generated because we rely on certain settings in typescript-resolvers that make these not required.
    • all: generates all resolvers. Use this if you want all resolvers to be generated and use the ones you need.
  • 1586d73: Add missing Interface file generation

Patch Changes
  • c3ee642: Fix emitLegacyCommonJSImports issues

    • Fix issue where warning always logged if presetConfig.emitLegacyCommonJSImports is used
    • Throw error when presetConfig.typesPluginsConfig.emitLegacyCommonJSImports is used
    • (Internal) Replace automatic file detection in printImportLine with 3 options: file, module and preserve:
      • This is to fix rare cases where absolute alias path is used in externalResolvers option e.g. src/module/file was missing .js because it was being detected as a module. externalResolvers is set by the user and also used internally for scalar types, so we can use preserve instead to keep the module value as-is.
      • Options:
        • file: import is a file. For ESM, .js extension is added. For CJS, no extension is added.
        • module: import is a module from node_modules or aliased e.g. graphql-scalars or @org/your-module. No extension is added.
        • preserve: preserve what the config declares. This is only used when taking user's config or preset-controlled config e.g. externalExternals because the import could be either file or module
  • 191705f: Add schema option to defineConfig

  • 49ba468: Added support for the case where the Type mapper is a class

  • c968c2c: Fix: defineConfig's type no longer allows typesPluginsConfig.scalars or typesPluginsConfig.emitLegacyCommonJSImports

  • 2205e3f: Update default custom GraphQLScalar template to guide users better

  • Updated dependencies [5e58a08]

v0.5.0

Compare Source

Minor Changes
  • f7831c1: Use resolversNonOptionalTypename instead of nonOptionalTypename

    This makes using abstract types simpler because we do not return __typename for all types, only for union members and interface implementing types.

  • f7831c1: Add scalarsOverrides config option

    Record<string, { resolver?: string; type?: string | { input: string; output: string } }> (Default: {})

    Overrides scalars' resolver implementation, type or both.

    Example:

    // codegen.ts
    {
      generates: {
        'src/schema': defineConfig({
          scalarsOverrides: {
            DateTime: {
              resolver: './localDateTimeResolver#Resolver',
            }
            Currency: {
              type: 'unknown'
            },
            BigInt: {
              resolver: '@&#8203;other/scalars#BigIntResolver',
              type: 'bigint'
            }
          }
        })
      }
    }

    BREAKING CHANGE: typesPluginsConfig.scalars can no longer be used. Please use scalarOverrides instead.

  • f7831c1: Use optionalResolveType=true because resolversNonOptionalTypename works

  • f7831c1: Add scalarsModule config option

    string or false (Default: graphql-scalars)

    Where Scalar implementation and codegen types come from. Use false to implement your own Scalars.

    If using an module that is not graphql-scalars, the module must export resolver implementation and codegen type the same way graphql-scalars does e.g.

    {
      resolvers: {
        DateTime: DateTimeResolver,
      },
      DateTimeResolver: {
        // ... resolver implementation
        extensions: {
          codegenScalarType: 'Date | string',
        },
      }
    }
Patch Changes
  • f7831c1: Allows overriding native scalar types' type (Equivalent of typescript plugin's scalars option)
  • f7831c1: Correctly implement ID Scalar's input/output type: input is string and output is string | number

v0.4.1

Compare Source

Patch Changes
  • af10b65: Add emitLegacyCommonJSImports config option to support esm-style imports in generated output
  • 72c0dc1: Fix typeDefsFileMode=modules not working well with codegen hooks (e.g. afterAllFileWrite) for Windows

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.6.0 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.0 Sep 11, 2023
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 3676d1e to 4a487f2 Compare September 11, 2023 15:52
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 4a487f2 to 53ada8f Compare September 20, 2023 04:12
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.0 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.1 Sep 20, 2023
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 53ada8f to 7252e35 Compare December 15, 2023 12:37
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.1 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.2 Dec 15, 2023
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 7252e35 to 02fa8a0 Compare March 14, 2024 08:13
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.2 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.3 Mar 14, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 02fa8a0 to 413454f Compare April 11, 2024 14:41
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.3 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.4 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 413454f to 56fc5de Compare April 14, 2024 07:49
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.4 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.5 Apr 14, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 56fc5de to 26f993e Compare April 18, 2024 12:59
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.7.5 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.8.0 Apr 18, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 26f993e to e56b74c Compare May 18, 2024 12:44
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.8.0 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.8.1 May 18, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from e56b74c to d54fc91 Compare May 24, 2024 10:14
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.8.1 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.0 May 24, 2024
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.0 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.1 May 28, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch 2 times, most recently from 1f7a6d7 to 1a76f5e Compare May 29, 2024 16:35
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.1 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.2 May 29, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 1a76f5e to 66d5fb1 Compare June 11, 2024 12:51
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.2 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.3 Jun 11, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 66d5fb1 to 8240717 Compare June 12, 2024 13:17
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.3 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.4 Jun 12, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 8240717 to e0fcd1d Compare June 30, 2024 14:19
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.9.4 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.0 Jun 30, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from e0fcd1d to 9552ebb Compare July 2, 2024 14:02
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.0 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.1 Jul 2, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 9552ebb to d6cd097 Compare July 6, 2024 09:51
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.1 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.2 Jul 6, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from d6cd097 to 41c05af Compare August 1, 2024 06:23
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.2 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.3 Aug 1, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 41c05af to a55d815 Compare August 7, 2024 11:30
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.3 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.4 Aug 7, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from a55d815 to 6db684e Compare October 30, 2024 16:40
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.10.4 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.11.0 Oct 30, 2024
@renovate renovate bot force-pushed the renovate/eddeee888-gcg-typescript-resolver-files-0.x branch from 6db684e to 13666b6 Compare January 29, 2025 09:41
@renovate renovate bot changed the title Update dependency @eddeee888/gcg-typescript-resolver-files to v0.11.0 Update dependency @eddeee888/gcg-typescript-resolver-files to v0.12.0 Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants