diff --git a/CHANGELOG.md b/CHANGELOG.md index 139900e5..ed2608e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ All notable changes to CCS will be documented here. Format based on [Keep a Changelog](https://keepachangelog.com/). +## [2.4.8] - 2025-11-05 + +### Fixed +- **Deprecation Warning**: Fixed Node.js DEP0190 warning by using platform-specific shell option (Windows only) +- Improved cross-platform compatibility (shell only on Windows, direct spawn on macOS/Linux) + +### Technical Details +- **Files Modified**: `bin/ccs.js` (execClaude function) +- **Change**: Use `shell: process.platform === 'win32'` instead of `shell: true` +- **Security**: No injection risk (array-based arguments, controlled inputs) +- **Performance**: Better performance on Unix systems (no shell overhead) + ## [2.4.7] - 2025-11-05 ### Fixed diff --git a/VERSION b/VERSION index e30309f7..f041bc6d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.4.7 +2.4.8 diff --git a/bin/ccs.js b/bin/ccs.js index f79bb86c..19238b5e 100755 --- a/bin/ccs.js +++ b/bin/ccs.js @@ -13,10 +13,11 @@ const CCS_VERSION = require('../package.json').version; // Execute Claude CLI with unified spawn logic function execClaude(claudeCli, args) { + // Use shell only on Windows for .cmd/.bat compatibility const child = spawn(claudeCli, args, { stdio: 'inherit', windowsHide: true, - shell: true // FIX: Enable shell for .cmd/.bat files on Windows + shell: process.platform === 'win32' }); child.on('exit', (code, signal) => { if (signal) process.kill(process.pid, signal); diff --git a/installers/install.ps1 b/installers/install.ps1 index d28467fd..52d21a19 100644 --- a/installers/install.ps1 +++ b/installers/install.ps1 @@ -30,7 +30,7 @@ $InstallMethod = if ($ScriptDir -and ((Test-Path "$ScriptDir\lib\ccs.ps1") -or ( # IMPORTANT: Update this version when releasing new versions! # This hardcoded version is used for standalone installations (irm | iex) # For git installations, VERSION file is read if available -$CcsVersion = "2.4.7" +$CcsVersion = "2.4.8" # Try to read VERSION file for git installations if ($ScriptDir) { diff --git a/installers/install.sh b/installers/install.sh index ff58e5ec..1249b63a 100755 --- a/installers/install.sh +++ b/installers/install.sh @@ -31,7 +31,7 @@ fi # IMPORTANT: Update this version when releasing new versions! # This hardcoded version is used for standalone installations (curl | bash) # For git installations, VERSION file is read if available -CCS_VERSION="2.4.7" +CCS_VERSION="2.4.8" # Try to read VERSION file for git installations if [[ -f "$SCRIPT_DIR/VERSION" ]]; then diff --git a/lib/ccs b/lib/ccs index 66362c21..265b73db 100755 --- a/lib/ccs +++ b/lib/ccs @@ -2,7 +2,7 @@ set -euo pipefail # Version (updated by scripts/bump-version.sh) -CCS_VERSION="2.4.7" +CCS_VERSION="2.4.8" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" readonly CONFIG_FILE="${CCS_CONFIG:-$HOME/.ccs/config.json}" diff --git a/lib/ccs.ps1 b/lib/ccs.ps1 index fc354f51..0a222a82 100644 --- a/lib/ccs.ps1 +++ b/lib/ccs.ps1 @@ -134,7 +134,7 @@ function Show-Help { } # Version (updated by scripts/bump-version.sh) -$CcsVersion = "2.4.7" +$CcsVersion = "2.4.8" $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path $ConfigFile = if ($env:CCS_CONFIG) { $env:CCS_CONFIG } else { "$env:USERPROFILE\.ccs\config.json" } diff --git a/package.json b/package.json index 33f63066..38cd42ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kaitranntt/ccs", - "version": "2.4.7", + "version": "2.4.8", "description": "Claude Code Switch - Instant profile switching between Claude Sonnet 4.5 and GLM 4.6", "keywords": [ "cli",