From ba6f8a409caeaafb39ee96bd3889ef22e278806a Mon Sep 17 00:00:00 2001 From: Satanshu Mishra Date: Sat, 29 Nov 2025 21:01:58 -0700 Subject: [PATCH] Revert "chore: bump version to 0.4.0" This reverts commit 77296fc096e3daa48f690c510fe3880c67df6889. --- .../fix-init-template-emoji-placeholder.md | 11 ++++++++ .changeset/fix-preview-emoji-display.md | 11 ++++++++ .../implement-emoji-detection-and-display.md | 12 ++++++++ CHANGELOG.md | 28 ------------------- package.json | 2 +- 5 files changed, 35 insertions(+), 29 deletions(-) create mode 100644 .changeset/fix-init-template-emoji-placeholder.md create mode 100644 .changeset/fix-preview-emoji-display.md create mode 100644 .changeset/implement-emoji-detection-and-display.md diff --git a/.changeset/fix-init-template-emoji-placeholder.md b/.changeset/fix-init-template-emoji-placeholder.md new file mode 100644 index 0000000..b829776 --- /dev/null +++ b/.changeset/fix-init-template-emoji-placeholder.md @@ -0,0 +1,11 @@ +--- +"@labcatr/labcommitr": patch +--- + +fix: include emoji placeholder in generated config template + +- Add {emoji} placeholder to template in buildConfig function +- Generated configs now include {emoji} in format.template field +- Fixes issue where emojis didn't appear in commits even when enabled +- Template now matches default config structure with emoji support +- Ensures formatCommitMessage can properly replace emoji placeholder diff --git a/.changeset/fix-preview-emoji-display.md b/.changeset/fix-preview-emoji-display.md new file mode 100644 index 0000000..3b03053 --- /dev/null +++ b/.changeset/fix-preview-emoji-display.md @@ -0,0 +1,11 @@ +--- +"@labcatr/labcommitr": patch +--- + +fix: show actual commit message with emojis in preview + +- Preview now displays the exact commit message as it will be stored in Git +- Removed emoji stripping from preview display logic +- Users can see emojis even if terminal doesn't support emoji display +- Ensures preview accurately reflects what will be committed to Git/GitHub +- Fixes issue where emojis were hidden in preview on non-emoji terminals diff --git a/.changeset/implement-emoji-detection-and-display.md b/.changeset/implement-emoji-detection-and-display.md new file mode 100644 index 0000000..4323432 --- /dev/null +++ b/.changeset/implement-emoji-detection-and-display.md @@ -0,0 +1,12 @@ +--- +"@labcatr/labcommitr": minor +--- + +feat: implement terminal emoji detection and display adaptation + +- Add emoji detection utility with industry-standard heuristics (CI, TERM, NO_COLOR, Windows Terminal) +- Implement automatic emoji stripping for non-emoji terminals in Labcommitr UI +- Always store Unicode emojis in Git commits regardless of terminal support +- Update commit, preview, and revert commands to adapt display based on terminal capabilities +- Ensure GitHub and emoji-capable terminals always show emojis correctly +- Improve user experience by cleaning up broken emoji symbols on non-emoji terminals diff --git a/CHANGELOG.md b/CHANGELOG.md index 9aa641c..61528a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,33 +1,5 @@ # @labcatr/labcommitr -## 0.4.0 - -### Minor Changes - -- 18d5a56: feat: implement terminal emoji detection and display adaptation - - Add emoji detection utility with industry-standard heuristics (CI, TERM, NO_COLOR, Windows Terminal) - - Implement automatic emoji stripping for non-emoji terminals in Labcommitr UI - - Always store Unicode emojis in Git commits regardless of terminal support - - Update commit, preview, and revert commands to adapt display based on terminal capabilities - - Ensure GitHub and emoji-capable terminals always show emojis correctly - - Improve user experience by cleaning up broken emoji symbols on non-emoji terminals - -### Patch Changes - -- 48bd866: fix: include emoji placeholder in generated config template - - Add {emoji} placeholder to template in buildConfig function - - Generated configs now include {emoji} in format.template field - - Fixes issue where emojis didn't appear in commits even when enabled - - Template now matches default config structure with emoji support - - Ensures formatCommitMessage can properly replace emoji placeholder - -- 250dcc5: fix: show actual commit message with emojis in preview - - Preview now displays the exact commit message as it will be stored in Git - - Removed emoji stripping from preview display logic - - Users can see emojis even if terminal doesn't support emoji display - - Ensures preview accurately reflects what will be committed to Git/GitHub - - Fixes issue where emojis were hidden in preview on non-emoji terminals - ## 0.3.0 ### Minor Changes diff --git a/package.json b/package.json index d6387bd..12a6d42 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@labcatr/labcommitr", - "version": "0.4.0", + "version": "0.3.0", "description": "Labcommitr is a solution for building standardized git commits, hassle-free!", "main": "dist/index.js", "scripts": {