All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Correctly merge directives when using
mergeTypes
in PR #144 by @JulianKnodt
- Updated the astPrinter with the latest print.js code from graphql-js. PR #123
- Updated the mutation test to include some comments. PR #123
- Updated tests to check NonNullTypes merge scenario when using
mergeTypes(types, { all: true})
Thanks to PR #125 by @lastmjs - Upgraded dependencies to:
"deepmerge": "^2.1.0"
- Upgraded devDependencies to:
"jest": "^22.4.2"
"core-js": "^2.5.3"
"rollup": "^0.57.0"
"graphql": "^0.13.2"
"rollup-plugin-babel": "^3.0.3"
"eslint-plugin-import": "^2.9.0"
"rollup-plugin-commonjs": "^8.4.1"
"rollup-plugin-node-resolve": "^3.2.0"
- Correctly handle NonNullTypes when using
mergeTypes(types, { all: true})
Thanks to PR #125 by @lastmjs
- Ability to merge a GQL Type defined multiple times in separate files. Will throw an error when fieldDefintitons have conflicting values defined. Usage
mergeTypes(types, { all: true })
. Many thanks to @squidfunk work in PR #118.
- Function signature of
mergeTypes(types)
has changed to include a 2nd optional param (an options object) ->mergeTypes(types, { all: true })
. See Added note & PR #118 for details. - GraphQL 0.13.x is now supported. Thanks to @jbblanchet PR #120
- Added Node.js's
utils
,events
, andassert
to Rollup's external modules list.
- Bumped
graphql
peer dependency to version^0.11.7
. PR #103 - FileLoader now accepts simple glob patterns. Thanks to @thebergamo PR #106
- bumped deepMerge to v2.0.1
- bumped npm devDependencies
- Add
extensions
field to fileLoader options to allow specifying file extension explicitly. Thanks to @Vincent-PangPR #99
- mergeResolvers now accepts single resolver array PR #100
- Added TypeScript support to fileLoader. Thanks to @dotansimha PR #95
- Rollup.js is now used for our build process. We now publish a
cjs
&esm
bundle PR #72
- Updated deepmerge to v1.5.1 which fixes this deepmerge issue.PR #89
- Babel Polyfill has been removed as a dependency, we now directly bundle
object.values
&array.includes
fromcore-js
PR #72
- FileLoader function also loads gql extension files
- Supports already parsed documents when merging types
- Recursive option to fileLoader function
- Preserving comments of input object type fields
- .babelrc to target node version 4.8.3 (for meteor)
- .npmignore to ignore folders that should not be included in the published package
- babel to use env preset
- renamed prepublish to prepare. For more details see here
#Added
- babel-polyfill to the dependencies
- mergeTypes accepts type definitions AND schema definitions
- Npm labels in README
- Change fileLoader to load commonJS and ES6 modules
- Deprecated mergeGraphqlSchemas function
- Exposed fileLoader function
- FileLoader ignores index.js files
- Readme example
- Using node4 babel preset for Meteor apps
- Ast printer bug fix (allowing more than 2 lines of comments)
- Ast printer bug fix
- Updated graphql-tools to version 1.0.0
- No longer passing schema to gql for validation
- Fixed multiline comments parsing
- Changed implementation of mergeTypes
- mergeTypes now correctly parses comments
- Changed test runner from mocha to jest
- Adding support for .graphql and .graphqls files
- Upgrading graphql package peer dependency to version 0.10.1
- Fixed mergeResolvers by calling correct deepMerge method
- Changed babel preset from es2015 to node6
- Removed unused async calls
- Changed mocha tests to not use arrow functions
- Move
graphql[-tag/tools]
aspeerDependencies
to avoid versions duplicata in projects using this package - Reduce bundle size by using
merge
fromdeepmerge
instead oflodash
- mergeTypes parses interface type
- mergeTypes parses union type
- Minor bug that was adding Subscription and Mutation types
- Added a CHANGELOG.md (Yay!!)
- Minor refactoring of mergeTypes
- mergeTypes adds subscription type to schema
- mergeTypes does not include empty subscription type
- mergeTypes parses scalar types
- mergeTypes parses input types
- mergeTypes parses enum types
- mergeTypes does not include empty mutation type