relay-compiler 18.0.0 → 18.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/linux-arm64/relay CHANGED
Binary file
package/linux-x64/relay CHANGED
Binary file
package/macos-arm64/relay CHANGED
Binary file
package/macos-x64/relay CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relay-compiler",
3
3
  "description": "A compiler tool for building GraphQL-driven applications.",
4
- "version": "18.0.0",
4
+ "version": "18.1.0",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"
@@ -741,10 +741,6 @@
741
741
  "default": false,
742
742
  "type": "boolean"
743
743
  },
744
- "enable_relay_resolver_transform": {
745
- "default": false,
746
- "type": "boolean"
747
- },
748
744
  "enable_resolver_normalization_ast": {
749
745
  "description": "Fully build the normalization AST for Resolvers",
750
746
  "default": false,
@@ -1187,6 +1183,92 @@
1187
1183
  }
1188
1184
  }
1189
1185
  ]
1186
+ },
1187
+ "use_reader_module_imports": {
1188
+ "description": "Generate the `moduleImports` field in the Reader AST.",
1189
+ "default": {
1190
+ "kind": "disabled"
1191
+ },
1192
+ "oneOf": [
1193
+ {
1194
+ "description": "Fully disabled: developers may not use this feature",
1195
+ "type": "object",
1196
+ "required": [
1197
+ "kind"
1198
+ ],
1199
+ "properties": {
1200
+ "kind": {
1201
+ "type": "string",
1202
+ "enum": [
1203
+ "disabled"
1204
+ ]
1205
+ }
1206
+ }
1207
+ },
1208
+ {
1209
+ "description": "Fully enabled: developers may use this feature",
1210
+ "type": "object",
1211
+ "required": [
1212
+ "kind"
1213
+ ],
1214
+ "properties": {
1215
+ "kind": {
1216
+ "type": "string",
1217
+ "enum": [
1218
+ "enabled"
1219
+ ]
1220
+ }
1221
+ }
1222
+ },
1223
+ {
1224
+ "description": "Partially enabled: developers may only use this feature on the listed items (fragments, fields, types).",
1225
+ "type": "object",
1226
+ "required": [
1227
+ "allowlist",
1228
+ "kind"
1229
+ ],
1230
+ "properties": {
1231
+ "allowlist": {
1232
+ "type": "array",
1233
+ "items": {
1234
+ "type": "string"
1235
+ },
1236
+ "uniqueItems": true
1237
+ },
1238
+ "kind": {
1239
+ "type": "string",
1240
+ "enum": [
1241
+ "limited"
1242
+ ]
1243
+ }
1244
+ }
1245
+ },
1246
+ {
1247
+ "description": "Partially enabled: used for gradual rollout of the feature",
1248
+ "type": "object",
1249
+ "required": [
1250
+ "kind",
1251
+ "rollout"
1252
+ ],
1253
+ "properties": {
1254
+ "kind": {
1255
+ "type": "string",
1256
+ "enum": [
1257
+ "rollout"
1258
+ ]
1259
+ },
1260
+ "rollout": {
1261
+ "description": "A utility to enable gradual rollout of large codegen changes. Can be constructed as the Default which passes or a percentage between 0 and 100.",
1262
+ "type": [
1263
+ "integer",
1264
+ "null"
1265
+ ],
1266
+ "format": "uint8",
1267
+ "minimum": 0.0
1268
+ }
1269
+ }
1270
+ }
1271
+ ]
1190
1272
  }
1191
1273
  },
1192
1274
  "additionalProperties": false
@@ -1728,7 +1810,6 @@
1728
1810
  "enable_exec_time_resolvers_directive": false,
1729
1811
  "enable_fragment_argument_transform": false,
1730
1812
  "enable_relay_resolver_mutations": false,
1731
- "enable_relay_resolver_transform": false,
1732
1813
  "enable_resolver_normalization_ast": false,
1733
1814
  "enable_strict_custom_scalars": false,
1734
1815
  "enforce_fragment_alias_where_ambiguous": {
@@ -1746,6 +1827,9 @@
1746
1827
  },
1747
1828
  "text_artifacts": {
1748
1829
  "kind": "disabled"
1830
+ },
1831
+ "use_reader_module_imports": {
1832
+ "kind": "disabled"
1749
1833
  }
1750
1834
  },
1751
1835
  "type": "object",
@@ -2380,10 +2464,6 @@
2380
2464
  "default": false,
2381
2465
  "type": "boolean"
2382
2466
  },
2383
- "enable_relay_resolver_transform": {
2384
- "default": false,
2385
- "type": "boolean"
2386
- },
2387
2467
  "enable_resolver_normalization_ast": {
2388
2468
  "description": "Fully build the normalization AST for Resolvers",
2389
2469
  "default": false,
@@ -2826,6 +2906,92 @@
2826
2906
  }
2827
2907
  }
2828
2908
  ]
2909
+ },
2910
+ "use_reader_module_imports": {
2911
+ "description": "Generate the `moduleImports` field in the Reader AST.",
2912
+ "default": {
2913
+ "kind": "disabled"
2914
+ },
2915
+ "oneOf": [
2916
+ {
2917
+ "description": "Fully disabled: developers may not use this feature",
2918
+ "type": "object",
2919
+ "required": [
2920
+ "kind"
2921
+ ],
2922
+ "properties": {
2923
+ "kind": {
2924
+ "type": "string",
2925
+ "enum": [
2926
+ "disabled"
2927
+ ]
2928
+ }
2929
+ }
2930
+ },
2931
+ {
2932
+ "description": "Fully enabled: developers may use this feature",
2933
+ "type": "object",
2934
+ "required": [
2935
+ "kind"
2936
+ ],
2937
+ "properties": {
2938
+ "kind": {
2939
+ "type": "string",
2940
+ "enum": [
2941
+ "enabled"
2942
+ ]
2943
+ }
2944
+ }
2945
+ },
2946
+ {
2947
+ "description": "Partially enabled: developers may only use this feature on the listed items (fragments, fields, types).",
2948
+ "type": "object",
2949
+ "required": [
2950
+ "allowlist",
2951
+ "kind"
2952
+ ],
2953
+ "properties": {
2954
+ "allowlist": {
2955
+ "type": "array",
2956
+ "items": {
2957
+ "type": "string"
2958
+ },
2959
+ "uniqueItems": true
2960
+ },
2961
+ "kind": {
2962
+ "type": "string",
2963
+ "enum": [
2964
+ "limited"
2965
+ ]
2966
+ }
2967
+ }
2968
+ },
2969
+ {
2970
+ "description": "Partially enabled: used for gradual rollout of the feature",
2971
+ "type": "object",
2972
+ "required": [
2973
+ "kind",
2974
+ "rollout"
2975
+ ],
2976
+ "properties": {
2977
+ "kind": {
2978
+ "type": "string",
2979
+ "enum": [
2980
+ "rollout"
2981
+ ]
2982
+ },
2983
+ "rollout": {
2984
+ "description": "A utility to enable gradual rollout of large codegen changes. Can be constructed as the Default which passes or a percentage between 0 and 100.",
2985
+ "type": [
2986
+ "integer",
2987
+ "null"
2988
+ ],
2989
+ "format": "uint8",
2990
+ "minimum": 0.0
2991
+ }
2992
+ }
2993
+ }
2994
+ ]
2829
2995
  }
2830
2996
  },
2831
2997
  "additionalProperties": false
@@ -3017,6 +3183,16 @@
3017
3183
  "null"
3018
3184
  ]
3019
3185
  },
3186
+ "excludesExtensions": {
3187
+ "description": "Some projects may need to exclude files with certain extensions.",
3188
+ "type": [
3189
+ "array",
3190
+ "null"
3191
+ ],
3192
+ "items": {
3193
+ "type": "string"
3194
+ }
3195
+ },
3020
3196
  "extra": {
3021
3197
  "description": "A placeholder for allowing extra information in the config file",
3022
3198
  "default": null
@@ -3665,10 +3841,6 @@
3665
3841
  "default": false,
3666
3842
  "type": "boolean"
3667
3843
  },
3668
- "enable_relay_resolver_transform": {
3669
- "default": false,
3670
- "type": "boolean"
3671
- },
3672
3844
  "enable_resolver_normalization_ast": {
3673
3845
  "description": "Fully build the normalization AST for Resolvers",
3674
3846
  "default": false,
@@ -4111,6 +4283,92 @@
4111
4283
  }
4112
4284
  }
4113
4285
  ]
4286
+ },
4287
+ "use_reader_module_imports": {
4288
+ "description": "Generate the `moduleImports` field in the Reader AST.",
4289
+ "default": {
4290
+ "kind": "disabled"
4291
+ },
4292
+ "oneOf": [
4293
+ {
4294
+ "description": "Fully disabled: developers may not use this feature",
4295
+ "type": "object",
4296
+ "required": [
4297
+ "kind"
4298
+ ],
4299
+ "properties": {
4300
+ "kind": {
4301
+ "type": "string",
4302
+ "enum": [
4303
+ "disabled"
4304
+ ]
4305
+ }
4306
+ }
4307
+ },
4308
+ {
4309
+ "description": "Fully enabled: developers may use this feature",
4310
+ "type": "object",
4311
+ "required": [
4312
+ "kind"
4313
+ ],
4314
+ "properties": {
4315
+ "kind": {
4316
+ "type": "string",
4317
+ "enum": [
4318
+ "enabled"
4319
+ ]
4320
+ }
4321
+ }
4322
+ },
4323
+ {
4324
+ "description": "Partially enabled: developers may only use this feature on the listed items (fragments, fields, types).",
4325
+ "type": "object",
4326
+ "required": [
4327
+ "allowlist",
4328
+ "kind"
4329
+ ],
4330
+ "properties": {
4331
+ "allowlist": {
4332
+ "type": "array",
4333
+ "items": {
4334
+ "type": "string"
4335
+ },
4336
+ "uniqueItems": true
4337
+ },
4338
+ "kind": {
4339
+ "type": "string",
4340
+ "enum": [
4341
+ "limited"
4342
+ ]
4343
+ }
4344
+ }
4345
+ },
4346
+ {
4347
+ "description": "Partially enabled: used for gradual rollout of the feature",
4348
+ "type": "object",
4349
+ "required": [
4350
+ "kind",
4351
+ "rollout"
4352
+ ],
4353
+ "properties": {
4354
+ "kind": {
4355
+ "type": "string",
4356
+ "enum": [
4357
+ "rollout"
4358
+ ]
4359
+ },
4360
+ "rollout": {
4361
+ "description": "A utility to enable gradual rollout of large codegen changes. Can be constructed as the Default which passes or a percentage between 0 and 100.",
4362
+ "type": [
4363
+ "integer",
4364
+ "null"
4365
+ ],
4366
+ "format": "uint8",
4367
+ "minimum": 0.0
4368
+ }
4369
+ }
4370
+ }
4371
+ ]
4114
4372
  }
4115
4373
  },
4116
4374
  "additionalProperties": false
package/win-x64/relay.exe CHANGED
Binary file