Repository navigation
Update to Swift tools 5.9 and GitHub Actions CI - #2
Merged
Merged
Conversation
- swift-tools-version 5.9 with minimum platforms, test target depends on the library - Replace Travis, Hound and Codecov config with a GitHub Actions workflow on macOS and Linux - Keep rejecting invalid URL strings on macOS 14+/iOS 17+, where URL(string:) now percent-encodes them - Make DecodingError Sendable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01237XKu4FYZRdEg2D5963qC
Optional variants returned `try? json(...)` without naming the non-optional type, so with Swift 5 try? flattening the compiler could pick the optional overload itself, recursing until the stack overflowed (seen on Linux with Swift 5.10). Name the type explicitly so the throwing overload is used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01237XKu4FYZRdEg2D5963qC
NSDictionary.isEqual compares bridged numbers and booleans differently on Linux Foundation, which failed testCorrectDecodingForMandatoryJSONOnParentWithChild. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01237XKu4FYZRdEg2D5963qC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01237XKu4FYZRdEg2D5963qC
Superseded pushes left several macOS jobs queued at once, which run on a small shared pool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01237XKu4FYZRdEg2D5963qC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Yonas · project thread
Brings the package up to date. Intended to merge before #1, which builds on it.
swift-tools-version4.2 → 5.9 (matches XcodeGen's), with minimum platforms macOS 10.15 / iOS 13 / tvOS 13 / watchOS 6, which Add opt-in key access tracking to report unused keys #1 needs for@TaskLocal.JSONUtilities. Without itswift testdidn't build on current toolchains.URLdecoding: since macOS 14 / iOS 17,URL(string:)percent-encodes invalid characters instead of returning nil, so"±"decoded as a URL and 2 tests failed. On those systems it now usesURL(string:encodingInvalidCharacters: false), which keeps the old, documented behaviour of rejecting invalid URL strings.DecodingErroris@unchecked Sendable, silencing the Swift 6 warning (its JSON payload is never mutated).Left alone, for you to decide:
JSONUtilities.xcodeproj,NonSwiftPackageManagerTests,Metadata,Example.playgroundand the podspec (which still points at the upstream lucianomarisi repo).Generated by Claude Code