Skip to content

Commit 1a64d14

Browse files
committed
Merge upstream/main: resolve Cargo.lock conflict (regex 1.13.0 -> 1.13.1)
2 parents 5992527 + 3dfdbd0 commit 1a64d14

136 files changed

Lines changed: 2399 additions & 445 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

compiler/Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/crates/common/src/feature_flags.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ pub struct FeatureFlags {
219219
/// for selections on abstract types.
220220
#[serde(default)]
221221
pub disable_more_precise_abstract_selection_raw_response_type: FeatureFlag,
222+
223+
/// Automatically add `__typename` selections that enable typegen to emit
224+
/// discriminated unions for selections on abstract types. Limited and
225+
/// rollout variants are keyed by operation or fragment definition name.
226+
#[serde(default)]
227+
pub enable_typename_discriminated_unions: FeatureFlag,
222228
}
223229

224230
impl Default for FeatureFlags {
@@ -256,6 +262,7 @@ impl Default for FeatureFlags {
256262
enforce_module_name_prefix_for_non_haste: Default::default(),
257263
emit_nogrep_annotation: Default::default(),
258264
disable_more_precise_abstract_selection_raw_response_type: Default::default(),
265+
enable_typename_discriminated_unions: Default::default(),
259266

260267
// enabled-by-default
261268
enforce_fragment_alias_where_ambiguous: FeatureFlag::Enabled,
@@ -341,6 +348,10 @@ mod tests {
341348
));
342349
// A couple of quick sanity checks for other defaults
343350
assert!(matches!(flags.no_inline, FeatureFlag::Disabled));
351+
assert!(matches!(
352+
flags.enable_typename_discriminated_unions,
353+
FeatureFlag::Disabled
354+
));
344355
assert!(!flags.enable_resolver_normalization_ast);
345356
}
346357

compiler/crates/dependency-analyzer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ serde = { version = "1.0.219", features = ["derive", "rc"] }
3535
[dev-dependencies]
3636
fixture-tests = { path = "../fixture-tests" }
3737
relay-test-schema = { path = "../relay-test-schema" }
38-
tokio = { version = "1.52.3", features = ["full", "test-util", "tracing"] }
38+
tokio = { version = "1.52.4", features = ["full", "test-util", "tracing"] }

compiler/crates/docblock-syntax/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ thiserror = "2.0.18"
2222
[dev-dependencies]
2323
fixture-tests = { path = "../fixture-tests" }
2424
graphql-test-helpers = { path = "../graphql-test-helpers" }
25-
tokio = { version = "1.52.3", features = ["full", "test-util", "tracing"] }
25+
tokio = { version = "1.52.4", features = ["full", "test-util", "tracing"] }

compiler/crates/extract-graphql/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ graphql-syntax = { path = "../graphql-syntax" }
1919

2020
[dev-dependencies]
2121
fixture-tests = { path = "../fixture-tests" }
22-
tokio = { version = "1.52.3", features = ["full", "test-util", "tracing"] }
22+
tokio = { version = "1.52.4", features = ["full", "test-util", "tracing"] }

compiler/crates/fixture-tests/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ name = "fixture_tests_tests"
1717
path = "tests/uppercase_test.rs"
1818

1919
[dependencies]
20-
clap = { version = "4.6.0", features = ["derive", "env", "string", "unicode", "wrap_help"] }
20+
clap = { version = "4.6.2", features = ["derive", "env", "string", "unicode", "wrap_help"] }
2121
colored = "2.1.0"
2222
diff = "0.1.13"
2323
signedsource = { path = "../signedsource" }
24-
tokio = { version = "1.52.3", features = ["full", "test-util", "tracing"] }
24+
tokio = { version = "1.52.4", features = ["full", "test-util", "tracing"] }

compiler/crates/graphql-ir-validations/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ graphql-cli = { path = "../graphql-cli" }
3131
graphql-syntax = { path = "../graphql-syntax" }
3232
graphql-test-helpers = { path = "../graphql-test-helpers" }
3333
relay-test-schema = { path = "../relay-test-schema" }
34-
tokio = { version = "1.52.3", features = ["full", "test-util", "tracing"] }
34+
tokio = { version = "1.52.4", features = ["full", "test-util", "tracing"] }

compiler/crates/graphql-ir/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ thiserror = "2.0.18"
3636
fixture-tests = { path = "../fixture-tests" }
3737
graphql-cli = { path = "../graphql-cli" }
3838
relay-test-schema = { path = "../relay-test-schema" }
39-
tokio = { version = "1.52.3", features = ["full", "test-util", "tracing"] }
39+
tokio = { version = "1.52.4", features = ["full", "test-util", "tracing"] }

compiler/crates/graphql-syntax/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ thiserror = "2.0.18"
2222
[dev-dependencies]
2323
fixture-tests = { path = "../fixture-tests" }
2424
graphql-cli = { path = "../graphql-cli" }
25-
tokio = { version = "1.52.3", features = ["full", "test-util", "tracing"] }
25+
tokio = { version = "1.52.4", features = ["full", "test-util", "tracing"] }

compiler/crates/graphql-text-printer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ schema = { path = "../schema" }
3333
fixture-tests = { path = "../fixture-tests" }
3434
relay-test-schema = { path = "../relay-test-schema" }
3535
relay-transforms = { path = "../relay-transforms" }
36-
tokio = { version = "1.52.3", features = ["full", "test-util", "tracing"] }
36+
tokio = { version = "1.52.4", features = ["full", "test-util", "tracing"] }

0 commit comments

Comments
 (0)