Skip to content

Commit 1aae067

Browse files
committed
release: 1.12.0
1 parent 20f6de7 commit 1aae067

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.12.0] - 2025-12-04
11+
12+
### Added
13+
14+
- **Configuration File Support**: New RC file feature (`.svelteesp32rc.json`) for storing frequently-used options
15+
- Automatic search in current directory and user home directory
16+
- `--config` flag for specifying custom RC file path
17+
- All CLI options can be configured in RC file using long-form property names
18+
- CLI arguments always override RC file values (3-stage merge: defaults → RC → CLI)
19+
- **Replace mode** for exclude patterns: RC or CLI exclude completely replaces defaults
20+
- Cyan-colored console output showing which RC file was loaded
21+
- Comprehensive validation with unknown property warnings to catch typos
22+
- Example RC file (`.svelteesp32rc.example.json`) included in repository
23+
- 16 new unit tests for RC file functionality:
24+
- RC file discovery (current directory, home directory, custom path)
25+
- RC file parsing and validation (invalid JSON, invalid values, unknown properties)
26+
- CLI override behavior
27+
- Exclude pattern replace mode
28+
- Backward compatibility
29+
- Updated test coverage to 84.32% for `commandLine.ts` (up from 84.56%)
30+
- TypeScript type safety improvements: replaced `any` with `unknown` in `validateRcConfig()`
31+
32+
### Changed
33+
34+
- Enhanced `commandLine.ts` with RC file loading, validation, and merging logic
35+
- Updated help text with RC file documentation and examples
36+
- Enhanced README.md with comprehensive "Configuration File" section:
37+
- Quick start guide with example RC file
38+
- Configuration reference table mapping RC properties to CLI flags
39+
- CLI override examples
40+
- Multiple environment setup guide (dev/prod configs)
41+
- Exclude pattern behavior documentation
42+
- Updated command line options table with `--config` flag
43+
- Error message for missing `--sourcepath` now mentions RC file option
44+
- All 92 tests passing with new RC file test suite
45+
46+
### Fixed
47+
48+
- ESLint error: replaced `any` type with `unknown` in configuration validation
49+
1050
## [1.11.0] - 2025-12-03
1151

1252
### Added
@@ -266,6 +306,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
266306
- CLI interface with `-s`, `-e`, `-o` options
267307
- `index.html` automatic default route handling
268308

309+
[1.12.0]: https://github.com/BCsabaEngine/svelteesp32/compare/v1.11.0...v1.12.0
269310
[1.11.0]: https://github.com/BCsabaEngine/svelteesp32/compare/v1.10.0...v1.11.0
270311
[1.10.0]: https://github.com/BCsabaEngine/svelteesp32/compare/v1.9.4...v1.10.0
271312
[1.9.4]: https://github.com/BCsabaEngine/svelteesp32/compare/v1.9.3...v1.9.4

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelteesp32",
3-
"version": "1.11.0",
3+
"version": "1.12.0",
44
"description": "Convert Svelte (or any frontend) JS application to serve it from ESP32 webserver (PsychicHttp)",
55
"author": "BCsabaEngine",
66
"license": "ISC",

0 commit comments

Comments
 (0)