|
8 | 8 |
|
9 | 9 | ### Bug fixes
|
10 | 10 |
|
| 11 | +## 1.5.6 (9 Apr 2017) |
| 12 | + |
| 13 | +## Breaking Changes |
| 14 | + |
| 15 | +- Returned strings which aren't encoded as UTF-8 or ASCII will raise `GraphQL::StringEncodingError` instead of becoming `nil` #661 |
| 16 | + |
| 17 | + To preserve the previous behavior, Implement `Schema#type_error` to return `nil` for this error, eg: |
| 18 | + |
| 19 | + ```ruby |
| 20 | + GraphQL::Schema.define do |
| 21 | + type_error ->(err, ctx) { |
| 22 | + case err |
| 23 | + # ... |
| 24 | + when GraphQL::StringEncodingError |
| 25 | + nil |
| 26 | + end |
| 27 | + } |
| 28 | + ``` |
| 29 | + |
| 30 | +- `coerce_non_null_input` and `validate_non_null_input` are private #667 |
| 31 | + |
| 32 | +## Deprecations |
| 33 | + |
| 34 | +- One-argument `coerce_input` and `coerce_result` functions for custom scalars are deprecated. #667 Those functions now accept a second argument, `ctx`. |
| 35 | + |
| 36 | + ```ruby |
| 37 | + # From |
| 38 | + ->(val) { val.to_i } |
| 39 | + # To: |
| 40 | + ->(val, ctx) { val.to_i } |
| 41 | + ``` |
| 42 | + |
| 43 | +- Calling `coerce_result`, `coerce_input`, `valid_input?` or `validate_input` without a `ctx` is deprecated. #667 Use `coerce_isolated_result` `coerce_isolated_input`, `valid_isolated_input?`, `validate_input` to explicitly bypass `ctx`. |
| 44 | + |
| 45 | +## New Features |
| 46 | + |
| 47 | +- Include `#types` in `GraphQL::Function` #654 |
| 48 | +- Accept `prepare:` function for arguments #646 |
| 49 | +- Scalar coerce functions receive `ctx` #667 |
| 50 | + |
| 51 | +## Bug Fixes |
| 52 | + |
| 53 | +- Properly apply default values of `false` #658 |
| 54 | +- Fix application of argument options in `GraphQL::Relay::Mutation` #660 |
| 55 | +- Support concurrent-ruby `>1.0.0` #663 |
| 56 | +- Only raise schema validation errors on `#execute` to avoid messing with Rails constant loading #665 |
| 57 | + |
11 | 58 | ## 1.5.5 (31 Mar 2017)
|
12 | 59 |
|
13 | 60 | ### Bug Fixes
|
|
18 | 65 | - Fix `nil` input for nullable list types #637, #639
|
19 | 66 | - Handle invalid schema IDL with a validation error #647
|
20 | 67 | - Properly serialize input object default values #635
|
21 |
| -- Fix `as:` on mutation `input_fied` #650 |
| 68 | +- Fix `as:` on mutation `input_field` #650 |
22 | 69 | - Fix null propagation for `nil` members of non-null list types #649
|
23 | 70 |
|
24 | 71 | ## 1.5.4 (22 Mar 2017)
|
|
0 commit comments