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

New features for GraphQL typescript plugin #1757

Merged
merged 20 commits into from Sep 1, 2022

Commits on Sep 22, 2021

  1. Configuration menu
    Copy the full SHA
    f33c2c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3767300 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2021

  1. feat(plugin) process only classes with whitelisted decorators

    Prior to this change typescript transform plugin processed all classes in
    files with a matching names. This is probably not desirable behaviour
    because there might be classes not exposed to graphql and they should not be processed
    
    This change makes processing a bit smarter, so it only processes classes
    decorated with ObjectType / InterfaceType and InputType decorators.
    thekip committed Oct 17, 2021
    Configuration menu
    Copy the full SHA
    ba872af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c040d5d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3534806 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7f5ed13 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    40d8aba View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    537e5b7 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2021

  1. Configuration menu
    Copy the full SHA
    1946079 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c8c8c88 View commit details
    Browse the repository at this point in the history
  3. fix(plugin) downlevel implicit registerEnumType import in CommonJS

    When code is downleveled to ES5 it automatically change all
    usages of imported members except those which was added by transform.
    
    This breaks `registerEnumType()` calls added by transform.
    
    The solution is create an explicit dedicated import only for this method in the
    transform and not relay on exisitng imports at all.
    thekip committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    e8763d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. tests(plugin) add tests for commonjs import changing that actually ch…

    …eck something
    
    Previous test used transpile-only code, which produced code not showing
    actual transformation therefore this test didn't actually check that
    imports correctly added
    thekip committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    d84e42d View commit details
    Browse the repository at this point in the history
  2. refactor(plugin) remove nested types introspection, refactor

    Nested types introspection was useless because runtime did not understand this code.
    There is no way to use "anonymous" type literals in graphql schema
    
    Add tests for replaceImportPath util, because current test suite didn't cover
    all branches in it.
    thekip committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    5d59b38 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3fe7cdb View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2021

  1. Configuration menu
    Copy the full SHA
    9d61a01 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2022

  1. Configuration menu
    Copy the full SHA
    17dc544 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'upstream/master' into feature/graphql-p…

    …lugin
    
    # Conflicts:
    #	.prettierignore
    #	packages/graphql/lib/plugin/utils/ast-utils.ts
    #	packages/graphql/lib/plugin/visitors/model-class.visitor.ts
    #	packages/graphql/tests/plugin/fixtures/nullable.dto.ts
    #	packages/graphql/tests/plugin/model-class-visitor.spec.ts
    thekip committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    8c27c3d View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2022

  1. Configuration menu
    Copy the full SHA
    5c6e0c0 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2022

  1. Configuration menu
    Copy the full SHA
    4ab789a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1afa497 View commit details
    Browse the repository at this point in the history