Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change log

## 3.0.0

* Breaking: `expo-file-system` is a peer dependency (`>=18.0.0`); install it in your app
* Breaking: `expo` peer dependency requires `>=52.0.0`
* Added: `createQuery` on `databases`, `documentsDB` and `tablesDB` to send list queries in the request body
* Added: `account.listMemberships`
* Added: `bundleId` and `environment` on `account.createPushTarget` and `account.updatePushTarget` for APNs routing
* Fixed: uploads on Expo SDK 54 and later use `expo-file-system/legacy` instead of crashing
* Fixed: Android upload chunks are deleted from the cache once their request completes
* Updated: `package.json` declares `engines.node` `>=20.0.0`

## 2.0.0

* Breaking: requests send `X-Appwrite-Response-Format: 2.5.0`; responses follow the 2.5 shapes
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/account/create-push-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const result = await account.createPushTarget({
targetId: '<TARGET_ID>',
identifier: '<IDENTIFIER>',
providerId: '<PROVIDER_ID>', // optional
bundleId: '<BUNDLE_ID>', // optional
environment: 'sandbox', // optional
});

console.log(result);
Expand Down
16 changes: 16 additions & 0 deletions docs/examples/account/list-memberships.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```javascript
import { Client, Account } from 'react-native-appwrite';

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.listMemberships({
queries: [], // optional
total: false, // optional
});

console.log(result);
```
2 changes: 2 additions & 0 deletions docs/examples/account/update-push-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const account = new Account(client);
const result = await account.updatePushTarget({
targetId: '<TARGET_ID>',
identifier: '<IDENTIFIER>',
bundleId: '<BUNDLE_ID>', // optional
environment: 'sandbox', // optional
});

console.log(result);
Expand Down
20 changes: 20 additions & 0 deletions docs/examples/databases/create-query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
```javascript
import { Client, Databases } from 'react-native-appwrite';

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const databases = new Databases(client);

const result = await databases.createQuery({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
queries: [], // optional
transactionId: '<TRANSACTION_ID>', // optional
total: false, // optional
ttl: 0, // optional
});

console.log(result);
```
20 changes: 20 additions & 0 deletions docs/examples/documentsdb/create-query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
```javascript
import { Client, DocumentsDB } from 'react-native-appwrite';

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const documentsDB = new DocumentsDB(client);

const result = await documentsDB.createQuery({
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
queries: [], // optional
transactionId: '<TRANSACTION_ID>', // optional
total: false, // optional
ttl: 0, // optional
});

console.log(result);
```
20 changes: 20 additions & 0 deletions docs/examples/tablesdb/create-query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
```javascript
import { Client, TablesDB } from 'react-native-appwrite';

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const tablesDB = new TablesDB(client);

const result = await tablesDB.createQuery({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
queries: [], // optional
transactionId: '<TRANSACTION_ID>', // optional
total: false, // optional
ttl: 0, // optional
});

console.log(result);
```
Loading