Skip to content

v5.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 18 May 13:00
· 66 commits to main since this release
63d93f9

Please help us try out this beta release. And let us know if something in the migration guide could be improved.

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.

v4.2.2...v5.0.0-beta.1