From 49e1ee1f39d71233393d0b647df1704557d600dc Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Fri, 8 Aug 2025 09:46:34 +0000 Subject: [PATCH] fix(format): Improve concurrency control in caching and rollback modules, refine gitignore custom section handling, and enhance Prettier file processing. --- changelog.md | 8 ++++++++ readme.plan.md | 8 -------- ts/00_commitinfo_data.ts | 2 +- ts/mod_format/format.packagejson.ts | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/changelog.md b/changelog.md index 135fe12..077d5a3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,14 @@ # Changelog +## 2025-08-08 - 1.16.10 - fix(format) +Improve concurrency control in caching and rollback modules, refine gitignore custom section handling, and enhance Prettier file processing. + +- Added mutex locking in ChangeCache and RollbackManager to prevent race conditions during manifest updates +- Updated gitignore logic to detect and preserve custom sections +- Enhanced Prettier batching and file formatting for better performance + ## 2025-08-08 - 1.16.9 - fix(format) + Improve concurrency control in cache and rollback modules, refine gitignore custom section handling, and enhance Prettier file processing - Added mutex locking in ChangeCache and RollbackManager to prevent race conditions during manifest updates diff --git a/readme.plan.md b/readme.plan.md index 16f5b67..53709ac 100644 --- a/readme.plan.md +++ b/readme.plan.md @@ -97,33 +97,28 @@ This plan outlines improvements for the gitzone format module to enhance its fun ### ✅ Completed Features 1. **Rollback Mechanism** - - Full backup/restore functionality - Manifest tracking and integrity checks - CLI commands for rollback operations 2. **Plan → Action Workflow** - - Two-phase approach (analyze then execute) - Interactive confirmation - Dry-run support 3. **Configuration System** - - Comprehensive npmextra.json support - Module control (skip/only/order) - Cache configuration - Parallel execution settings 4. **Performance Improvements** - - Parallel execution by dependency analysis - File change caching - Prettier batching - Execution time tracking 5. **Reporting & Statistics** - - Detailed diff views - Execution statistics - Verbose logging mode @@ -138,7 +133,6 @@ This plan outlines improvements for the gitzone format module to enhance its fun ### 🚧 Partially Completed 1. **License Management** - - Basic configuration support - Exception handling for specific packages - Need: compatibility matrix, compliance reports @@ -150,13 +144,11 @@ This plan outlines improvements for the gitzone format module to enhance its fun ### ⏳ Not Started 1. **Plugin System** - - Need to design plugin API - Hook system for pre/post operations - Custom validation rules 2. **Git Integration** - - Pre-commit hooks - Automatic formatting on commit diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 6139c0f..bddd60f 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/cli', - version: '1.16.9', + version: '1.16.10', description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.' } diff --git a/ts/mod_format/format.packagejson.ts b/ts/mod_format/format.packagejson.ts index 434efbd..06e3fa1 100644 --- a/ts/mod_format/format.packagejson.ts +++ b/ts/mod_format/format.packagejson.ts @@ -83,10 +83,10 @@ export const run = async (projectArg: Project) => { type: 'git', url: `https://${gitzoneData.module.githost}/${gitzoneData.module.gitscope}/${gitzoneData.module.gitrepo}.git`, }; - (packageJson.bugs = { + ((packageJson.bugs = { url: `https://${gitzoneData.module.githost}/${gitzoneData.module.gitscope}/${gitzoneData.module.gitrepo}/issues`, }), - (packageJson.homepage = `https://${gitzoneData.module.githost}/${gitzoneData.module.gitscope}/${gitzoneData.module.gitrepo}#readme`); + (packageJson.homepage = `https://${gitzoneData.module.githost}/${gitzoneData.module.gitscope}/${gitzoneData.module.gitrepo}#readme`)); // Check for module type if (!packageJson.type) {