Defaults v4.1.0 Release Notes

Release Date: 2020-08-28 // over 3 years ago

Previous changes from v4.0.0

  • 💥 Breaking

    • 0️⃣ Get rid of Defaults.OptionalKeyb2fdee2

      • Migrate:

      extension Defaults.Keys {- static let name = OptionalKey<Double>("name")+ static let name = Key<Double?>("name") }

    • ✂ Remove the .old and .new options for Defaults.observe 8376ca7

      • They're now the default. There was no good reason to not specify them and it was easy to leave them out by accident and then getting the incorrect .newValue/.oldValue.
    • 0️⃣ Rename DefaultsObservation to Defaults.Observation 31b56ce

    👌 Improvements

    🛠 Fixes

    • 0️⃣ Defaults.reset() now works with keys of different types, but it's limited to 10 keys because of Swift generics limitations 15c096d

    0️⃣ v3.1.1...v4.0.0