Skip to content

Commit 876c0aa

Browse files
committed
1.8.0.pre11
1 parent 5cb9b73 commit 876c0aa

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,58 @@
88

99
### Bug fixes
1010

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+
1163
## 1.8.0.pre10 (4 Apr 2018)
1264

1365
### New features

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.8.0.pre10"
3+
VERSION = "1.8.0.pre11"
44
end

0 commit comments

Comments
 (0)