Skip to content

Commit 620d24f

Browse files
Merge pull request appwrite#32 from appwrite/dev
feat: update for 1.0.0-RC1
2 parents 9303244 + 1d244a0 commit 620d24f

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { Client, Account } from "appwrite";
3333
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
3434

3535
```html
36-
<script src="https://cdn.jsdelivr.net/npm/appwrite@9.1.0-RC1"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/appwrite@10.0.0-RC1"></script>
3737
```
3838

3939

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "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": "9.1.0-RC1",
5+
"version": "10.0.0-RC1",
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
@@ -102,7 +102,7 @@ class Client {
102102
'x-sdk-name': 'Web',
103103
'x-sdk-platform': 'client',
104104
'x-sdk-language': 'web',
105-
'x-sdk-version': '9.1.0-RC1',
105+
'x-sdk-version': '10.0.0-RC1',
106106
'X-Appwrite-Response-Format': '1.0.0-RC1',
107107
};
108108

src/services/avatars.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,11 @@ export class Avatars extends Service {
267267
* @param {string} name
268268
* @param {number} width
269269
* @param {number} height
270-
* @param {string} color
271270
* @param {string} background
272271
* @throws {AppwriteException}
273272
* @returns {URL}
274273
*/
275-
getInitials(name?: string, width?: number, height?: number, color?: string, background?: string): URL {
274+
getInitials(name?: string, width?: number, height?: number, background?: string): URL {
276275
let path = '/avatars/initials';
277276
let payload: Payload = {};
278277

@@ -288,10 +287,6 @@ export class Avatars extends Service {
288287
payload['height'] = height;
289288
}
290289

291-
if (typeof color !== 'undefined') {
292-
payload['color'] = color;
293-
}
294-
295290
if (typeof background !== 'undefined') {
296291
payload['background'] = background;
297292
}

0 commit comments

Comments
 (0)