apollo-federation 2.2.0 → 2.2.1

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: 8c7f0082fb2aa33917e92171264675d2ac09cbce6b88a4f8cbcf78a0ba87c85e
4
- data.tar.gz: e4a21a9eb9866c43c25dd799b032e296a115cbda7e48fdc49dfa4695b7bafb4e
3
+ metadata.gz: fc8de90dc106e25f44e0035a2e7ca3f2a4a37cc9b930d1d245317a93cd54a2f0
4
+ data.tar.gz: ed4a107cde1f0c1e1d4a979d4168de2c248301cf7a7a1250cd868d335fde0828
5
5
  SHA512:
6
- metadata.gz: fa0445989376adf48a2f32af007bc05522f4d404b43dba8fefb542e8bc2700c83f59a931e9cb15fae2d0e30c68b99fa9e33c1c3e05e562f84b455563ed78fc5d
7
- data.tar.gz: 5d4f7b51e6115e92b9aa89b5c59b68e9442867d653381823929c2c16a2ec9c51a74746d5c81092dfb5bfe7d3f56710462c3785b0279593752ceb0577b6237aa6
6
+ metadata.gz: '0214196224a568813ebf0dbb3ca15a81ae902fa06c8c1c1e4fe8f9dba7232f4e0ddbc39275d8cbe8880d415861462813faa2d669d5945d775b68f8bf6ff94e06'
7
+ data.tar.gz: 1690599b1d8c4522cd8ebcca0c001b50b7b40ee8817cb07e0f8220c50bba39c22bdcc50907ca908ead0718989b04df5844fa958aaffb51374fb5ff3b7a8aee56
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.2.1](https://github.com/Gusto/apollo-federation-ruby/compare/v2.2.0...v2.2.1) (2022-03-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Remove to_graphql and make the interpreter runtime a requirement for older GraphQL versions ([#177](https://github.com/Gusto/apollo-federation-ruby/issues/177)) ([bfc3082](https://github.com/Gusto/apollo-federation-ruby/commit/bfc308260c34eee04c3b7a5f0e8a0bffe1cb88c4))
7
+
1
8
  # [2.2.0](https://github.com/Gusto/apollo-federation-ruby/compare/v2.1.0...v2.2.0) (2022-02-04)
2
9
 
3
10
 
data/README.md CHANGED
@@ -293,8 +293,9 @@ See discussion at [#74](https://github.com/Gusto/apollo-federation-ruby/issues/7
293
293
 
294
294
  ## Known Issues and Limitations
295
295
 
296
- - Only works with class-based schemas, the legacy `.define` API will not be supported
297
- - Does not add directives to the output of `Schema.to_definition`. Since `graphql-ruby` doesn't natively support schema directives, the directives will only be visible to the [Apollo Gateway](https://www.apollographql.com/docs/apollo-server/api/apollo-gateway/) through the `Query._service` field (see the [Apollo Federation specification](https://www.apollographql.com/docs/apollo-server/federation/federation-spec/)) or via [`Schema#federation_sdl`](https://github.com/Gusto/apollo-federation-ruby/blob/1d3baf4f8efcd02e7bf5bc7e3fee5b4fb963cd25/lib/apollo-federation/schema.rb#L19) as explained above.
296
+ - For GraphQL older than 1.12, the interpreter runtime has to be used.
297
+ - Does not add directives to the output of `Schema.to_definition`. Since `graphql-ruby` doesn't natively support schema directives, the
298
+ directives will only be visible to the [Apollo Gateway](https://www.apollographql.com/docs/apollo-server/api/apollo-gateway/) through the `Query._service` field (see the [Apollo Federation specification](https://www.apollographql.com/docs/apollo-server/federation/federation-spec/)) or via [`Schema#federation_sdl`](https://github.com/Gusto/apollo-federation-ruby/blob/1d3baf4f8efcd02e7bf5bc7e3fee5b4fb963cd25/lib/apollo-federation/schema.rb#L19) as explained above.
298
299
 
299
300
  ## Maintainers
300
301
 
@@ -8,11 +8,5 @@ module ApolloFederation
8
8
  @federation_directives ||= []
9
9
  @federation_directives << { name: name, arguments: arguments }
10
10
  end
11
-
12
- def to_graphql
13
- field_defn = super # Returns a GraphQL::Field
14
- field_defn.metadata[:federation_directives] = @federation_directives
15
- field_defn
16
- end
17
11
  end
18
12
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApolloFederation
4
- VERSION = '2.2.0'
4
+ VERSION = '2.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apollo-federation
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noa Elad
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-04 00:00:00.000000000 Z
12
+ date: 2022-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: graphql