apollo-federation 3.4.0 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abfe3d2b974b652799d6a1c1ab7d756dcea8991567488d299bd202828ddc8d99
4
- data.tar.gz: 3319040f0c287732714a6df41d076415872e98bb97d2e8bfd5151f554f2904b2
3
+ metadata.gz: 7cffb53f08806faf67b0cb6859070ba9713e2a4041853ca085ed60e53544881a
4
+ data.tar.gz: 49d268d70116760b61aa7c7edb9ed6cccf62fa15ae690a85e938714d39bd5ded
5
5
  SHA512:
6
- metadata.gz: 311f8b35a3c28096b69e0fdd3c06e267bc59c3ff0456de6ba1c39bfa01f72cdfdeeaf8f7571bfc1127cac2bee4b1766abd4e917b35ecaeb570898b971032e932
7
- data.tar.gz: 87d6515278affeeba7addc41fa1bcbd0fe0b8303e297c12db5330c77b228890377e66baac944cbeb988a3e1beb171ef9716cfb82868f190aff6f075517e2f77e
6
+ metadata.gz: f049907664be9ecb42f482af571799171e8d6156439fc816e3384bfbdae42709a289d1b25c7b6c42ad6a07afc7d3754b55b98eb2f03c9c72932e0f63a72f12c6
7
+ data.tar.gz: 98e8fdb620d9f5007f2c690203372a3fb89dc5325aecdfd91f8287a160cf12d3793f24cf5c3f38b7fb80757fe2995e2d3135d7510ac9ab354faf4ffea24b2990
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.4.1](https://github.com/Gusto/apollo-federation-ruby/compare/v3.4.0...v3.4.1) (2023-02-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * import [@inaccessible](https://github.com/inaccessible) directive in Fed v2.3 ([#220](https://github.com/Gusto/apollo-federation-ruby/issues/220)) ([5d4d86e](https://github.com/Gusto/apollo-federation-ruby/commit/5d4d86e8155efe83470c58012454c79c910219ff))
7
+
1
8
  # [3.4.0](https://github.com/Gusto/apollo-federation-ruby/compare/v3.3.1...v3.4.0) (2023-02-21)
2
9
 
3
10
 
@@ -14,6 +14,7 @@ module ApolloFederation
14
14
  '_entities',
15
15
  '_service',
16
16
  ].freeze
17
+ INACCESSIBLE_DIRECTIVE = 'inaccessible'
17
18
 
18
19
  def build_object_type_node(object_type)
19
20
  object_node = super
@@ -70,7 +71,7 @@ module ApolloFederation
70
71
  end
71
72
 
72
73
  def directive_name(directive)
73
- if schema.federation_2?
74
+ if schema.federation_2? && directive[:name] != INACCESSIBLE_DIRECTIVE
74
75
  "#{schema.link_namespace}__#{directive[:name]}"
75
76
  else
76
77
  directive[:name]
@@ -61,7 +61,7 @@ module ApolloFederation
61
61
 
62
62
  <<~SCHEMA
63
63
  extend schema
64
- @link(url: "https://specs.apollo.dev/federation/v2.3"#{federation_namespace})
64
+ @link(url: "https://specs.apollo.dev/federation/v2.3"#{federation_namespace}, import: ["@inaccessible"])
65
65
 
66
66
  SCHEMA
67
67
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApolloFederation
4
- VERSION = '3.4.0'
4
+ VERSION = '3.4.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: 3.4.0
4
+ version: 3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noa Elad