From 8ed39f43b4f507a645cc8e8eee2b77400a470468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 25 Mar 2016 20:56:06 +0100 Subject: [PATCH] v0.53.0 --- CHANGELOG.md | 16 ++++++++++------ GRDB.swift.podspec | 2 +- README.md | 14 +++++++------- Support/Info.plist | 2 +- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cf4e42bd..c2d48ac21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,20 @@ Release Notes ============= -## Next Version +## 0.53.0 + +Released March 25, 2016 + +**Fixed** + +- `Row.value()` and `DatabaseValue.value()` now raise a fatal error when they can not convert a non-NULL value to the requested type ([documentation](https://github.com/groue/GRDB.swift/#column-values)), effectively preventing silent data loss. + + Use the new `DatabaseValue.failableValue()` method if you need the old behavior that returned nil for failed conversions. **New** - `Row.databaseValue(atIndex:)` and `Row.databaseValue(named:)` expose the [DatabaseValues](https://github.com/groue/GRDB.swift/#databasevalue) of a row. -- `DatabaseValue.failableValue()` is a new method that returns nil when a non-NULL value can not be converted to the requested type. - -**Breaking Change** - -- Row.value() and DatabaseValue.value() now raise a fatal error when they can not convert a non-NULL value to the requested type. Use DatabaseValue.failableValue() if you need the old, data-loss prone, behavior. +- `DatabaseValue.failableValue()` returns nil when a non-NULL value can not be converted to the requested type. ## 0.52.1 diff --git a/GRDB.swift.podspec b/GRDB.swift.podspec index bbc436d2b..7bda36dda 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.52.1' + s.version = '0.53.0' s.license = { :type => 'MIT', :file => 'LICENSE' } s.summary = 'A versatile SQLite toolkit for Swift, with WAL mode support.' s.homepage = 'https://github.com/groue/GRDB.swift' diff --git a/README.md b/README.md index ecffdda0c..93611baca 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ You should give it a try. --- -**March 24, 2016: GRDB.swift 0.52.1 is out** ([changelog](CHANGELOG.md)). Follow [@groue](http://twitter.com/groue) on Twitter for release announcements and usage tips. +**March 25, 2016: GRDB.swift 0.53.0 is out** ([changelog](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.3+ @@ -110,7 +110,7 @@ Documentation **Reference** -- [GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.52.1/index.html) (on cocoadocs.org) +- [GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.53.0/index.html) (on cocoadocs.org) **Getting started** @@ -157,7 +157,7 @@ To use GRDB with CocoaPods, specify in your Podfile: source 'https://github.com/CocoaPods/Specs.git' use_frameworks! -pod 'GRDB.swift', '~> 0.52.1' +pod 'GRDB.swift', '~> 0.53.0' ``` @@ -168,7 +168,7 @@ pod 'GRDB.swift', '~> 0.52.1' To use GRDB with Carthage, specify in your Cartfile: ``` -github "groue/GRDB.swift" ~> 0.52.1 +github "groue/GRDB.swift" ~> 0.53.0 ``` @@ -271,7 +271,7 @@ let dbQueue = try DatabaseQueue( configuration: config) ``` -See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.52.1/Structs/Configuration.html) for more details. +See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.53.0/Structs/Configuration.html) for more details. > :bowtie: **Tip**: see [DemoApps/GRDBDemoiOS/Database.swift](DemoApps/GRDBDemoiOS/GRDBDemoiOS/Database.swift) for a sample code that sets up a database queue. @@ -350,7 +350,7 @@ let dbPool = try DatabasePool( maximumReaderCount: 10) // The default is 5 ``` -See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.52.1/Structs/Configuration.html) for more details. +See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.53.0/Structs/Configuration.html) for more details. Database pools are more memory-hungry than database queues. See [Memory Management](#memory-management) for more information. @@ -2592,7 +2592,7 @@ let pois = PointOfInterest.filter(favorite == true).order(title).fetchAll(dbQueu SQLite concurrency is a wiiide topic. -First have a detailed look at the full API of [DatabaseQueue](http://cocoadocs.org/docsets/GRDB.swift/0.52.1/Classes/DatabaseQueue.html) and [DatabasePool](http://cocoadocs.org/docsets/GRDB.swift/0.52.1/Classes/DatabasePool.html). Both adopt the [DatabaseReader](http://cocoadocs.org/docsets/GRDB.swift/0.52.1/Protocols/DatabaseReader.html) and [DatabaseWriter](http://cocoadocs.org/docsets/GRDB.swift/0.52.1/Protocols/DatabaseWriter.html) protocols. +First have a detailed look at the full API of [DatabaseQueue](http://cocoadocs.org/docsets/GRDB.swift/0.53.0/Classes/DatabaseQueue.html) and [DatabasePool](http://cocoadocs.org/docsets/GRDB.swift/0.53.0/Classes/DatabasePool.html). Both adopt the [DatabaseReader](http://cocoadocs.org/docsets/GRDB.swift/0.53.0/Protocols/DatabaseReader.html) and [DatabaseWriter](http://cocoadocs.org/docsets/GRDB.swift/0.53.0/Protocols/DatabaseWriter.html) protocols. If the built-in queues and pools do not fit your needs, or if you can not guarantee that a single queue or pool is accessing your database file, you may have a look at: diff --git a/Support/Info.plist b/Support/Info.plist index 28701537c..e9ece2051 100644 --- a/Support/Info.plist +++ b/Support/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.52.1 + 0.53.0 CFBundleSignature ???? CFBundleVersion