Skip to content

Commit 41e199c

Browse files
committed
1.10.0.pre2
1 parent 0d42936 commit 41e199c

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

CHANGELOG.md

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

99
### Bug fixes
1010

11+
## 1.10.0.pre2 (4 Dec 2019)
12+
13+
### Breaking changes
14+
15+
- Class-based schemas using the interpreter _must_ add `use GraphQL::Analysis::AST` to their schema (and update their custom analyzers, see https://graphql-ruby.org/queries/ast_analysis.html) #2363
16+
- Class-based schemas using the new interpreter will now use _definition classes_ at runtime. #2363 (Previously, `.to_graphql` methods were used to generate singletons which were used at runtime.) This means:
17+
- Methods that used to receive types at runtime will now receive classes instead of those singletons.
18+
- `.name` will now call `Class#name`, which will give the class name. Use `.graphql_name` to get the name of a GraphQL type. (Fields, arguments and directives have `.graphql_name` too, so you can use it everywhere.)
19+
- Some methods that return hashes are slow because they merge hashes according to class inheritance, for example `MySchema.types` and `MyObjectType.fields`. Instead:
20+
- If you only need one item out of the Hash, use `.get_type(type_name)` or `.get_field(field_name)` instead. Those methods find a match without performing Hash merges.
21+
- If you need the whole Hash, get a cached value from `context.warden` (an instance of `GraphQL::Schema::Warden`) at runtime. Those values reflect the types and fields which are permitted for the current query, and they're cached for life of the query. Check the API docs to see methods on the `warden`.
22+
- ActiveSupport::Notifications events are correctly named in event.library format #2562
23+
24+
### New features
25+
26+
- `Schema.from_definition` accepts `plugins:` for installing plugins (equivalent to `use ...` in class-based schemas) #2307
27+
28+
### Bug fixes
29+
30+
- Big numbers (ie, greater than Ruby's `Infinity`) no longer :boom: when being reserialized #2320
31+
- Fix `hasNextPage`/`hasPrevious` page when max_page_size limits the items returned #2608
32+
1133
## 1.10.0.pre1 (10 Oct 2019)
1234

1335
### Breaking changes

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.10.0.pre1"
3+
VERSION = "1.10.0.pre2"
44
end

0 commit comments

Comments
 (0)