Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master

- [PR#137](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/137) Remove new_connections? check for gql > 2.3.10 in Tracer ([@DmitryTsepelev][])

## 1.22.0 (2025-02-20)

- [PR#134](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/134) Add possibility to include and exclude arguments from generated cache key ([@mgruner][])
Expand Down
4 changes: 4 additions & 0 deletions lib/graphql/fragment_cache/graphql_ruby_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ def after_2_2_5?
check_graphql_version "> 2.2.5"
end

def before_2_3_11?
check_graphql_version "< 2.3.11"
end

def check_graphql_version(predicate)
Gem::Dependency.new("graphql", predicate).match?("graphql", GraphQL::VERSION)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/graphql/fragment_cache/schema/tracer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def trace(key, data)
yield.tap do |resolved_value|
next unless connection_field?(key, data)

verify_connections!(data[:query].context)
verify_connections!(data[:query].context) if GraphRubyVersion.before_2_3_11?
end
end

Expand Down
Loading