Skip to content

feat(transformers): add transformerMetaDiff#1240

Open
Divyapahuja31 wants to merge 1 commit intoshikijs:mainfrom
Divyapahuja31:feat/transformers-meta-diff
Open

feat(transformers): add transformerMetaDiff#1240
Divyapahuja31 wants to merge 1 commit intoshikijs:mainfrom
Divyapahuja31:feat/transformers-meta-diff

Conversation

@Divyapahuja31
Copy link
Copy Markdown
Contributor

  • -

Description

This PR introduces transformerMetaDiff to support diff highlighting via meta string.

Syntax:

  • {1+} marks line 1 as added (diff add).
  • {3-5-} marks lines 3-5 as removed (diff remove).

Example:

console.log('added')
console.log('kept')
console.log('removed')

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 7, 2026

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit 42c52fb
🔍 Latest deploy log https://app.netlify.com/projects/shiki-matsu/deploys/69878cb7f2ba7000088e53b6
😎 Deploy Preview https://deploy-preview-1240--shiki-matsu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 7, 2026

Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit 42c52fb
🔍 Latest deploy log https://app.netlify.com/projects/shiki-next/deploys/69878cb7be501900083d0dbd
😎 Deploy Preview https://deploy-preview-1240--shiki-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 7, 2026

Codecov Report

❌ Patch coverage is 96.72131% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.26%. Comparing base (49cbb76) to head (42c52fb).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ackages/transformers/src/transformers/meta-diff.ts 96.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1240      +/-   ##
==========================================
+ Coverage   95.25%   95.26%   +0.01%     
==========================================
  Files          92       93       +1     
  Lines        8007     8069      +62     
  Branches     1705     1723      +18     
==========================================
+ Hits         7627     7687      +60     
- Misses        374      376       +2     
  Partials        6        6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant