Skip to content

Commit 91e70ae

Browse files
Remove new_connections? check for gql > 2.3.10 in Tracer (#137)
1 parent 845c826 commit 91e70ae

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

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

33
## master
44

5+
- [PR#137](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/137) Remove new_connections? check for gql > 2.3.10 in Tracer ([@DmitryTsepelev][])
6+
57
## 1.22.0 (2025-02-20)
68

79
- [PR#134](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/134) Add possibility to include and exclude arguments from generated cache key ([@mgruner][])

lib/graphql/fragment_cache/graphql_ruby_version.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ def after_2_2_5?
99
check_graphql_version "> 2.2.5"
1010
end
1111

12+
def before_2_3_11?
13+
check_graphql_version "< 2.3.11"
14+
end
15+
1216
def check_graphql_version(predicate)
1317
Gem::Dependency.new("graphql", predicate).match?("graphql", GraphQL::VERSION)
1418
end

lib/graphql/fragment_cache/schema/tracer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def trace(key, data)
1212
yield.tap do |resolved_value|
1313
next unless connection_field?(key, data)
1414

15-
verify_connections!(data[:query].context)
15+
verify_connections!(data[:query].context) if GraphRubyVersion.before_2_3_11?
1616
end
1717
end
1818

0 commit comments

Comments
 (0)