Skip to content

Commit fc3b511

Browse files
authored
Merge pull request #74 from appwrite/dev
feat: React Native SDK update for version 0.13.0
2 parents 2fd45f5 + 6af2412 commit fc3b511

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-native-appwrite",
33
"homepage": "https://appwrite.io/support",
44
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5-
"version": "0.13.0",
5+
"version": "0.14.0",
66
"license": "BSD-3-Clause",
77
"main": "dist/cjs/sdk.js",
88
"exports": {

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Client {
115115
'x-sdk-name': 'React Native',
116116
'x-sdk-platform': 'client',
117117
'x-sdk-language': 'reactnative',
118-
'x-sdk-version': '0.13.0',
118+
'x-sdk-version': '0.14.0',
119119
'X-Appwrite-Response-Format': '1.8.0',
120120
};
121121

src/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ export namespace Models {
10221022
*/
10231023
requestPath: string;
10241024
/**
1025-
* HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1025+
* HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
10261026
*/
10271027
requestHeaders: Headers[];
10281028
/**

src/query.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export class Query {
3333
});
3434
}
3535

36-
static equal = (attribute: string, value: QueryTypes | any[]): string =>
36+
static equal = (attribute: string, value: QueryTypes): string =>
3737
new Query("equal", attribute, value).toString();
3838

39-
static notEqual = (attribute: string, value: QueryTypes | any[]): string =>
39+
static notEqual = (attribute: string, value: QueryTypes): string =>
4040
new Query("notEqual", attribute, value).toString();
4141

4242
static lessThan = (attribute: string, value: QueryTypes): string =>
@@ -78,6 +78,9 @@ export class Query {
7878
static orderAsc = (attribute: string): string =>
7979
new Query("orderAsc", attribute).toString();
8080

81+
static orderRandom = (): string =>
82+
new Query("orderRandom").toString();
83+
8184
static cursorAfter = (documentId: string): string =>
8285
new Query("cursorAfter", undefined, documentId).toString();
8386

0 commit comments

Comments
 (0)