Couchbase Lite 4.1 common API - #67
Open
jeffdgr8 wants to merge 1 commit into
Open
Conversation
Aligns the common source set with the CBL 4.1 public API: Removed (deleted upstream in 4.0): - removeChangeListener(ListenerToken) on Query builders, Replicator, and MessageEndpointListener (use ListenerToken.remove()) - DataSource.database(Database) - FullTextFunction.match(String, String) - DocumentChange.database - Replicator.pendingDocumentIds / isDocumentPending(String) default-collection variants - ReplicatorConfiguration database-level API: (Database, Endpoint) and (Endpoint) constructors, database/channels/documentIDs/ conflictResolver/pushFilter/pullFilter accessors, addCollection(s), removeCollection, getCollectionConfiguration - Deprecated configuration factories (ConfigurationFactories, CommonConfigurationFactories, ConfigurationFactoriesEE) - MessageEndpointListenerConfiguration/URLEndpointListenerConfiguration database-based constructors and database properties - TLSIdentity.createIdentity(Boolean, ...) boolean isServer variant - Defaults.LogFile.USE_PLAIN_TEXT, Defaults.Replicator .MAX_ATTEMPT_WAIT_TIME misspelled constants Changed: - ReplicatorConfiguration is now constructed from a collection of CollectionConfigurations plus endpoint; collections returns Set<CollectionConfiguration> - CollectionConfiguration is bound to its Collection at construction - CouchbaseLiteError(String, Throwable?) (was Exception?) - QueryBuilder.createQuery declares @throws(CouchbaseLiteException) - Default conflict resolver compares Document.timestamp (matching upstream compareAge) instead of revision generation Added: - Document.timestamp - Replicator.correlationId - CollectionConfiguration.fromCollections - LogDomain.PEER_DISCOVERY, LogDomain.MULTIPEER - KeyUsage enum; TLSIdentity.createIdentity(Set<KeyUsage>, ...) Platform actuals are updated to 4.1 in the per-platform branches that follow; only commonMain compiles on this branch. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aligns the common source set with the Couchbase Lite 4.1 public API, with doc comments from the Java SDK.
Removed (deleted upstream in 4.0):
removeChangeListener(ListenerToken)on query builders/Replicator/MessageEndpointListener,DataSource.database(),FullTextFunction.match(String, String),DocumentChange.database, default-collectionReplicatorpending-document APIs, the database-levelReplicatorConfigurationconstructors and accessors, the deprecated configuration factories, database-based listener configurations, the boolean-basedTLSIdentity.createIdentity, and misspelledDefaultsconstants.Changed:
ReplicatorConfigurationis constructed from a collection ofCollectionConfigurations;CollectionConfigurationis bound to itsCollection;CouchbaseLiteError(String, Throwable?); the default conflict resolver comparesDocument.timestamp(upstreamcompareAge) instead of revision generation.Added:
Document.timestamp,Replicator.correlationId,CollectionConfiguration.fromCollections,LogDomain.PEER_DISCOVERY/MULTIPEER,KeyUsageand theSet<KeyUsage>-basedTLSIdentity.createIdentity.Platform actuals are updated in the per-platform PRs that follow; only commonMain compiles on this branch.
🤖 Generated with Claude Code