|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [4.0.0](https://github.com/notarize/qlc/compare/3.1.0...4.0.0) |
| 4 | + |
| 5 | +### Features |
| 6 | + |
| 7 | +- **Breaking**: Switch to a `.graphql.d.ts` output scheme: |
| 8 | + - All imports now come from `.graphql` document modules (via corresponding `.graphql.d.ts` type |
| 9 | + def files) |
| 10 | + - `--generated-module-name` configuration has been removed since `__generated__` modules are no |
| 11 | + longer produced |
| 12 | + |
| 13 | +```ts |
| 14 | +// Before |
| 15 | +import type { MyQuery } from "./__generated__/MyQuery"; |
| 16 | +// After |
| 17 | +import type { MyQuery } from "./my-query.graphql"; |
| 18 | +``` |
| 19 | + |
| 20 | +- **Breaking**: The default for `--global-types-module-name` has changed from `globalTypes` to |
| 21 | + `graphql-globals` |
| 22 | +- **Potentially Breaking**: The default export from these modules will be a "typed documentnode" |
| 23 | + with a default implementation provided in `@notarize/qlc-cli/typed-documentnode` -- one could |
| 24 | + override the `--typed-graphql-documentnode-module-name` with a backwards compatible type instead |
| 25 | + if this is breaking for client interfaces |
| 26 | + |
| 27 | +### Perf |
| 28 | + |
| 29 | +- Cut a few IO read system calls a result of dropping `__generated__` directories. |
| 30 | + |
| 31 | +### Chores |
| 32 | + |
| 33 | +- Upgrade to Rust 1.68.2 |
| 34 | +- Upgrade dependencies |
| 35 | + |
3 | 36 | ## [3.1.0](https://github.com/notarize/qlc/compare/3.0.0...3.1.0) |
4 | 37 |
|
5 | 38 | ### Perf |
|
15 | 48 |
|
16 | 49 | ### Features |
17 | 50 |
|
18 | | -- **Breaking**: Add support for marking types as `readonly`. Can be disabled with `--disable-readonly-types` |
19 | | -- **Breaking**: Remove `tslint:disable` from output -- one can use tslintignore if still using this linter |
| 51 | +- **Breaking**: Add support for marking types as `readonly`. Can be disabled with |
| 52 | + `--disable-readonly-types` |
| 53 | +- **Breaking**: Remove `tslint:disable` from output -- one can use tslintignore if still using this |
| 54 | + linter |
20 | 55 | - **Breaking**: Add much better support for recursively higher-order types (lists of lists, etc) |
21 | 56 | - Sort enum variants in output |
22 | 57 |
|
|
42 | 77 | ### Features |
43 | 78 |
|
44 | 79 | - Add support for module name and paths in CLI and JSON config |
45 | | - - `--root-dir-import-prefix` to configure a prefix on import module for build system resolve aliases |
| 80 | + - `--root-dir-import-prefix` to configure a prefix on import module for build system resolve |
| 81 | + aliases |
46 | 82 | - `--global-types-module-name` to configure `globalTypes` name |
47 | 83 | - `--generated-module-name` to configure `__generated__` name |
48 | 84 |
|
|
55 | 91 |
|
56 | 92 | ### Features |
57 | 93 |
|
58 | | -- **Breaking** References made to `globalTypes` are imported via type |
59 | | - only imports. This is a breaking change because a new minimum of |
60 | | - TypeScript 3.8 is required. |
| 94 | +- **Breaking** References made to `globalTypes` are imported via type only imports. This is a |
| 95 | + breaking change because a new minimum of TypeScript 3.8 is required. |
61 | 96 |
|
62 | 97 | ### Chores |
63 | 98 |
|
|
94 | 129 |
|
95 | 130 | ### Features |
96 | 131 |
|
97 | | -- Add support for a `.qlcrc.json` config file, allowing most CLI args to be passed in |
98 | | - camel-case JSON form (CLI args always have precedence) #19 |
99 | | -- Add option `--show-deprecation-warnings` to have QLC print warning about usage of fields |
100 | | - that are deprecated in the schema #22 |
| 132 | +- Add support for a `.qlcrc.json` config file, allowing most CLI args to be passed in camel-case |
| 133 | + JSON form (CLI args always have precedence) #19 |
| 134 | +- Add option `--show-deprecation-warnings` to have QLC print warning about usage of fields that are |
| 135 | + deprecated in the schema #22 |
101 | 136 |
|
102 | 137 | ### Chores |
103 | 138 |
|
104 | 139 | - Upgrade dependencies and Rust to 1.55 |
105 | | -- Remove usage of `Mutex`/`Arc` for worker aggregates for less contention (performance in |
106 | | - some cases) and a large drop in the number of `.unwrap()` calls |
| 140 | +- Remove usage of `Mutex`/`Arc` for worker aggregates for less contention (performance in some |
| 141 | + cases) and a large drop in the number of `.unwrap()` calls |
107 | 142 | - Upgrade github release client used during CI (0.12.2 -> 0.14.0) |
108 | 143 |
|
109 | 144 | ## [0.8.0](https://github.com/notarize/qlc/compare/0.7.0...0.8.0) |
|
0 commit comments