diff --git a/CHANGELOG.md b/CHANGELOG.md index 017d282..75e5e03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 + ## 14.0.0 * Breaking: Changed createDeployment signature; activate option now optional with default true; parameter order updated diff --git a/README.md b/README.md index 50b2101..a457d66 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/install.ps1 b/install.ps1 index ca1ba89..a1872a4 100644 --- a/install.ps1 +++ b/install.ps1 @@ -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" diff --git a/install.sh b/install.sh index 08cbdbf..ef83da4 100644 --- a/install.sh +++ b/install.sh @@ -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" diff --git a/lib/commands/run.ts b/lib/commands/run.ts index d7da653..bfc566d 100644 --- a/lib/commands/run.ts +++ b/lib/commands/run.ts @@ -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"; @@ -323,7 +323,7 @@ const runFunction = async ({ fs.mkdirSync(hotSwapPath, { recursive: true }); } - await tar.extract({ + await extract({ keep: true, sync: true, cwd: hotSwapPath, @@ -358,7 +358,7 @@ const runFunction = async ({ fs.copyFileSync(sourcePath, filePath); } - await tar.create( + await create( { gzip: true, sync: true, diff --git a/lib/commands/update.ts b/lib/commands/update.ts index c874b11..1f6080e 100644 --- a/lib/commands/update.ts +++ b/lib/commands/update.ts @@ -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; } diff --git a/lib/commands/utils/attributes.ts b/lib/commands/utils/attributes.ts index f33e773..279c28f 100644 --- a/lib/commands/utils/attributes.ts +++ b/lib/commands/utils/attributes.ts @@ -262,6 +262,7 @@ export class Attributes { required: attribute.required, xdefault: attribute.default, array: attribute.array, + encrypt: attribute.encrypt, }); case "text": return databasesService.createTextAttribute({ @@ -271,6 +272,7 @@ export class Attributes { required: attribute.required, xdefault: attribute.default, array: attribute.array, + encrypt: attribute.encrypt, }); case "mediumtext": return databasesService.createMediumtextAttribute({ @@ -280,6 +282,7 @@ export class Attributes { required: attribute.required, xdefault: attribute.default, array: attribute.array, + encrypt: attribute.encrypt, }); case "longtext": return databasesService.createLongtextAttribute({ @@ -289,6 +292,7 @@ export class Attributes { required: attribute.required, xdefault: attribute.default, array: attribute.array, + encrypt: attribute.encrypt, }); case "integer": return databasesService.createIntegerAttribute({ diff --git a/lib/commands/utils/deployment.ts b/lib/commands/utils/deployment.ts index ec0cf20..15ca90b 100644 --- a/lib/commands/utils/deployment.ts +++ b/lib/commands/utils/deployment.ts @@ -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"; @@ -26,7 +26,7 @@ interface DeploymentDetails { async function packageDirectory(dirPath: string): Promise { const tempFile = `${dirPath.replace(/[^a-zA-Z0-9]/g, "_")}-${Date.now()}.tar.gz`; - await tar.create( + await create( { gzip: true, file: tempFile, @@ -111,7 +111,7 @@ export async function downloadDeploymentCode(params: { ); } - tar.extract({ + extract({ sync: true, cwd: resourcePath, file: compressedFileName, diff --git a/lib/constants.ts b/lib/constants.ts index dcd8617..6e29b56 100644 --- a/lib/constants.ts +++ b/lib/constants.ts @@ -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'; diff --git a/package.json b/package.json index e299040..cd51350 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" }, @@ -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", diff --git a/scoop/appwrite.config.json b/scoop/appwrite.config.json index 2ad0c56..2294a19 100644 --- a/scoop/appwrite.config.json +++ b/scoop/appwrite.config.json @@ -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", @@ -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",