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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +3 -2
- data/lib/apollo-federation/has_directives.rb +0 -6
- data/lib/apollo-federation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc8de90dc106e25f44e0035a2e7ca3f2a4a37cc9b930d1d245317a93cd54a2f0
|
|
4
|
+
data.tar.gz: ed4a107cde1f0c1e1d4a979d4168de2c248301cf7a7a1250cd868d335fde0828
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
-
|
|
297
|
-
- Does not add directives to the output of `Schema.to_definition`. Since `graphql-ruby` doesn't natively support schema directives, the
|
|
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
|
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.
|
|
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-
|
|
12
|
+
date: 2022-03-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: graphql
|