Skip to content

Commit bf35b44

Browse files
Merge pull request #104 from appwrite/dev
feat: React Native SDK update for version 0.30.0
2 parents b6ae870 + 7cc9da3 commit bf35b44

25 files changed

Lines changed: 1191 additions & 50 deletions

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818

1919
- name: Use Node.js
20-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2121
with:
2222
node-version: '24.14.1'
2323
registry-url: 'https://registry.npmjs.org'

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
min-release-age=7

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
# Change log
22

3+
## 0.30.0
4+
5+
* Added: Realtime `presences` channel and `RealtimePresence` types for presence subscriptions
6+
* Added: `Advisor` and `Presences` services
7+
* Added: `Insight`, `Presence`, and `Report` models with list variants
8+
* Added: `fusionauth`, `keycloak`, and `kick` providers to `OAuthProvider` enum
9+
* Added: `Client.setCookie()` method for forwarding cookies in server-side runtimes
10+
* Updated: `X-Appwrite-Response-Format` header to `1.9.5`
11+
312
## 0.29.0
413

5-
* Breaking: Added `subscribe` message flow for Realtime subscription updates.
6-
* Breaking: Added `close()` support for Realtime subscriptions.
7-
* Added: Added `subscriptions` metadata to Realtime events for targeted callbacks.
8-
* Updated: Updated `X-Appwrite-Response-Format` header to `1.9.2`.
14+
* Breaking: Added `subscribe` message flow for Realtime subscription updates
15+
* Breaking: Added `close()` support for Realtime subscriptions
16+
* Added: Added `subscriptions` metadata to Realtime events for targeted callbacks
17+
* Updated: Updated `X-Appwrite-Response-Format` header to `1.9.2`
918

1019
## 0.28.0
1120

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite React Native SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-react-native.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.9.2-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.9.5-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```javascript
2+
import { Client, Advisor } from "react-native-appwrite";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
7+
8+
const advisor = new Advisor(client);
9+
10+
const result = await advisor.getInsight({
11+
reportId: '<REPORT_ID>',
12+
insightId: '<INSIGHT_ID>'
13+
});
14+
15+
console.log(result);
16+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```javascript
2+
import { Client, Advisor } from "react-native-appwrite";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
7+
8+
const advisor = new Advisor(client);
9+
10+
const result = await advisor.getReport({
11+
reportId: '<REPORT_ID>'
12+
});
13+
14+
console.log(result);
15+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
```javascript
2+
import { Client, Advisor } from "react-native-appwrite";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
7+
8+
const advisor = new Advisor(client);
9+
10+
const result = await advisor.listInsights({
11+
reportId: '<REPORT_ID>',
12+
queries: [], // optional
13+
total: false // optional
14+
});
15+
16+
console.log(result);
17+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```javascript
2+
import { Client, Advisor } from "react-native-appwrite";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
7+
8+
const advisor = new Advisor(client);
9+
10+
const result = await advisor.listReports({
11+
queries: [], // optional
12+
total: false // optional
13+
});
14+
15+
console.log(result);
16+
```

docs/examples/functions/create-execution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const result = await functions.createExecution({
1111
functionId: '<FUNCTION_ID>',
1212
body: '<BODY>', // optional
1313
async: false, // optional
14-
path: '<PATH>', // optional
14+
xpath: '<PATH>', // optional
1515
method: ExecutionMethod.GET, // optional
1616
headers: {}, // optional
1717
scheduledAt: '<SCHEDULED_AT>' // optional

docs/examples/presences/delete.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```javascript
2+
import { Client, Presences } from "react-native-appwrite";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
7+
8+
const presences = new Presences(client);
9+
10+
const result = await presences.delete({
11+
presenceId: '<PRESENCE_ID>'
12+
});
13+
14+
console.log(result);
15+
```

0 commit comments

Comments
 (0)