8000 feat(twoslash)!: move to `twoslash` package for better performance and composablity by antfu · Pull Request #91 · antfu/shikiji · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

feat(twoslash)!: move to twoslash package for better performance and composablity #91

Merged
merged 12 commits into from
Jan 14, 2024

Conversation

antfu
Copy link
Owner
@antfu antfu commented Jan 12, 2024

This PR replaces @typescript/twoslash to twoslash. This should provide better performance and composablity.

This is a breaking change that might affect existing renderers and custom twoslash functions, as Shikiji now would expect the new return format. For high-level usages, it should be imperceptible.

This also allows vitepress-plugin-twoslash to ship twoslash-vue for Vue SFC typechecking. Live example: https://deploy-preview-91--shikiji.netlify.app/packages/vitepress#vue-single-file-component

Copy link
netlify bot commented Jan 12, 2024

Deploy Preview for shikiji ready!

Name Link
🔨 Latest commit 79e4e1f
🔍 Latest deploy log https://app.netlify.com/sites/shikiji/deploys/65a3c88989752f00085b0e47
😎 Deploy Preview https://deploy-preview-91--shikiji.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 site configuration.

@antfu antfu marked this pull request as draft January 12, 2024 17:42
Copy link
codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (97c9636) 96.96% compared to head (79e4e1f) 96.97%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #91   +/-   ##
=======================================
  Coverage   96.96%   96.97%           
=======================================
  Files          49       49           
  Lines        4318     4326    +8     
  Branches      532      533    +1     
=======================================
+ Hits         4187     4195    +8     
  Misses        129      129           
  Partials        2        2           

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

@antfu antfu changed the title feat(twoslash)!: move to twoslashes for better performance and composablity feat(twoslash)!: move to twoslash for better performance and composablity Jan 14, 2024
@antfu antfu changed the title feat(twoslash)!: move to twoslash for better performance and composablity feat(twoslash)!: move to twoslash package for better performance and composablity Jan 14, 2024
@antfu antfu marked this pull request as ready for review January 14, 2024 11:36
@antfu antfu merged commit fc67e9d into main Jan 14, 2024
@antfu antfu deleted the feat/twoslashes branch January 14, 2024 12:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0