apollo-federation 3.10.1 → 3.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f380edb23cd987294131a8517dc4d08331ebbbde711192baf759598c2d5ad733
4
- data.tar.gz: ffee0d8e1d99f79ac7ba82f5f50a0d107e5b3a775ef8a9d6aff8e74f0896b221
3
+ metadata.gz: 799ff7dcaaf88157b7d98afb7928b2a269005d446b278090acd4f23085f86632
4
+ data.tar.gz: c42b4221e12c9ac01751a342ea077fba533d8859167518d09805239e83f6935f
5
5
  SHA512:
6
- metadata.gz: 70e9f855c9a6284d23e69e27c85f8b4d9d85a2e93ac328a134260f3eb7328f9f3629bed1fd0acc6965d9272cadb3d7b59fbf30f1039359ddcb074074d1a0c599
7
- data.tar.gz: 5d8bf20436400d80fa0f83f05aa37c3eb82d8525364ecc31e51b71ee16184cb5c8e3524ff236c001fd005191b5615ed38cbc2b2bb9ed10522c0892be99f6f5d8
6
+ metadata.gz: 272e6b2fa822f86c18dac2d9b2b0caf3e8ab6c297d9b277851848df3afcff9aba6d97dafd1c40cf334cd9c4c80c7ac230d4eafb21da6a574e973f6727631728f
7
+ data.tar.gz: 26de2d9c4c18f072dd9ccc11359081673288971c87ade3d9808e0e6976c8f93436016a81fdb43338e63406d7d0eacc590ca97289c7efd9ec5872ebf182d2879c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [3.10.3](https://github.com/Gusto/apollo-federation-ruby/compare/v3.10.2...v3.10.3) (2025-10-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * random update to README.md to trigger semantic-release ([#310](https://github.com/Gusto/apollo-federation-ruby/issues/310)) ([bfaa10e](https://github.com/Gusto/apollo-federation-ruby/commit/bfaa10e85a7e85781f2ae0373d656b0fc66d13eb))
7
+
8
+
9
+ ### Reverts
10
+
11
+ * Revert "chore(release): 3.10.2 [skip ci]" (#309) ([a3937c6](https://github.com/Gusto/apollo-federation-ruby/commit/a3937c64f0ce9648edc10f74a80a4e825e01b4d4)), closes [#309](https://github.com/Gusto/apollo-federation-ruby/issues/309)
12
+
1
13
  ## [3.10.1](https://github.com/Gusto/apollo-federation-ruby/compare/v3.10.0...v3.10.1) (2025-04-02)
2
14
 
3
15
 
data/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # apollo-federation
2
2
 
3
- [![CircleCI](https://circleci.com/gh/Gusto/apollo-federation-ruby/tree/main.svg?style=svg)](https://circleci.com/gh/Gusto/apollo-federation-ruby/tree/main)
3
+ [![CI](https://github.com/Gusto/apollo-federation-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/Gusto/apollo-federation-ruby/actions/workflows/ci.yml)
4
4
 
5
5
  This gem extends the [GraphQL Ruby](http://graphql-ruby.org/) gem to add support for creating an [Apollo Federation](https://www.apollographql.com/docs/apollo-server/federation/introduction/) schema.
6
6
 
7
+
7
8
  ## Installation
8
9
 
9
10
  Add this line to your application's Gemfile:
@@ -144,7 +145,9 @@ This will start up the gateway and serve it at http://localhost:5000.
144
145
 
145
146
  ## Usage
146
147
 
147
- The API is designed to mimic the API of [Apollo's federation library](https://www.apollographql.com/docs/apollo-server/federation/introduction/). It's best to read and understand the way federation works, in general, before attempting to use this library.
148
+ The API is designed to mimic the API of [Apollo's federation library](https://www.apollographql.com/docs/apollo-server/federation/introduction/).
149
+
150
+ It's best to read and understand the way federation works, in general, before attempting to use this library.
148
151
 
149
152
  ### Extending a type
150
153
 
@@ -26,8 +26,10 @@
26
26
  #
27
27
  # </execute_query_lazy>
28
28
  #
29
- # # `execute_query_lazy` *always* fires, so it's a
30
- # # safe place to capture ending times of the full query.
29
+ # # In graphql-ruby < 2.5.12, `execute_query_lazy` *always* fires.
30
+ # # In graphql-ruby >= 2.5.12, `execute_query_lazy` only fires when there are lazy values.
31
+ # # We record end times in both `execute_multiplex` (as a fallback) and `execute_query_lazy`
32
+ # # (to capture the full execution time including lazy resolution when present).
31
33
  #
32
34
  # </execute_multiplex>
33
35
 
@@ -96,6 +98,12 @@ module ApolloFederation
96
98
 
97
99
  results = block.call
98
100
 
101
+ # Step 4.5:
102
+ # Record end times for all queries.
103
+ # This acts as a fallback for queries without lazy values.
104
+ # execute_query_lazy will overwrite these times if lazy values are present.
105
+ data.fetch(:multiplex).queries.each { |query| record_trace_end_time(query) }
106
+
99
107
  # Step 5
100
108
  # Attach the trace to the 'extensions' key of each result
101
109
  results.map { |result| attach_trace_to_result(result) }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApolloFederation
4
- VERSION = '3.10.1'
4
+ VERSION = '3.10.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apollo-federation
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.1
4
+ version: 3.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noa Elad
8
8
  - Rylan Collins
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2025-04-02 00:00:00.000000000 Z
12
+ date: 2025-10-20 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: graphql
@@ -253,6 +254,7 @@ metadata:
253
254
  changelog_uri: https://github.com/Gusto/apollo-federation-ruby/releases
254
255
  source_code_uri: https://github.com/Gusto/apollo-federation-ruby
255
256
  bug_tracker_uri: https://github.com/Gusto/apollo-federation-ruby/issues
257
+ post_install_message:
256
258
  rdoc_options: []
257
259
  require_paths:
258
260
  - lib
@@ -267,7 +269,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
269
  - !ruby/object:Gem::Version
268
270
  version: '0'
269
271
  requirements: []
270
- rubygems_version: 3.6.2
272
+ rubygems_version: 3.5.22
273
+ signing_key:
271
274
  specification_version: 4
272
275
  summary: A Ruby implementation of Apollo Federation
273
276
  test_files: []