diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a1662056..72cf38219 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ Release Notes ============= -## Next Release +## 0.35.0 + +Released December 22, 2015 The Record class has been refactored so that it gets closer from the RowConvertible and DatabasePersistable protocols. It also makes it easier to write subclasses that have non-optional properties. @@ -13,20 +15,9 @@ Methods names that did not match [Swift 3 API Design Guidelines](https://swift.o **Breaking Changes** -DatabasePersistable: - -- `DatabasePersistable.storedDatabaseDictionary` has been renamed `persistentDictionary` ([documentation](https://github.com/groue/GRDB.swift#databasepersistable-protocol)). - -Row: - -- `Row.value(named:)` and `Row.dataNoCopy(named:)` returns nil if no such column exists in the row. It used to crash with a fatal error ([documentation](https://github.com/groue/GRDB.swift#column-values)). - -DatabaseValue: - -- `DatabaseValue` has no public initializers. To create one, use `DatabaseValue.Null`, or the fact that Int, String, etc. adopt the DatabaseValueConvertible protocol: `1.databaseValue`, `"foo".databaseValue` ([documentation](https://github.com/groue/GRDB.swift#custom-value-types)). - Record ([documentation](https://github.com/groue/GRDB.swift#record)): +- `Record.storedDatabaseDictionary` has been renamed `persistentDictionary`. - `Record.reload()` has been removed. You have to provide your own implementation, should you need reloading. - `Record.init(row: Row)` has been renamed `Record.init(_ row: Row)` (unlabelled row argument). - `Record.updateFromRow()` has been removed. Override `init(_ row: Row)` instead. @@ -34,6 +25,18 @@ Record ([documentation](https://github.com/groue/GRDB.swift#record)): - `Record.databaseEdited` has been renamed `hasPersistentChangedValues`. - `Record.databaseChanges` has been renamed `persistentChangedValues` and now returns `[String: DatabaseValue?]`, the dictionary of old values for changed columns. +Row: + +- `Row.value(named:)` and `Row.dataNoCopy(named:)` returns nil if no such column exists in the row. It used to crash with a fatal error ([documentation](https://github.com/groue/GRDB.swift#column-values)). + +DatabasePersistable: + +- `DatabasePersistable.storedDatabaseDictionary` has been renamed `persistentDictionary` ([documentation](https://github.com/groue/GRDB.swift#databasepersistable-protocol)). + +DatabaseValue: + +- `DatabaseValue` has no public initializers. To create one, use `DatabaseValue.Null`, or the fact that Int, String, etc. adopt the DatabaseValueConvertible protocol: `1.databaseValue`, `"foo".databaseValue` ([documentation](https://github.com/groue/GRDB.swift#custom-value-types)). + DatabaseMigrator: - `DatabaseMigrator.registerMigrationWithoutForeignKeyChecks(_:_:)` has been renamed `DatabaseMigrator.registerMigration(_:withDisabledForeignKeyChecks:migrate:)` ([documentation](https://github.com/groue/GRDB.swift#advanced-database-schema-changes)). diff --git a/GRDB.swift.podspec b/GRDB.swift.podspec index f2776c64e..c24c4998f 100644 --- a/GRDB.swift.podspec +++ b/GRDB.swift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'GRDB.swift' - s.version = '0.34.0' + s.version = '0.35.0' s.license = { :type => 'MIT', :file => 'LICENSE' } s.summary = 'Versatile SQLite toolkit for Swift.' s.homepage = 'https://github.com/groue/GRDB.swift' diff --git a/GRDB/Info.plist b/GRDB/Info.plist index 56992591b..79b1685b2 100644 --- a/GRDB/Info.plist +++ b/GRDB/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.34.0 + 0.35.0 CFBundleSignature ???? CFBundleVersion diff --git a/README.md b/README.md index a3294bb5c..d9a28637f 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ GRDB.swift is an [SQLite](https://www.sqlite.org) toolkit for Swift 2, from the It ships with a low-level database API, plus application-level tools. -**December 14, 2015: GRDB.swift 0.34.0 is out** - [Release notes](CHANGELOG.md). Follow [@groue](http://twitter.com/groue) on Twitter for release announcements and usage tips. +**December 22, 2015: GRDB.swift 0.35.0 is out** - [Release notes](CHANGELOG.md). Follow [@groue](http://twitter.com/groue) on Twitter for release announcements and usage tips. **Requirements**: iOS 7.0+ / OSX 10.9+, Xcode 7+ @@ -39,7 +39,7 @@ Features Documentation ============= -- **[GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.34.0/index.html)** (on cocoadocs.org) +- **[GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.35.0/index.html)** (on cocoadocs.org) - **[Installation](#installation)** @@ -95,7 +95,7 @@ To use GRDB.swift with Cocoapods, specify in your Podfile: source 'https://github.com/CocoaPods/Specs.git' use_frameworks! -pod 'GRDB.swift', '0.34.0' +pod 'GRDB.swift', '0.35.0' ``` @@ -106,7 +106,7 @@ pod 'GRDB.swift', '0.34.0' To use GRDB.swift with Carthage, specify in your Cartfile: ``` -github "groue/GRDB.swift" == 0.34.0 +github "groue/GRDB.swift" == 0.35.0 ``` @@ -183,7 +183,7 @@ let dbQueue = try DatabaseQueue( configuration: config) ``` -See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.34.0/Structs/Configuration.html) and [Concurrency](#concurrency) for more details. +See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.35.0/Structs/Configuration.html) and [Concurrency](#concurrency) for more details. Once connected, the `inDatabase` and `inTransaction` methods perform your **database statements** in a dedicated, serial, queue: