Skip to content

Releases: sindresorhus/Defaults

v7.3.0

03 Sep 22:38
11b6adb
Compare
Choose a tag to compare
  • Add .publisher() overload that accepts an array of keys 11b6adb

v7.2.1...v7.3.0

v7.2.1

03 Sep 06:46
Compare
Choose a tag to compare
  • Fix infinite recursion when casting AnySerializable to wrong type 03d5386

v7.2.0...v7.2.1

v7.2.0

24 Apr 05:37
Compare
Choose a tag to compare
  • Switch from deprecated NSSecureCoding API
    • If you have a custom bridge that accepts a NSSecureCoding object, you will have to make it NSSecureCodingNSSecureCoding & NSObject

v7.1.0...v7.2.0

v7.1.0

12 Dec 17:26
Compare
Choose a tag to compare
  • 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.
    import Defaults
    
    typealias Defaults = _Defaults
    typealias Default = _Default

v7.0.0...v7.1.0

v7.0.0

19 Nov 16:16
Compare
Choose a tag to compare

Breaking

  • Target macOS 10.15, iOS 13, tvOS 13, watchOS 6 ea11b7a
  • Require Xcode 14.1

Improvements

  • Add .updates() method to observe updates to values 7a22d37
    • 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 fbc67fd
  • Support serializing and deserializing nested custom types be7e30b

v6.3.0...v7.0.0

v6.3.0

10 Jun 08:01
Compare
Choose a tag to compare
  • Add support for ClosedRange and Range types bab3087
  • Make Defaults.AnyKey (including Defaults.Key) conform to Equatable and Hashable 001adc6
  • Fix preserving color space for the Color type 9e65eac

v6.2.1...v6.3.0

v6.2.1

15 Mar 17:35
119f654
Compare
Choose a tag to compare

The Swift version included in Xcode 13.3 has a bug that affects Defaults. If you get a compile error, see the workaround. Make sure you also upgrade to Defaults v6.2.1 (this version).

v6.2.0...v6.2.1

v6.2.0

27 Jan 15:19
c9198bb
Compare
Choose a tag to compare
  • Add support for UUID

v6.1.0...v6.2.0

v6.1.0

16 Oct 12:08
55f3302
Compare
Choose a tag to compare

v6.0.0...v6.1.0

v6.0.0

12 Oct 07:11
Compare
Choose a tag to compare

Breaking

  • New platform requirements:
    • macOS 10.12 → 10.13
    • iOS 10 → 12
    • tvOS 10 → 12
    • watchOS 3 → 5

Improvements

Fixes

  • Fix archive error with Xcode 13 #81

v5.0.0...v6.0.0