UNPKG

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