Skip to content

Commit 7fee0ce

Browse files
author
Eric Kim-Butler
committed
Version 4.0.0
1 parent dfd913f commit 7fee0ce

File tree

3 files changed

+49
-14
lines changed

3 files changed

+49
-14
lines changed

CHANGELOG.md

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Changelog
22

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+
336
## [3.1.0](https://github.com/notarize/qlc/compare/3.0.0...3.1.0)
437

538
### Perf
@@ -15,8 +48,10 @@
1548

1649
### Features
1750

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
2055
- **Breaking**: Add much better support for recursively higher-order types (lists of lists, etc)
2156
- Sort enum variants in output
2257

@@ -42,7 +77,8 @@
4277
### Features
4378

4479
- 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
4682
- `--global-types-module-name` to configure `globalTypes` name
4783
- `--generated-module-name` to configure `__generated__` name
4884

@@ -55,9 +91,8 @@
5591

5692
### Features
5793

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.
6196

6297
### Chores
6398

@@ -94,16 +129,16 @@
94129

95130
### Features
96131

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
101136

102137
### Chores
103138

104139
- 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
107142
- Upgrade github release client used during CI (0.12.2 -> 0.14.0)
108143

109144
## [0.8.0](https://github.com/notarize/qlc/compare/0.7.0...0.8.0)

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "qlc"
3-
version = "3.1.0"
3+
version = "4.0.0"
44
authors = ["Eric Kim-Butler <eric.butler@notarize.com>"]
55
edition = "2021"
66
license = "MIT"

0 commit comments

Comments
 (0)