Skip to content

Latest commit

 

History

History
376 lines (239 loc) · 19.3 KB

CHANGELOG.md

File metadata and controls

376 lines (239 loc) · 19.3 KB

Note: >0.9.2 Releases CHANGELOG moved to GitHub releases

0.9.1 (2018-05-08)

  • TypeScript template: added missing readonly for __typename field when generating immutable types
  • TypeScript template: added missing imports for ts-multiple templates when generating fragments

0.9.0 (2018-05-07)

  • Update all dependencies
  • Fix bugs with document finder (#233, #216)
  • Respect --out when generating a project (#210, Thanks @micimize)
  • Automatically registerPartial custom templates without breaking normal partial registration (#210, Thanks @micimize)
  • Make ts.{ schema, documents }.handlebars work without a prefix (e.g. ts.schema.handlebars => schema.ts) (#210, Thanks @micimize)
  • Mark template comments as safe to avoid url escaping (#210, Thanks @micimize)
  • Fixed some links in the docs and add relevant docs for the included changes (#210, Thanks @micimize)
  • Fix export CLI short alias (#255, Thanks @eritikass)
  • Deprecate --export, --file, --url in favor of --schema (#208)
  • Added support for a Promise<GraphQLSchema> as export value (#208)
  • New template! TypeScript typings with MongoDB models!
  • Added support for custom output processor (#263)
  • Better detection of GraphQLSchema objects
  • Added programmatic usage (#288)
  • TypeScript generated comments are now docstring valid!
  • Added isNullableArray and raw type name to ResolvedType interface.
  • Fixed TypeScript template output: handle nullables correctly (See #260)
  • You can now pass generator-specific config using environment variables with the prefix CODEGEN_ (See #260)
  • Added avoidOptionals option to TypeScript generators (See #260)
  • Added enumsAsTypes option to TypeScript generators (See #260)
  • Added immutableTypes option to TypeScript generators (See #260)

BREAKING CHANGES

  • --no-schema changed to --skip-schema
  • --no-documents changed to --skip-documents
  • Templates are no longer part of the core package, and they needed to be installed separately (see README installation notes)

0.8.21 (2018-03-17)

  • Use default .ts extension for TypeScript generatos (instead of .d.ts) to avoid errors with enums (Thanks @guilhermehubner)
  • Update some dependencies to the latest version.

0.8.20 (2018-03-14)

  • Fixed a bug with gql detection on TSX files

0.8.19 (2018-03-13)

  • Ignore commented code in document files
  • Better detection for GraphQL documents usage with gql tag.
  • Added prettier support (see README)

0.8.18 (2018-03-13)

  • Added __typename to TypeScript templates, with support for inline fragments.
  • Added stringify Handlebars helpers for easy debugging.
  • Codegen compiler: trim templates before using it.
  • Refactor parts of the TypeScript templates
  • Change inline fragments behavior in generated TypeScript code to use | instead of &.
  • Added --no-overwrite flag to skip overwriting existing files
  • Generator will not throw an error if a glob expression does not match any GraphQL document files
  • Generator will not write a file to file system if the content is empty

0.8.16 (2018-03-13)

  • Handle lists and non-null properly (Thanks @FredyC)

0.8.15 (2018-03-13)

  • Added support for generator-specific config in gql-gen.json file.
  • Generated config is now exposed in the template under the name config in the root context.
  • Added currentTime to the context.
  • Added support for GraphQL 0.13
  • Updated all dependencies
  • Added support for using custom require using --require flag (Thanks Jonas Kello)
  • Update TypeScript enum template (Thanks @darthtrevino)

Breaking Changes

  • Changed CLI option that points to gql-gen.json file from --project-config to --config.

0.8.14 (2017-10-29)

  • (Compiler) Fixed execution context for ifDirective and unlessDirective (now the parent is also available, no need for ../)
  • (TypeScript) Fix for nullable types Fixes #155

0.8.12 (2017-09-21)

  • Fix for custom templates in an external project that use . in result file name (for example: my-file.d.ts.schema.handlebars)

0.8.11 (2017-09-20)

  • Export all available interfaces from the compiler package (Fixes #144
  • Fixed incorrect typings path (Fixes #143)
  • Simplify fragment emitting for selection sets (Fixes #139)
  • Change TypeScript optional to use ? instead of | null (#142)
  • Allow insecure HTTP requests (Fixes #137)

0.8.10 (2017-07-24)

  • Fixed bug with relative path for export JS

0.8.9 (2017-07-24)

  • Fixed bug with relative path for file schema

0.8.8 (2017-07-24)

  • Added support for custom helpers when generating custom templates
  • Added more Handlebars helpers
  • Some fixed for ifDirective helper
  • Updated docs

0.8.7 (2017-07-23)

  • Fixed issue with remote GraphQL endpoint and custom headers

0.8.6 (2017-07-20)

  • Fixed issue with loading GraphQLSchema export from JS file
  • Changed graphql to be peer dependency to avoid multiple instance of GraphQL
  • Fixed issue with custom templates without prefix name

0.8.5 (2017-07-19)

  • Fixed issue with missing indicators for variables and selection set node
  • Better imports optimization and detection
  • Removed default file extension for imports builder

0.8.4 (2017-07-19)

  • Fixed issue with generated result missing Fragment spread
  • Fixed issue with wrong output for GraphQL primitives
  • Fixed issue with default output file overrides the out cli parameter

0.8.3 (2017-07-19)

  • Fixed issue with __typename in selectionSet

0.8.2 (2017-07-18)

  • Fixed issue with NPM installation

0.8.1 (2017-07-18)

  • Fixed issue with NPM installation

0.8.0 (2017-07-17)

  • Refactor everything :)

0.5.5 (2017-07-13)

  • fixed peer dependencies issue
  • fixed error with template resolution PR #110
  • update depndencies
  • Prevent primitives from being output like other models PR #116

0.5.4 (2017-06-24)

  • updated all dependencies

0.5.2 (2017-05-03)

Bug fixes

  • Added support for Anonymous operations (closes #82)
  • Fixed a bug with missing root types (closes #83)
  • Fixed a bug with multiple extends for TypeScript generator #81 - Thanks @Anthonyzou
  • Fixed a issue with generated TypeScript file and TSLint warnings #81 - Thanks @Anthonyzou

Other

  • Updated all dependencies to their latest version.
  • package: update graphql to version 0.9.1 (2782925)

0.5.1 (2017-01-03)

  • updated dependecies

0.5.0 (2016-12-29)

Features

  • core: add support for loading GraphQL schema from js export file (1587ef7)

0.4.0 (2016-12-28)

Bug Fixes

Features

  • libify: added lib exports (7175e11)
  • core: added support for server side schema arguments

0.3.0 (2016-12-26)

Bug Fixes

  • generators: fixes for ts generators (2f72d44)

Features

  • generators: generated ts/swift result examples (e43f289)
  • generators: swift with Apollo iOS generator (cee08c8)
  • generators: add support for fragments spread for swift generator (f95fa72)
  • generators: More fixes for swift generator (487a249)

0.2.5 (2016-12-24)

Bug Fixes

  • generators: fixed a small bug with typescript generator after code modifications (33a4b83)

Features

  • generators: WIP: added swift generator support for inline fragments (3c087b4)
  • generators: WIP: some more fixes and template code for swift generator (3b0d0f9)
  • generators: WIP: swift generator and some bug fixes (f5b0b92)

0.2.4 (2016-12-24)

Features

  • cli: add support for --no-documents and --no-schema flags (1a6a692)

0.2.3 (2016-12-24)

Features

  • documents-finder: add support for finding GraphQL documents inside code files (1d11980)

0.2.2 (2016-12-23)

Bug Fixes

  • fragments: added rootType to fragments (af9b932)

0.2.1 (2016-12-23)

Features

  • flatten, partials: add support for non-flatten innerTypes (1f6d001)

0.2.0 (2016-12-14)

Features

  • core: added custom headers for remote GraphQL endpoint (d3b2cf9)

0.1.9 (2016-12-14)

Features

  • cli: added package version to cli (df698d8)
  • core: added support for custom scalar types (6ce7aa9)

0.1.8 (2016-12-14)

Bug Fixes

  • core: fixes for cli and template path resolve (b7a3540)
  • typescript: fixed enum template (c05acd6)

Features

  • cli: added basic cli support (12b4458)
  • cli: added support for introspection from URL, and updated README (cc15899)
  • core: added document content, added basic Swift generated content (2d144ff)
  • core: added generated root result object to the generated innertypes (086d019)
  • core: added handlebars helpers and added more swift support (657c9f6)
  • core: added inner types resolution and basic typescript template (c173fc3)
  • core: added more template helpers and added variables generation (6da0d88)
  • core: added primitives map, fixes for typescript generators (ebc117b)
  • core: added support for generated fragments and it's use inside documents (fbd268c)
  • core: added support for generated type as array based on server-side schema (a37c849)
  • core: added support for index file for multiple-files generators (7519de0)
  • core: added support for inline fragments (f432ecd)
  • core: added support for multiple-files generation, added typescript-multiple generator, added (0af3cd0)
  • core: added support for operations variables generation (a9bf28f)
  • core: added support for schema interfaces, and update typescript generator (22d3ad0)
  • core: added support for server side types generation only (2bec16f)
  • core: added support for spread fragment when used in client side query (8e9b093)
  • core: added support for union types, updated typescript templates (0172461)
  • core: fixes for generated array types (e2fb340)
  • core: handle multiple inner types with the same name (614ea3a)
  • core: minor fixes and some changes in swift generator (8d30bad)
  • core: minor name fix (5509b1d)
  • core: remove swift (85f1956)
  • core: some fixes (60d4494)
  • core, cli: added cli and more core features (b858693)
  • flow: add flow generator template (af72bbb)
  • generator: added code generator for scheme basic types (f04b3a0)
  • generator: added typescript basic template (00739db)
  • generator: fixes for type handling and added support for lists and nullable types (8c4c498)
  • generator: minor fixes for code generation for schema (f69f375)
  • generator: refactor some code of the generator, added stub for operation handler (156d710)
  • loader: added basic schema loader and validator from JSON introspection file (13b3dec)
  • parser: added basic parser for documents and added some basic interfaces (8ecaf4e)
  • typescript: fixed issue with fragment name (e3799da)