Changelog
New Features
- New
new_consoleargument: On Windows, when set totrue(default), the script now automatically opens in a new terminal window - Default values for RAM management: Added default values of 95% for
ram_thresholdand 85% forram_safe - Graceful process termination: Implemented friendlier process shutdown, first attempting SIGTERM/CTRL_C_EVENT before forcing termination, with a 3-second grace period for proper closure
Improvements
- Improved CI workflow in
release.ymlfile - Updated README in both English and Portuguese
- Updated Cookbook examples with new changes
- Implemented dataclasses for better code structure
- Enhanced static typing throughout the codebase
- Added
RamConfigandCallbacksto Fortscript module exports
Bug Fixes
- Fixed various issues identified by linter
Breaking Changes
Changes to FortScript class constructor signature:
Before (v0.3.0):
FortScript(
config_path='fortscript.yaml',
projects=None,
heavy_process=None,
ram_threshold=None,
ram_safe=None,
on_pause=None,
on_resume=None,
log_level=None,
)Now (v0.4.0):
FortScript(
config_path: str = 'fortscript.yaml',
projects: list[ProjectConfig] | None = None,
heavy_process: list[HeavyProcessConfig] | None = None,
ram_config: RamConfig | None = None,
callbacks: Callbacks | None = None,
log_level: str | int | None = None,
new_console: bool = True,
)Key changes:
- Parameters
ram_threshold,ram_safe,on_pauseandon_resumehave been grouped intoRamConfigandCallbacksobjects - Added new
new_consoleparameter - Explicit typing on all parameters
What's Changed
Full Changelog: 0.3.0...0.4.0