Repository navigation
Releases
Releases · kezan31/dsh-copy-tool
v0.2.0
Highlights / 主要更新
English
- Add
insert_atinsertion mode for inserting before a 1-based target line or appending with"end". - Preserve the existing
target_linesreplacement mode and require the two modes to be mutually exclusive. - Fix insertion into empty targets, mixed line-ending writes, and whitespace-only indentation handling.
- Add stronger parameter validation and synchronized English and Chinese documentation.
中文
- 新增
insert_at插入模式,支持插入到指定的 1-based 目标行之前,或使用"end"追加到文件末尾。 - 保留原有的
target_lines替换模式,并要求两种模式必须二选一。 - 修复空目标文件插入、混合换行符写入和仅含空白行的缩进处理问题。
- 强化参数校验,并同步更新中英文文档。
Verification / 验证
- 17 local behavior tests passed with
node --test --test-isolation=none tests/copy.test.mjs. - 已通过 17 项本地行为测试:
node --test --test-isolation=none tests/copy.test.mjs。 - Published as
dsh-copy-tool@0.2.0. - 已发布
dsh-copy-tool@0.2.0。
v0.1.2
What's Changed
- Clarified the role of copy in large-project refactoring.
- Documented prevention of omissions and oversimplification, token savings, and source-line-preserving module migration.
- Bumped package version to 0.1.2.
Full Changelog: https://github.com/kezan31/dsh-copy-tool/commits/v0.1.2