Releases: Couchbase-Ecosystem/cbl-ionic
1.0.0
What's Changed
- Updated contributing doc by @azaddhirajkumar in #61
- chore: update Couchbase Lite to version 3.2.2 by @DominikZajac in #64
- Fix test document change listener event by @DominikZajac in #67
- fix: crashes in collection change and document expiration by @DominikZajac in #66
- Issue 62 Session Authentication Android by @azaddhirajkumar in #68
- Add support policy section to README by @VirajAgarwal-couchbase in #70
- Update Support Policy header to h2 by @VirajAgarwal-couchbase in #71
- feat: Support for Multiple Instances of the Same Database by @DominikZajac in #69
- Update example app query screens by @DominikZajac in #72
- feat: Update replicator screens by @DominikZajac in #73
- feat: Add replicator change listener management to android by @DominikZajac in #74
- chore: remove not implemented tests by @DominikZajac in #75
New Contributors
- @DominikZajac made their first contribution in #64
- @VirajAgarwal-couchbase made their first contribution in #70
Full Changelog: 0.2.6...1.0.0
0.2.6
Release 0.2.5
-
Updated iOS and Android to use Couchbase Lite 3.2.1
- Updating users should run npx cap sync after updating the NPM package
Includes all updates from release 0.2.4 which was only released on NPM. You can see the full release notes here:
https://cbl-ionic.dev/ProductNotes/release-notes
Release beta-0.2.3
This release includes the following:
- New API on Replicator for checking to see if a document is pending by DocumentID and Collection:
const db = new Database("testDb");
const defaultCollection = db.defaultCollection();
const target = new URLEndpoint('ws://10.0.2.2:4984/projects');
const auth = new BasicAuthenticator('demo@example.com', 'P@ssw0rd12');
const config = new ReplicatorConfiguration(target);
config.addCollection(this.defaultCollection);
config.setAuthenticator(auth);
//setup document
const docId = "doc1";
const doc = new MutableDocument(docId);
doc.setString("foo", "bar");
await this.defaultCollection.save(doc);
//setup replicator
const replicator = await Replicator.create(config);
//check to see if the document is pending replication push
const isDocumentPendingResults = await replicator.isDocumentPending(docId, this.defaultCollection);
-Fixed serialization issue with Android Replicator getPendingDocumentIds where the results were coming back as a single string of JSON vs the proper array of documentIds.
-Added e2e Replicator tests for isDocumentPending and getPendingDocumentIds
Release beta-0.2.2
Updated Database API to support changing of encryption key:
...//your app code
const config = new DatabaseConfiguration();
config.setEncryptionKey("P@33word12");
const database = new Database("foo", config);
await database.open();
//change the encryption key
await database.changeEncryptionKey("Password12");
Note that changing the encryption key DOES NOT change the config object's encryption key value. Full end to end test is provided at:
https://github.com/Couchbase-Ecosystem/cblite-js/blob/8f125b884dc8684235d57c9af653af04976e87ff/cblite-tests/e2e/database-test.ts#L322
Release beta-0.2.1
New in this release:
- Support for setting and getting the document expiration from the Collection API
- Dates must be in ISO8601 format in order to properly parse on both Android and iOS
Set Expiration
... // app code that gets database and collection
const documentId = "e0cb1383-0829-434a-a1b5-c3443a276c62";
const date = new Date("2025-03-14T09:50:30.134Z");
await collection.setDocumentExpiration(documentId, expirationDate);
...
Get Expiration
... //app code that gets database and collection
const documentId = "e0cb1383-0829-434a-a1b5-c3443a276c62";
const date = await collection.getDocumentExpiration(documentId);
Release beta-0.2.0
Fixed issue where calling the replicator to check for document pending IDs would return an empty array of strings even thought there were documents pending. This was an issue with the variable name mapping between Javascript, Swift, and Android.
Release beta-0.1.9
Fixed several issues:
- Fixed issue with blob data in Android where the data wasn't being returned in a JSONArray
- Fixed an issue with the document mapper in the plugin helper that wasn't properly getting blob properties and thus would cause the app to crash. Also updated the catch to rethrow the error message vs just returning null which isn't helpful when debugging.
- Updated Database Setup page in example app to fix React duplicate keys errors
- Updated Edit Document page in example app to fix React duplicate keys errors
- Updated Get Document page in example app to fix React duplicate keys errors
- Updated Ionic engine code to properly return an Data property with an Uint8Array when returning blob content
- Updated cblite-js version to 0.1.9 which has to fix to the blob array with data element fix. Updated head pointer to this release.
- Update package.json to version 0.1.9
Release beta-0.1.8
This release provides support for Android including new support for Couchbase Lite 3.18. New support in Android includes:
- Support for Scopes and Collections
- Support for SQL++ Queries
- Support for Replication with Collections
- Support for new API for Database Maintenance
This release Android implementation was re-written in Kotlin and the release now unifies the code with Swift so that the native code does tasks the same way.