UNPKG

8.79 kBMarkdownView Raw
1# Change log
2
3### v2.12.6
4
5* Update peer dependencies to allow `graphql` ^16.0.0. <br/>
6 [@brainkim](https://github.com/brainkim) in [#530](https://github.com/apollographql/graphql-tag/pull/530)
7
8### v2.12.5
9
10* Also publish `src/` directory to npm, enabling source maps. <br/>
11 [@maclockard](https://github.com/maclockard) in [#403](https://github.com/apollographql/graphql-tag/pull/403)
12
13### v2.12.4 (2021-04-29)
14
15* Allow fragments to be imported by name when using the webpack loader. <br/>
16 [@dobesv](https://github.com/dobesv) in [#257](https://github.com/apollographql/graphql-tag/pull/257)
17
18### v2.12.3
19
20* Update `tslib` dependency to version 2.1.0. <br/>
21 [@benjamn](http://github.com/benjamn) in [#381](https://github.com/apollographql/graphql-tag/pull/381)
22
23### v2.12.2
24
25* Avoid using `Object.assign` to attach extra properties to `gql`. <br/>
26 [@benjamn](http://github.com/benjamn) in [#380](https://github.com/apollographql/graphql-tag/pull/380)
27
28### v2.12.1
29
30* To accommodate older versions of TypeScript, usage of the `import type ...` syntax (introduced by [#325](https://github.com/apollographql/graphql-tag/pull/325)) has been removed, fixing issue [#345](https://github.com/apollographql/graphql-tag/issues/345). <br/>
31 [@benjamn](http://github.com/benjamn) in [#352](https://github.com/apollographql/graphql-tag/pull/352)
32
33### v2.12.0
34
35* The `graphql-tag` repository has been converted to TypeScript, adding type safety and enabling both ECMAScript and CommonJS module exports. While these changes are intended to be as backwards-compatible as possible, we decided to bump the minor version to reflect the significant refactoring. <br/>
36 [@PowerKiKi](http://github.com/PowerKiKi) and [@benjamn](http://github.com/benjamn) in [#325](https://github.com/apollographql/graphql-tag/pull/325)
37
38### v2.11.0 (2020-07-28)
39
40* `package.json` `sideEffects` changes to clearly identify that `graphql-tag` doesn't have side effects. <br/>
41 [@hwillson](http://github.com/hwillson) in [#313](https://github.com/apollographql/graphql-tag/pull/313)
42
43### v2.10.4 (2020-07-08)
44
45* Bump dev/peer deps to accommodate `graphql` 15. <br/>
46 [@adriencohen](https://github.com/adriencohen) in [#299](https://github.com/apollographql/graphql-tag/pull/299)
47
48### v2.10.3 (2020-02-05)
49
50* Further adjustments to the TS `index.d.ts` declaration file. <br/>
51 [@Guillaumez](https://github.com/Guillaumez) in [#289](https://github.com/apollographql/graphql-tag/pull/289)
52
53### v2.10.2 (2020-02-04)
54
55* Update/fix the existing TS `index.d.ts` declaration file. <br/>
56 [@hwillson](https://github.com/hwillson) in [#285](https://github.com/apollographql/graphql-tag/pull/285)
57
58### v2.10.1
59
60* Fix failures in IE11 by avoiding unsupported (by IE11) constructor arguments to `Set` by [rocwang](https://github.com/rocwang) in [#190](https://github.com/apollographql/graphql-tag/pull/190)
61
62### v2.10.0
63* Add support for `graphql@14` by [timsuchanek](https://github.com/timsuchanek) in [#210](https://github.com/apollographql/graphql-tag/pull/210), [#211](https://github.com/apollographql/graphql-tag/pull/211)
64
65### v2.9.1
66* Fix IE11 support by using a regular for-loop by [vitorbal](https://github.com/vitorbal) in [#176](https://github.com/apollographql/graphql-tag/pull/176)
67
68### v2.9.0
69* Remove duplicate exports in named exports by [wacii](https://github.com/wacii) in [#170](https://github.com/apollographql/graphql-tag/pull/170)
70* Add `experimentalFragmentVariables` compatibility by [lucasconstantino](https://github.com/lucasconstantino) in [#167](https://github.com/apollographql/graphql-tag/pull/167/)
71
72### v2.8.0
73
74* Update `graphql` to ^0.13, support testing all compatible versions [jnwng](https://github.com/jnwng) in
75 [PR #156](https://github.com/apollographql/graphql-tag/pull/156)
76* Export single queries as both default and named [stonexer](https://github.com/stonexer) in
77 [PR #154](https://github.com/apollographql/graphql-tag/pull/154)
78
79### v2.7.{0,1,2,3}
80
81* Merge and then revert [PR #141](https://github.com/apollographql/graphql-tag/pull/141) due to errors being thrown
82
83### v2.6.1
84
85* Accept `graphql@^0.12.0` as peerDependency [jnwng](https://github.com/jnwng)
86 addressing [#134](https://github.com/apollographql/graphql-tag/issues/134)
87
88### v2.6.0
89
90* Support multiple query definitions when using Webpack loader [jfaust](https://github.com/jfaust) in
91 [PR #122](https://github.com/apollographql/graphql-tag/pull/122)
92
93### v2.5.0
94
95* Update graphql to ^0.11.0, add graphql@^0.11.0 to peerDependencies [pleunv](https://github.com/pleunv) in
96 [PR #124](https://github.com/apollographql/graphql-tag/pull/124)
97
98### v2.4.{1,2}
99
100* Temporarily reverting [PR #99](https://github.com/apollographql/graphql-tag/pull/99) to investigate issues with
101 bundling
102
103### v2.4.0
104
105* Add support for descriptors [jamiter](https://github.com/jamiter) in
106 [PR #99](https://github.com/apollographql/graphql-tag/pull/99)
107
108### v2.3.0
109
110* Add flow support [michalkvasnicak](https://github.com/michalkvasnicak) in
111 [PR #98](https://github.com/apollographql/graphql-tag/pull/98)
112
113### v2.2.2
114
115* Make parsing line endings kind agnostic [vlasenko](https://github.com/vlasenko) in
116 [PR #95](https://github.com/apollographql/graphql-tag/pull/95)
117
118### v2.2.1
119
120* Fix #61: split('/n') does not work on Windows [dnalborczyk](https://github.com/dnalborczyk) in
121 [PR #89](https://github.com/apollographql/graphql-tag/pull/89)
122
123### v2.2.0
124
125* Bumping `graphql` peer dependency to ^0.10.0 [dotansimha](https://github.com/dotansimha) in
126 [PR #85](https://github.com/apollographql/graphql-tag/pull/85)
127
128### v2.1.0
129
130* Add support for calling `gql` as a function [matthewerwin](https://github.com/matthewerwin) in
131 [PR #66](https://github.com/apollographql/graphql-tag/pull/66)
132* Including yarn.lock file [PowerKiKi](https://github.com/PowerKiKi) in
133 [PR #72](https://github.com/apollographql/graphql-tag/pull/72)
134* Ignore duplicate fragments when using the Webpack loader [czert](https://github.com/czert) in
135 [PR #52](https://github.com/apollographql/graphql-tag/pull/52)
136* Fixing `graphql-tag/loader` by properly stringifying GraphQL Source [jnwng](https://github.com/jnwng) in
137 [PR #65](https://github.com/apollographql/graphql-tag/pull/65)
138
139### v2.0.0
140
141Restore dependence on `graphql` module [abhiaiyer91](https://github.com/abhiaiyer91) in
142[PR #46](https://github.com/apollographql/graphql-tag/pull/46) addressing
143[#6](https://github.com/apollographql/graphql-tag/issues/6)
144
145* Added `graphql` as a
146 [peerDependency](https://github.com/apollographql/graphql-tag/commit/ac061dd16440e75c166c85b4bff5ba06c79c9356)
147
148### v1.3.2
149
150* Add typescript definitions for the bundledPrinter [PR #63](https://github.com/apollographql/graphql-tag/pull/63)
151
152### v1.3.1
153
154* Making sure not to log deprecation warnings for internal use of deprecated module [jnwng](https://github.com/jnwng)
155 addressing [#54](https://github.com/apollographql/graphql-tag/issues/54#issuecomment-283301475)
156
157### v1.3.0
158
159* Bump bundled `graphql` packages to v0.9.1 [jnwng](https://github.com/jnwng) in
160 [PR #55](https://github.com/apollographql/graphql-tag/pull/55).
161* Deprecate the `graphql/language/parser` and `graphql/language/printer` exports [jnwng](https://github.com/jnwng) in
162 [PR #55](https://github.com/apollographql/graphql-tag/pull/55)
163
164### v1.2.4
165
166Restore Node < 6 compatibility. [DragosRotaru](https://github.com/DragosRotaru) in
167[PR #41](https://github.com/apollographql/graphql-tag/pull/41) addressing
168[#39](https://github.com/apollographql/graphql-tag/issues/39)
169
170### v1.2.1
171
172Fixed an issue with fragment imports. [PR #35](https://github.com/apollostack/graphql-tag/issues/35).
173
174### v1.2.0
175
176Added ability to import other GraphQL documents with fragments using `#import` comments.
177[PR #33](https://github.com/apollostack/graphql-tag/pull/33)
178
179### v1.1.2
180
181Fix issue with interpolating undefined values [Issue #19](https://github.com/apollostack/graphql-tag/issues/19)
182
183### v1.1.1
184
185Added typescript definitions for the below.
186
187### v1.1.0
188
189We now emit warnings if you use the same name for two different fragments.
190
191You can disable this with:
192
193```js
194import { disableFragmentWarnings } from 'graphql-tag';
195
196disableFragmentWarnings();
197```
198
199### v1.0.0
200
201Releasing 0.1.17 as 1.0.0 in order to be explicit about Semantic Versioning.
202
203### v0.1.17
204
205* Allow embedding fragments inside document strings, as in
206
207```js
208import gql from 'graphql-tag';
209
210const fragment = gql`
211 fragment Foo on Bar {
212 field
213 }
214`;
215
216const query = gql`
217{
218 ...Foo
219}
220${Foo}
221`;
222```
223
224See also http://dev.apollodata.com/react/fragments.html
225
226### v0.1.16
227
228* Add caching to Webpack loader. [PR #16](https://github.com/apollostack/graphql-tag/pull/16)
229
230### v0.1.15
231
232* Add Webpack loader to `graphql-tag/loader`.
233
234### v0.1.14
235
236Changes were not tracked before this version.
237
\No newline at end of file