Skip to content

v5.0.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 01 Jun 10:58
· 65 commits to main since this release
63d93f9

Breaking

  • Please read the migration guide.
  • Removed NSSecureCodingKey and NSSecureCodingOptionalKey.
    • You can now just use Key instead.
  • Dropped support for Carthage and CocoaPods.
    • If you use either of these, you can still use Swift Package Manager just for this package.

Improvements

  • Added support for more built-in Swift types.
  • Improved the stored representation of many types.
    • For example, Array is now stored as a native UserDefaults array instead of being stored as a JSON stringified string. Same with Set and Dictionary.
  • Enums no longer need to be Codable. (Existing usage requires migration)
  • Added support for storing NSColor and UIColor.
  • Added Defaults.Toggle.

Meta

Huge thanks to @hank121314 for doing a lot of the work on this release.


v4.2.2...v5.0.0