1 | # Change log
|
2 |
|
3 | ### vNEXT
|
4 |
|
5 | ### v2.19.0
|
6 |
|
7 | * Also recreate `astNode` property for fields, not only types, when recreating schemas. [PR #580](https://github.com/apollographql/graphql-tools/pull/580)
|
8 | * Fix `delegateToSchema.js` to accept and move forward args with zero or false values [PR #586](https://github.com/apollographql/graphql-tools/pull/586)
|
9 |
|
10 | ### v2.18.0
|
11 |
|
12 | * Fix a bug where inline fragments got filtered in merged schemas when a type implemented multiple interfaces [PR #546](https://github.com/apollographql/graphql-tools/pull/546)
|
13 | * IEnumResolver value can be a `number` type [PR #568](https://github.com/apollographql/graphql-tools/pull/568)
|
14 |
|
15 | ### v2.17.0
|
16 |
|
17 | * Include `astNode` property in schema recreation [PR #569](https://github.com/apollographql/graphql-tools/pull/569)
|
18 |
|
19 | ### v2.16.0
|
20 |
|
21 | * Added GraphQL Subscriptions support for schema stitching and `makeRemoteExecutableSchema` [PR #563](https://github.com/apollographql/graphql-tools/pull/563)
|
22 | * Make `apollo-link` a direct dependency [PR #561](https://github.com/apollographql/graphql-tools/pull/561)
|
23 | * Update tests to use `graphql-js@0.12` docstring format [PR #559](https://github.com/apollographql/graphql-tools/pull/559)
|
24 |
|
25 | ### v2.15.0
|
26 |
|
27 | * Validate query before delegation [PR #551](https://github.com/apollographql/graphql-tools/pull/551)
|
28 |
|
29 | ### v2.14.1
|
30 |
|
31 | * Add guard against invalid schemas being constructed from AST [PR #547](https://github.com/apollographql/graphql-tools/pull/547)
|
32 |
|
33 | ### v2.14.0
|
34 |
|
35 | Update to add support for `graphql@0.12`, and drop versions before `0.11` from the peer dependencies list. The `graphql` package has some breaking changes you might need to be aware of, but there aren't any breaking changes in `graphql-tools` itself, or common usage patterns, so we are shipping this as a minor version. We're also running tests on this package with _both_ `graphql@0.11` and `graphql@0.12` until we confirm most users have updated.
|
36 |
|
37 | - Visit the [`graphql` releases page](https://github.com/graphql/graphql-js/releases) to keep track of for breaking changes to the underlying package.
|
38 | - [PR #541](https://github.com/apollographql/graphql-tools/pull/541)
|
39 |
|
40 | ### v2.13.0
|
41 |
|
42 | * (Experimental) Added support for custom directives on FIELD_DEFINITION that wrap resolvers with custom reusable logic. [Issue #212](https://github.com/apollographql/graphql-tools/issues/212) [PR #518](https://github.com/apollographql/graphql-tools/pull/518) and [PR #529](https://github.com/apollographql/graphql-tools/pull/529)
|
43 |
|
44 | ### v2.12.0
|
45 |
|
46 | * Allow passing in a string `schema` to `makeRemoteExecutableSchema` [PR #521](https://github.com/apollographql/graphql-tools/pull/521)
|
47 |
|
48 | ### v2.11.0
|
49 |
|
50 | * Merge schema now can accept resolvers in a plain object format, mergeInfo added to GraphQLResolveInfo object in merged schema resolvers [PR #511](https://github.com/apollographql/graphql-tools/pull/511)
|
51 |
|
52 | ### v2.10.0
|
53 |
|
54 | * Added basic support for custom Enums [Issue #363](https://github.com/apollographql/graphql-tools/issues/363) [PR #507](https://github.com/apollographql/graphql-tools/pull/507) [Read the docs here](https://www.apollographql.com/docs/graphql-tools/scalars.html#enums)
|
55 |
|
56 | ### v2.9.0
|
57 |
|
58 | * Added basic subscription support for local schemas [Issue #420](https://github.com/apollographql/graphql-tools/issues/420) [PR #463](https://github.com/apollographql/graphql-tools/pull/463)
|
59 | * Fix input object default value not propagating to merged schema [Issue #497](https://github.com/apollographql/graphql-tools/issues/497) [PR #498](PR #463](https://github.com/apollographql/graphql-tools/pull/498)
|
60 |
|
61 | ### v2.8.0
|
62 |
|
63 | * Add the option `resolverValidationOptions.allowResolversNotInSchema` to allow resolvers to be set even when they are not defined in the schemas [PR #444](https://github.com/apollographql/graphql-tools/pull/444)
|
64 | * Fix schema stitching bug when aliases are used with union types and fragments [PR #482](https://github.com/apollographql/graphql-tools/pull/482)
|
65 | * Remove `isTypeOf` guards from merged schemas [PR #484](https://github.com/apollographql/graphql-tools/pull/484)
|
66 |
|
67 | ### v2.7.2
|
68 |
|
69 | * Incompatible fragments are now properly filtered [PR #470](https://github.com/apollographql/graphql-tools/pull/470)
|
70 |
|
71 | ### v2.7.1
|
72 |
|
73 | * Made `resolvers` parameter optional for `mergeSchemas` [Issue #461](https://github.com/apollographql/graphql-tools/issues/461) [PR #462](https://github.com/apollographql/graphql-tools/pull/462)
|
74 | * Make it possible to define interfaces in schema extensions [PR #464](https://github.com/apollographql/graphql-tools/pull/464)
|
75 |
|
76 | ### v2.7.0
|
77 |
|
78 | * Upgraded versions of dependencies
|
79 |
|
80 | ### v2.6.1
|
81 |
|
82 | * Fix one place where `apollo-link` was being used directly
|
83 |
|
84 | ### v2.6.0
|
85 |
|
86 | * Removed direct dependency on Apollo Link, while keeping the API the same, to work around a Launchpad npm installation issue temporarily.
|
87 | * Parse type, field, and argument descriptions in `typeFromAST`. This allows the
|
88 | descriptions to be part of the schema when using helpers like `mergeSchemas()`.
|
89 |
|
90 | ### v2.5.0
|
91 |
|
92 | * Add ability to pass types in extension strings [Issue #427](https://github.com/apollographql/graphql-tools/issues/427) [PR #430](https://github.com/apollographql/graphql-tools/pull/430)
|
93 |
|
94 | ### v2.4.0
|
95 |
|
96 | * Translate errors better in merged schema [Issue #419](https://github.com/apollographql/graphql-tools/issues/419) [PR #425](https://github.com/apollographql/graphql-tools/pull/425)
|
97 |
|
98 | ### v2.3.0
|
99 |
|
100 | * Fix alias issues [Issue #415](https://github.com/apollographql/graphql-tools/issues/415) [PR #418](https://github.com/apollographql/graphql-tools/pull/418)
|
101 | * Make `@types/graphql` a dev dependency and make it's version as flexible as `graphql` [PR #421](https://github.com/apollographql/graphql-tools/pull/421)
|
102 |
|
103 | ### v2.2.1
|
104 |
|
105 | * Fix inability to add recursive queries [PR #413](https://github.com/apollographql/graphql-tools/pull/413)
|
106 |
|
107 | ### v2.2.0
|
108 |
|
109 | * Change link API to pass GraphQL context as `graphqlContext` field of link
|
110 | context to avoid merging problems
|
111 | * Fix alias problems in schema merging [PR #411](https://github.com/apollographql/graphql-tools/pull/411)
|
112 |
|
113 | ### v2.1.0
|
114 | * Added support for passing an Apollo Link instead of a fetcher
|
115 |
|
116 | ### v2.0.0
|
117 | * Add schema merging utilities [PR #382](https://github.com/apollographql/graphql-tools/pull/382)
|
118 |
|
119 | ### v1.2.3
|
120 | * Update package.json to allow GraphQL.js 0.11 [Issue #394](https://github.com/apollographql/graphql-tools/issues/394) [PR #395](https://github.com/apollographql/graphql-tools/pull/395)
|
121 |
|
122 | ### v1.2.1
|
123 | * Fix typings for resolver options: [Issue #372](https://github.com/apollographql/graphql-tools/issues/372) [PR #374](https://github.com/apollographql/graphql-tools/pull/374)
|
124 |
|
125 | ### v.1.2.0
|
126 | * Use defaultFieldResolver from graphql-js package instead of own one [PR #373](https://github.com/apollographql/graphql-tools/pull/373)
|
127 | * Remove `lodash` dependency [PR #356](https://github.com/apollographql/graphql-tools/pull/356)
|
128 |
|
129 | ### v.1.1.0
|
130 | * Improve mocking of union and interface types [PR #332](https://github.com/apollographql/graphql-tools/pull/332)
|
131 |
|
132 | ### v1.0.0
|
133 | * Add argument validation in `addMockFunctionsToSchema` for 'schema' property in parameter object [PR #321](https://github.com/apollographql/graphql-tools/pull/321)
|
134 |
|
135 | ### v0.11.0
|
136 | * Remove dependency on `graphql-subscription` and use an interface for PubSub [PR #295](https://github.com/apollographql/graphql-tools/pull/295)
|
137 | * Support schema AST as a type definition input [PR #300](https://github.com/apollographql/graphql-tools/pull/300)
|
138 | * Update graphql typings to 0.9.0 [PR #298](https://github.com/apollographql/graphql-tools/pull/298)
|
139 |
|
140 | ### v0.10.1
|
141 | * Update dependencies [PR #287](https://github.com/apollographql/graphql-tools/pull/287)
|
142 |
|
143 | ### v0.10.0
|
144 | * Restrict version range of graphql-js peer dependency to ^0.8.0 || ^0.9.0 [PR #266](https://github.com/apollographql/graphql-tools/pull/266)
|
145 |
|
146 | ### v0.9.2
|
147 | * Update graphql-js dependency to include 0.9.0 [PR #264](https://github.com/apollostack/graphql-tools/pull/264)
|
148 | * Fix logErrors option so it logs errors if resolve function returns a promise [PR #262](https://github.com/apollostack/graphql-tools/pull/262)
|
149 |
|
150 | ### v0.9.1
|
151 | * use function reference instead of string for concatenateTypeDefs. [PR #252](https://github.com/apollostack/graphql-tools/pull/252)
|
152 |
|
153 | ### v0.9.0
|
154 |
|
155 | * Migrate from `typed-graphql` to `@types/graphql`. [PR #249](https://github.com/apollostack/graphql-tools/pull/249)
|
156 |
|
157 | ### v0.8.4
|
158 |
|
159 | * `addSchemaLevelResolveFunction` resolves once per operation type and not once globally. [#220](https://github.com/apollostack/graphql-tools/pull/220)
|
160 | * Replace node-uuid with uuid package [#227](https://github.com/apollostack/graphql-tools/pull/227)
|
161 | * Fix issue that prevented usage of custom scalars as arguments [#224](https://github.com/apollostack/graphql-tools/pull/224)
|
162 |
|
163 | ### v0.8.3
|
164 |
|
165 | * Remove peer dependency on `graphql-subscriptions`. [#210](https://github.com/apollostack/graphql-tools/pull/210)
|
166 |
|
167 | ### v0.8.2
|
168 |
|
169 | * Accept an async function for the schema level resolver. ([@ephemer](https://github.com/ephemer) in [#199](https://github.com/apollostack/graphql-tools/pull/199))
|
170 | * Fix for new custom scalar support introduced in `0.8.1`. ([@oricordeau](https://github.com/oricordeau) in [#203](https://github.com/apollostack/graphql-tools/pull/203))
|
171 |
|
172 | ### v0.8.1
|
173 |
|
174 | * Support custom scalar types developed for GraphQL.js, such as [graphql-type-json](https://github.com/taion/graphql-type-json). ([@oricordeau](https://github.com/oricordeau) in [#189](https://github.com/apollostack/graphql-tools/pull/189))
|
175 |
|
176 | ### v0.8.0
|
177 |
|
178 | * Update default resolve function to match the one from GraphQL.js ([@stubailo](https://github.com/stubailo) in [#183](https://github.com/apollostack/graphql-tools/pull/183))
|
179 | * Move `typed-graphql` to `optionalDependencies` ([@stubailo](https://github.com/stubailo) in [#183](https://github.com/apollostack/graphql-tools/pull/183))
|
180 | * Set new defaults for resolver validation to match GraphQL.js so that developers need to opt-in to advanced validation ([@stubailo](https://github.com/stubailo) in [#183](https://github.com/apollostack/graphql-tools/pull/183)):
|
181 | * `requireResolversForArgs = false`
|
182 | * `requireResolversForNonScalar = false`
|
183 |
|
184 | ### v0.7.2
|
185 |
|
186 | * Eliminated babel and moved to native ES5 compilation. ([@DxCx](https://github.com/DxCx) in [#147](https://github.com/apollostack/graphql-tools/pull/147))
|
187 |
|
188 | ### v0.7.1
|
189 |
|
190 | * Fix dependency on lodash
|
191 |
|
192 | ### v0.7.0
|
193 | * Various Bugfixes ([@DxCx](https://github.com/DxCx) in [#129](https://github.com/apollostack/graphql-tools/pull/129))
|
194 | - Istanbul coverage was not working well due to Istanbul bug [#549](https://github.com/gotwarlost/istanbul/issues/549)
|
195 | - Bluebird promise was not converted well on tests
|
196 | - "console.warn" got overwritten on tests
|
197 |
|
198 | * Migrated code from Javascript to Typescript ([@DxCx](https://github.com/DxCx) in [#129](https://github.com/apollostack/graphql-tools/pull/129))
|
199 |
|
200 | * Deprecated addConnectorsToContext ([@DxCx](https://github.com/DxCx) in [#129](https://github.com/apollostack/graphql-tools/pull/129))
|
201 |
|
202 | * Removed deprecated aplloServer ([@DxCx](https://github.com/DxCx) in [#129](https://github.com/apollostack/graphql-tools/pull/129))
|
203 |
|
204 | * Removed testing on Node 5 ([@DxCx](https://github.com/DxCx) in [#129](https://github.com/apollostack/graphql-tools/pull/129))
|
205 |
|
206 | * Changed GraphQL typings requirement from peer to standard ([@DxCx](https://github.com/DxCx) in [#129](https://github.com/apollostack/graphql-tools/pull/129))
|
207 |
|
208 | * Change the missing resolve function validator to show a warning instead of an error ([@nicolaslopezj](https://github.com/nicolaslopezj) in [#134](https://github.com/apollostack/graphql-tools/pull/134))
|
209 |
|
210 | * Add missing type annotations to avoid typescript compiler errors when 'noImplicitAny' is enabled ([@almilo](https://github.com/almilo) in [#133](https://github.com/apollostack/graphql-tools/pull/133))
|
211 |
|
212 | ### v0.6.6
|
213 | * Added embedded Typescript definitions ([@DxCx](https://github.com/DxCx) in [#120](https://github.com/apollostack/graphql-tools/pull/120))
|
214 |
|
215 | * Fix issue in addMockFunctionsToSchema when preserveResolvers is true and connector/logger is used. ([@DxCx](https://github.com/DxCx) in [#121](https://github.com/apollostack/graphql-tools/pull/121))
|
216 |
|
217 | * Fix multiple issues in addMockFunctionsToSchema when preserveResolvers is true (support for Promises, and props defined using Object.defineProperty) ([@sebastienbarre](https://github.com/sebastienbarre) in [#115](https://github.com/apollostack/graphql-tools/pull/115))
|
218 |
|
219 | * Make allowUndefinedInResolve true by default ([@jbaxleyiii](https://github.com/jbaxleyiii) in [#117](https://github.com/apollostack/graphql-tools/pull/117))
|
220 |
|
221 | * Add `requireResolversForAllFields` resolver validation option ([@nevir](https://github.com/nevir) in [#107](https://github.com/apollostack/graphql-tools/pull/107))
|
222 |
|
223 | ### v0.6.4
|
224 | * Make mocking partial objects match expected behavior ([@sebastienbarre](https://github.com/sebastienbarre) in [#96](https://github.com/apollostack/graphql-tools/pull/96))
|
225 | * Improved behavior when mocking interfaces & unions ([@itajaja](https://github.com/itajaja) in [#102](https://github.com/apollostack/graphql-tools/pull/102))
|
226 |
|
227 | ### v0.6.3
|
228 |
|
229 | * Unpin babel-core version to solve build problem (PR [#92](https://github.com/apollographql/graphql-tools/pull/92))
|
230 | * Added support for `extend` keyword to schemaGenerator (PR [#90](https://github.com/apollostack/graphql-tools/pull/90))
|
231 |
|
232 | ### v0.6.2
|
233 |
|
234 | * Fix a bug with addSchemaLevelResolveFunction. It now runs once per tick (PR [#91](https://github.com/apollographql/graphql-tools/pull/91))
|
235 |
|
236 | ### v0.5.2
|
237 |
|
238 | * Add addSchemaLevelResolveFunction to exports
|
239 | * Remove dist folder before prepublish to make sure files deleted in source are not included in build
|
240 |
|
241 | ### v0.5.1
|
242 |
|
243 | * Updated GraphQL dependency to 0.6.0
|
244 | * Removed all tracer code, including `Tracer`, `addTracingToResolvers` and `decorateWithTracer`
|