The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
- Fix support for non-string keys in dictionaries
https://github.com/sindresorhus/Defaults/compare/v7.3.0...v7.3.1
- Add `.publisher()` overload that accepts an array of keys https://github.com/sindresorhus/Defaults/commit/11b6adbfcb784a71bc9076c0e83ecd67952060e8
https://github.com/sindresorhus/Defaults/compare/v7.2.1...v7.3.0
- Fix infinite recursion when casting AnySerializable to wrong type https://github.com/sindresorhus/Defaults/commit/03d5386e581f29e6d97b5f745582afd7ae890c1d
https://github.com/sindresorhus/Defaults/compare/v7.2.0...v7.2.1
- Switch from deprecated NSSecureCoding API
- If you have a custom bridge that accepts a `NSSecureCoding` object, you will have to make it `NSSecureCoding` β `NSSecureCoding & NSObject`
https://github.com/sindresorhus/Defaults/compare/v7.1.0...v7.2.0
- `Defaults` will now show a runtime warning inside Xcode if you use a unsupported key name.
- If you don't want to import this package in every file you use it, add the below to a file in your app. You can then use `Defaults` and `@Default` from anywhere without an import.
```swift
import Defaults
typealias Defaults = _Defaults
typealias Default = _Default
```
https://github.com/sindresorhus/Defaults/compare/v7.0.0...v7.1.0
### Breaking
- Target macOS 10.15, iOS 13, tvOS 13, watchOS 6 https://github.com/sindresorhus/Defaults/commit/ea11b7ac4f5d006fe46d00b428631a064445990d
- Require Xcode 14.1
### Improvements
- Add [`.updates()`](https://swiftpackageindex.com/sindresorhus/defaults/main/documentation/defaults/defaults/updates(_:initial:)-9eh8) method to observe updates to values https://github.com/sindresorhus/Defaults/commit/7a22d378742acbef49ecff11b9de8bf8b72b34dc
- I recommend moving to this method from `.observe()` and `.publisher()`. While these methods will remain for a while, they will eventually be deprecated in favor of `.updates()`.
- Support dynamic default value https://github.com/sindresorhus/Defaults/commit/fbc67fd179b6c7498a4c9ecd6d99a2c75b30a4fa
- Support serializing and deserializing nested custom types https://github.com/sindresorhus/Defaults/commit/be7e30ba366a7a10e198671505dbe6b4e07b76bc
https://github.com/sindresorhus/Defaults/compare/v6.3.0...v7.0.0
- Add support for `ClosedRange` and `Range` types https://github.com/sindresorhus/Defaults/commit/bab3087067ae08cd20e629405f2b85a575783215
- Make `Defaults.AnyKey` (including `Defaults.Key`) conform to `Equatable` and `Hashable` https://github.com/sindresorhus/Defaults/commit/001adc694b78005baf3a42a715b98f7f5610f650
- Fix preserving color space for the `Color` type https://github.com/sindresorhus/Defaults/commit/9e65eac602fe7d786275a7b3f0714474273e1781
https://github.com/sindresorhus/Defaults/compare/v6.2.1...v6.3.0
The Swift version included in Xcode 13.3 has a bug that affects Defaults. If you get a compile error, [see the workaround](https://github.com/sindresorhus/Defaults/blob/981ccb0a01c54abbe3c12ccb8226108527bbf115/workaround.md). Make sure you also upgrade to Defaults v6.2.1 (this version).
https://github.com/sindresorhus/Defaults/compare/v6.2.0...v6.2.1
- Add support for `UUID`
https://github.com/sindresorhus/Defaults/compare/v6.1.0...v6.2.0
- Add support for SwiftUI `Color` (#84) https://github.com/sindresorhus/Defaults/commit/55f3302c3ab30a8760f10042d0ebc0a6907f865a
https://github.com/sindresorhus/Defaults/compare/v6.0.0...v6.1.0