diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a02141c..67d68b56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Change Log +## 23.0.0 + +* **Note:** Version 22.2.0 was accidentally released in a previous cycle. This release (23.0.0) supersedes it as the correct next major version. + +### Summary of changes since 14.1.0 + +* [BREAKING] Changed `$sequence` type from `Long` to `String` for `Row` and `Document` models +* Added impersonation support: `setImpersonateUserId()`, `setImpersonateUserEmail()`, `setImpersonateUserPhone()` on `Client` +* Added `impersonator` and `impersonatorUserId` optional fields to `User` model +* Added `getHeaders()`, `getCookies(url)`, and `getHttpClient()` methods to `Client` +* Breaking: Channel factory methods require explicit IDs (no wildcard defaults) +* Added `ttl` parameter to `listDocuments` and `listRows` for caching +* Added `queries` parameter to Realtime subscriptions for filtering events +* Added array-based enum parameters (e.g., `permissions: List`) +* Breaking: `Output` enum removed; use `ImageFormat` instead +* Added `Channel` helpers for Realtime +* Added `getScreenshot` method to `Avatars` service +* Added `Theme` and `Timezone` enums +* Added `total` parameter to list queries for skipping row counting +* Added `Operator` class for atomic modification of rows +* Added transaction support for Databases and TablesDB +* Deprecated `createVerification`; added `createEmailVerification` in `Account` service +* Added `incrementDocumentAttribute` and `decrementDocumentAttribute` to `Databases` service +* Added `gif` support to `ImageFormat` enum and `sequence` support to `Document` model +* Added `devKeys` support to `Client` and `upsertDocument` to `Databases` service +* Added `token` param to `getFilePreview` and `getFileView` for File tokens +* Fixed requests failing by removing `Content-Type` header from `GET` and `HEAD` requests + ## 14.1.0 * Added `getHeaders()` method to `Client` for accessing current request headers diff --git a/README.md b/README.md index 2f8b6978..91b424e6 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ repositories { Next, add the dependency to your project's `build.gradle(.kts)` file: ```groovy -implementation("io.appwrite:sdk-for-android:14.1.0") +implementation("io.appwrite:sdk-for-android:23.0.0") ``` ### Maven @@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file: io.appwrite sdk-for-android - 14.1.0 + 23.0.0 ``` diff --git a/library/src/main/java/io/appwrite/Client.kt b/library/src/main/java/io/appwrite/Client.kt index a5de4908..7667a7cc 100644 --- a/library/src/main/java/io/appwrite/Client.kt +++ b/library/src/main/java/io/appwrite/Client.kt @@ -87,7 +87,7 @@ class Client @JvmOverloads constructor( "x-sdk-name" to "Android", "x-sdk-platform" to "client", "x-sdk-language" to "android", - "x-sdk-version" to "14.1.0", + "x-sdk-version" to "23.0.0", "x-appwrite-response-format" to "1.9.0" ) config = mutableMapOf()