Releases: pointfreeco/swift-custom-dump
1.3.3
What's Changed
- Fixed: Address Swift 6 snapshot concurrency error (on Linux) (thanks @finestructure, #127).
Full Changelog: 1.3.2...1.3.3
1.3.2
What's Changed
- Fixed: Point Issue Reporting to xctest-dynamic-overlay URL (#126). SwiftPM can fail to resolve package renames in certain contexts, so let's fully revert to the existing URL, for now, and roll out a new package in the future.
- Infrastructure: Update README.md for Swift Testing by (#125).
Full Changelog: 1.3.1...1.3.2
1.3.1
What's Changed
- Added: Swift Testing beta support (#124).
- Fixed: Addressed some sendable warnings (#117).
- Infrastructure: Swift Language Support: Drop <5.9, Add 6.0 (#121)
- Infrastructure: Add
.editorconfig
for consistent code formatting (thanks @Matejkob, #122).
New Contributors
Full Changelog: 1.3.0...1.3.1
0.11.2
- Fixed: Prevent Xcode 15.3 release builds from crashing (#108).
Full Changelog: 0.11.1...0.11.2
1.3.0
What's Changed
- Added:
_CustomDiffObject
now supports value types by providing an object identifier (#111). - Improved: Object identity/generation is now tracked in
diff
output (#111). - Infrastructure: Update Swift Tools Version to 5.7 (#111)
- Infrastructure: Update CI (#111).
- Infrastructure: Use
swiftwasm/setup-swiftwasm
instead ofswiftwasm/swiftwasm-action
(thanks @kateinoigakukun, #113).
New Contributors
- @kateinoigakukun made their first contribution in #113
Full Changelog: 1.2.1...1.3.0
1.2.1
What's Changed
- Fixed: Prevent Xcode 15.3 release builds from crashing (#108).
- Infrastructure: Fixed SPI config file (thanks @finestructure, #106).
New Contributors
- @finestructure made their first contribution in #106
Full Changelog: 1.2.0...1.2.1
1.2.0
What's Changed
- Added: Experimental support for "diffable" objects (#105).
- Infrastructure: Update documentation to use DocC (#103).
Full Changelog: 1.1.2...1.2.0
1.1.2
What's Changed
- Fixed: visionOS beta 6 compatibility (thanks @aaron-foreflight, #101)
New Contributors
- @aaron-foreflight made their first contribution in #101
Full Changelog: 1.1.1...1.1.2
1.1.1
What's Changed
-
Fixed: Filter properties prefixed with
_$
(#100).Macros like
@Observable
can insert properties prefixed by_$
to a structure. Generally these kinds of properties should be thought of as implementation details and should be filtered from the dump.
Full Changelog: 1.1.0...1.1.1
1.1.0
What's Changed
-
Added:
XCTAssertDifference
for testing changes to values (#51).This function evaluates a given expression before and after a given operation and then compares the results. The comparison is done by invoking the
changes
closure with a mutable version of the initial value, and then asserting that the modifications made match the final value usingXCTAssertNoDifference
.For example, given a very simple counter structure, we can write a test against its incrementing functionality:
struct Counter { var count = 0 var isOdd = false mutating func increment() { self.count += 1 self.isOdd.toggle() } } var counter = Counter() XCTAssertDifference(counter) { counter.increment() } changes: { $0.count = 1 $0.isOdd = true }
If
changes
does not exhaustively describe all changed fields, the assertion will fail.By omitting the operation you can write a "non-exhaustive" assertion against a value by describing just the fields you want to assert against in the
changes
closure:counter.increment() XCTAssertDifference(counter) { $0.count = 1 // Don't need to further describe how `isOdd` has changed }
-
Infrastructure: README updates (thanks @JacksonUtsch, #96).
-
Infrastructure: Enable Windows CI (thanks @brianmichel, #99).
New Contributors
- @JacksonUtsch made their first contribution in #96
- @brianmichel made their first contribution in #99
Full Changelog: 1.0.0...1.1.0