Release v1.2.1
English Version:
- Release Name: Release v1.2.1
- Release Date: 2025-04-13
- Highlights:
- Improved Memory Caching:
- Introduced
MemoryCacheManagerwith configurable cache size using theSOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZEenvironment variable. - Enhanced caching logic with better memory management and eviction mechanisms.
- Introduced
- Runtime Configurations:
- Added runtime flexibility with the
SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINEvariable to adjust context lines for error stack analysis.
- Added runtime flexibility with the
- Optimized Stack Parsing:
- Refactored
parser.tsandserver.tsto improve stack trace parsing and eliminate redundant logic.
- Refactored
- Documentation Updates:
- Updated
README.mdandREADME.zh-CN.mdto reflect new usage examples for runtime parameters and clarified tool descriptions.
- Updated
- Bug Fixes:
- Addressed issues with context line handling and improved error handling in parsing logic.
- Improved Memory Caching:
中文版:
- 版本名称: Release v1.2.1
- 发布日期: 2025-04-13
- 主要内容:
- 改进的内存缓存:
- 引入
MemoryCacheManager,支持通过环境变量SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE配置缓存大小。 - 改善缓存逻辑,优化内存管理和清理机制。
- 引入
- 运行时配置:
- 增加运行时灵活性,通过
SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE调整错误堆栈分析的上下文行数。
- 增加运行时灵活性,通过
- 堆栈解析优化:
- 重构
parser.ts和server.ts,改进堆栈跟踪解析性能,删除冗余逻辑。
- 重构
- 文档更新:
- 更新了
README.md和README.zh-CN.md,提供新的运行时参数使用示例,并详细说明了工具功能。
- 更新了
- Bug 修复:
- 修正了上下文行处理逻辑问题,并改进了解析逻辑中的错误处理能力。
- 改进的内存缓存:
Full Changelog: v1.1.0...v1.2.1