Skip to content

Commit 9919faa

Browse files
authored
Merge pull request #138 from appwrite/dev
feat: Node.js SDK update for version 22.1.0
2 parents 6365d82 + 37e0bdf commit 9919faa

File tree

431 files changed

+2343
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

431 files changed

+2343
-60
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## 22.1.0
4+
5+
* Fix doc examples with proper formatting
6+
* Add support for the new `Backups` service
7+
38
## 22.0.0
49

510
* Add array-based enum parameters (e.g., `permissions: BrowserPermission[]`).
@@ -103,4 +108,4 @@
103108
* Rename `templateBranch` to `templateVersion` in `createFunction()`.
104109
* Rename `downloadDeployment()` to `getDeploymentDownload()`
105110

106-
> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.
111+
> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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)
88

9-
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-node/releases).**
9+
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-node/releases).**
1010

1111
> This is the Node.js SDK for integrating with Appwrite from your Node.js server-side code.
1212
If you're looking to integrate from the browser, you should check [appwrite/sdk-for-web](https://github.com/appwrite/sdk-for-web)

docs/examples/account/create-anonymous-session.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```javascript
12
const sdk = require('node-appwrite');
23

34
const client = new sdk.Client()
@@ -8,3 +9,4 @@ const client = new sdk.Client()
89
const account = new sdk.Account(client);
910

1011
const result = await account.createAnonymousSession();
12+
```

docs/examples/account/create-email-password-session.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```javascript
12
const sdk = require('node-appwrite');
23

34
const client = new sdk.Client()
@@ -11,3 +12,4 @@ const result = await account.createEmailPasswordSession({
1112
email: 'email@example.com',
1213
password: 'password'
1314
});
15+
```

docs/examples/account/create-email-token.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```javascript
12
const sdk = require('node-appwrite');
23

34
const client = new sdk.Client()
@@ -12,3 +13,4 @@ const result = await account.createEmailToken({
1213
email: 'email@example.com',
1314
phrase: false // optional
1415
});
16+
```

docs/examples/account/create-email-verification.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```javascript
12
const sdk = require('node-appwrite');
23

34
const client = new sdk.Client()
@@ -10,3 +11,4 @@ const account = new sdk.Account(client);
1011
const result = await account.createEmailVerification({
1112
url: 'https://example.com'
1213
});
14+
```

docs/examples/account/create-jwt.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```javascript
12
const sdk = require('node-appwrite');
23

34
const client = new sdk.Client()
@@ -10,3 +11,4 @@ const account = new sdk.Account(client);
1011
const result = await account.createJWT({
1112
duration: 0 // optional
1213
});
14+
```

docs/examples/account/create-magic-url-token.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```javascript
12
const sdk = require('node-appwrite');
23

34
const client = new sdk.Client()
@@ -13,3 +14,4 @@ const result = await account.createMagicURLToken({
1314
url: 'https://example.com', // optional
1415
phrase: false // optional
1516
});
17+
```

docs/examples/account/create-mfa-authenticator.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```javascript
12
const sdk = require('node-appwrite');
23

34
const client = new sdk.Client()
@@ -10,3 +11,4 @@ const account = new sdk.Account(client);
1011
const result = await account.createMFAAuthenticator({
1112
type: sdk.AuthenticatorType.Totp
1213
});
14+
```

docs/examples/account/create-mfa-challenge.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```javascript
12
const sdk = require('node-appwrite');
23

34
const client = new sdk.Client()
@@ -10,3 +11,4 @@ const account = new sdk.Account(client);
1011
const result = await account.createMFAChallenge({
1112
factor: sdk.AuthenticationFactor.Email
1213
});
14+
```

0 commit comments

Comments
 (0)