github.com/sindresorhus/defaults breaking changes
github.com/sindresorhus/defaults 9.0.0 (November 24, 2024) is its newest release with breaking changes. The first: Requires watchOS 9 or later in github.com/sindresorhus/Defaults 9.0.0. Every breaking API change we have recorded in github.com/sindresorhus/defaults on Swift Package Index: 22 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 9.0.9, released June 23, 2026. Source repository
- From 8.0.0 to 9.0.0: 1 breaking change in 1 version.
- From 1.0.0 to 9.0.0: 21 breaking changes in 8 versions.
github.com/sindresorhus/defaults 9.0.0 breaking changes
- Configuration changed
The package now requires watchOS 9 or later. Projects still targeting earlier watchOS versions must raise their deployment target to 9 before upgrading. github.com
github.com/sindresorhus/defaults 8.0.0 breaking changes
- Removed
Defaults.migrate
Defaults.migrate() is removed in this release. Stop calling it and migrate stored data another way before upgrading. github.com - Behavior changed
Users upgrading from version 4 must first update to version 5 and follow the migration guide. github.com - Configuration changed
The package now requires macOS 11, iOS 13, tvOS 14, watchOS 7, visionOS 1 or later. Apps targeting older platforms must raise their deployment target. github.com
github.com/sindresorhus/defaults 7.0.0 breaking changes
- Configuration changed
The package now targets macOS 10.15, iOS 13, tvOS 13 and watchOS 6. Projects on older platform versions must raise their deployment targets. github.com - Configuration changed
Building the package now requires Xcode 14.1 or later. github.com
github.com/sindresorhus/defaults 6.0.0 breaking changes
- Removed
Minimum versions rise to macOS 10.13, iOS 12, tvOS 12 and watchOS 5, so older platforms are no longer supported and projects targeting them must raise their deployment targets. github.com
github.com/sindresorhus/defaults 5.0.0 breaking changes
- Removed
Carthage and CocoaPods installation is no longer supported. Use Swift Package Manager instead. github.com - Removed
NSSecureCodingKey
NSSecureCodingKey and NSSecureCodingOptionalKey were removed. Use Key instead. github.com - Removed
NSSecureCodingOptionalKey
NSSecureCodingKey and NSSecureCodingOptionalKey were removed. Use Key instead. github.com - Behavior changed
Array
Array, Set and Dictionary are now stored as native UserDefaults types instead of JSON strings, so existing stored values must be migrated with Defaults.migrate(). github.com
github.com/sindresorhus/defaults 4.0.0 breaking changes
- Removed
Defaults.observe
The .old and .new options are removed because they are now the default. Stop passing them to Defaults.observe. github.com - Removed
Defaults.OptionalKey
Defaults.OptionalKey is gone. Declare the key as Defaults.Key with an optional type instead, such as Key<Double?>. github.com - Renamed
DefaultsObservation
The type DefaultsObservation is now named Defaults.Observation. Update references to the new name. github.com - Behavior changed
Defaults.reset
Calling reset() deletes the stored item rather than writing nil as its value. Code that relies on the stored value being nil may need updating. github.com - Configuration changed
Projects using Swift Package Manager must set the Other Linker Flags build setting to -weak_framework Combine to avoid an Xcode bug. github.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
github.com/sindresorhus/defaults 3.0.0 breaking changes
- Renamed
defaults
Replace lowercase defaults with Defaults in all code, for example Defaults[.unicorn]. github.com - Renamed
defaults.clear
Call Defaults.removeAll as a static method instead of defaults.clear. github.com
And 2 more in this version.
github.com/sindresorhus/defaults 2.0.0 breaking changes
- Removed
The package now requires Swift 5, so projects on older Swift toolchains must upgrade before using this version. github.com
github.com/sindresorhus/defaults 1.0.0 breaking changes
- Behavior changed
Each Defaults.Key's default value is now registered with UserDefaults, so code reading those keys through UserDefaults directly may see values it did not return before. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.