Skip to content

Releases: Couchbase-Ecosystem/cbl-ionic

1.0.0

30 Apr 17:43
7b9c842
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.6...1.0.0

0.2.6

21 Nov 14:20
3af44c1
Compare
Choose a tag to compare
  • Updated Database Save and Database getDocument APIs to fix issue where the document wasn't properly updated in the database nor returned due to changes made in 0.2.4 (regression).

Release 0.2.5

14 Nov 20:49
e5e1d63
Compare
Choose a tag to compare
Release 0.2.5 Pre-release
Pre-release
  • 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

25 Jun 16:52
09ea1c7
Compare
Choose a tag to compare
Release beta-0.2.3 Pre-release
Pre-release

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

18 Jun 18:35
a1cd7b3
Compare
Choose a tag to compare
Release beta-0.2.2 Pre-release
Pre-release

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

17 Jun 18:09
8c83b64
Compare
Choose a tag to compare
Release beta-0.2.1 Pre-release
Pre-release

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

17 Jun 12:30
e6738f8
Compare
Choose a tag to compare
Release beta-0.2.0 Pre-release
Pre-release

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

17 Jun 00:58
00bffaa
Compare
Choose a tag to compare
Release beta-0.1.9 Pre-release
Pre-release

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

13 Jun 19:29
2e8c703
Compare
Choose a tag to compare
Release beta-0.1.8 Pre-release
Pre-release

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.