From 5c10e3e5926faeb3f074cd0dfc140f5f3ef3bc8a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 30 Nov 2025 04:06:23 +0000 Subject: [PATCH 1/3] [ci] release --- .../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, 29 insertions(+), 35 deletions(-) delete mode 100644 .changeset/fix-init-template-emoji-placeholder.md delete mode 100644 .changeset/fix-preview-emoji-display.md delete 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 deleted file mode 100644 index b829776..0000000 --- a/.changeset/fix-init-template-emoji-placeholder.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@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 deleted file mode 100644 index 3b03053..0000000 --- a/.changeset/fix-preview-emoji-display.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@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 deleted file mode 100644 index 4323432..0000000 --- a/.changeset/implement-emoji-detection-and-display.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@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 61528a5..007ca9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # @labcatr/labcommitr +## 0.4.0 + +### Minor Changes + +- ba6f8a4: 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 + +- ba6f8a4: 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 + +- ba6f8a4: 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 12a6d42..d6387bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@labcatr/labcommitr", - "version": "0.3.0", + "version": "0.4.0", "description": "Labcommitr is a solution for building standardized git commits, hassle-free!", "main": "dist/index.js", "scripts": { From 7d862402d449b8715729a9192352ca928275dbad Mon Sep 17 00:00:00 2001 From: Satanshu Mishra Date: Sat, 29 Nov 2025 22:59:13 -0700 Subject: [PATCH 2/3] fix: include config command files in published package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Change package.json files field from directory to explicit file paths • Add dist/cli/commands/config.js and config.d.ts to files array • Fixes ERR_MODULE_NOT_FOUND error when using lab commands • Config command was missing from published package causing runtime errors • Resolves issue where config.js file exists but wasn't included in npm package --- .changeset/fix-missing-config-command-in-package.md | 12 ++++++++++++ package.json | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changeset/fix-missing-config-command-in-package.md diff --git a/.changeset/fix-missing-config-command-in-package.md b/.changeset/fix-missing-config-command-in-package.md new file mode 100644 index 0000000..c31c9b5 --- /dev/null +++ b/.changeset/fix-missing-config-command-in-package.md @@ -0,0 +1,12 @@ +--- +"@labcatr/labcommitr": patch +--- + +fix: include config command files in published package + +- Change package.json files field from directory to explicit file paths +- Add dist/cli/commands/config.js and config.d.ts to files array +- Fixes ERR_MODULE_NOT_FOUND error when using lab commands +- Config command was missing from published package causing runtime errors +- Resolves issue where config.js file exists but wasn't included in npm package + diff --git a/package.json b/package.json index d6387bd..c7e7155 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,8 @@ "dist/cli/program.js", "dist/cli/program.d.ts", "dist/cli/commands/commit", - "dist/cli/commands/config", + "dist/cli/commands/config.js", + "dist/cli/commands/config.d.ts", "dist/cli/commands/init", "dist/cli/commands/preview", "dist/cli/commands/revert", From ff6683abaac795527ef0dc8e19b770b0668cccc1 Mon Sep 17 00:00:00 2001 From: Satanshu Mishra Date: Sat, 29 Nov 2025 22:59:28 -0700 Subject: [PATCH 3/3] chore: apply code formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fix indentation in editor.ts return statement • Consistent formatting across codebase --- src/cli/commands/commit/editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/commands/commit/editor.ts b/src/cli/commands/commit/editor.ts index c75127c..3250ec8 100644 --- a/src/cli/commands/commit/editor.ts +++ b/src/cli/commands/commit/editor.ts @@ -61,7 +61,7 @@ export function detectEditor(): string | null { if (envEditor.includes("/") || envEditor.includes("\\")) { try { accessSync(envEditor, constants.F_OK); - return envEditor.trim(); + return envEditor.trim(); } catch { // Path doesn't exist, try to find it as a command }