Skip to content

Commit d1dc926

Browse files
committed
1.5.6
1 parent 8b26dfa commit d1dc926

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

CHANGELOG.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,53 @@
88

99
### Bug fixes
1010

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+
1158
## 1.5.5 (31 Mar 2017)
1259

1360
### Bug Fixes
@@ -18,7 +65,7 @@
1865
- Fix `nil` input for nullable list types #637, #639
1966
- Handle invalid schema IDL with a validation error #647
2067
- Properly serialize input object default values #635
21-
- Fix `as:` on mutation `input_fied` #650
68+
- Fix `as:` on mutation `input_field` #650
2269
- Fix null propagation for `nil` members of non-null list types #649
2370

2471
## 1.5.4 (22 Mar 2017)

lib/graphql/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# frozen_string_literal: true
22
module GraphQL
3-
VERSION = "1.5.5"
3+
VERSION = "1.5.6"
44
end

0 commit comments

Comments
 (0)