All Versions
25
Latest Version
Avg Release Cycle
75 days
Latest Release
49 days ago

Changelog History
Page 1

  • v5.0.0

    December 31, 2019

    🍱 Finally version 5.0.0 is ready to go! After extensive testing we are releasing this version to the public. 🚀

    🍱 Very warm thank you to everyone participating in all these months of work: @marty-suzuki, @Z-JaDe, @philippec-ls and others that contributed to this project. On to the next year! 🥂

    Note: There shouldn't be any differences between latest beta and this version so you should be ready to go with bumping the version in your favorite dependency manager. If you are migrating from version 4 and lower, please check our migration guides.

  • v5.0.0-beta.5

    October 05, 2019

    🚀 Unfortunately we had to remove Combine for now to keep Xcode 10 compatibility 😭 You might want to update to that version ASAP as it's fixing crashes on release builds...

    🔄 Changelog

    • ✂ Removed Combine extensions for now. Due to problems with weak-linking the framework, it's too difficult to support it with ease using all package managers and also without breaking backwards-compatibility. Probably gonna introduce it once we only support Xcode 11. @sunshinejr
  • v5.0.0-beta.4

    September 27, 2019

    Fixed a pretty bad indexing/building issue... See Migration Guide for more.

    🔄 Changelog

    • 🛠 Fixed an issue with Xcode freezing, never-finishing indexing/building the project when we used Defaults[\.keyPath] in conditional statement. Unfortunately we had to add key label to Defaults[key: DefaultsKey<String?>...] where you wouldn't have to add the label to the subscript before. @sunshinejr.
  • v5.0.0-beta.3

    September 25, 2019

    🛠 Fixes to package managers! 🚀 Xcode 11 & Carthage are friends again. Also, you won't fetch testing libraries for SPM anymore so you can use your Xcode Previews again.

    🔄 Changelog

    • 🛠 Fixed an issue with SPM integration - it no longer fetches testing libraries & doesn't create runtime crashes or Xcode Preview crashes anymore. @sunshinejr.
    • 🛠 Fixed an issue where Carthage users using Xcode 11 couldn't install SwiftyUserDefaults 5. We added weak-linking for the xcodeproj so you might need additional steps for Xcode 10 + Carthage + SwiftyUserDefaults 5.* users. @sunshinejr.
  • v5.0.0-beta.2

    September 09, 2019

    0️⃣ This beta adds Combine support! Just use it on the DefaultsAdapter (if you can use Combine):

    func obserColorScheme() { colorSchemeObserver = Defaults.publisher(for: \.colorSchemeObserver) .sink { value in// } }
    
  • v5.0.0-beta.1

    September 05, 2019

    This cool release prepares for Swift 5.1 - we introduce key path access (enabling dynamicMemberLookup) and property wrapper! Additionally there are some changes to all Defaults global variable, DefaultsKeys and `DefaultsBridge - check out our migration guide for more.

    🔄 Changelog

    • 0️⃣ Introduced DefaultsAdapter thats the main object for user defaults and the Defaults global variable. @marty-suzuki
    • 0️⃣ Thanks to DefaultsAdapter, if you are using Swift 5.1 you can use dyanmic member lookup! This allows you to use
      0️⃣ Defaults.yourKey instead of Defaults[.yourKey]. In case you are not using Swift 5.1, you would need to transition to Defaults[\.yourKey] instead of Defaults[.yourKey]. @marty-suzuki
    • 0️⃣ There is a new protocol, DefaultsKeyStore that DefaultsKeys conform to. This key store is then accepted by the DefaultsAdapter so you can have multiple key stores for multiple adapters! @marty-suzuki
    • Unfortunately the above means that you need to declare your keys as a computed properties instead of static stored ones.@marty-suzuki
    • 0️⃣ DefaultsBridge is now a struct, not a class. You need to use composition instead of inheritance to compose them. @Z-JaDe
    • 0️⃣ DefaultsBridge changed a little bit, there is no isSerialized property anymore, if you create your own bridge you need to provide deserialize() method as well. @Z-JaDe
    • ➕ Added @SwiftyUserDefault property wrapper for Swift 5.1 users! It uses key paths and has options to cache/observe your defaults as well. @sunshinejr
    • ⚡️ Updated project to recommended settings of Xcode 10.2. @philippec-ls
  • v4.0.0

    April 26, 2019

    🍱 4.0.0 is finally out. A lot of cool features and improvements for you to try today! 🚀

    🔄 Changes from 4.0.0-beta.2 to 4.0.0

    • ⚡️ Updated DefaultsKey.defaultValue access level to public. @DivineDominion
    • ⚡️ Updated access level of all bridges to open from public. @fredpi

    Read migration guide from version 3.x to 4.x

  • v4.0.0-beta.2

    March 09, 2019

    ⚡️ Minor stability update for Carthage users. This should fix the linking problem we've had in beta.1.
    ⚡️ No other fixes/updates were introduced in here.

  • v4.0.0-beta.1

    February 25, 2019

    ⚡️ This update introduces few cool additions to the library! 🎉

    🔄 Changelog

    • ➕ Added support for launch arguments/plist for Bool, Double, Int, String values. @sunshinejr
    • ➕ Added support for KVO! DivineDominion, toshi0383, @sunshinejr
    • 👍 Brought back dictionary support for [String: Any]/[String: String] and corresponding array version of it [[String: Any]]/[[String: String]]. @sunshinejr

    👀 If you have already created a custom bridge for you type, and you want to use it with KVO, you'll need to override two new functions: isSerialized() and deserialize(_:). See Readme for more instructions.

  • v4.0.0-alpha.3

    February 19, 2019

    ⚡️ This is a small update over 4.0.0-alpha.2 with two fixes.

    Migration guide from 3.x to 4.x
    Migration guide from 4.0.0-alpha.1 to 4.0.0-alpha.2

    🔄 Changelog