Skip to content

v3.1.0 - Template Upgrade Feature

Choose a tag to compare

@bitjaru bitjaru released this 17 Jan 06:18
· 8 commits to main since this release

πŸŽ‰ New Feature: Template Upgrade

codesyncer update now automatically detects outdated templates and offers to upgrade them!

How it works

πŸ“¦ New Version Detected: v3.1.0

  πŸ“ my-project/
     β€’ CLAUDE.md (v3.0.0 β†’ v3.1.0)
     β€’ COMMENT_GUIDE.md (no version β†’ v3.1.0)

? Upgrade 2 template(s)?
  > Yes - Upgrade (backup existing files to .backup)
    No - Skip
    Preview - Show files only

Features

  • πŸ” Auto-detection: Reads version metadata from existing templates
  • πŸ’Ύ Safe backup: Creates .backup.YYYY-MM-DD files before upgrading
  • πŸ“‹ Variable preservation: Keeps your project name, tech stack, etc.
  • πŸ‘οΈ Preview mode: See what would change before upgrading

What's Changed

  • Added version metadata (<!-- codesyncer-version: X.Y.Z -->) to all templates
  • New utilities: template-version.ts, template-upgrader.ts
  • Enhanced update command with upgrade flow
  • Updated README documentation

Installation / Update

npm install -g codesyncer@latest

Then run in your project:

codesyncer update

Full Changelog: v3.0.1...v3.1.0