Skip to content

Couchbase Lite 4.1 common API - #67

Open
jeffdgr8 wants to merge 1 commit into
update-depsfrom
cbl-4.1-common
Open

Couchbase Lite 4.1 common API#67
jeffdgr8 wants to merge 1 commit into
update-depsfrom
cbl-4.1-common

Conversation

@jeffdgr8

Copy link
Copy Markdown
Owner

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-collection Replicator pending-document APIs, the database-level ReplicatorConfiguration constructors and accessors, the deprecated configuration factories, database-based listener configurations, the boolean-based TLSIdentity.createIdentity, and misspelled Defaults constants.

Changed: ReplicatorConfiguration is constructed from a collection of CollectionConfigurations; CollectionConfiguration is bound to its Collection; CouchbaseLiteError(String, Throwable?); the default conflict resolver compares Document.timestamp (upstream compareAge) instead of revision generation.

Added: Document.timestamp, Replicator.correlationId, CollectionConfiguration.fromCollections, LogDomain.PEER_DISCOVERY/MULTIPEER, KeyUsage and the Set<KeyUsage>-based TLSIdentity.createIdentity.

Platform actuals are updated in the per-platform PRs that follow; only commonMain compiles on this branch.

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant