UNPKG

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