|
8 | 8 |
|
9 | 9 | ### Bug fixes
|
10 | 10 |
|
| 11 | +## 1.8.0.pre11 (3 May 2018) |
| 12 | + |
| 13 | +### Breaking changes |
| 14 | + |
| 15 | +- `Schema::Mutation.resolve_mutation` was moved to an instance method; see changes to `Schema::RelayClassicMutation` in #1469 for an example refactor |
| 16 | +- `GraphQL::Delegate` was removed, use Ruby's `Forwardable` instead (warning: bad performance on Ruby 2.4.0) |
| 17 | +- `GraphQL::Schema::Interface` is a module, not a class #1372. To refactor, use a base module instead of a base class: |
| 18 | + |
| 19 | + ```ruby |
| 20 | + module BaseInterface |
| 21 | + include GraphQL::Schema::Interface |
| 22 | + end |
| 23 | + ``` |
| 24 | + |
| 25 | + And include that in your interface types: |
| 26 | + |
| 27 | + ```ruby |
| 28 | + module Reservable |
| 29 | + include BaseInterface |
| 30 | + field :reservations, ... |
| 31 | + end |
| 32 | + ``` |
| 33 | + |
| 34 | + In object types, no change is required; use `implements` as before: |
| 35 | + |
| 36 | + ```ruby |
| 37 | + class EventVenue < BaseObject |
| 38 | + implements Reservable |
| 39 | + end |
| 40 | + ``` |
| 41 | + |
| 42 | +### New features |
| 43 | + |
| 44 | +- `GraphQL::Schema::Interface` is a module |
| 45 | +- Support `prepare:` and `as:` argument options #1469 |
| 46 | +- First-class support for Mongoid connections #1452 |
| 47 | +- More type inspection helpers for class-based types #1446 |
| 48 | +- Field methods may call `super` to get the default behavior #1437 |
| 49 | +- `variables:` accepts symbol keys #1401 |
| 50 | +- Reprint any directives which were parsed from SDL #1417 |
| 51 | +- Support custom JSON scalars #1398 |
| 52 | +- Subscription `trigger` accepts symbol, underscored arguments and validates their presence #1400 |
| 53 | +- Mutations accept a `null(true | false)` setting to affect field nullability #1406 |
| 54 | +- `RescueMiddleware` uses inheritance to match errors #1393 |
| 55 | +- Resolvers may return a list of errors #1231 |
| 56 | + |
| 57 | +### Bug fixes |
| 58 | + |
| 59 | +- Better error for anonymous class names #1459 |
| 60 | +- Input Objects correctly inherit arguments #1432 |
| 61 | +- Fix `.subscriptions` for class-based Schemas #1391 |
| 62 | + |
11 | 63 | ## 1.8.0.pre10 (4 Apr 2018)
|
12 | 64 |
|
13 | 65 | ### New features
|
|
0 commit comments