|
1 | 1 | # SQL2Excel Version History |
2 | 2 |
|
3 | | -## v1.2.6 - Validation & Structure Improvements (2025-10-14) |
| 3 | +## v1.2.6 - Validation & Structure Improvements (2025-10-15) |
4 | 4 |
|
5 | 5 | ### ✨ New Features |
6 | 6 | - **Sheet Name Validation**: Added Excel sheet name validation logic |
|
17 | 17 |
|
18 | 18 | - **Interactive Menu System**: User-friendly menu system in sql2db style |
19 | 19 | - `app.js`: Multi-language menu system |
20 | | - - `run.bat`: English version launcher script |
21 | | - - `실행하기.bat`: Korean version launcher script |
| 20 | + - `run.bat`: English version launcher script (`--lang=en`) |
| 21 | + - `실행하기.bat`: Korean version launcher script (`--lang=kr`) |
| 22 | + |
| 23 | +- **Multi-language Support**: Language selection via command line arguments |
| 24 | + - `--lang=en`: English interface |
| 25 | + - `--lang=kr`: Korean interface |
| 26 | + - Multi-language support for menus, messages, and errors |
22 | 27 |
|
23 | 28 | ### 🔧 Technical Improvements |
24 | 29 | - **Improved dbinfo.json Structure**: Removed dbs wrapper |
|
30 | 35 | - `mssql-connection-manager.js`: Added pkg environment path handling |
31 | 36 | - Unified all file paths based on APP_ROOT |
32 | 37 |
|
| 38 | +- **pkg Build Optimization** (2025-10-15) |
| 39 | + - Removed `--no-native-build` option: Improved native module compatibility |
| 40 | + - Explicit native module inclusion: Added `mssql`, `tedious` to assets |
| 41 | + - Explicit entry point: Specified as `pkg app.js` format |
| 42 | + - Explicit target: Specified `--target node18-win-x64` |
| 43 | + - Added compression: Optimized file size with `--compress GZip` |
| 44 | + |
| 45 | +- **pkg Environment Support** (2025-10-15) |
| 46 | + - Detect pkg environment and call modules directly in `app.js` |
| 47 | + - Directly require `excel-cli.js` module for functionality |
| 48 | + - Automatic branching between Node.js and pkg environments |
| 49 | + - Dynamic reconstruction of `process.argv` for module calls |
| 50 | + - `excel-cli.js`: Dynamically read args and command within main() function |
| 51 | + - `file-utils.js`: APP_ROOT-based path handling (pkg environment support) |
| 52 | + - `index.js`: Create new yargs instance each time with explicit process.argv |
| 53 | + |
| 54 | +- **Improved Option Parsing** (2025-10-15) |
| 55 | + - Added `--lang` option handling in `excel-cli.js` |
| 56 | + - Added unknown option ignore functionality (`default` case) |
| 57 | + - Enhanced option parser stability |
| 58 | + - Improved `yargs` usage: Changed to `require('yargs/yargs')` |
| 59 | + - Explicit `process.argv.slice(2)` passing for pkg environment compatibility |
| 60 | + |
33 | 61 | ### 🐛 Bug Fixes |
34 | 62 | - **queryDef validation error**: Improved id attribute recognition in queryDef |
35 | 63 | - **Variable substitution sheet name validation**: Changed to validate after variable substitution |
36 | 64 | - **validate command option parsing**: Improved --xml option recognition |
| 65 | +- **Fixed "i is not defined" error** (2025-10-15) |
| 66 | + - `index.js`: Added `sheetIndex` variable in for-of loop |
| 67 | + - Improved index tracking logic in sheet processing loop |
| 68 | + - Fixed passing correct index to sheet name validation function |
| 69 | + |
| 70 | +- **Fixed sheet name validation not applied during file validation** (2025-10-15) |
| 71 | + - `excel-cli.js`: Moved sheet name validation logic outside queryDefs block |
| 72 | + - Improved structure to ensure validation always runs |
| 73 | + - Returns `false` with clear error messages on validation failure |
| 74 | + - Auto-correction during query execution, validation failure during file validation |
| 75 | + |
| 76 | +### 🎨 UI/UX Improvements (2025-10-15) |
| 77 | +- **Detailed Validation Output** |
| 78 | + - Sheet list: Display full list instead of just count |
| 79 | + - Per-sheet validation results: Show ✅ success / ❌ failure for each |
| 80 | + - Detailed failure reasons: Specify which rules were violated |
| 81 | + - Database list: Display detailed info including server, DB name, user, permissions |
| 82 | + |
| 83 | +### 📦 Distribution Improvements (2025-10-15) |
| 84 | +- **Auto-generate Batch Files**: Generate language-specific batch files in `create-release.js` |
| 85 | + - `run.bat`: Automatically includes `--lang=en` |
| 86 | + - `실행하기.bat`: Automatically includes `--lang=kr` |
| 87 | +- **Optimized Executable Size**: Reduced size by ~40% through compression |
| 88 | +- **Native Module Inclusion**: Guaranteed proper operation of DB connection libraries |
37 | 89 |
|
38 | 90 | ## v1.2.5 - Batch Interface Improvements (2025-10-10) |
39 | 91 |
|
|
0 commit comments