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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 14.0.1

* Fixed `push tables` not passing `encrypt` parameter for varchar, text, mediumtext, and longtext string types
* Fixed NVM installation path not being detected by `update` command
* Updated `tar` dependency to v7.4.3

Comment on lines +3 to +8
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Please reconcile release version naming across PR metadata and changelog.

Line 3 introduces 14.0.1, while the PR description references 14.1.0. Please align these before merge to avoid publishing/communication mistakes.

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

In `@CHANGELOG.md` around lines 3 - 8, The changelog currently lists release
"14.0.1" but the PR metadata references "14.1.0"—reconcile these by making both
use the same version string; update the changelog entry "14.0.1" (the visible
version header) to "14.1.0" or, if the intended release is 14.0.1, update the PR
title/description to "14.0.1" so they match; ensure the version string literal
("14.0.1" or "14.1.0") is consistent across the changelog header and PR metadata
before merging.

## 14.0.0

* Breaking: Changed createDeployment signature; activate option now optional with default true; parameter order updated
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using

```sh
$ appwrite -v
14.0.0
14.0.1
```

### Install using prebuilt binaries
Expand Down Expand Up @@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
Once the installation completes, you can verify your install using
```
$ appwrite -v
14.0.0
14.0.1
```

## Getting Started
Expand Down
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# You can use "View source" of this page to see the full script.

# REPO
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.0/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.0/appwrite-cli-win-arm64.exe"
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-arm64.exe"

$APPWRITE_BINARY_NAME = "appwrite.exe"

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ printSuccess() {
downloadBinary() {
echo "[2/4] Downloading executable for $OS ($ARCH) ..."

GITHUB_LATEST_VERSION="14.0.0"
GITHUB_LATEST_VERSION="14.0.1"
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"

Expand Down
6 changes: 3 additions & 3 deletions lib/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ignoreModule from "ignore";
const ignore: typeof ignoreModule =
(ignoreModule as unknown as { default?: typeof ignoreModule }).default ??
ignoreModule;
import tar from "tar";
import { create, extract } from "tar";
import fs from "fs";
import chokidar from "chokidar";
import inquirer from "inquirer";
Expand Down Expand Up @@ -323,7 +323,7 @@ const runFunction = async ({
fs.mkdirSync(hotSwapPath, { recursive: true });
}

await tar.extract({
await extract({
keep: true,
sync: true,
cwd: hotSwapPath,
Expand Down Expand Up @@ -358,7 +358,7 @@ const runFunction = async ({
fs.copyFileSync(sourcePath, filePath);
}

await tar.create(
await create(
{
gzip: true,
sync: true,
Expand Down
3 changes: 2 additions & 1 deletion lib/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ const isInstalledViaNpm = (): boolean => {
scriptPath.includes("/usr/local/lib/node_modules/") ||
scriptPath.includes("/opt/homebrew/lib/node_modules/") ||
scriptPath.includes("/.npm-global/") ||
scriptPath.includes("/node_modules/.bin/")
scriptPath.includes("/node_modules/.bin/") ||
scriptPath.includes("/.nvm/versions/node/")
) {
return true;
}
Expand Down
4 changes: 4 additions & 0 deletions lib/commands/utils/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export class Attributes {
required: attribute.required,
xdefault: attribute.default,
array: attribute.array,
encrypt: attribute.encrypt,
});
case "text":
return databasesService.createTextAttribute({
Expand All @@ -271,6 +272,7 @@ export class Attributes {
required: attribute.required,
xdefault: attribute.default,
array: attribute.array,
encrypt: attribute.encrypt,
});
case "mediumtext":
return databasesService.createMediumtextAttribute({
Expand All @@ -280,6 +282,7 @@ export class Attributes {
required: attribute.required,
xdefault: attribute.default,
array: attribute.array,
encrypt: attribute.encrypt,
});
case "longtext":
return databasesService.createLongtextAttribute({
Expand All @@ -289,6 +292,7 @@ export class Attributes {
required: attribute.required,
xdefault: attribute.default,
array: attribute.array,
encrypt: attribute.encrypt,
});
case "integer":
return databasesService.createIntegerAttribute({
Expand Down
6 changes: 3 additions & 3 deletions lib/commands/utils/deployment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "fs";
import path from "path";
import tar from "tar";
import { create, extract } from "tar";
import { Client, AppwriteException } from "@appwrite.io/console";
import { error } from "../../parser.js";

Expand All @@ -26,7 +26,7 @@ interface DeploymentDetails {
async function packageDirectory(dirPath: string): Promise<File> {
const tempFile = `${dirPath.replace(/[^a-zA-Z0-9]/g, "_")}-${Date.now()}.tar.gz`;

await tar.create(
await create(
{
gzip: true,
file: tempFile,
Expand Down Expand Up @@ -111,7 +111,7 @@ export async function downloadDeploymentCode(params: {
);
}

tar.extract({
extract({
sync: true,
cwd: resourcePath,
file: compressedFileName,
Expand Down
2 changes: 1 addition & 1 deletion lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SDK
export const SDK_TITLE = 'Appwrite';
export const SDK_TITLE_LOWER = 'appwrite';
export const SDK_VERSION = '14.0.0';
export const SDK_VERSION = '14.0.1';
export const SDK_NAME = 'Command Line';
export const SDK_PLATFORM = 'console';
export const SDK_LANGUAGE = 'cli';
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"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": "14.0.0",
"version": "14.0.1",
"license": "BSD-3-Clause",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down Expand Up @@ -61,7 +61,7 @@
"inquirer-search-list": "^1.2.6",
"json-bigint": "^1.0.0",
"tail": "^2.2.6",
"tar": "^6.1.11",
"tar": "^7.4.3",
"undici": "^5.28.2",
"zod": "^4.3.5"
},
Expand All @@ -76,7 +76,7 @@
"@types/inquirer": "^8.2.10",
"@types/json-bigint": "^1.0.4",
"@types/node": "^18.19.0",
"@types/tar": "^6.1.11",
"@types/tar": "^6.1.13",
"@yao-pkg/pkg": "^6.11.0",
"esbuild": "^0.27.2",
"prettier": "^3.7.4",
Expand Down
6 changes: 3 additions & 3 deletions scoop/appwrite.config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
"version": "14.0.0",
"version": "14.0.1",
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
"homepage": "https://github.com/appwrite/sdk-for-cli",
"license": "BSD-3-Clause",
"architecture": {
"64bit": {
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.0/appwrite-cli-win-x64.exe",
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-x64.exe",
"bin": [
[
"appwrite-cli-win-x64.exe",
Expand All @@ -15,7 +15,7 @@
]
},
"arm64": {
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.0/appwrite-cli-win-arm64.exe",
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-arm64.exe",
"bin": [
[
"appwrite-cli-win-arm64.exe",
Expand Down