Replies: 3 comments 3 replies
-
Hi @rlindner! We actually do our best to maintain backwards compatibility, regardless of SemVer. Our swift-composable-architecture library is pre-1.0 but has maintained source compatibility over all of its releases, with large windows for deprecations to be migrated. SemVer guidelines are generally taken to mean changes to "source compatibility," of which this Snapshot Testing release has none: we don't believe there are any APIs that have changed that would lead to existing projects not building. We try to be very aware of non-source breaking changes, though, and try to communicate them appropriately. In the case of updates listed under "breaking changes," there are a few categories:
Is there a particular breaking change that you are having issues with or consider source-incompatible? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The change you are seeing is a result of the following bug fix:
Snapshot Testing manages some global state as a convenience for counting up over the course of a specific test. Relying on this count outside a particular test is not advertised or intentionally supported behavior, but supporting an Xcode feature definitely should be. In your case, you can use the |
Beta Was this translation helpful? Give feedback.
-
Last week there's been a new version 1.10.0 released which included breaking changes. This violates semantic versioning, a standard you should stick to when releasing a package for SPM.
see https://docs.swift.org/package-manager/PackageDescription/PackageDescription.html:
The problem which arises here is that this update broke every setup where this package was referenced with
upToNextMajor
which is unexpected when following semantic versioning.I would therefore like to encourage you to consider this for future releases.
Beta Was this translation helpful? Give feedback.
All reactions