Skip to content
Apr 17, 2019

@dotansimha dotansimha released this Apr 16, 2019 · 356 commits to master since this release

Upgrade js-yaml and release 0.18.1 (#1693)

Assets 2

@dotansimha dotansimha released this Apr 7, 2019 · 50 commits to master since this release

General

  • Update dependencies
  • Fix graphql peer-dependency range (#1637)
  • Fixed a bug caused an exception when only namingConvention: { enumValues: 'package' } is specified, now it will default all the other, unspecified, naming conventions (#1656)

Time Plugin

  • Fix package.json values related to bundling (#1601)

TypeScript

  • Fix for type implementing interface without adding new fields (#1596)

TypeScript Operations

  • Throw an error when fragment is missing (72ddabc)
  • Should work with fragment on union type (#1635)

TypeScript Resolvers

  • Improved generated code related to resolvers and mappers - by using Omit to remove fields and add them back using the mapped value (#1593)
  • Allow to specify wrapper for defaultMapper - you can now use Partial<{T}> to apply it for all types. (#1591, #1593)
  • Always generate parent type for resolvers - instead of mapping it each time, we are now generating a type called ResolversTypes including all resolvers types (mapped or not) (#1589, #1593)
  • Gracefully handle an interface with no known implementors (#1640)

Flow

  • Fix for type implementing interface without adding new fields (#1596)
  • Fixed issue with missing optional sign on input type fields (#1645)
  • Fixed a bug with useFlowExactObjects: true creates invalid javascript for enums, caused by adding | to Object.freeze call (#1634)

Flow Operations

  • Throw an error when fragment is missing (72ddabc)
  • Should work with fragment on union type (#1635)

Flow Resolvers

  • Improved generated code related to resolvers and mappers - by using $Diff to remove fields and add them back using the mapped value (#1593)
  • Allow to specify wrapper for defaultMapper - you can now use Partial<{T}> to apply it for all types. (#1591, #1593)
  • Always generate parent type for resolvers - instead of mapping it each time, we are now generating a type called ResolversTypes including all resolvers types (mapped or not) (#1589, #1593)
  • Added unusedMappers configuration to print a warning for mappers that are not defined in schema.
  • Gracefully handle an interface with no known implementors (#1640)
  • Set SubscriptionResolver type to full array type (#1653)
  • Fixed syntax error on missing <> (#1650)

TypeScript React-Apollo

  • Make sure to remove all loc fields from DocumentNode when generating documents with noGraphQlTag (#1599, #1663)

TypeScript Apollo-Angular

  • Make sure to remove all loc fields from DocumentNode when generating documents with noGraphQlTag (#1599, #1663)

TypeScript Stencil-Apollo

  • Make sure to remove all loc fields from DocumentNode when generating documents with noGraphQlTag (#1599, #1663)

Docs

  • Update Apollo Local State documentation (72ddabc)
  • Added documentation for GatsbyJS (72ddabc)
  • Update watch flags documentation (c5d5b55)
  • Update programmatic usage docs (#1623)
  • Update react-apollo example in docs (#1636)
Assets 2

@dotansimha dotansimha released this Mar 27, 2019 · 99 commits to master since this release

TypeScript Operations

  • Fixed issue with incorrect usage of scalars (#1582)

Flow Operations

  • Fixed issue with incorrect usage of scalars (#1582)
Assets 2

@dotansimha dotansimha released this Mar 27, 2019 · 101 commits to master since this release

Core

  • Update dependencies
  • Custom schema loader should be loaded from the current directory (f349d86)

TypeScript

  • Fix issue with underscore not being removed from enum values names (#1576)

Flow

  • Fix issue with underscore not being removed from enum values names (#1576)

TypeScript Operations

  • Fix for fragments on type implementing multiple interfaces(#1580)

Flow Operations

  • Fix for fragments on type implementing multiple interfaces(#1580)

TypeScript Resolvers

  • Point out unused mappers (#1562)
  • Interface field with args doesn't generate argument type (#1566)
  • Variable types wrong for operations with default variables (#1567)
  • Added the ability to skip schema-stitching generation (#1572)

Docs

  • Update typescript-resolvers docs
  • #1574
Assets 2

@dotansimha dotansimha released this Mar 25, 2019 · 119 commits to master since this release

Core

  • Ignored generated output (#1558)
  • Update dependencies

TypeScript

TypeScript Operations

  • Fix issue with fragments spread and inline fragments intersection (#1544)

TypeScript React-Apollo

TypeScript Resolvers

  • Fixed issues mapped interfaces (#1525)
  • Should not convert type names in unions (#1560)

Flow

Flow Operations

  • Fix issue with fragments spread and inline fragments intersection (#1544)

Docs

Assets 2

@dotansimha dotansimha released this Mar 22, 2019 · 147 commits to master since this release

Core

  • Update dependencies
  • Fixed an bug caused to plugin to be ignored during execution (#1499, #1534)

TypeScript Resolvers

  • Allow to specify avoidOptionals (#893 (comment))
  • Added back defaultMapper feature (#1526)
  • Removed I prefix from generated root resolvers (#1527)
  • Remove ArrayOrIterable at the moment, until we'll figure out if it's really needed. (#1534)

TypeScript Operations

  • Fixed fragments intersection when specified over interfaces (#1533)

Flow Operations

  • Fixed fragments intersection when specified over interfaces (#1533)

Flow Resolvers

  • Added back defaultMapper feature (#1526)
  • Removed I prefix from generated root resolvers (#1527)
  • Remove ArrayOrIterable at the moment, until we'll figure out if it's really needed. (#1534)
    -Fix issue caused the root resolvers to be f: Resolver<> (invalid syntax). (#1534)
Assets 2

@dotansimha dotansimha released this Mar 20, 2019 · 160 commits to master since this release

TypeScript Resolvers

  • Fixed issue with missing identifier in import statement when using mapped contextType (#1522)

Flow Resolvers

  • Fixed issue with missing identifier in import statement when using mapped contextType (#1522)
  • Fixed issue with scalar config type (#1520)

Docs

  • Updated docs for programatic usage.
Assets 2

@dotansimha dotansimha released this Mar 20, 2019 · 166 commits to master since this release

Core

  • Updated dependencies
  • Fixed issues with lerna and deployment of alpha versions.

CLI

  • Fixed issue with init command (#1496)
  • Make sure user selects a target in init command (#1500)

Fragment Matcher

  • Fixed issue with fragments matcher main field (#1507)

TypeScript

  • Fixed issues with enum mapping (#1518)
  • Fixed issues with external enum mapping (#1518)
  • Added missing description comments (#1519)

TypeScript Resolvers

  • Fixed issue with duplicate imports resolvers (#1510)
  • Fixed __resolveType signature (#1511)
  • Do not create directive resolvers interface if there is no directive defined in the schema (#1516)

TypeScript Apollo Angular

  • Fixed issue with incorrect import (#1512)

Flow

  • Fixed issues with enum mapping (#1518)
  • Fixed issues with external enum mapping (#1518)
  • Added missing description comments (#1519)

Flow Resolvers

  • Fixed issue with duplicate imports resolvers (#1510)
  • Do not create directive resolvers interface if there is no directive defined in the schema (#1516)

Docs

  • Updated the docs for programatic usage.
Assets 2

@dotansimha dotansimha released this Mar 20, 2019 · 213 commits to master since this release

CLI

  • CLI package now only handles the CLI execution and the CLI output, and no longer required when running the codegen programatically.
  • The default behaviour of overwrite is now true by default.

Core

  • core package has been changed, now it includes all execution logic, as a slim package that can be consumed in browser environment.
  • handlebars is no longer in use, and all the utils that we made to bridge the codegen and handlebars are now removed (flattenDocuments and buildSchemaContext).
  • All previous exported methods are now removed.

TypeScript

💥BREAKING CHANGES 💥

  • typescript-common has been removed, now all common parts are inside typescript, and all other typescript plugins depend on it.
  • typescript-server is now typescript and should be in use always when generating TypeScript, it's the base plugin for all other plugins.
  • typescript-client is now typescript-operations, and it uses Pick<> to generate a single TypeScript type instead of using scoped namespaces.
  • We no longer generates namespaces in all plugins, so there is no need to configure the codegen in a special way in order to use it with babel-typescript.
  • You should change your existing usage from MyData.Query to MyDataQuery, and from MyData.Variables to MyDataQueryVariables.
  • Args object has been change, the name before was built as {FIELD_NAME}.{TYPE_NAME}Args, now it's {TYPE_NAME}.{FIELD_NAME}Args.
  • There are no inner types in each query, it means that if you used to do MyData.SomeInternalField, now you should use MyData['someInternalField'].
  • Generated resolvers also no longer use namespaces, so instead of MyResolver.Resolver, you should use MyResolver.
  • Enum values are now using the correct method for naming convention, so it might effect enums values with underscore (_) sign. (before: MyEnum.MyValue and now: MyEnum.My_Value).
  • enums configuration name has been changed to enumValues.
  • Programatic usage should import codegen from @graphql-codegen/core instead of generate from graphql-code-generator.

TypeScript React-Apollo

  • HOC changed from OperationHOC to withOperation.
Assets 2
You can’t perform that action at this time.