schema-stitching
schema-stitching copied to clipboard
chore(deps): update dependency graphql to v2
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| graphql (source, changelog) | '~> 1.10' -> '~> 2.0' |
Release Notes
rmosolgo/graphql-ruby (graphql)
v2.3.14
Bug fixes
- Subscriptions: fix subscriptions when subscription type is added after subscription plug-in #5063
v2.3.13
New features
- Authorization: Call
EnumValue#authorized?during execution #5058 Subset: support lazy-loading root types and field return types (not documented yet) #5055, #5054
Bug fixes
- Validation: don't validate
nilif null value is permitted for incoming lists #5048 - Multiplex: fix
Mutation#ready?dataloader cache in multiplexes #5059
v2.3.12
Bug fixes
- Add
fiber-storagedependency for Ruby < 3.2 support
v2.3.11
New features
GraphQL::Currentoffers globally-available methods for runtime metadata #5034- Continue improving
Schema::Subset(not production-ready yet, though) #5018 #5039
Bug fixes
- Fix
Node#lineandNode#colwhen nodes are created by manually #5047 - Remove unused
interpreter?,using_ast_analysis?andnew_connections?flag methods #5039 - Clean up
.compare_by_identityusages #5037
v2.3.10
Bug fixes
- Parser: fix parsing operation names that match keywords #5033
- Parser: support leading pipes in Union type definitions #5027
- Validation: remove rule that prohibits non-null variables from having default values #5030
- Dataloader: raise fresh error instances when sources return errors #5021
- Enum and Union: don't create nested error classes in anonymous classes (eg, when parsing SDL -- to improve bug tracker integration) #5022
v2.3.9
Bug fixes
- Subscriptions: fix
subscriptionTypein introspection #5019
v2.3.8
New features
- Input validation: Add
all: { ... }validator #5013 - Visibility: Add
Query#typesfor future type filtering improvements #4998 - Broadcast: Add
default_broadcast(true)option for Connection and Edge types #5012
Bug fixes
v2.3.7
Bug fixes
- Properly merge field directives and resolver directives #5001
v2.3.6
New features
- Analysis classes are now in
GraphQL::Analysis(GraphQL::Analysis::ASTstill works, too) #4996 - Resolvers and Mutations accept
directive ...configurations #4995
Bug fixes
AsyncDataloader: Copy Fiber-local variables into Async tasks #4994Dataloader: properly batchfetchcalls withloads:arguments that call Dataloader sources during.authorized?#4997
v2.3.5
Breaking changes
- Remove default
load_*implementations in arguments -- this could break calls tosuperif you have redefined this method in subclasses #4978 Schema.possible_typesandSchema.references_tonow use type classes as keys instead of type names (Strings). You can create a new Hash with the old structure using.transform_keys(&:graphql_name). #4986 #4971
Bug fixes
- Enums: fix parsing enum values that match GraphQL keywords (eg
type,extend) #4987 - Consolidate runtime state #4969
- Simplify schema type indexes #4971 #4986
- Remove duplicate when clause #4976
- Address many Ruby warnings #4978
- Remove needless
ruby2_keywordsusage #4989 - Fix some YARD docs #4984
v2.3.4
New features
Bug fixes
Query#fingerprint: handlenilquery strings like""#4963Language::Nodes: support marshalling parsed ASTs #4959- Directives: fix directives in nested fragment spreads #4958
- Tracing: fix conflicts between Sentry and Prometheus traces #4957
v2.3.3
v2.3.2
Bug fixes
- Properly
.preparelists of input objects #4933 - Fix deleting directives using the AST visitor #4931
v2.3.1
New features
Schema.max_query_string_tokens: support a limit on the number of tokens the lexer should identify #4929- Parser: add an option to reject numbers followed immediately by argument names #4924
- Parser and CParser: reduce allocated and retained strings when parsing schemas #4899
run_graphql_field: support:lookaheadand:ast_nodefield extras #4930
Bug fixes
- Rescue when trying to print integers that are too big for Ruby #4923
- Mutation: clear the Dataloader cache before resolving #4903
- Fix
FieldUsageanalyzer when InputObjects return a prepared value #4902 - Add a minimal query string for
run_graphql_field#4891 - Fix PrometheusTrace with multiple tracers #4888
v2.3.0
Breaking Changes
orphan_types: Only object types are accepted here; other types may be added to the schema throughextra_typesinstead. #4869- Parser: line terminators are no longer allowed in single-quoted strings (as per the GraphQL spec). Escape newline characters instead; see
GraphQL::Language.escape_single_quoted_newline(query_str)if you need to transform incoming query strings #4834
Deprecations
.tracer(...)is deprecated, use.trace_with(...)instead, using trace modules (https://graphql-ruby.org/queries/tracing.html) #4878
Bug fixes
- Parser: handle some escaped character edge cases according to the GraphQL spec #4824
- Analyzers: fix fragment skip/include tracking #4865
- Remove unused Context modules #4876
v2.2.16
v2.2.15
v2.2.14
Bug fixes
- Parser: properly handle stray hyphens in query strings #4879
v2.2.13
Bug fixes
- Tracing: when a new base
:defaulttrace class is added, merge already-configured trace modules into it #4875
v2.2.12
Deprecations
Schema.{query|mutation|subscription}_execution_strategymethods are deprecated without replacement #4867
Breaking Changes
- Connections: Revert changes to
hasNextPagereturningfalsewhen nofirstis given (previously changed in 2.2.6) #4866
Bug fixes
- Complexity: handle unauthorized argument errors better #4868
- Pass
contextwhen fetching argument forloads: ...#4870
v2.2.11
New features
- Sentry: support transaction names in tracing #4853
Bug fixes
- Tracing: handle unknown trace modes at runtime #4856
v2.2.10
New features
- Parser: support directives on variable definitions #4847
Bug fixes
- Fix compatibility with Ruby 3.4 #4846
- Tracing: Fix applying default options to non-default modes #4849, #4850
v2.2.9
New features
- Complexity: Treat custom Connection fields as metadata (like
totalCount), not as if they were evaluated for each item in the list #4842 - Subscriptions: Serialize
ActiveRecord::Relations given to.trigger#4840
Bug fixes
- Complexity: apply configured
complexity ...to connection fields #4841 - Authorization: properly handle Resolver arguments that return
falsefor#authorized?#4839
v2.2.8
New features
- Responses have
"errors"before"data", as recommended by the GraphQL spec #4823
Bug fixes
- Sentry: fix integration with other trace modules #4830
- Sentry: fix when child span is
nil(test environments) #4828 - Remove needless Base64 backport #4820
- Fix module arrangement to support RDoc #4819
v2.2.7
Deprecations
- Deprecate returning
.resolvedataloader requests (use.loadinstead) #4807 - Deprecate
error_bubbling(true), no replacement. Please open an issue if you need this option. #4813
Bug fixes
- Remove unused
raccdependency #4814 - Fix
backtrace: truewhen used with@deferand batch-loaded lists #4815 - Accept input objects when required arguments aren't provided but have default values #4811
v2.2.6
Deprecations
instrument(:query | :multiplex, ...)was deprecated, use atrace_withmodule instead. #4771- Legacy
PlatformTracingclasses are deprecated, use aPlatformTracemodule instead #4779
New features
FieldUsageanalyzer: returns aused_deprecated_enum_values: ...array in its result Hash #4805validate_timeoutapplies to query analysis as well as static validation #4800SentryTraceis added for instrumenting with Sentry #4775
Bug fixes
FieldUsageanalyzer: properly find deprecated arguments in non-null input objects #4805- DataDog: replace usage of
span_typesetter withspansetter #4776 - Fix coercion error handing with given
nullvalues #4799 - Raise a better error when variables are defined with non-input types #4791
- Fix
hasNextPagewhenmax_page_sizeis set #4780
v2.2.5
Bug fixes
- Parser: fix enum values named
type#4772 - GraphQL::Deprecation: remove this unused helper module #4769
v2.2.4
Bug fixes
- AsyncDataloader: don't resolve fields with event loop #4757
- Parser: properly parse some fields and args named after keywords #4759
- Performance: use
all?to check classes directly #4760
v2.2.3
Bug fixes
- AsyncDataloader: avoid leftover
suspendedFibers #4754 - Generators: fix path and constant name of BaseResolver #4755
v2.2.2
Bug fixes
- Dataloader: remove
Fiber#transfersupport because Ruby's control flow is unpredictable (#4748, #4752, #4743) - Parser: fix handling of single-token document
- QueryComplexity: improve performance
v2.2.1
Bug fixes
- Parser: properly handle stray hyphens in query strings #4879
v2.2.0
Breaking changes
loads:now requires a schema'sself.resolve_typemethod to be implemented so that loaded objects can be verified to be of the expected type #4678- Tracing: the new Ruby-based parser doesn't emit a "lex" event. (
graphql/c_parserstill does.)
New features
GraphQL::Dataloader::AsyncDataloader: a Dataloader class that uses theasyncgem to run I/O from fields and Dataloader sources in parallel #4727- Parser: use a heavily-optimized lexer and a hand-written parser for better performance #4718
run_graphql_field: a helper method for running fields in tests #4732
v2.1.13
v2.1.12
v2.1.11
v2.1.10
- Dataloader: remove Fiber#transfer support because of unpredictable Ruby control flow #4753
v2.1.9
Bug fixes
- Dataloader: fix some fiber scheduling bugs #4744
v2.1.8
New features
- Rails generators: generate a base resolver class by default #4513
- Dataloader: add some support for transfer-based Fiber schedulers, simplify algorithm #4625 #4729
prepare: check for the named method on the argument owner, too #4717
v2.1.7
New features
- Make
NullContextinherit fromContext, to make typechecking easier #4709 - Accept a custom
Schema.query_classto use for executing queries #4679
Bug fixes
- Default
reauthorize_scoped_objectsto false #4720 - Fix
subscriptions.triggerwith custom enum values #4713 - Fix
backtrace: truewith GraphQL-Pro@defer#4708 - Omit
to_hfrom Input Object validation error message #4701 - When trimming whitespace from block strings, remove first and last lines that contain only whitespace #4704
v2.1.6
Breaking Changes
- The parser cache is now opt-in. Add
config.graphql.parser_cache = trueto your Rails environment setup to enable it. #4648
New features
- New
ISO8601Durationscalar #4688
Bug fixes
- Trace: fix custom trace mode inheritance #4693
v2.1.5
Bug fixes
- Logger: Fix
Schema.default_loggerwhen Rails is present but doesn't have a logger #4686
v2.1.4
New features
- Add
Query#logger#4674 - Lookahead: Add
with_alias:option #2912 - Improve support for
load_application_object_failed#4667
Bug fixes
- Execution: Fix runtime loop in some cases with fragments #4684
- Fix
Connection#initializeoutside of execution #4675 - Fix ParseError in
Subscriptions#trigger#4673 - Mongo: don't load all records in hasNextPage #4671
- Interfaces: fix
definition_methodswhen interfaces implement other interfaces #4670 - Migrate
NullContextto use the built-in Singleton module #4669 - Speed up type lookup #4664
- Fix
ScopeExtension#after_resolveoutside of execution #4685 - Speed up
one_of?checks #4680
v2.1.3
Bug fixes
- Tracing: fix legacy tracers added to
GraphQL::Schema#4663 - Add
raccas a dependency because it's not included by default in Ruby 3.3 #4661 - Connections: don't add automatic connection behaviors for types named "Connection" #4668
v2.1.2
New features
- Depth: accept
count_introspection_fields: false#4658 - Dataloader: add
get_fiber_variablesandset_fiber_variables#4593 - Trace: Add
Schema.default_trace_mode#4642
Bug fixes
- Fix merging results after calling directives #4639 #4660
- Visibility: don't reveal implementors of hidden abstract types #4589
- Bump required Ruby version to 2.7 since numbered block arguments are used #4659
hash_key:: use the configured hash key when the underlying Hash has a default value Proc #4656
v2.1.1
- Dataloader: remove Fiber#transfer support because of unpredictable Ruby control flow #4753
v2.1.0
Breaking changes
- Visitor: legacy-style proc-based visitors are no longer supported #4577 #4583
- Deprecated
GraphQL::Filteris removed #4325 - Language::Printer has been re-written to append to a buffer; custom printers will need to be updated #4394
New features
- Authorization: Items in a list can skip object-level
.authorized?checks if the type is configured withreauthorize_scoped_objects(false)#3994 - Subscriptions:
unsubscribe(...)accepts a value to be used to return a result along with unsubscribing #4283 - Language::Printer is much faster #4394
v2.0.31
v2.0.30
v2.0.29
v2.0.28
v2.0.27
New features
- Validators: Support
%{value}in custom messages #4601
Bug fixes
- Resolvers: Support
return false, nilfromready?andauthorized?#4585 - Enums: properly load directives from Schema IDL #4596
- Language: faster scanner #4576
- Language: support fields and arguments named
"null"#4586 - Language: fix block string quote unescaping #4580
- Generator: use generated node type in Relay-related fields #4598
v2.0.26
Bug fixes
- Datadog Tracing: fix LocalJumpError #4579
v2.0.25
New features
- Tracing: add trace modes #4571
- Dataloader: add
Source#result_key_forfor customizing cache keys in sources #4569
Bug fixes
- Tracing: Support multiple tracing platforms at once #4543
v2.0.24
New features
Schema::Object.wrapcan be used to customize how objects are (or aren't) wrapped byGraphQL::Schema::Objectinstances at runtime #4524Query: accept astatic_validator:option in#initializeto use instead of the default validation configuration.
Bug fixes
- Performance: Reduce memory usage when adding types to a schema #4533
- Performance,
Dataloader: when loading specific keys, only run dataloader until those specific keys are resolved #4519
v2.0.23
New features
- Printer: print extensions in SDL #4516
- Trace: accept trace instances during query execution #4497
- AlwaysVisible: Make a way to bypass type visibility #4442, #4491
Bug fixes
- Tests: fix assertion for Ruby 3.3.0-dev #4515
- Performance: improve fragment possible type lookup #4506
- Docs: document Timeout can handle floats #4505
- Performance: use a dedicated object for field extension state #4401
- Backtrace: fix
backtrace: truewith other trace modules #4505 - Handle
context.wardenbeing nil #4503 - Dev: disable Minitest::Reporters for RubyMin #4494
- Trace: fix compatibility with inheritance #4487
- Context: fix NullContext compatibility with fetch, dig and key? #4483
v2.0.22
New features
- Warden: manually instantiating doesn't require a
filterinstance #4462
Bug fixes
- Enum: fix procs for enum values #4474
- Lexer: force UTF-8 encoding #4467
- Trace: inherit superclass
trace_options#4470 - Dataloader: properly run mutations in sequence #4461
- NotificationsTrace: Add
execute_multiplex.graphqlevent #4460 - Fix
Context#digwhen called with one key #4458 - Performance: Use a plain hash for selection sets at runtime #4453
- Performance: Memoize current trace #4450, #4452
- Performance: Pass is_non_null to runtime check #4449
- Performance: Use
compare_by_identityon some runtime caches - Properly support nested queries (fix
Thread.currentclash) #4445
v2.0.21
Deprecations
- Deprecate
GraphQL::Filter(usevisible?methods instead) #4424
New features
- PrometheusTracing: support histograms #4418
Bug fixes
- Backtrace: improve compatibility with
trace_with#4437 - Consolidate internally-used empty value constants #4434
- Fix some warnings #4422
- Performance: improve runtime speed #4436 #4433 #4428 #4430 #4427 #4399
- Validation: fix inline fragment selection on scalar #4429
@oneOf: print definition in the SDL when it's used- SDL: load schema directives when they're used
- Appsignal tracing: Fix
resolve_typedefinition
v2.0.20
Bug fixes
.resolve_type: fix returning[Type, false]from resolve_type #4412- Parsing: improve usage of
GraphQL.default_parser#4411 - AppsignalTrace: implement missing methods #4390
- Runtime: Fix
current_depthmethod in some lazy lists #4386 - Performance: improve
Objectobject shape #4365 - Tracing: return execution errors raised from field resolution to
execute_fieldhooks #4398
v2.0.19
Bug fixes
- Scoped context: fix
context.scoped_context.current_path#4376 - Tracing: fix
tracerinheritance in Schema classes #4379 - Timeout: fix
Timeoutplugin when other tracers are used #4383 - Performance: use Arrays instead of
GraphQL::Language::Tokens when scanning #4366
v2.0.18
Breaking Changes
- Tracing:
"execute_field"events on fields defined on interface types will now receive the interface type asdata[:owner]instead of the current object type. To get the old behavior, usedata[:object].classinstead. #4292
New features
- Add
TypeKind#leaf?#4352
Bug fixes
- Tracing: use the interface type as
data[:owner]instead of the object type #4292 - Performance: improve Shape compatibility of
GraphQL::Schema::Field#4360 - Performance: improve Shape compatibility of
GraphQL::Schema::Warden#4361 - Performance: rewrite the token scanner in plain Ruby #4369
- Performance: make
deprecation_reasonfaster #4356 - Performance: improve lazy value resolution in execution #4333
- Performance: create
current_pathonly when the application needs it #4342 - Performance: add
GraphQL::Tracing::Traceas a lower-overhead tracing API #4344 - Connections: fix
hasNextPagefor already-loaded ActiveRecord Relations #4349
v2.0.17.2
Bug fixes
- Unions and Interfaces: support returning
[type_module, false]fromresolve_type#4413
v2.0.17.1
Bug fixes
- Tracing: restore behavior returning execution errors raised during field resolution #4402
v2.0.17
Bug fixes
- Unions and Interfaces: support returning
[type_module, false]fromresolve_type#4413
v2.0.16
Breaking changes
Union: Only accept Object types inpossible_types(previously, other types were also accepted, but this was against the spec) #4269
New features
- Rake: support introspection query options in the
RakeTask#4247 - Subscriptions: Merge
.trigger(... context: { ... })into the query context when running updates #4242
Bug fixes
- Make BaseEdge and subclasses return true for
.default_relay?#4272 - Validation: return a proper error for duplicate-named fragments when used indirectly #4268
- Don't re-apply
scope_itemstonodes { ... }oredges { ... }arrays #4263 - Fix
Concurrent::Mapinitialization to prevent race conditions - Speed up scoped context lookup #4245
- Support overriding built-in context keys #4239
- Context: properly
diginto:current_arguments#4249
v2.0.15
New features
- SDL: support extensions on the schema itself #4203
- SDL: recognize
.graphqlsfiles in.from_definition#4204 - Schema: add a reader method of
TypeMembership#options#4209
Bug fixes
- Node Behaviors: call the id-from-object hook with the type definition, not the type instance #4233
- RelayClassicMutation: add a period to the generated description of the payload type #4229
- Dataloader: make scoped context work with Dataloader #4220
- SDL: fix parsing repeatable directives #4218
- Lookahead: reduce more allocations in
.selects?#4212 - Introspection Query: strip blank lines from generated query strings #4208
- Enums: Add error handling to result coercion #4206
- Lookahead: add
selected_type:to.selects?#4194 - Lookahead: fix
.selects?on unions #4193 - Fields: use field-local
connection:config over resolver config #4191
v2.0.14
New features
- Input Objects: support
one_offor input objects that allow exactly one argument #4184 - Dataloader: add
source.merge({ ... })for adding objects to dataloader source caches #4186 - Validation: generate new schemas with a suggested
validate_max_errorsof 100 #4179
Bug fixes
- Lookahead: improve performance when field names are given as symbols #4189
- Runtime: simplify some internal code #4183
- Datadog tracing: remove deprecated options #4159
v2.0.13
New features
- Fields: add configuration methods for
default_valueandprepare#4156 - Static validation: merge directive errors when they're on the same location or directive
Bug fixes
- Subscriptions: properly use the given
.trigger(... context: )for determining subscription root field visibility #4160 - Fix fields that use
hash_key:and have a falsy value for that key #4132 - Variable validation: respect
validate_max_errorlimit - Performance: use
Array#+to add objects during execution #4142
v2.0.12
New features
- Support returning
[Type, nil]fromresolve_type#4130
Bug fixes
- SDL: Don't print empty braces for input objects with no arguments #4138
- Arguments: always call
preparebefore loading objects based on ID (loads:) #4128 - Don't support re-assigning
Query#validate=after validation has run #4127
v2.0.11
New features
- Support full unicode range #4090
Bug fixes
- Subscriptions: support overriding subscriptions in subclasses #4108
- Schema: support types with duplicate names and cyclical references #4107
- Connections: don't exceed application-applied
LIMITwithmax_page_size#4104 - Field: add
Field#relay_nodes_fieldconfig reader #4103 - Remove partial
opentelementryimplementation, oops #4086 - Remove unused method
Lazy.resolve
v2.0.9
New features
- Connections: use
Schema.default_page_size,Field#default_page_size, orResolver.default_page_sizewhen one of them is available and nofirstorlastis given #4081 - Tracing: Add
OpenTelementryTracing#4077
Bug fixes
- Field usage analyzer: don't crash on null input objects #4078
- Complexity: properly handle
ExecutionErrors raised inprepare:hooks #4079
v2.0.8
New Features
- Fields: return
fallback_value:when method or hash key field resolution fails #4069 - Support
hash_key:lookups on Hash-like objects #4072 - Datadog tracing: support
prepare_spanhook for adding custom tags #4067
Bug fixes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: examples/subservice-languages/ruby/Gemfile.lock
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Could not find gem 'x86_64-darwin-19'.
💻 Website Preview
The latest changes are available as preview in: https://cb9ded5c.schema-stitching.pages.dev
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: examples/subservice-languages/ruby/Gemfile.lock
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Could not find gem 'x86_64-darwin-19'.