Skip to content

Commit 048ffff

Browse files
authored
Merge pull request #336 from appwrite/dev
feat: SDK update for version 22.5.0
2 parents c6be334 + b0de04f commit 048ffff

56 files changed

Lines changed: 698 additions & 86 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ jobs:
142142
echo "tag=latest" >> "$GITHUB_OUTPUT"
143143
fi
144144
145+
- name: Audit npm dependencies
146+
run: |
147+
# CLI builds with Bun, but npm audit reads package-lock.json.
148+
# update-lockfiles.sh updates both lockfiles; this catches npm lock drift.
149+
npm install --package-lock-only --ignore-scripts
150+
git diff --exit-code package-lock.json
151+
npm audit --audit-level=high --omit=dev
152+
145153
- name: Publish
146154
run: npm publish --provenance --access public --tag ${{ steps.release_tag.outputs.tag }}
147155

CHANGELOG.md

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

3+
## 22.5.0
4+
5+
* Updated: `tablesdb create` now takes `--specification` instead of `--dedicated-database-id`
6+
* Updated: Removed `health get-queue-logs` command
7+
* Added: `notifications` command group for console notifications
8+
* Added: `organization get`, `update`, and `delete` commands
9+
* Added: `organization list-memberships`, `create-membership`, `get-membership`, `update-membership`, and `delete-membership` commands
10+
* Added: `tablesdb list-migrations`, `create-migration`, `get-migration`, and `delete-migration` commands for dedicated database migrations
11+
* Added: `oauth2 create-par`, `list-organizations`, and `list-projects` commands
12+
* Added: `--request-_uri` option on `oauth2 authorize`; client ID, redirect URI, and response type are now optional
13+
* Added: `projects list-addons`, `get-addon`, `delete-addon`, `confirm-addon-payment`, and `get-addon-price` commands
14+
* Added: `create-premium-geo-db-addon` command on `projects` and `organizations`
15+
* Added: `account list-logs`, `teams list-logs`, and `users list-logs` commands
16+
* Added: `health get-geo` and `get-geo-premium` commands
17+
* Added: `--new-specification` option on `backups create-restoration`
18+
* Added: `--prompt` and `--max-age` options on `project update-o-auth-2-oidc`
19+
* Fixed: Project config validation now sends the `X-Appwrite-Project` header, fixing 401 errors for guest sessions
20+
* Fixed: Update check now reads the latest version from the Homebrew tap instead of stale local metadata
21+
322
## 22.4.0
423

524
* Updated: Removed pre-release activity log commands `list-logs`, `list-collection-logs`, `list-document-logs`, `list-table-logs`, `list-row-logs`, `list-message-logs`, `list-provider-logs`, `list-subscriber-logs`, and `list-topic-logs`

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
2929

3030
```sh
3131
$ appwrite -v
32-
22.4.0
32+
22.5.0
3333
```
3434

3535
### Install using prebuilt binaries
@@ -83,7 +83,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
8383
Once the installation completes, you can verify your install using
8484
```
8585
$ appwrite -v
86-
22.4.0
86+
22.5.0
8787
```
8888

8989
## Getting Started

bun.lock

Lines changed: 2 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import { health } from './lib/commands/services/health.js';
4444
import { locale } from './lib/commands/services/locale.js';
4545
import { messaging } from './lib/commands/services/messaging.js';
4646
import { migrations } from './lib/commands/services/migrations.js';
47+
import { notifications } from './lib/commands/services/notifications.js';
4748
import { oauth2 } from './lib/commands/services/oauth-2.js';
4849
import { organization } from './lib/commands/services/organization.js';
4950
import { organizations } from './lib/commands/services/organizations.js';
@@ -217,6 +218,7 @@ if (process.argv.includes('-v') || process.argv.includes('--version')) {
217218
.addCommand(locale)
218219
.addCommand(messaging)
219220
.addCommand(migrations)
221+
.addCommand(notifications)
220222
.addCommand(oauth2)
221223
.addCommand(organization)
222224
.addCommand(organizations)

docs/examples/account/list-logs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```bash
2+
appwrite account list-logs \
3+
--limit 25
4+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```bash
2+
appwrite health get-geo-premium
3+
```

docs/examples/health/get-geo.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```bash
2+
appwrite health get-geo
3+
```

docs/examples/health/get-queue-logs.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```bash
2+
appwrite notifications list \
3+
--limit 25
4+
```

0 commit comments

Comments
 (0)