Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 7.0.0

* Breaking: Updated `$sequence` type from `number` to `string` for rows and documents.
* Updated: Compatibility note now refers to Appwrite server `1.9.x`.
* Updated: README badge shows API version `1.9.0`.
* Updated: Set header `X-Appwrite-Response-Format` to `1.9.0`.

## 6.0.0

* Breaking: Renamed `domains.confirmPurchase()` to `domains.updatePurchase()`
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Appwrite Console SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-console.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.8.2-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.9.0-blue.svg?style=flat-square)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Update the compatibility sentence to 1.9.x to avoid contradictory docs.

Line 9 still says 1.8.x, which conflicts with the updated badge/version and can mislead users upgrading to 7.0.0.

📝 Proposed fix
-**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**
+**This SDK is compatible with Appwrite server version 1.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**

Also applies to: 36-36

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` at line 4, The README contains a compatibility sentence still
stating "1.8.x" that conflicts with the version badge showing 1.9.0; update the
textual compatibility sentence(s) that reference "1.8.x" to "1.9.x" so the docs
match the badge/version; search for the string "1.8.x" and replace it with
"1.9.x" (also update any nearby phrasing that implies 1.8-only compatibility) to
ensure consistency across README entries referenced in this diff.

[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
Expand Down Expand Up @@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
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:

```html
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@6.0.0"></script>
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@7.0.0"></script>
```


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@appwrite.io/console",
"homepage": "https://appwrite.io/support",
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
"version": "6.0.0",
"version": "7.0.0",
"license": "BSD-3-Clause",
"main": "dist/cjs/sdk.js",
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ class Client {
'x-sdk-name': 'Console',
'x-sdk-platform': 'console',
'x-sdk-language': 'web',
'x-sdk-version': '6.0.0',
'X-Appwrite-Response-Format': '1.8.0',
'x-sdk-version': '7.0.0',
'X-Appwrite-Response-Format': '1.9.0',
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Appwrite Console SDK
*
* This SDK is compatible with Appwrite server version 1.8.x.
* This SDK is compatible with Appwrite server version 1.9.x.
* For older versions, please check
* [previous releases](https://github.com/appwrite/sdk-for-console/releases).
*/
Expand Down
4 changes: 2 additions & 2 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2631,7 +2631,7 @@ export namespace Models {
/**
* Row sequence ID.
*/
$sequence: number;
$sequence: string;
/**
* Table ID.
*/
Expand Down Expand Up @@ -2670,7 +2670,7 @@ export namespace Models {
/**
* Document sequence ID.
*/
$sequence: number;
$sequence: string;
/**
* Collection ID.
*/
Expand Down
Loading