Skip to content

fix: upgrade to dprint-core 0.69.1 - #8

Merged
dsherret merged 2 commits into
mainfrom
chore/dprint-core-0.69
Aug 21, 2026
Merged

fix: upgrade to dprint-core 0.69.1#8
dsherret merged 2 commits into
mainfrom
chore/dprint-core-0.69

Conversation

@dsherret

Copy link
Copy Markdown
Member

Upgrades dprint-core from 0.67.4 to 0.69.0.

Source changes

Only one source file needed changes, both at the boundary with dprint-core's plugin handler trait, due to the removal of anyhow from dprint-core in 0.68.0:

  • src/wasm_plugin.rs
    • SyncPluginHandler::check_config_updates now returns Result<Vec<ConfigChange>, dprint_core::plugins::FormatError> instead of anyhow::Result<..>.
    • format's call to format_text now maps the error with FormatError::new before ?, since ? no longer converts anyhow::Error into the core error type.

No changes were needed for the 0.69.0 GeneratedValue::is_known_multi_line addition — this plugin delegates to sqlformat and does not use dprint-core's IR helpers.

anyhow

anyhow is still a dependency, used only for the return type of the public format_text (anyhow::Result<Option<String>>). That function is infallible today (it never returns Err), so the dependency could be dropped entirely, but doing so would change the crate's public API, so it was left out of this upgrade and can be done separately as a fix(BREAKING) change like in the json/markdown/typescript plugins.

Verification

  • cargo check --all-targets — clean
  • cargo build --target wasm32-unknown-unknown --features wasm --release — clean
  • cargo test — all pass (3 unit + 2 integration tests covering 9 spec files + 2 doctests); no spec expectations changed
  • dprint fmt --excludes "**/*.rs" — no changes (rustfmt was not run in this environment)

@dsherret dsherret changed the title chore: upgrade to dprint-core 0.69.0 fix: upgrade to dprint-core 0.69.1 Aug 21, 2026
@dsherret
dsherret merged commit badbaa6 into main Aug 21, 2026
2 checks passed
@dsherret
dsherret deleted the chore/dprint-core-0.69 branch August 21, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant