From c784377e2ddd7a675b83595ec6593f265ef2a144 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 21 Aug 2026 14:59:33 -0400 Subject: [PATCH 1/2] chore: upgrade to dprint-core 0.69.0 --- Cargo.toml | 2 +- src/wasm_plugin.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 02e2f07..841450d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ wasm = ["serde_json", "dprint-core/wasm"] [dependencies] anyhow = "1.0.51" -dprint-core = { version = "0.67.4", default-features = false } +dprint-core = { version = "0.69.0", default-features = false } serde = { version = "1.0.88", features = ["derive"] } serde_json = { version = "1.0", optional = true } sqlformat = "0.5.0" diff --git a/src/wasm_plugin.rs b/src/wasm_plugin.rs index b8f950f..021c67a 100644 --- a/src/wasm_plugin.rs +++ b/src/wasm_plugin.rs @@ -5,6 +5,7 @@ use dprint_core::generate_plugin_code; use dprint_core::plugins::CheckConfigUpdatesMessage; use dprint_core::plugins::ConfigChange; use dprint_core::plugins::FileMatchingInfo; +use dprint_core::plugins::FormatError; use dprint_core::plugins::FormatResult; use dprint_core::plugins::PluginInfo; use dprint_core::plugins::PluginResolveConfigurationResult; @@ -31,7 +32,7 @@ impl SyncPluginHandler for SqlPluginHandler { } } - fn check_config_updates(&self, _message: CheckConfigUpdatesMessage) -> anyhow::Result> { + fn check_config_updates(&self, _message: CheckConfigUpdatesMessage) -> Result, FormatError> { Ok(Vec::new()) } @@ -64,7 +65,7 @@ impl SyncPluginHandler for SqlPluginHandler { } let text = String::from_utf8_lossy(&request.file_bytes); - let maybe_text = super::format_text(request.file_path, &text, request.config)?; + let maybe_text = super::format_text(request.file_path, &text, request.config).map_err(FormatError::new)?; Ok(maybe_text.map(|t| t.into_bytes())) } } From d56f1f643ecb76aca7eed7555128630c19f060c9 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 21 Aug 2026 15:22:39 -0400 Subject: [PATCH 2/2] chore: use dprint-core 0.69.1 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 841450d..982aaf9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ wasm = ["serde_json", "dprint-core/wasm"] [dependencies] anyhow = "1.0.51" -dprint-core = { version = "0.69.0", default-features = false } +dprint-core = { version = "0.69.1", default-features = false } serde = { version = "1.0.88", features = ["derive"] } serde_json = { version = "1.0", optional = true } sqlformat = "0.5.0"