Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Depend only on XMLKit: drop SwiftText and the DocC plugin#1322

Merged
odrobnik merged 1 commit into
developfrom
claude/gracious-austin-8b9b35
Jun 12, 2026
Merged

Depend only on XMLKit: drop SwiftText and the DocC plugin#1322
odrobnik merged 1 commit into
developfrom
claude/gracious-austin-8b9b35

Conversation

@odrobnik

Copy link
Copy Markdown
Collaborator

Summary

DTCoreText's resolved dependency graph shrinks from five packages to one: xmlkit 1.0.1.

  • SwiftText → XMLKit. DTCoreText only ever imported the HTMLParser module. That parser now lives in its own package — Cocoanetics/XMLKit, extracted from SwiftText with full git history and adopted back by SwiftText in SwiftText#23. Depending on the HTMLParser product directly (semver-pinned from: 1.0.1 instead of branch: main) drops SwiftText, swift-markdown and swift-cmark from the graph; the HTML trait setting goes with it.
  • swift-docc-plugin removed. Swift Package Index auto-injects the DocC plugin when building hosted docs (.spi.yml keeps working), Xcode builds the DTCoreText.docc catalog natively, and CI never generates documentation. This also removes SymbolKit and swift-argument-parser.

Verification

  • Full suite: 299 tests in 30 suites pass against XMLKit 1.0.1.
  • XMLKit itself is CI-verified on macOS, iOS, Linux, Windows and Android (1.0.1 release notes).
  • No source changes — import HTMLParser resolves to the identical module; only Package.swift and Package.resolved move.

🤖 Generated with Claude Code

DTCoreText only ever imported the HTMLParser module, which now lives in
its own package (Cocoanetics/XMLKit, extracted from SwiftText with
history). Depending on the HTMLParser product directly drops SwiftText,
swift-markdown and swift-cmark from the graph, and no traits are needed
anymore.

swift-docc-plugin is gone too: Swift Package Index injects the plugin
automatically when building hosted documentation (.spi.yml), Xcode
builds the DocC catalog natively, and CI never generates docs. With it
go SymbolKit and swift-argument-parser.

Resolved dependencies shrink from five packages to one: xmlkit 1.0.1.

Co-Authored-By: Claude Fable 5 <[email protected]>
@odrobnik odrobnik merged commit 1575919 into develop Jun 12, 2026
2 checks passed
@odrobnik odrobnik deleted the claude/gracious-austin-8b9b35 branch June 13, 2026 06:26
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