Skip to content

Commit

Permalink
Improved chnagelog
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegIlyenko committed May 12, 2018
1 parent a095136 commit 0877da2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
* Ambiguity with null variable values and default values **(spec change)** (#359).
* Add optional 'extensions' entry to errors **(spec change)** (#358).

**CAUTION: breaking change.** All additional error object fields that were provided via `HandledException` are now added to the `extensions` field:
**CAUTION: breaking change.** All additional error object fields that were provided via `HandledException` are now added to the `extensions` field

```graphql
// Before v1.4.1
Before v1.4.1:

```json
{
"data": {
"books": null
Expand All @@ -26,8 +27,11 @@
"mitigationStrategy": "Panic!"
}]
}
```

After v1.4.1:

// After v1.4.1
```json
{
"data": {
"books": null
Expand All @@ -44,8 +48,8 @@
}
```

For backward-compatibility, `HandledException` now provides 2 additional fields: `addFieldsInExtensions` (by default `true`) and `addFieldsInError` (by default `false`). You can also set both of these flags to `true` in order to provide a migration path for the client applications.
* Ensure interface has at least 1 concrete type **(spec change)** (#360). It is potentially a **minor breaking change**. You you have non-implemented interfaces in your schema, you temporary remove `InterfaceMustHaveImplementationValidationRule` schema validation rule.
For backward-compatibility, `HandledException` now provides 2 additional fields: `addFieldsInExtensions` (by default `true`) and `addFieldsInError` (by default `false`). You can also set both flags to `true` in order to provide a migration path for the client applications.
* Ensure interface has at least 1 concrete type **(spec change)** (#360). It is potentially a **minor breaking change**. If you have non-implemented interfaces in your schema, you can temporary remove `InterfaceMustHaveImplementationValidationRule` schema validation rule.
* Added a small `Cache` abstraction and replaced `TrieMap`-based cache implementation with `ConcurrentHashMap`. This change introduces potential minor performance improvements and compatibility with [GraalVM](https://www.graalvm.org/) `native-image`.
* Added `toAst` helper for different schema elements, like fields, enum values and types (#367)
* Added macro setting to transform enum values' names with a macro setting (#350). Big thanks to @fehu for this contribution! The `UppercaseValues` macro setting is now deprecated in favour of more flexible `TransformValueNames`.
Expand Down

0 comments on commit 0877da2

Please sign in to comment.