Release Notes
3.1.1 — July 2023
Version 3.1.1 for C#.Net delivers the following features and enhancements:
For an overview of the latest features offered in Couchbase Lite 3.1, see New in 3.1 |
3.1.0 — March 2023
Version 3.1.0 for C#.Net delivers the following features and enhancements:
Scopes and Collections
Couchbase Mobile’s cloud-to-edge support for scopes and collections allows application developers to organize and logically isolate data.
Independent lifecycle management and fine-grained security control simplifies the deployment of multi-tenant and high-application density cloud-to-edge applications at scale.
Scopes and Collections are a first class concept, synced between Couchbase Lite and Sync Gateway, between Sync Gateways (Inter Sync Gateway Replication), between Couchbase Lite peers, as well as available offline-first on Couchbase Lite devices.
Enhancements
-
CBL-4131 - SQL : Enhance COLLATE syntax to support locales for UNICODE Collator++
-
CBL-4098 - Provide option to Save Cookie with Domain being a parent domain of the request
-
CBL-3651 - Only send port in HTTP Host header if non-standard
-
CBL-3450 - Make FullTextIndex.language and ignoreAccent Getter Public API
-
CBL-3094 - Add DB closed recommendation to docs for Database.copy
-
CBL-2509 - Enhance pinned server cert to support matching with parent certs
Issues and Resolutions
-
CBL-4219 - URLEndpointListener.getURLs returns an empty list on Android v>=11
-
CBL-3921 - Error when sending _bulk_docs request with large number of docs
-
CBL-3872 - MaxAttempt when set NSUIntegerMax, converts to Zero
-
CBL-3866 - Fix WebSocket error 1006, "connection closed abnormally" crash
-
CBL-3824 - Re-opening a database with an Index causes failure
-
CBL-3818 - UrlEndpointListener's Urls is empty after attempt to start the listener
-
CBL-3682 - LiteCore fails, apparently attempting to destruct a db while in a transaction
-
CBL-3626 - setDocumentExpiration hangs inside a batch transaction
-
CBL-3526 - Continuous Pull Replicator went to stopped instead of idle
-
CBL-3421 - Handle invalid proxy host and port picked up from the system
-
CBL-3384 - Worker::childChangedStatus may lose child after enqueued
-
CBL-3257 - c4db_scopeNames doesn't return the name of the default scope if it is empty.
-
CBL-3193 - Native crash freeing a C4DocumentObserver (c4docobs_free)
-
CBL-3075 - Database could be corrupted after being copied in linux platform
-
CBL-3046 - Connection Timeout is set to 15000000 Milliseconds on Non Windows Platforms
-
CBL-3013 - Continuous replicator does not push docs which are being observed
-
CBL-3010 - LiteCore delivers unrecoverable error in BUSY state
-
CBL-2948 - revpos is missing in the changed attachment body when using delta sync (Port)
-
CBL-2867 - Cannot update the same field again after reopening the database (Port Fix)
-
CBL-2779 - N1QL : Meta().<property> column name returned as $<num>
-
CBL-2734 - Database GetDocumentExpiration returns null instead of expected date
-
CBL-2721 - Database is closed while replicator change listener is still executing
-
CBL-2694 - CBL sending rev list with gaps, when sync'ing more than 20 revs
-
CBL-2693 - LiveQuerier could be leaked as liveQuerierStopped() delegate might not be called
-
CBL-2676 - 409 retry can result in invalid remote ancestor ID
-
CBL-2637 - Replication unable to continue after termination between rev and ack
-
CBL-2614 - Fix Memory leak when rapidly restarting replicator
-
CBL-2610 - Cleanup bundle folder when creating a database fails
-
CBL-2586 - LiveQuerier is running after having been stopped, causing a crash
-
CBL-2532 - Assertion failure when stopping replicator while replicator is connecting
-
CBL-2477 - Tear down DBAccess on stopped instead of on release
-
CBL-2460 - Different C4QueryObservers share the same C4QueryEnumerator
-
CBL-2459 - A second, new Query observer should be notified immediately.
-
CBL-2458 - Changing a Query's parameters should re-notify observers
-
CBL-2450 - Intermittent: `_keyStore` not true when calling litecore::KeyStore
-
CBL-2374 - Slowness from reindexing the database when opening database
Deprecations
-
CBL-4316 - Replicator's getPendingDocumentIds() and isDocumentPending(String id) are deprecated
-
CBL-4315 - ReplicatorConfiguration's filters and conflict resolver properties are deprecated
-
CBL-4314 - ReplicatorConfiguration APIs with Database object are deprecated
-
CBL-4313 - MessageEndpointListenerConfiguration APIs using Database object are deprecated
-
CBL-4312 - URLEndpointListenerConfiguration APIs using Database object are deprecated
-
CBL-4311 - QueryBuilder : isNullOrMissing() and notNullOrMissing() are deprecated
-
CBL-4309 - QueryBuilder : DataSource's database() is deprecated
-
CBL-4306 - DatabaseChange and DatabaseChangeListener are deprecated
3.0.2 — August 2022
3.0.0 — February 2022
- Quick Links
-
New Features | Enhancements | API Changes | Known Issues | Fixed Issues | Deprecated in this Release | Removed in this Release | Support Notices |
On upgrading from a 2.x release, all Couchbase Lite databases will be automatically re-indexed on initial database open. |
New Features
SQL++/N1QL Query Strings
Couchbase Lite’s SQL++ for Mobile query API vastly simplifies the integration of Couchbase Lite within hybrid/cross platform apps.
N1QL for Mobile is an implementation of the emerging SQL-for-JSON query language specification (SQL++). It provides native, hybrid and cross-platform mobile app developers with a consistent, convenient and flexible interface to query JSON documents within the embedded database using a SQL-based syntax. This means developers can reuse queries across platforms, reducing development, testing and maintenance costs.
Read More . . . SQL++ for Mobile
Enhancements
Auto-purge on Channel Access Revocation
An auto-purge feature is introduced for loss of access to channels and the documents in them. This is important for enforcement of data governance and data retention policies.
Channels are the fundamental mechanism for enforcement of access control using Sync Gateway. They guarantee that only users with access to a specific channel can access documents in that channel.
When a user loses access to a channel (and so to its documents) Couchbase Lite clients will auto purge all local documents on devices that belong to the revoked channel (during Pull or PushAndPull replication), unless the user has access to the document via some other channel.
Read More . . . Auto-purge on Channel Access Revocation
Document API Support for JSON Data
The Couchbase Lite API now offers out-of-the box support for document data in JSON format. This will make it easier for developers' applications to store, transform and manipulate JSON data in the database.
The API offers JSON support for Documents, MutableDocuments, Arrays, MutableArrays, Dictionaries, MutableDictionaries and Query Results.
Other Enhancements
-
CBL-2635 — Update support level and message note of Database’saveBlob() and getBlob() API
-
CBL-2482 — Change database.createQuery(String query) signature to throw CouchbaseLiteException
-
CBL-2456 — Update Database’s createQuery() to return an error or throw CouchbaseLiteException (Beta 3)
-
CBL-2438 — Add note about notification when disabling autoPurge
-
CBL-2383 — Increase kOtherDBCloseTimeoutSecs to allow enough time for all db open connections to be closed
-
CBL-2379 — Improve logging message when copying database using a wrong encryption key
-
CBL-2377 — Provide note about copying encrypted database in API doc
-
CBL-2358 — Add function for creating FLMutableDict/Array from JSON
-
CBL-2319 — Confusing copyDatabase API when used with encryptionKey
-
CBL-1941 — maxRetries should now count attempts instead of retries
-
CBL-1905 — Passing in progress level via configuration is deprecated; use the setProgressLevel API
-
CBL-1761 — Updating CBL .Net Core 3.1 PR Validation and Jenkins job
-
CBL-1714 — Refactor POSIX error domain codes to be platform independent
-
CBL-1692 — Add UWP PR validation Part 2 (build everything from source and make a GitHub action)
-
CBL-1666 — Allow apps to trigger SQLite index optimization directly
-
CBL-1650 — CBL doesn’t purge channel removals when removal revision already exists in CBL
-
CBL-1565 — Ensure c4log_enableFatalExceptionBacktrace is called
-
CBL-1308 — Allow to remove query listener or any listeners directly from token
-
CBL-1232 — Support function to change the kC4ReplicatorOptionProgressLevel
-
CBL-1118 — Update SimpleInjector to version 5 and edit nuspec to restrict it’s version < 6
-
CBL-911 — Couchbase Lite Java replication hangs when using DEBUG console + file logging on Windows
-
CBL-718 — API: Arg to Database.inBatch should be able to throw
-
CBL-680 — Public API for SQL++ array_agg() aggregation function
API Changes
This content introduces the changes made to the Couchbase Lite for C#.Net API for release 3.1.1.
Starting from this release Couchbase Lite for C#.Net requires Visual Studio 2019+ and uses .Net Core 3.1 (updating from .Net Core 2.0).
Breaking Change
The function ATAN2(x, y), which returns the principal value of the arc tangent of y/x, now becomes ATAN2(y, x); that is, the arguments are reversed in line with common notation.
Removed
Activate
We have removed the method Activate()
from all platform support libraries except Support.Android
(Xamarin Android)
EnableTextLogging()
We have removed the obsolete method EnableTextLogging()
from all the platform support libraries.
ResetCheckpoint
The method
ResetCheckpoint()
has been removed.
Use the reset:
argument when starting the replicator instead.
SetLogLevel()
We have removed the method
Database.setLogLevel()
Use
Database.log.console
instead:
Database.Compact
We have removed the method
Database.compact().
Use the method
Database.PerformMaintenance() and the enum
MaintenanceType
instead
Deprecated API
Match
We will remove
Match
at the next major release.
You should plan to switch to using the alternative
FullTextFunction.match(indexName:)
at the earliest opportunity.
Before
var whereClause =
FullTextExpression.Index("nameFTSIndex").Match("'querystring'");
using (var query = QueryBuilder.Select(SelectResult.Expression(Meta.ID))
.From(DataSource.Database(db))
.Where(whereClause)) {
foreach (var result in query.Execute()) {
Console.WriteLine($"Document id {result.GetString(0)}");
}
}
After
var whereClause =
FullTextFunction.Match("nameFTSIndex"),"'querystring'"); (1)
using (var query =
QueryBuilder.Select(SelectResult.Expression(Meta.ID))
.From(DataSource.Database(db))
.Where(whereClause)) {
foreach (var result in query.Execute()) {
Console.WriteLine($"Document id {result.GetString(0)}");
}
}
1 | Here we use FullTextFunction.match(indexName:) to build the query |
IsNullOrMissing
We will remove
isNullOrMissing
You should plan to switch to using the alternative
IsNotValued()
at the earliest opportunity.
NotNullOrMissing
We will remove
notNullOrMissing.
You should plan to switch to using the alternative
isValued()
at the earliest opportunity.
| isNotValued()
Fixed Issues
-
CBL-2583 — Replication unable to continue after termination between rev and ack
-
CBL-2579 — 409 retry can result in invalid remote ancestor ID
-
CBL-2478 — Tear down DBAccess on stopped instead of on release
-
CBL-2304 — CBL core fleece exception: incompatible duplicate scope
-
CBL-2191 — kHasAttachments flag may be lost in Conflict Resolver
-
CBL-2102 — Memory leak when calling MutableArrayObject.AddBlob
-
CBL-1722 — POSIX 32 (Broken Pipe) appears to crash application
-
CBL-1660 — Not all debug logging is compiled out of release builds
-
CBL-1438 — WSA codes not properly handled by bio_return_value
-
CBL-1354 — finding euclidean distance, square euclidean distance rounding the precision value
-
CBL-1310 — app crashing while fetching the prediction query result
-
CBL-1225 — Testfest : unshare the docs does not replicate to CBL
-
CBL-862 — CBL 2.7 and later doesn’t catch Illegal top-level key like "_id"
-
CBL-708 — Conflicting revision bodies are not removed after resolution
-
CBL-462 — Continuous push attempts to replicate purged documents
-
CBL-220 — Windows cannot handle dates before 1970 with C API
Deprecated in this Release
Items (features and-or functionality) are marked as deprecated when a more current, and usually enhanced, alternative is available.
Whilst the deprecated item will remain usable, it is no longer supported, and will be removed in a future release — see also: Removed in this Release You should plan to move to an alternative, supported, solution as soon as practical.
None for this release.
-
The [Database.Compact()] method is deprecated (as of 2.8), instead use Database.PerformMaintenance().