1 | # Changelog
|
2 |
|
3 | All notable changes to this project will be documented in this file.
|
4 |
|
5 | The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
6 | and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
|
9 |
|
10 | ## 1.0.2 - 2021-05-19
|
11 |
|
12 | ### Fixed
|
13 |
|
14 | - Fix broken file exports. [#1894](https://github.com/Shopify/quilt/pull/1894)
|
15 |
|
16 | ## 1.0.1 - 2021-05-07
|
17 |
|
18 | ### Breaking Change
|
19 |
|
20 | - Update `graphql-config` to version 3. Update `graphql-config-utilities`. [#1883](https://github.com/Shopify/quilt/pull/1883)
|
21 |
|
22 | ## 0.24.0 - 2021-04-13
|
23 |
|
24 | ### Changed
|
25 |
|
26 | - Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)
|
27 |
|
28 | ### Added
|
29 |
|
30 | - Minor: `Builder.run` now accepts an optional `graphQLFilesystem` property. Custom filesystems _must_ provide watch/glob functionality mandated by [`GraphQLFileSystem`](./src/filesystem/graphql-filesystem.ts) [[#1824](https://github.com/Shopify/quilt/pull/1824)]
|
31 | - Minor: `AbstractGraphQLFileSystem` provides emitter boilerplate for `GraphQLFileSystem`'s `change:schema` / `change:document` / `delete:document` events [[#1824](https://github.com/Shopify/quilt/pull/1824)]
|
32 |
|
33 | ## 0.23.2 - 2021-03-23
|
34 |
|
35 | ### Fixed
|
36 |
|
37 | - Fix `graphql-typescript-definitions` binary not running [[#1798](https://github.com/Shopify/quilt/pull/1798)]
|
38 |
|
39 | ## 0.23.0 - 2021-03-11
|
40 |
|
41 | ### Changed
|
42 |
|
43 | - Move from graphql-tools-web repo to quilt
|
44 |
|
45 | ## 0.21.2 - 2021-02-18
|
46 |
|
47 | - Ensure we add an `export {}` to otherwise blank files to make it clear that they are in the es modules format [[#131](https://github.com/Shopify/graphql-tools-web/pull/131)]
|
48 |
|
49 | ## 0.21.0 - 2020-06-15
|
50 |
|
51 | - Allow custom scalars that alias built-in types [[#90](https://github.com/Shopify/graphql-tools-web/pull/90)] (thanks [ryanw](https://github.com/ryanw)!)
|
52 |
|
53 | ## 0.20.3 - 2020-06-03
|
54 |
|
55 | ### Fixed
|
56 |
|
57 | - generated types `index.ts` file now emits all imports before exports [[#118](https://github.com/Shopify/graphql-tools-web/pull/118)]
|
58 |
|
59 | ## 0.20.1 - 2020-04-28
|
60 |
|
61 | ### Fixed
|
62 |
|
63 | - Fixed `Builder` not respecting the `exportFormat` option.
|
64 |
|
65 | ## 0.20.0 - 2020-04-27
|
66 |
|
67 | ### Added
|
68 |
|
69 | - Added a new `exportFormat` option to control the type of documents exported from `.graphql` files [[#114](https://github.com/Shopify/graphql-tools-web/pull/114)]
|
70 |
|
71 | ## 0.19.0 - 2020-04-14
|
72 |
|
73 | ### Changed
|
74 |
|
75 | - Upgrade yargs to `15` [[#107](https://github.com/Shopify/graphql-tools-web/pull/107)]
|
76 | - Update dependencies (`chalk`, `change-case`, `chokidar`, `upper-case-first`) [[#110](https://github.com/Shopify/graphql-tools-web/pull/110)]
|
77 | - Upgrade fs-extra to v9 [[#105](https://github.com/Shopify/graphql-tools-web/pull/105)]
|
78 | - Upgrade prettier to `v2.0.4` and change `eslint-plugin-shopify` to `@shopify/eslint-plugin` [[#104](https://github.com/Shopify/graphql-tools-web/pull/104)]
|
79 | - Upgrade graphql to `v14.6.0` [[#104](https://github.com/Shopify/graphql-tools-web/pull/104)]
|
80 |
|
81 | ## 0.18.0 - 2019-10-09
|
82 |
|
83 | ### Changed
|
84 |
|
85 | - duplicate checks now include fragments [[#88](https://github.com/Shopify/graphql-tools-web/pull/88)]
|
86 |
|
87 | ## 0.17.0 - 2019-04-01
|
88 |
|
89 | - Added a `--config` option to allow a JSON-serialized config an an alternative to looking up a `.graphqlconfig` [[#70](https://github.com/Shopify/graphql-tools-web/pull/70), thanks to [alexkirsz](https://github.com/alexkirsz)]
|
90 |
|
91 | ## 0.16.0 - 2019-03-11
|
92 |
|
93 | ### Changed
|
94 |
|
95 | - Upgrading `graphql` to `^14.0.0` (`14.1.1`) [[#72](https://github.com/Shopify/graphql-tools-web/pull/72)]
|
96 |
|
97 | ## 0.15.1 - 2019-01-22
|
98 |
|
99 | ### Fixed
|
100 |
|
101 | - Using static utility functions from `graphql-tool-utilities` instead of `GraphQLProject` augmentations to prevent `TypeError: project.resolveSchemaPath is not a function` when a duplicate `graphql` packages exist in the node package dependency chain. [[#73](https://github.com/Shopify/graphql-tools-web/pull/73)]
|
102 |
|
103 | ## 0.15.0 - 2019-01-22
|
104 |
|
105 | ### Added
|
106 |
|
107 | - You can now pass a `--custom-scalars` flag (or the equivalent `customScalars` option in Node.js) to reference custom types that should be used for custom scalars in GraphQL [[#63](https://github.com/Shopify/graphql-tools-web/pull/63)]
|
108 |
|
109 | ### Changed
|
110 |
|
111 | - The library now generates an `Other` type for union/ intersection fields, even when the type is "fully covered" [[#64](https://github.com/Shopify/graphql-tools-web/pull/64)]. Before, if there were only a single type that implemented the union or interface, it was generated without being postfixed with the implementing type's name, and without an `Other` type. If all implementing types were queried in some way, it would include the types with postfixed names, but would not include an `Other` type.
|
112 |
|
113 | This can be a breaking change if you were querying fields where only a single type implemented a union or interface, as the types for these fields will have their names changed. For example, given the following schema:
|
114 |
|
115 | ```graphql
|
116 | type Ball = {
|
117 | color: String!
|
118 | }
|
119 |
|
120 | union Object = Ball
|
121 |
|
122 | type Query = {
|
123 | object: Object
|
124 | }
|
125 | ```
|
126 |
|
127 | And this query:
|
128 |
|
129 | ```graphql
|
130 | query BallQuery {
|
131 | object {
|
132 | ... on Ball {
|
133 | color
|
134 | }
|
135 | }
|
136 | }
|
137 | ```
|
138 |
|
139 | The library used to generate a type `BallQueryData.Object` with `{color: string}`, because `Ball` was the only implementing type. Now, the library will generate a `BallQueryData.ObjectBall` and a `BallQueryData.ObjectOther`, which represents future implementing types of `Object`. When a `__typename` field is added, either explicitly or with the `--add-typename` flag, the `Other` type has a `__typename: ''` definition, which allows you to disambiguate it from results that did query a member of the union or interface.
|
140 |
|
\ | No newline at end of file |