|
1 | 1 | # SQL2Excel Version History |
2 | 2 |
|
| 3 | +## v1.2.8 - Language Configuration & Type Safety Improvements (2025-10-19) |
| 4 | + |
| 5 | +### 🔧 Improvements |
| 6 | +- **Unified Language Configuration**: Standardized language settings using environment variable (`LANGUAGE`) |
| 7 | + - `app.js`: Use environment variable instead of command-line argument |
| 8 | + - `src/index.js`: Environment variable-based language configuration |
| 9 | + - `src/excel-cli.js`: Use environment variable, changed default from 'kr' to 'en' |
| 10 | + - `src/excel-style-helper.js`: Use environment variable |
| 11 | + - `src/file-utils.js`: Use environment variable |
| 12 | + - `src/style-manager.js`: Use environment variable |
| 13 | + - `src/variable-processor.js`: Use environment variable |
| 14 | + - `src/query-parser.js`: Use environment variable |
| 15 | + - `src/excel-generator.js`: Use environment variable |
| 16 | + |
| 17 | +- **Batch File Improvements**: Added environment variable settings, removed `--lang` parameter |
| 18 | + - `run.bat`: Added `set LANGUAGE=en` |
| 19 | + - `실행하기.bat`: Added `set LANGUAGE=kr` |
| 20 | + - `create-release.js`: Added environment variable settings to release batch file templates |
| 21 | + - `package.json`: Changed `start:kr` script to message directing users to use batch files |
| 22 | + |
| 23 | +### 🐛 Bug Fixes |
| 24 | +- **Type Conversion Error Fix**: Improved type safety when handling empty arrays in IN clauses |
| 25 | + - `src/mssql-helper.js`: `createInClause()` function now returns `NULL` instead of `'^-_'` |
| 26 | + - `src/variable-processor.js`: Unresolved dynamic variables replaced with `NULL` instead of `'^-_'` |
| 27 | + - **Issue**: Type conversion error when executing `WHERE OrderID IN ('^-_')` on INT columns |
| 28 | + - **Solution**: Using `WHERE OrderID IN (NULL)` works safely with all data types |
| 29 | + - **Impact**: Executes without errors on all column types (numeric, string, date, etc.) and always returns 0 rows |
| 30 | + |
| 31 | +### 📝 Documentation |
| 32 | +- Enhanced multilingual messages |
| 33 | + - `variable-processor.js`: Shows `(no match)` / `(매칭 없음)` message when replacing with NULL |
| 34 | + - Clarified messages when replacing with empty strings |
| 35 | + |
| 36 | +### 🔄 Migration Guide |
| 37 | +- If you were running with `node app.js --lang=kr`: |
| 38 | + - Windows: `set LANGUAGE=kr && node app.js` |
| 39 | + - Or use `실행하기.bat` (automatically sets environment variable) |
| 40 | +- In development environment, you can set `LANGUAGE=kr` in `.env` file |
| 41 | + |
3 | 42 | ## v1.2.7 - Encoding & Validation Improvements (2025-10-16) |
4 | 43 |
|
5 | 44 | ### 🔧 Improvements |
|
0 commit comments