Skip to content

Commit 1c76aa0

Browse files
authored
Merge pull request #276 from appwrite/dev
patch: Command Line SDK update for version 14.0.1
2 parents 93e4f14 + 6c343bc commit 1c76aa0

11 files changed

Lines changed: 30 additions & 19 deletions

File tree

CHANGELOG.md

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

3+
## 14.0.1
4+
5+
* Fixed `push tables` not passing `encrypt` parameter for varchar, text, mediumtext, and longtext string types
6+
* Fixed NVM installation path not being detected by `update` command
7+
* Updated `tar` dependency to v7.4.3
8+
39
## 14.0.0
410

511
* Breaking: Changed createDeployment signature; activate option now optional with default true; parameter order updated

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-
14.0.0
32+
14.0.1
3333
```
3434

3535
### Install using prebuilt binaries
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
6060
Once the installation completes, you can verify your install using
6161
```
6262
$ appwrite -v
63-
14.0.0
63+
14.0.1
6464
```
6565

6666
## Getting Started

install.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# You can use "View source" of this page to see the full script.
1414

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

1919
$APPWRITE_BINARY_NAME = "appwrite.exe"
2020

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ printSuccess() {
9696
downloadBinary() {
9797
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
9898

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

lib/commands/run.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ignoreModule from "ignore";
55
const ignore: typeof ignoreModule =
66
(ignoreModule as unknown as { default?: typeof ignoreModule }).default ??
77
ignoreModule;
8-
import tar from "tar";
8+
import { create, extract } from "tar";
99
import fs from "fs";
1010
import chokidar from "chokidar";
1111
import inquirer from "inquirer";
@@ -323,7 +323,7 @@ const runFunction = async ({
323323
fs.mkdirSync(hotSwapPath, { recursive: true });
324324
}
325325

326-
await tar.extract({
326+
await extract({
327327
keep: true,
328328
sync: true,
329329
cwd: hotSwapPath,
@@ -358,7 +358,7 @@ const runFunction = async ({
358358
fs.copyFileSync(sourcePath, filePath);
359359
}
360360

361-
await tar.create(
361+
await create(
362362
{
363363
gzip: true,
364364
sync: true,

lib/commands/update.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const isInstalledViaNpm = (): boolean => {
3636
scriptPath.includes("/usr/local/lib/node_modules/") ||
3737
scriptPath.includes("/opt/homebrew/lib/node_modules/") ||
3838
scriptPath.includes("/.npm-global/") ||
39-
scriptPath.includes("/node_modules/.bin/")
39+
scriptPath.includes("/node_modules/.bin/") ||
40+
scriptPath.includes("/.nvm/versions/node/")
4041
) {
4142
return true;
4243
}

lib/commands/utils/attributes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ export class Attributes {
262262
required: attribute.required,
263263
xdefault: attribute.default,
264264
array: attribute.array,
265+
encrypt: attribute.encrypt,
265266
});
266267
case "text":
267268
return databasesService.createTextAttribute({
@@ -271,6 +272,7 @@ export class Attributes {
271272
required: attribute.required,
272273
xdefault: attribute.default,
273274
array: attribute.array,
275+
encrypt: attribute.encrypt,
274276
});
275277
case "mediumtext":
276278
return databasesService.createMediumtextAttribute({
@@ -280,6 +282,7 @@ export class Attributes {
280282
required: attribute.required,
281283
xdefault: attribute.default,
282284
array: attribute.array,
285+
encrypt: attribute.encrypt,
283286
});
284287
case "longtext":
285288
return databasesService.createLongtextAttribute({
@@ -289,6 +292,7 @@ export class Attributes {
289292
required: attribute.required,
290293
xdefault: attribute.default,
291294
array: attribute.array,
295+
encrypt: attribute.encrypt,
292296
});
293297
case "integer":
294298
return databasesService.createIntegerAttribute({

lib/commands/utils/deployment.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from "fs";
22
import path from "path";
3-
import tar from "tar";
3+
import { create, extract } from "tar";
44
import { Client, AppwriteException } from "@appwrite.io/console";
55
import { error } from "../../parser.js";
66

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

29-
await tar.create(
29+
await create(
3030
{
3131
gzip: true,
3232
file: tempFile,
@@ -111,7 +111,7 @@ export async function downloadDeploymentCode(params: {
111111
);
112112
}
113113

114-
tar.extract({
114+
extract({
115115
sync: true,
116116
cwd: resourcePath,
117117
file: compressedFileName,

lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SDK
22
export const SDK_TITLE = 'Appwrite';
33
export const SDK_TITLE_LOWER = 'appwrite';
4-
export const SDK_VERSION = '14.0.0';
4+
export const SDK_VERSION = '14.0.1';
55
export const SDK_NAME = 'Command Line';
66
export const SDK_PLATFORM = 'console';
77
export const SDK_LANGUAGE = 'cli';

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"homepage": "https://appwrite.io/support",
55
"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",
6-
"version": "14.0.0",
6+
"version": "14.0.1",
77
"license": "BSD-3-Clause",
88
"main": "dist/index.cjs",
99
"module": "dist/index.js",
@@ -61,7 +61,7 @@
6161
"inquirer-search-list": "^1.2.6",
6262
"json-bigint": "^1.0.0",
6363
"tail": "^2.2.6",
64-
"tar": "^6.1.11",
64+
"tar": "^7.4.3",
6565
"undici": "^5.28.2",
6666
"zod": "^4.3.5"
6767
},
@@ -76,7 +76,7 @@
7676
"@types/inquirer": "^8.2.10",
7777
"@types/json-bigint": "^1.0.4",
7878
"@types/node": "^18.19.0",
79-
"@types/tar": "^6.1.11",
79+
"@types/tar": "^6.1.13",
8080
"@yao-pkg/pkg": "^6.11.0",
8181
"esbuild": "^0.27.2",
8282
"prettier": "^3.7.4",

0 commit comments

Comments
 (0)