| { | ||
| "git": { | ||
| "sha1": "7c17145dc93628ccdeba6128a9e8bd5b1732217f" | ||
| "sha1": "43bde1870cd8f6b3dd896e2ea8a7490861ac6893" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+1
-1
@@ -15,3 +15,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "ferrflow" | ||
| version = "7.13.5" | ||
| version = "7.13.6" | ||
| build = false | ||
@@ -18,0 +18,0 @@ autolib = false |
+6
-0
@@ -7,2 +7,8 @@ # Changelog | ||
| ## [7.13.6] - 2026-09-02 | ||
| ### Bug Fixes | ||
| - fix(config): drop the dead anonymousTelemetry field (#996) | ||
| ## [7.13.5] - 2026-09-02 | ||
@@ -9,0 +15,0 @@ |
+8
-8
@@ -23,9 +23,9 @@ { | ||
| "optionalDependencies": { | ||
| "@ferrflow/darwin-arm64": "7.13.5", | ||
| "@ferrflow/darwin-x64": "7.13.5", | ||
| "@ferrflow/linux-arm": "7.13.5", | ||
| "@ferrflow/linux-arm64": "7.13.5", | ||
| "@ferrflow/linux-x64": "7.13.5", | ||
| "@ferrflow/win32-arm64": "7.13.5", | ||
| "@ferrflow/win32-x64": "7.13.5" | ||
| "@ferrflow/darwin-arm64": "7.13.6", | ||
| "@ferrflow/darwin-x64": "7.13.6", | ||
| "@ferrflow/linux-arm": "7.13.6", | ||
| "@ferrflow/linux-arm64": "7.13.6", | ||
| "@ferrflow/linux-x64": "7.13.6", | ||
| "@ferrflow/win32-arm64": "7.13.6", | ||
| "@ferrflow/win32-x64": "7.13.6" | ||
| }, | ||
@@ -37,3 +37,3 @@ "repository": { | ||
| "type": "module", | ||
| "version": "7.13.5" | ||
| "version": "7.13.6" | ||
| } |
@@ -15,3 +15,3 @@ { | ||
| }, | ||
| "version": "7.13.5" | ||
| "version": "7.13.6" | ||
| } |
@@ -15,3 +15,3 @@ { | ||
| }, | ||
| "version": "7.13.5" | ||
| "version": "7.13.6" | ||
| } |
@@ -15,3 +15,3 @@ { | ||
| }, | ||
| "version": "7.13.5" | ||
| "version": "7.13.6" | ||
| } |
@@ -15,3 +15,3 @@ { | ||
| }, | ||
| "version": "7.13.5" | ||
| "version": "7.13.6" | ||
| } |
@@ -15,3 +15,3 @@ { | ||
| }, | ||
| "version": "7.13.5" | ||
| "version": "7.13.6" | ||
| } |
@@ -15,3 +15,3 @@ { | ||
| }, | ||
| "version": "7.13.5" | ||
| "version": "7.13.6" | ||
| } |
@@ -15,3 +15,3 @@ { | ||
| }, | ||
| "version": "7.13.5" | ||
| "version": "7.13.6" | ||
| } |
@@ -35,4 +35,3 @@ { | ||
| "type": "boolean", | ||
| "description": "Deprecated and ignored: telemetry was removed from FerrFlow in v5.33. The key remains accepted so existing configs stay valid.", | ||
| "default": true, | ||
| "description": "Deprecated and ignored: telemetry was removed from FerrFlow in v5.33. The key remains accepted so existing configs written before then stay valid, but it drives nothing and should be deleted.", | ||
| "deprecated": true | ||
@@ -42,4 +41,3 @@ }, | ||
| "type": "boolean", | ||
| "description": "Deprecated and ignored: telemetry was removed from FerrFlow in v5.33. The key remains accepted so existing configs stay valid.", | ||
| "default": true, | ||
| "description": "Deprecated and ignored: telemetry was removed from FerrFlow in v5.33. The key remains accepted so existing configs written before then stay valid, but it drives nothing and should be deleted.", | ||
| "deprecated": true | ||
@@ -46,0 +44,0 @@ }, |
+13
-5
@@ -1147,2 +1147,15 @@ use super::format::{format_handler, snake_to_camel, to_camel_case_keys}; | ||
| #[test] | ||
| fn a_config_carrying_the_retired_telemetry_key_still_loads() { | ||
| // The schema keeps both spellings marked deprecated precisely so configs | ||
| // written before telemetry was removed stay valid. Dropping the field from | ||
| // WorkspaceConfig must not turn them into a parse error. | ||
| for key in ["anonymous_telemetry", "telemetry"] { | ||
| let json = format!(r#"{{"workspace":{{"remote":"origin","{key}":true}},"package":[]}}"#); | ||
| let config: Config = | ||
| serde_json::from_str(&json).unwrap_or_else(|e| panic!("{key} should still load: {e}")); | ||
| assert_eq!(config.workspace.remote, "origin"); | ||
| } | ||
| } | ||
| #[test] | ||
| fn serde_default_workspace_values() { | ||
@@ -1152,3 +1165,2 @@ let json = r#"{"workspace":{"remote":"origin"},"package":[]}"#; | ||
| assert_eq!(config.workspace.remote, "origin"); | ||
| assert!(config.workspace.anonymous_telemetry); | ||
| assert!(config.workspace.auto_merge_releases); | ||
@@ -1806,6 +1818,2 @@ } | ||
| assert_eq!( | ||
| absent.workspace.anonymous_telemetry, | ||
| present.workspace.anonymous_telemetry | ||
| ); | ||
| assert_eq!( | ||
| absent.workspace.auto_merge_releases, | ||
@@ -1812,0 +1820,0 @@ present.workspace.auto_merge_releases |
@@ -17,4 +17,2 @@ use serde::{Deserialize, Serialize}; | ||
| pub branch: String, | ||
| #[serde(default = "default_telemetry", alias = "telemetry")] | ||
| pub anonymous_telemetry: bool, | ||
| #[serde(default)] | ||
@@ -84,3 +82,2 @@ pub versioning: Option<VersioningStrategy>, | ||
| branch: default_branch(), | ||
| anonymous_telemetry: default_telemetry(), | ||
| versioning: Default::default(), | ||
@@ -175,6 +172,2 @@ tag_template: Default::default(), | ||
| fn default_telemetry() -> bool { | ||
| true | ||
| } | ||
| fn default_remote() -> String { | ||
@@ -181,0 +174,0 @@ "origin".to_string() |
@@ -202,2 +202,28 @@ use std::collections::{HashMap, HashSet}; | ||
| #[test] | ||
| fn a_raise_whose_version_cannot_be_computed_is_not_passed_on() { | ||
| let config: Config = serde_json::from_str(CHAIN).expect("valid config"); | ||
| // api holds a version no strategy can bump, so its raise cannot be | ||
| // applied. web depends on it and must not settle on the raise either. | ||
| let mut plans = vec![ | ||
| plan_for("1.0.0", "1.1.0", BumpType::Minor), | ||
| plan_for("not-a-version", "not-a-version", BumpType::Patch), | ||
| plan_for("1.0.0", "1.0.1", BumpType::Patch), | ||
| ]; | ||
| apply_cascade_upgrades(&config, &[], &mut plans); | ||
| let (api_bump, api_version, _) = bump_of(&plans, 1).expect("api still has a plan"); | ||
| assert_eq!(api_bump, BumpType::Patch, "the raise could not be applied"); | ||
| assert_eq!(api_version, "not-a-version", "so nothing was written to it"); | ||
| let (web_bump, web_version, _) = bump_of(&plans, 2).expect("web still has a plan"); | ||
| assert_eq!( | ||
| web_bump, | ||
| BumpType::Patch, | ||
| "web must not cascade off a raise api never took" | ||
| ); | ||
| assert_eq!(web_version, "1.0.1"); | ||
| } | ||
| #[test] | ||
| fn an_edge_that_declines_to_propagate_raises_nothing() { | ||
@@ -204,0 +230,0 @@ let config: Config = serde_json::from_str( |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet