bump(deps): update dependency shiki to v1 #791
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.14.7
->^1.1.2
Release Notes
shikijs/shiki (shiki)
v1.1.2
Compare Source
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v1.1.1
Compare Source
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v1.1.0
Compare Source
🚀 Features
🐞 Bug Fixes
getHighlighter
that requireslangs
andthemes
to be set, close #583 - by @antfu in https://github.com/shikijs/shiki/issues/583 (8515a)View changes on GitHub
v1.0.0
Compare Source
Shiki v1.0 is a major rewrite that solves most of the long-lasting issues. Previously known as Shikiji, now it's merged back to Shiki.
👉 Migration Guide
Notable Highlights
Generated Changelog
🚨 Breaking Changes
languages/
tolangs/
- by @antfu (2f4fe)codeToThemedTokens
options - by @antfu (5d8cf)codeToHtmlDualThemes
tocodeToHtmlThemes
- by @antfu (57daa)codeToHtmlThemes
tocodeToHtml
- by @antfu in https://github.com/shikijs/shiki/issues/9 (26cd5)hastTransform
totransforms
- by @antfu (3d245)codeToTokensWithThemes
, close #37 - by @antfu in https://github.com/shikijs/shiki/issues/37 (3acf1)unwasm
condition in exports - by @antfu in https://github.com/shikijs/shiki/issues/72 (96300)Twoslash
- by @antfu (f740b)token
tospan
to avoid confusion - by @antfu (eb3b8)highlightLines
option - by @antfu (21e99)highlightLines
option - by @antfu (fe0e4)twoslash
package for better performance and composablity - by @antfu in https://github.com/shikijs/shiki/issues/91 (fc67e)nodeCompletions
tonodeCompletion
- by @antfu (b7637)🚀 Features
default
resolution - by @antfu (de847)codeToHtmlDualThemes
- by @antfu in https://github.com/shikijs/shiki/issues/5 (751f9)renderToHtmlDualThemes
- by @antfu (cedad)codeToTokensWithThemes
, fix #7 - by @antfu and starknt in https://github.com/shikijs/shiki/issues/7 (b3cb0)shikiji-compact
package - by @antfu (ea2d6)plain
as plain text, close #24 - by @antfu in https://github.com/shikijs/shiki/issues/24 (6ae61)preprocess
andpostprocess
hooks to transformer - by @antfu (c1aba)codeToHast
util in transformer context - by @antfu (fc857)shikiji-core
package, improve bundling - by @antfu in https://github.com/shikijs/shiki/issues/42 (60184)shikiji-monaco
package - by @antfu (61794)tm-grammars
andtm-themes
- by @antfu (be0c9)preprocess
hook incodeToHast
- by @antfu (ed447)shikiji-cli
- by @antfu (68cd3)colorReplacements
field - by @antfu in https://github.com/shikijs/shiki/issues/68 (a5ee1)mergeWhitespaces: never
for themes are not handling perfectly - by @antfu (74459)loadWasm
- by @antfu (b8694)vitepress-plugin-twoslash
- by @antfu (cc128)unwasm
condition for core - by @antfu in https://github.com/shikijs/shiki/issues/97 (71249)cache
option for twoslash transformer - by @antfu (d5773)none
theme - by @antfu in https://github.com/shikijs/shiki/issues/115 (32f8a)tokensToHast
- by @antfu (e959e)includeExplanation
, close #568 - by @antfu in https://github.com/shikijs/shiki/issues/568 (cebf1)codeToTokens
API, renamecodeToThemedTokens
tocodeToTokensBase
- by @antfu in https://github.com/shikijs/shiki/issues/572 (d123b)addClassToHast
to transformer context - by @antfu in https://github.com/shikijs/shiki/issues/573 (6dfcd)lineOptions
- by @antfu (e6bbf)offset
info in themed token - by @antfu (e9d1f)tokens
hook to transformers - by @antfu (35e8d)mergeWhitespaces
option, thanks to @dominikg - by @antfu (e8833)parseMetaString
- by @AntzyMo and @antfu in https://github.com/shikijs/shiki/issues/17 (3aae9)render-whitepsace
supportposition
option - by @antfu (ba679)transformerMetaHighlight
transformer - by @antfu (aa81a)token
transformer - by @innocenzi in https://github.com/shikijs/shiki/issues/14 (116ec)twoslasher
option to be override - by @antfu (ed1a1)classExtra
to rich renderer - by @antfu (383fc)errorRendering
to render error in hover style - by @antfu (28e32)popupError
- by @antfu (df62d)lang
- by @antfu (4c451)processHoverInfo
andprocessHoverDocs
hook - by @antfu (1ecfa)🐞 Bug Fixes
.d.mts
for all - by @antfu (3c63c)ThemeRegistration
- by @GoodbyeNJN in https://github.com/shikijs/shiki/issues/34 (21559)ThemeRegistration
type, close #63 - by @antfu in https://github.com/shikijs/shiki/issues/63 (03d13)codeToHtml
type - by @antfu (61211)loadTheme
from disk - by @antfu (8168c)ansiToThemedTokens
- by @antfu (3d29e)getBackgroundColor
andgetForegroundColor
- by @antfu (908f9)RenderWhitespace
handling - by @antfu (e9758)boundary
mode of rendering spaces - by @antfu (44f22)throws: true
- by @antfu (dd6c7)text
lang - by @antfu (af465)🏎 Performance
setTheme
if theme hasn't changed - by @banga in https://github.com/shikijs/shiki/issues/66 (c6f82)View changes on GitHub
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.