File tree Expand file tree Collapse file tree 4 files changed +8
-22
lines changed
GraphQLCompiler/JavaScript Expand file tree Collapse file tree 4 files changed +8
-22
lines changed Original file line number Diff line number Diff line change 11import Foundation
22
33public enum Constants {
4- public static let CLIVersion : String = " 1.9.2 "
4+ public static let CLIVersion : String = " 1.9.3 "
55 static let defaultFilePath : String = " ./apollo-codegen-config.json "
66}
Original file line number Diff line number Diff line change @@ -158,13 +158,14 @@ struct PackageResolvedModel {
158158 enum FileFormatVersion : Int {
159159 case v1 = 1
160160 case v2 = 2
161+ case v3 = 3
161162
162163 func getPackageList( fromPackageResolvedJSON json: [ String : Any ] ) -> ObjectList ? {
163164 switch self {
164165 case . v1:
165166 return ( json [ " object " ] as? Object ) ? [ " pins " ] as? ObjectList
166167
167- case . v2:
168+ case . v2, . v3 :
168169 return json [ " pins " ] as? ObjectList
169170 }
170171 }
@@ -174,7 +175,7 @@ struct PackageResolvedModel {
174175 case . v1:
175176 return package [ " package " ] as? String
176177
177- case . v2:
178+ case . v2, . v3 :
178179 return package [ " identity " ] as? String
179180 }
180181 }
Original file line number Diff line number Diff line change 2424 "@types/jest" : " 29.5.12" ,
2525 "common-tags" : " 1.8.2" ,
2626 "jest" : " 29.7.0" ,
27- "rollup" : " 4.13.0 " ,
27+ "rollup" : " 4.13.2 " ,
2828 "@rollup/plugin-terser" : " 0.4.4" ,
2929 "ts-jest" : " 29.1.2" ,
30- "typescript" : " 5.4.2 "
30+ "typescript" : " 5.4.3 "
3131 }
3232}
Original file line number Diff line number Diff line change @@ -224,23 +224,6 @@ class EntitySelectionTree {
224224 targetSelections. mergeIn ( scopeSelections, from: source)
225225 }
226226
227- if let conditionalScopes = scopeConditions {
228- for (condition, node) in conditionalScopes {
229- guard !node. scope. isDeferred else { continue }
230-
231- if scopePathNode. value. matches ( condition) {
232- node. mergeSelections (
233- matchingScopePath: scopePathNode,
234- into: targetSelections,
235- transformingSelections: transformingSelections
236- )
237-
238- } else {
239- targetSelections. addMergedInlineFragment ( with: condition)
240- }
241- }
242- }
243-
244227 case . none: break
245228 }
246229
@@ -254,6 +237,8 @@ class EntitySelectionTree {
254237 into: targetSelections,
255238 transformingSelections: transformingSelections
256239 )
240+ } else if case . selections = child {
241+ targetSelections. addMergedInlineFragment ( with: condition)
257242 }
258243 }
259244 }
You can’t perform that action at this time.
0 commit comments