@@ -119,7 +119,7 @@ export class FederationSpecDefinition extends FeatureDefinition {
119
119
this . registerDirective ( createDirectiveSpecification ( {
120
120
name : FederationDirectiveName . SHAREABLE ,
121
121
locations : [ DirectiveLocation . OBJECT , DirectiveLocation . FIELD_DEFINITION ] ,
122
- repeatable : version >= ( new FeatureVersion ( 2 , 2 ) ) ,
122
+ repeatable : version . gte ( new FeatureVersion ( 2 , 2 ) ) ,
123
123
} ) ) ;
124
124
125
125
this . registerSubFeature ( INACCESSIBLE_VERSIONS . getMinimumRequiredVersion ( version ) ) ;
@@ -130,7 +130,7 @@ export class FederationSpecDefinition extends FeatureDefinition {
130
130
args : [ { name : 'from' , type : ( schema ) => new NonNullType ( schema . stringType ( ) ) } ] ,
131
131
} ) ) ;
132
132
133
- if ( version >= ( new FeatureVersion ( 2 , 1 ) ) ) {
133
+ if ( version . gte ( new FeatureVersion ( 2 , 1 ) ) ) {
134
134
this . registerDirective ( createDirectiveSpecification ( {
135
135
name : FederationDirectiveName . COMPOSE_DIRECTIVE ,
136
136
locations : [ DirectiveLocation . SCHEMA ] ,
@@ -139,20 +139,20 @@ export class FederationSpecDefinition extends FeatureDefinition {
139
139
} ) ) ;
140
140
}
141
141
142
- if ( version >= ( new FeatureVersion ( 2 , 3 ) ) ) {
142
+ if ( version . gte ( new FeatureVersion ( 2 , 3 ) ) ) {
143
143
this . registerDirective ( createDirectiveSpecification ( {
144
144
name : FederationDirectiveName . INTERFACE_OBJECT ,
145
145
locations : [ DirectiveLocation . OBJECT ] ,
146
146
} ) ) ;
147
147
this . registerSubFeature ( TAG_VERSIONS . find ( new FeatureVersion ( 0 , 3 ) ) ! ) ;
148
148
}
149
149
150
- if ( version >= ( new FeatureVersion ( 2 , 5 ) ) ) {
150
+ if ( version . gte ( new FeatureVersion ( 2 , 5 ) ) ) {
151
151
this . registerSubFeature ( AUTHENTICATED_VERSIONS . find ( new FeatureVersion ( 0 , 1 ) ) ! ) ;
152
152
this . registerSubFeature ( REQUIRES_SCOPES_VERSIONS . find ( new FeatureVersion ( 0 , 1 ) ) ! ) ;
153
153
}
154
154
155
- if ( version >= ( new FeatureVersion ( 2 , 6 ) ) ) {
155
+ if ( version . gte ( new FeatureVersion ( 2 , 6 ) ) ) {
156
156
this . registerSubFeature ( POLICY_VERSIONS . find ( new FeatureVersion ( 0 , 1 ) ) ! ) ;
157
157
}
158
158
}
0 commit comments