Skip to content

Commit fdf1504

Browse files
authored
Merge pull request #140 from appwrite/dev
feat: Node.js SDK update for version 22.1.1
2 parents 9919faa + 3c42eda commit fdf1504

26 files changed

+523
-121
lines changed

CHANGELOG.md

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

3-
## 22.1.0
3+
## 22.1.1
4+
5+
* Removed unused BigNumber import from src/client.ts to clean up dependencies
6+
* Updated documentation examples to include the new encrypt option for text-like attributes (encrypt: false) across multiple examples
7+
* Updated README to specify Appwrite server compatibility with 1.8.x
8+
* Repo cleanup: removed obsolete GitHub workflow and issue template files as part of repository cleanup (non-breaking)
9+
10+
## 22.0.1
411

512
* Fix doc examples with proper formatting
613
* Add support for the new `Backups` service

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 latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-node/releases).**
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).**
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)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const client = new sdk.Client()
66
.setProject('<YOUR_PROJECT_ID>') // Your project ID
77
.setKey('<YOUR_API_KEY>'); // Your secret API key
88

9-
const health = new sdk.Health(client);
9+
const activities = new sdk.Activities(client);
1010

11-
const result = await health.getQueueThreats({
12-
threshold: null // optional
11+
const result = await activities.getEvent({
12+
eventId: '<EVENT_ID>'
1313
});
1414
```

docs/examples/health/get-queue-region-manager.md renamed to docs/examples/activities/list-events.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const client = new sdk.Client()
66
.setProject('<YOUR_PROJECT_ID>') // Your project ID
77
.setKey('<YOUR_API_KEY>'); // Your secret API key
88

9-
const health = new sdk.Health(client);
9+
const activities = new sdk.Activities(client);
1010

11-
const result = await health.getQueueRegionManager({
12-
threshold: null // optional
11+
const result = await activities.listEvents({
12+
queries: '' // optional
1313
});
1414
```

docs/examples/databases/create-longtext-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const result = await databases.createLongtextAttribute({
1414
key: '',
1515
required: false,
1616
default: '<DEFAULT>', // optional
17-
array: false // optional
17+
array: false, // optional
18+
encrypt: false // optional
1819
});
1920
```

docs/examples/databases/create-mediumtext-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const result = await databases.createMediumtextAttribute({
1414
key: '',
1515
required: false,
1616
default: '<DEFAULT>', // optional
17-
array: false // optional
17+
array: false, // optional
18+
encrypt: false // optional
1819
});
1920
```

docs/examples/databases/create-text-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const result = await databases.createTextAttribute({
1414
key: '',
1515
required: false,
1616
default: '<DEFAULT>', // optional
17-
array: false // optional
17+
array: false, // optional
18+
encrypt: false // optional
1819
});
1920
```

docs/examples/databases/create-varchar-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const result = await databases.createVarcharAttribute({
1515
size: 1,
1616
required: false,
1717
default: '<DEFAULT>', // optional
18-
array: false // optional
18+
array: false, // optional
19+
encrypt: false // optional
1920
});
2021
```

docs/examples/health/get-queue-billing-project-aggregation.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/examples/health/get-queue-billing-team-aggregation.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)