Skip to content

Commit d7ed511

Browse files
committed
Merge branch 'master' into field-extension-overhead-fix
2 parents 85b8018 + da41589 commit d7ed511

File tree

96 files changed

+1466
-695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1466
-695
lines changed

CHANGELOG-enterprise.md

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

99
### Bug Fix
1010

11+
# 1.3.0 (29 May 2023)
12+
13+
### New Features
14+
15+
- Changesets: Add `added_in: ...` and `removed_in: ...` for inline definition changes
16+
1117
# 1.2.0 (10 February 2023)
1218

1319
### New Features

CHANGELOG-pro.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,36 @@
88

99
### Bug Fix
1010

11+
# 1.24.6 (24 May 2023)
12+
13+
- Defer: Add `incremental: true` for new proposed wire format, add example for working with GraphQL-Batch #4477
14+
15+
# 1.24.5 (24 May 2023)
16+
17+
- Stable relation connection: Quote table names and column names in selects and orders #4485
18+
19+
# 1.24.4 (18 April 2023)
20+
21+
### Bug Fix
22+
23+
- `@defer`: update `context[:current_path]` usage to fix `path:` on deferred errors
24+
25+
# 1.24.3 (14 April 2023)
26+
27+
### Bug Fix
28+
29+
- `OperationStore`: fix when used with Changesets (or other ways of defining arguments with the same name) #4440
30+
1131
# 1.24.2 (20 Mar 2023)
1232

33+
### Bug Fix
34+
1335
- Remove debug output, oops
1436

1537
# 1.24.1 (20 Mar 2023)
1638

39+
### Bug Fix
40+
1741
- Fix `OperationStore` with new module-based execution traces (#4389)
1842

1943
# 1.24.0 (10 Feb 2023)

CHANGELOG.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,47 @@
1010

1111
### Bug fixes
1212

13+
# 2.0.22 (17 May 2023)
14+
15+
### New features
16+
17+
- Warden: manually instantiating doesn't require a `filter` instance #4462
18+
19+
### Bug fixes
20+
21+
- Enum: fix procs for enum values #4474
22+
- Lexer: force UTF-8 encoding #4467
23+
- Trace: inherit superclass `trace_options` #4470
24+
- Dataloader: properly run mutations in sequence #4461
25+
- NotificationsTrace: Add `execute_multiplex.graphql` event #4460
26+
- Fix `Context#dig` when called with one key #4458
27+
- Performance: Use a plain hash for selection sets at runtime #4453
28+
- Performance: Memoize current trace #4450, #4452
29+
- Performance: Pass is_non_null to runtime check #4449
30+
- Performance: Use `compare_by_identity` on some runtime caches
31+
- Properly support nested queries (fix `Thread.current` clash) #4445
32+
33+
# 2.0.21 (11 April 2023)
34+
35+
### Deprecations
36+
37+
- Deprecate `GraphQL::Filter` (use `visible?` methods instead) #4424
38+
39+
### New features
40+
41+
- PrometheusTracing: support histograms #4418
42+
43+
### Bug fixes
44+
45+
- Backtrace: improve compatibility with `trace_with` #4437
46+
- Consolidate internally-used empty value constants #4434
47+
- Fix some warnings #4422
48+
- Performance: improve runtime speed #4436 #4433 #4428 #4430 #4427 #4399
49+
- Validation: fix inline fragment selection on scalar #4429
50+
- `@oneOf`: print definition in the SDL when it's used
51+
- SDL: load schema directives when they're used
52+
- Appsignal tracing: Fix `resolve_type` definition
53+
1354
# 2.0.20 (30 March 2023)
1455

1556
### Bug fixes
@@ -838,6 +879,24 @@ Since this version, GraphQL-Ruby is tested on Ruby 2.4+ and Rails 4+ only.
838879

839880
### Bug fixes
840881

882+
# 1.11.10 (5 Nov 2021)
883+
884+
### Bug fixes
885+
886+
- Properly hook up `Schema.max_validation_errors` at query runtime #3690
887+
888+
# 1.11.9 (1 Nov 2021)
889+
890+
### New Features
891+
892+
- `Schema.max_validation_errors(val)` limits the number of errors that can be added during static validation #3675
893+
894+
# 1.11.8 (12 Feb 2021)
895+
896+
### Bug fixes
897+
898+
- Improve performance of `Schema.possible_types(t)` for object types #3172
899+
841900
# 1.11.7 (18 January 2021)
842901

843902
### Breaking changes

benchmark/run.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,13 @@ def self.profile
132132
def self.profile_large_introspection
133133
schema = SILLY_LARGE_SCHEMA
134134
Benchmark.ips do |x|
135+
x.config(time: 10)
135136
x.report("Run large introspection") {
136137
schema.to_json
137138
}
138139
end
139140

140-
result = StackProf.run(mode: :wall, interval: 10) do
141+
result = StackProf.run(mode: :wall) do
141142
schema.to_json
142143
end
143144
StackProf::Report.new(result).print_text
@@ -204,6 +205,7 @@ def self.profile_large_result
204205
schema = ProfileLargeResult::Schema
205206
document = ProfileLargeResult::ALL_FIELDS
206207
Benchmark.ips do |x|
208+
x.config(time: 10)
207209
x.report("Querying for #{ProfileLargeResult::DATA.size} objects") {
208210
schema.execute(document: document)
209211
}

gemfiles/rails_4.2.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ gem "ruby-prof", platform: :ruby
77
gem "pry"
88
gem "pry-stack_explorer", platform: :ruby
99
gem "rails", "~> 4.2", require: "rails/all"
10+
gem 'loofah', '~>2.19.1' # Trying to fix Nokogiri incompatibility
1011
gem "activerecord", "~> 4.2.4"
1112
gem "actionpack", "~> 4.2.4"
1213
gem "concurrent-ruby", "~> 1.0"

graphql-c_parser/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# GraphQL::CParser
22

3+
4+
## 1.0.2
5+
6+
- Remove `.y` and `.rl` files to avoid triggering build tasks during install
7+
8+
## 1.0.1
9+
10+
- Fix gem files (to include `ext`)
11+
312
## 1.0.0
413

514
- Release GraphQL::CParser

graphql-c_parser/Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
require "bundler/gem_helper"
3+
4+
# use a custom tag to avoid conflicting with GraphQL-Ruby tags in the same git repo
5+
class CustomGemHelper < Bundler::GemHelper
6+
def version_tag
7+
"graphql-c_parser-v#{version}"
8+
end
9+
end
10+
CustomGemHelper.install_tasks

graphql-c_parser/graphql-c_parser.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
2121
"mailing_list_uri" => "https://tinyletter.com/graphql-ruby",
2222
}
2323

24-
s.files = Dir["{lib}/**/*"]
24+
s.files = Dir["{lib,ext}/**/*.{rb,h,c}"]
2525
s.extensions << "ext/graphql_c_parser_ext/extconf.rb"
2626
s.add_dependency "graphql"
2727
end

graphql-c_parser/lib/graphql/c_parser/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module GraphQL
44
module CParser
5-
VERSION = "1.0.0"
5+
VERSION = "1.0.2"
66
end
77
end

guides/authorization/pundit_integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ Here's an example of how the custom hooks can be installed:
411411
```ruby
412412
module CustomPolicyLookup
413413
# Lookup policies in the `SystemAdmin::` namespace for system_admin users
414+
# @return [Class]
414415
def pundit_policy_class_for(object, context)
415416
current_user = context[:current_user]
416417
if current_user.system_admin?
417-
policy_class = SystemAdmin.const_get("#{object.class.name}Policy")
418-
policy_class.new(current_user, object)
418+
SystemAdmin.const_get("#{object.class.name}Policy")
419419
else
420420
super
421421
end

0 commit comments

Comments
 (0)