From baee699591e08aadf9ff0c77df3f921041a6b288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 21 Aug 2018 06:58:18 +0200 Subject: [PATCH] CHANGELOG --- CHANGELOG.md | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec588d903..8ef000049 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ Release Notes ## Next Version +This release focuses on enhancing the relationships between [Codable records](README.md#codable-records) and the database, with JSON columns, customized date formats, and better diagnostics when things go wrong. + +Other notable enhancements are: + +- Support for the FTS5 full-text engine when available in the operating system (iOS 11.4+ / macOS 10.13+ / watchOS 4.3+) + + ### Fixed - The `write` and `unsafeReentrantRead` DatabaseQueue methods used to have an incorrect `throws/rethrows` qualifier. @@ -10,14 +17,23 @@ Release Notes ### New -- [#397](https://github.com/groue/GRDB.swift/pull/397): Codable records: JSON encoding and decoding of codable record properties +- [#397](https://github.com/groue/GRDB.swift/pull/397) by [@gusrota](https://github.com/gusrota) and [@valexa](https://github.com/valexa): Codable records: JSON encoding and decoding of codable record properties - [#399](https://github.com/groue/GRDB.swift/pull/399): Codable records: customize the `userInfo` context dictionary, and the format of JSON columns +- [#403](https://github.com/groue/GRDB.swift/pull/403): Codable records: customize date and uuid format - [#401](https://github.com/groue/GRDB.swift/pull/401): Query Interface: set the selection and the fetched type in a single method call - [#393](https://github.com/groue/GRDB.swift/pull/393): Upgrade SQLCipher to 3.4.2, enable FTS5 on GRDBCipher and new pod GRDBPlus. - [#384](https://github.com/groue/GRDB.swift/pull/384): Improve database value decoding diagnostics - Cursors of optimized values (Strint, Int, Date, etc.) have been renamed: FastDatabaseValueCursor and FastNullableDatabaseValueCursor replace the deprecated ColumnCursor and NullableColumnCursor. +### Documentation Diff + +- [Enabling FTS5 Support](README.md#enabling-fts5-support): Procedure for enabling FTS5 support in GRDB. +- [Codable Records](README.md#codable-records): Updated documentation for JSON columns, customized date and uuid formats, and other customization options. +- [Record Customization Options](README.md#record-customization-options): A new chapter that gathers all your customization options. +- [Fetching from Requests](README.md#fetching-from-requests): Enhanced documentation about requests that don't fetch their origin record (such as aggregates, or associated records). + + ### API diff Fixes: @@ -36,11 +52,14 @@ Enhancements to Codable support: ```diff protocol FetchableRecord { + static var databaseDecodingUserInfo: [CodingUserInfoKey: Any] { get } ++ static var databaseDateDecodingStrategy: DatabaseDateDecodingStrategy { get } + static func databaseJSONDecoder(for column: String) -> JSONDecoder } protocol MutablePersistableRecord: TableRecord { + static var databaseEncodingUserInfo: [CodingUserInfoKey: Any] { get } ++ static var databaseDateEncodingStrategy: DatabaseDateEncodingStrategy { get } ++ static var databaseUUIDEncodingStrategy: DatabaseUUIDEncodingStrategy { get } + static func databaseJSONEncoder(for column: String) -> JSONEncoder } ``` @@ -74,14 +93,6 @@ Deprecations: ``` -### Documentation Diff - -- [Enabling FTS5 Support](README.md#enabling-fts5-support): Procedure for enabling FTS5 support in GRDB. -- [Codable Records](README.md#codable-records): Updated documentation for JSON columns, tips, and customization options. -- [Record Customization Options](README.md#record-customization-options): A new chapter that gather all your customization options. -- [Fetching from Requests](README.md#fetching-from-requests): Enhanced documentation about requests that don't fetch their origin record (such as aggregates, or associated records). - - ## 3.2.0 Released July 8, 2018 • [diff](https://github.com/groue/GRDB.swift/compare/v3.1.0...v3.2.0)