Changelog History
Page 2
-
v5.0.0 Changes
September 15, 2016๐ This release closes the 5.0.0 milestone.
Swift 2.3 now required.
-
v4.0.2 Changes
June 06, 2016๐ This release closes the 4.0.2 milestone.
- ๐ Fixed an issue where sqlite temporary files would not be cleaned up when removing the store (#85). Thanks @deemadden!
-
v4.0.1 Changes
June 02, 2016๐ This release closes the 4.0.1 milestone.
- ๐ Fixed a multithreading concurrency violation while merging (#83). Thanks @saurabytes!
-
v4.0.0 Changes
May 08, 2016๐ This release closes the 4.0.0 milestone.
This release includes a significant change to
CoreDataStack
, which no longer uses child contexts. ThemainContext
andbackgroundContext
are now both connected to the persistent store coordinator. See #60 for the background and rationale behind this change. In short, child contexts are considered bad practice for this kind of stack setup and should really only be used for "throw away" work.While this is technically a breaking change, it likely will not affect most clients. The behavior should remain largely unchanged โ data is still kept in-sync between the 2 contexts. So unless you were specifically relying on this parent-child nesting behavior, you should be fine. ๐
Thanks
๐ Huge thanks to @Liquidsoul for closing most of the issues for this release and to @wiedem for contributing significantly as well! ๐
๐ฅ Breaking changes โ ๏ธ
Stack
- The
mainContext
andbackgroundContext
are now both connected to the persistent store coordinator (#60) - When creating a child context, the
concurrencyType
determines which context is the parent (#73) - โ
CoreDataStackFactory
has been simplified. There is now a singlecreateStack()
method. (#77)
๐ Free functions
โ In alignment with the latest Swift API guidelines, the library now prefers methods/extensions over free functions.
- The
resetStack()
top-level function is now a method onCoreDataStack
(#75) - The
deleteObjects()
top-level function is now an extension method onNSManagedObjectContext
(#76) - The
fetch()
top-level function is now an extension method onNSManagedObjectContext
(#78) - The
migrate()
top-level function is now an extension methodCoreDataModel
(#82)
๐ Documentation
โก๏ธ All docs have been updated. As usual, check these out for more details on the changes described above.
Refinements
๐ฑ There have been other general refinements and additional unit tests have been added. Test coverage is 94% ๐
- The
-
v3.0.0 Changes
๐ 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.
๐ฅ Breaking changes :warning:
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.
- 0๏ธโฃ Renamed
DefaultStoreOptions
todefaultStoreOptions
- ๐ Renamed
CoreDataSaveResult
toSaveResult
- ๐ Renamed
CoreDataStackResult
toStackResult
- ๐ Renamed
CoreDataModel.removeExistingModelStore()
toCoreDataModel.removeExistingStore()
- โ
Renamed all
enum
cases to be lowercase, in line with latest Swift API guidelines - ๐ The
StackResultClosure
typealias has been removed
๐ New features
-
v2.2.1 Changes
๐ This release closes the 2.2.1 milestone.
๐ Fixes
- ๐ Fixed multithreading violation while saving context (#63, #59, #65). Thanks @saurabytes and @markkrenek!
- 0๏ธโฃ On
tvOS
, the default SQLite directory now defaults to.CacheDirectory
instead of.DocumentDirectory
(#61, #62). Thanks @cgoldsby !
-
v2.2.0 Changes
๐ This release closes the 2.2.0 milestone.
๐ New
Added a
resetStack()
top-level function. See the updated docs for details. Thanks @marius-serban! :tada:๐ Changes
:warning:
CoreDataStackFactory.CompletionHandler
was moved from the factory's scope to the module's scope and renamed toStackResultClosure
. 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. -
v2.1.0 Changes
๐
JSQCoreDataKit
now "officially" supports all Apple platforms: iOS, OSX, tvOS, watchOS. :tada::trophy: 2.1.0 milestone
-
v2.0.0
-
v1.1.0 Changes
๐ 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!