Skip to content

1.0.1 - Swift 6.0 Package Resolution Fix

Choose a tag to compare

@coenttb coenttb released this 30 Oct 12:20

Bug Fixes

πŸ› Swift 6.0 Package Resolution (#12)

Fixed package resolution failures for Swift 6.0 users caused by incorrect dependency version constraints.

Changes:

  • βœ… Removed non-existent pointfree-html dependency (was requiring v0.1.0 which doesn't exist)
  • βœ… Fixed swift-logging-extras version: 0.1.1 β†’ 0.0.1 (correct published version)
  • βœ… Mirrored Swift 6.1 three-target architecture (HtmlToPdfTypes, HtmlToPdfLive, HtmlToPdf)
  • βœ… Added swift-html as standard dependency for Swift 6.0 (traits unavailable in 6.0)
  • βœ… Used .define("HTML") compiler flag to enable HTML-guarded code without traits

πŸ”§ CI/CD Improvements

Enhanced continuous integration to catch similar issues in the future:

  • βœ… Added dedicated macOS job to explicitly test Package@swift-6.0.swift
  • βœ… Added swift package resolve step to Linux job (fails fast on version mismatches)
  • βœ… Improved job naming to clarify Swift version/manifest being tested
  • βœ… Separate cache keys for Swift 6.0 and 6.1 builds

Verification

The package now builds and tests successfully with both manifests:

  • Package.swift (Swift 6.1+ with optional HTML trait support)
  • Package@swift-6.0.swift (Swift 6.0 with HTML always enabled)

Thanks

Special thanks to @YasserB94 for reporting this issue!


Full Changelog: 1.0.0...1.0.1