The changelog for JSQCoreDataKit. Also see the releases on GitHub.
This release closes the 3.0.0 milestone.
The goals of this release are primarily to adopt Swift 2.2 and refine the API to make it more Swifty, as the definition of Swifty has evolved.
There are many breaking changes in this release, however — with the exception of Swift 2.2 — they are all merely name changes that aim to reduce verbosity.
- Migrated to Swift 2.2. (#67) Swift 2.2 and above is now required.
- Renamed
DefaultStoreOptionstodefaultStoreOptions - Renamed
CoreDataSaveResulttoSaveResult - Renamed
CoreDataStackResulttoStackResult - Renamed
CoreDataModel.removeExistingModelStore()toCoreDataModel.removeExistingStore() - Renamed all
enumcases to be lowercase, in line with latest Swift API guidelines - The
StackResultClosuretypealias has been removed
- Support for Swift Package Manager (#55) 🎉
- Core Data model migration support! (#46, #66) Thanks @marius-serban ! 🎉 See the README and docs for details!
This release closes the 2.2.1 milestone.
- Fixed multithreading violation while saving context (#63, #59, #65). Thanks @saurabytes and @markkrenek!
- On
tvOS, the default SQLite directory now defaults to.CacheDirectoryinstead of.DocumentDirectory(#61, #62). Thanks @cgoldsby !
This release closes the 2.2.0 milestone.
Added a resetStack() top-level function. See the updated docs for details. Thanks @marius-serban! 🎉
CoreDataStackFactory.CompletionHandler was moved from the factory's scope to the module's scope and renamed to StackResultClosure. This is technically a breaking change, but it is highly unlikely that anyone was referring to this closure directly. If so, simply rename to the correct type.
JSQCoreDataKit now "officially" supports all Apple platforms: iOS, OSX, tvOS, watchOS. 🎉
-
Swift 2.0
-
You must now initialize
CoreDataStackvia aCoreDataStackFactory. This will init the stack on a background queue and return to your completion handler on the main queue when finished. This is necessary since adding a persistent store can take an unknown amount of time. -
Rethinking and rewriting of
CoreDataStack. It now has amainContextand abackgroundContext. 😎 -
Saving a context now returns a
CoreDataSaveResultto the completion handler, instead ofNSError?
-
New
CoreDataStackFactoryfor async stack initialization, as mentioned above. It also support synchronous init if you need it, but this is only recommended for testing. Returns aCoreDataStackResult. -
All types now conform to
CustomStringConvertibleandEquatable. 👊
Find the complete list of closed issues here. 🐛
All documentation has been updated. 📜
The example app is actually an example app now, check it out! It's a pretty substantial demo.
This release closes the 1.1.0 milestone.
- New top-level functions
- Ability to specify store directory other than
~/Documents/ - No breaking changes
See the documentation for more information!
It's here!
Checkout the README and documentation.
