Skip to content

chore: update rd dependencies to 0.5.0-alpha.1 - #83

Merged
eitsupi merged 2 commits into
mainfrom
chore/rd-deps-0.5.0-alpha.1
Sep 14, 2026
Merged

eitsupi merged 2 commits into
mainfrom
chore/rd-deps-0.5.0-alpha.1

Conversation

@eitsupi

@eitsupi eitsupi commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • update rd-ast and rd-source from 0.4.0 to 0.5.0-alpha.1
  • migrate AST conversion and package metadata handling to the new located node/field APIs
  • pass RdNodeRef / RdNodesRef through the production conversion pipeline instead of constructing empty legacy paths
  • route production text extraction through positioned node references, leaving AST cloning only in the legacy slice-based public adapter
  • replace manual external-package recursion with one RdDocument::walk() pass, including option, raw, link-display, and S4-link coverage

Compatibility assessment

The compile failures from the version bump matched the breaking changes documented in the upstream changelog and rd-ast-0.5-migration.md: path type replacement, node-inspector receivers moving to RdNodeRef, located document fields with explicit lossy accessors, and private view fields.

This is therefore an intentional downstream migration rather than a newly identified bug in either repository. The existing best-effort metadata behavior is preserved by choosing the new *_lossy accessors explicitly. Custom traversal remains only where rd2qmd needs sibling-aware semantics that the structural walk does not provide: paragraph boundaries and the three-node roxygen pattern.

Although this migration touches the conversion pipeline end to end, it preserves existing output behavior and avoids unrelated changes.

The upstream changelog describes alpha.1 as the beginning of the 0.5.0 breaking API series and notes that source-map support is planned for a later prerelease. If the documented migration contract remains unchanged, moving to stable 0.5.0 should require only a dependency/lockfile update and verification; any additional prerelease API changes will need separate adaptation.

Tests

  • cargo check --workspace --all-targets --all-features
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo test --all-targets --all-features --workspace (336 passed, 0 failed, 1 ignored)
  • git diff --check

@eitsupi
eitsupi merged commit 8fa352e into main Sep 14, 2026
13 checks passed
@eitsupi
eitsupi deleted the chore/rd-deps-0.5.0-alpha.1 branch September 14, 2026 00:28
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