---
title: "github.com/sindresorhus/defaults 9.0.0 Breaking Changes"
description: "What each github.com/sindresorhus/defaults release removed, renamed or changed: 22 breaking changes in 9 versions on Swift Package Index, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/sindresorhus/defaults
last_updated: 2026-12-04
---

# 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

Latest version `9.0.9`, released June 23, 2026. [Source repository](https://github.com/sindresorhus/Defaults)

- From [8.0.0](#v-8-0-0) to [9.0.0](#v-9-0-0): 1 breaking change in 1 version.
- From [1.0.0](#v-1-0-0) to [9.0.0](#v-9-0-0): 21 breaking changes in 8 versions.

## github.com/sindresorhus/defaults 9.0.0 breaking changes

github.com/sindresorhus/defaults 9.0.0, released November 24, 2024: 1 breaking change.

- **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](https://github.com/sindresorhus/Defaults/releases/tag/9.0.0)

## github.com/sindresorhus/defaults 8.0.0 breaking changes

github.com/sindresorhus/defaults 8.0.0, released January 18, 2024: 3 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](https://github.com/sindresorhus/Defaults/releases/tag/v8.0.0)
- **Behavior changed**  

Users upgrading from version 4 must first update to version 5 and follow the migration guide. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v8.0.0)
- **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](https://github.com/sindresorhus/Defaults/releases/tag/v8.0.0)

## github.com/sindresorhus/defaults 7.0.0 breaking changes

github.com/sindresorhus/defaults 7.0.0: 2 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](https://github.com/sindresorhus/Defaults/releases/tag/v7.0.0)
- **Configuration changed**  

Building the package now requires Xcode 14.1 or later. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v7.0.0)

## github.com/sindresorhus/defaults 6.0.0 breaking changes

github.com/sindresorhus/defaults 6.0.0: 1 breaking change.

- **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](https://github.com/sindresorhus/Defaults/releases/tag/v6.0.0)

## github.com/sindresorhus/defaults 5.0.0 breaking changes

github.com/sindresorhus/defaults 5.0.0: 4 breaking changes.

- **Removed**  

Carthage and CocoaPods installation is no longer supported. Use Swift Package Manager instead. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v5.0.0)
- **Removed** `NSSecureCodingKey`  

NSSecureCodingKey and NSSecureCodingOptionalKey were removed. Use Key instead. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v5.0.0)
- **Removed** `NSSecureCodingOptionalKey`  

NSSecureCodingKey and NSSecureCodingOptionalKey were removed. Use Key instead. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v5.0.0)
- **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](https://github.com/sindresorhus/Defaults/releases/tag/v5.0.0)

## github.com/sindresorhus/defaults 4.0.0 breaking changes

github.com/sindresorhus/defaults 4.0.0: 5 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](https://github.com/sindresorhus/Defaults/releases/tag/v4.0.0)
- **Removed** `Defaults.OptionalKey`  

Defaults.OptionalKey is gone. Declare the key as Defaults.Key with an optional type instead, such as Key\<Double?>. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v4.0.0)
- **Renamed** `DefaultsObservation`  

The type DefaultsObservation is now named Defaults.Observation. Update references to the new name. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v4.0.0)
- **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](https://github.com/sindresorhus/Defaults/releases/tag/v4.0.0)
- **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](https://github.com/sindresorhus/Defaults/releases/tag/v4.0.0)

## Older versions

3 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### github.com/sindresorhus/defaults 3.0.0 breaking changes

github.com/sindresorhus/defaults 3.0.0: 4 breaking changes.

- **Renamed** `defaults`  

Replace lowercase defaults with Defaults in all code, for example Defaults\[.unicorn\]. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v3.0.0)
- **Renamed** `defaults.clear`  

Call Defaults.removeAll as a static method instead of defaults.clear. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v3.0.0)

And 2 more in this version.

### github.com/sindresorhus/defaults 2.0.0 breaking changes

github.com/sindresorhus/defaults 2.0.0: 1 breaking change.

- **Removed**  

The package now requires Swift 5, so projects on older Swift toolchains must upgrade before using this version. [github.com](https://github.com/sindresorhus/Defaults/releases/tag/v2.0.0)

### github.com/sindresorhus/defaults 1.0.0 breaking changes

github.com/sindresorhus/defaults 1.0.0: 1 breaking change.

- **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](https://github.com/sindresorhus/Defaults/releases/tag/v1.0.0)

## Related packages

- [github.com/sindresorhus/keyboardshortcuts](https://since.dev/packages/swift/github.com/sindresorhus/keyboardshortcuts.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
