Skip to content

Commit c0d3669

Browse files
authored
feat: Node.js SDK update for version 24.0.0 (#148)
1 parent bd96eef commit c0d3669

63 files changed

Lines changed: 4072 additions & 628 deletions

Some content is hidden

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

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
- name: Use Node.js
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: '22'
22+
node-version: '24.14.1'
2323
registry-url: 'https://registry.npmjs.org'
2424

25-
- name: Update npm to latest version for OIDC support
26-
run: npm install -g npm@latest
25+
- name: Pin npm for trusted publishing
26+
run: npm install -g npm@11.10.0
2727

2828
- name: Determine release tag
2929
id: release_tag

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Change Log
22

3+
## 24.0.0
4+
5+
* [BREAKING] Renamed Webhook model fields: `security``tls`, `httpUser``authUsername`, `httpPass``authPassword`, `signatureKey``secret`
6+
* [BREAKING] Renamed Webhook service parameters to match: `security``tls`, `httpUser``authUsername`, `httpPass``authPassword`
7+
* Added `secret` parameter to Webhook create and update methods
8+
* Added `x` OAuth provider to `OAuthProvider` enum
9+
* Added `userType` field to `Log` model
10+
* Added `purge` parameter to `updateCollection` and `updateTable` for cache invalidation
11+
* Added Project service: platform CRUD, key CRUD, protocol/service status management
12+
* Added new models: `Key`, `KeyList`, `PlatformAndroid`, `PlatformApple`, `PlatformLinux`, `PlatformList`, and others
13+
* Added new enums: `PlatformType`, `ProtocolId`, `ServiceId`
14+
* Updated `BuildRuntime`, `Runtime`, `Scopes` enums with new values
15+
* Updated `X-Appwrite-Response-Format` header to `1.9.1`
16+
* Updated TTL description for list caching in Databases and TablesDB
17+
318
## 23.1.0
419

520
* Added: Added `getHeaders()` method to `Client` to expose current request headers

README.md

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

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.9.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.9.1-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)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const result = await databases.createDatetimeAttribute({
1313
collectionId: '<COLLECTION_ID>',
1414
key: '',
1515
required: false,
16-
default: '', // optional
16+
default: '2020-10-15T06:38:00.000+00:00', // optional
1717
array: false // optional
1818
});
1919
```

docs/examples/databases/update-collection.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const result = await databases.updateCollection({
1414
name: '<NAME>', // optional
1515
permissions: [sdk.Permission.read(sdk.Role.any())], // optional
1616
documentSecurity: false, // optional
17-
enabled: false // optional
17+
enabled: false, // optional
18+
purge: false // optional
1819
});
1920
```

docs/examples/databases/update-datetime-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const result = await databases.updateDatetimeAttribute({
1313
collectionId: '<COLLECTION_ID>',
1414
key: '',
1515
required: false,
16-
default: '',
16+
default: '2020-10-15T06:38:00.000+00:00',
1717
newKey: '' // optional
1818
});
1919
```

docs/examples/messaging/create-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ const result = await messaging.createEmail({
2020
attachments: [], // optional
2121
draft: false, // optional
2222
html: false, // optional
23-
scheduledAt: '' // optional
23+
scheduledAt: '2020-10-15T06:38:00.000+00:00' // optional
2424
});
2525
```

docs/examples/messaging/create-push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const result = await messaging.createPush({
2424
tag: '<TAG>', // optional
2525
badge: null, // optional
2626
draft: false, // optional
27-
scheduledAt: '', // optional
27+
scheduledAt: '2020-10-15T06:38:00.000+00:00', // optional
2828
contentAvailable: false, // optional
2929
critical: false, // optional
3030
priority: sdk.MessagePriority.Normal // optional

docs/examples/messaging/create-sms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ const result = await messaging.createSMS({
1515
users: [], // optional
1616
targets: [], // optional
1717
draft: false, // optional
18-
scheduledAt: '' // optional
18+
scheduledAt: '2020-10-15T06:38:00.000+00:00' // optional
1919
});
2020
```

docs/examples/messaging/update-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const result = await messaging.updateEmail({
1919
html: false, // optional
2020
cc: [], // optional
2121
bcc: [], // optional
22-
scheduledAt: '', // optional
22+
scheduledAt: '2020-10-15T06:38:00.000+00:00', // optional
2323
attachments: [] // optional
2424
});
2525
```

0 commit comments

Comments
 (0)