All Versions
28
Latest Version
Avg Release Cycle
86 days
Latest Release
1128 days ago

Changelog History
Page 1

  • v5.3.0 Changes

    February 24, 2021
    • Renamed OptionalType.empty to OptionalType.__swifty_empty. Also removed the OptionalType.wrapped since it wasn't used in the framework anymore. Please note that this still shouldn't be something you rely on tho, we're gonna explore ways to remove the public OptionalType in a future releases. @sunshinejr
  • v5.2.0 Changes

    February 23, 2021
    • 0๏ธโƒฃ DefaultsAdapter's subscript setters are now nonmutating. This shouldn't change much on the client side, but it does fix the issue with simultaneous access (#241, #247). @sunshinejr
    • โž• Added DefaultsProviding protocol that DefaultsAdapter implements. It should help with DI and creating test adapters (#268). @sunshinejr
  • v5.1.0 Changes

    December 14, 2020
    • ๐Ÿš€ Increase min deployment target to iOS 9.0 due to Xcode 12 requirements @laevandus
  • v5.0.0 Changes

    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 Changes

    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 Changes

    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 Changes

    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 Changes

    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 Changes

    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 Changes

    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