Skip to content

Commit ac619f1

Browse files
Eric Wheelerdaniel-lxs
authored andcommitted
feat: Add safeWriteJson utility for atomic file operations
Implements a robust JSON file writing utility that: - Prevents concurrent writes to the same file using in-memory locks - Ensures atomic operations with temporary file and backup strategies - Handles error cases with proper rollback mechanisms - Cleans up temporary files even when operations fail - Provides comprehensive test coverage for success and failure scenarios Signed-off-by: Eric Wheeler <[email protected]>
1 parent 6a9503d commit ac619f1

File tree

2 files changed

+557
-0
lines changed

2 files changed

+557
-0
lines changed

0 commit comments

Comments
 (0)