Skip to content

fix(BREAKING): remove anyhow - #9

Merged
dsherret merged 3 commits into
mainfrom
chore/remove-anyhow
Aug 21, 2026
Merged

fix(BREAKING): remove anyhow#9
dsherret merged 3 commits into
mainfrom
chore/remove-anyhow

Conversation

@dsherret

@dsherret dsherret commented Aug 21, 2026

Copy link
Copy Markdown
Member

format_text never returned an Err — every path was Ok(...) — so rather than introduce an error type that can never be constructed, this drops the Result entirely and returns Option<String>.

  • removed the anyhow dependency
  • format_text now returns Option<String> instead of anyhow::Result<Option<String>>
  • wasm_plugin.rs drops the now-unnecessary .map_err(FormatError::new)?
  • dprint-development 0.10.1 -> 0.11.0, whose run_specs callback returns Result<Option<String>, Box<dyn Error + Send + Sync>> rather than an anyhow result

Also in here:

  • Cargo.lock is no longer gitignored, and is now committed
  • deno.json uses jsr:@dprint/automation@0.12.2 instead of the raw.githubusercontent URLs at 0.10.0. The JSR package only exports . and ./tasks/publish-release, so the "automation/" prefix mapping is gone and generateReleaseNotes.ts imports generateChangeLog from the root export (mod.ts re-exports ./changelog.ts). The release workflow's pinned publish-release task moved 0.10.3 -> 0.12.2 to match. deno.lock was deleted and regenerated with deno install.
  • formatted scripts/update.ts, which had a $.log(...) line over the line width

BREAKING: format_text's signature changed, so callers doing format_text(..)? need to drop the ?.

@dsherret dsherret mentioned this pull request Aug 21, 2026
@dsherret
dsherret merged commit 8433056 into main Aug 21, 2026
2 checks passed
@dsherret
dsherret deleted the chore/remove-anyhow branch August 21, 2026 19:57
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