Skip to content

Releases: Khan/graphql-flow

v1.0.0

07 Jun 21:25
cbcc684
Compare
Choose a tag to compare

Major Changes

  • 1e1de13: BREAKING: Change config file format, split into 'crawl' and 'generate' sections
    See schema.json for new organization.

  • 284be55: [breaking] remove support for running graphql-flow via jest

    Now the cli tool is the only way to invoke graphql-flow.

  • 9f7f2d1: Breaking: removed support for multiple config files (to be replaced with override support in the central config file)

Minor Changes

  • a99fc38: Support multiple 'generate' configs, allowing projects to have different settings for different directories or files

    config.generate can now be an object or an array of objects, with match and exclude arrays (either a RegExp or a string that will be passed to new RegExp()) to fine-tune which files they apply to.

Patch Changes

  • bcc06d0: Use jsonschema for validating the config file

v0.3.0

25 May 17:26
7b19c63
Compare
Choose a tag to compare

Minor Changes

  • 093fa5f: Enable experimentalEnums in a config or subconfig file in to enable the export of flow enum types, which replace the default string union literals. The type currently comes with eslint decorators to skirt a bug in eslint and flow.
  • 5078624: Users can add files with the name ending in graphql-flow.config.js with a subset of the config fields (options, excludes) in order to have more granular control of the behavior. Another field, extends, takes the path of another config file to use as a base and extends/overrides fields. If no extends is provided, the file completely overwrites any other config files (as far as options and excludes).

v0.2.5

10 May 18:26
3200588
Compare
Choose a tag to compare

Patch Changes

  • 0df32ac: Allow generatedDir to be an absolute path

v0.2.4

02 May 18:09
5796e61
Compare
Choose a tag to compare

Patch Changes

  • 843839c: Add 'dumpOperations' config option, to enable safelisting

v0.2.3

02 May 14:33
9d66c28
Compare
Choose a tag to compare

Patch Changes

  • f5ea353: Add 'typeFileName' config option to fit the mobile repo's expectations

v0.2.2

22 Apr 18:09
d09189a
Compare
Choose a tag to compare

Patch Changes

  • 31dd235: Compile for node 12 instead of 16

v0.2.1

21 Apr 19:29
6a0ac88
Compare
Choose a tag to compare

Patch Changes

  • e8a8025: Add shebang to the exported binary, so that it runs

v0.2.0

20 Apr 16:22
9508038
Compare
Choose a tag to compare

Minor Changes

  • d9a8229: Generate types for fragments!

Patch Changes

  • 7497164: Fix a bug in index file generation that resulted in duplicate entries
  • 26abf9b: Add options for specifying the name of the generated directory, and for exporting the response and variables types.

v0.1.0

06 Apr 15:46
59fa6eb
Compare
Choose a tag to compare

Minor Changes

  • b08ed1b: Build out a cli tool that does our own parsing of javascript files, dramatically speeding things up!

Patch Changes

  • 8cdcdc2: Support inline fragments on objects
  • fd5c6b7: Allow schema to be provided as a .graphql file, not just .json
  • 6869203: Add 'ignorePragma' option, to allow skipping of documents

v0.0.2

29 Mar 17:13
3319254
Compare
Choose a tag to compare

Patch Changes

  • 9810bfe: Allow customization of the "regenerate command" that's in the file docstrings
  • 7d27337: Support custom scalars as variables in an operation