selfie
selfie copied to clipboard
fix(deps): update dependency shiki to v1
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| shiki (source) | ^0.14.0 -> ^1.0.0 |
Release Notes
shikijs/shiki (shiki)
v1.5.1
🐞 Bug Fixes
- core: Simplify cloudflare wasm loading - by @hi-ogawa in https://github.com/shikijs/shiki/issues/670 (cd239)
View changes on GitHub
v1.5.0
🚀 Features
View changes on GitHub
v1.4.0
🚀 Features
🐞 Bug Fixes
- core: Check existance of
Buffer.isBuffer, fix #664 - by @NullVoxPopuli in https://github.com/shikijs/shiki/issues/666 and https://github.com/shikijs/shiki/issues/664 (86d52) - monaco: Options for tokenize limit - by @hddhyq, @antfu and Anthony Fu in https://github.com/shikijs/shiki/issues/657 (a606d)
- transformers: Allow SQL comment syntax in notation transformer, fix #654 - by @senicko in https://github.com/shikijs/shiki/issues/655 and https://github.com/shikijs/shiki/issues/654 (cc135)
View changes on GitHub
v1.3.0
🚀 Features
- core: New
structure: inlineoption forcodeToHast- by @antfu in https://github.com/shikijs/shiki/issues/653 (ae516)
View changes on GitHub
v1.2.4
No significant changes
View changes on GitHub
v1.2.3
🐞 Bug Fixes
colorReplacementsalso forbgandfg, close #641 - by @antfu in https://github.com/shikijs/shiki/issues/641 (bb47a)
View changes on GitHub
v1.2.2
🚀 Features
🐞 Bug Fixes
- monaco: Typo on interface - by @ije in https://github.com/shikijs/shiki/issues/644 (1fc70)
🏎 Performance
- shiki-monaco: Improve tokenizer performance - by @ije in https://github.com/shikijs/shiki/issues/645 (069e0)
View changes on GitHub
v1.2.1
🐞 Bug Fixes
- vitepress-twoslash: Pass
options.twoslashOptionstocreateTwoslasher- by @sapphi-red in https://github.com/shikijs/shiki/issues/637 (75832)
View changes on GitHub
v1.2.0
🚀 Features
🏎 Performance
- Bundle wasm binary in chunk for
shiki/wasmand@shikijs/core/wasm-inlined- by @antfu in https://github.com/shikijs/shiki/issues/624 (56d1a)
View changes on GitHub
v1.1.7
🐞 Bug Fixes
- Allow nullish color for colorReplacement, fix ansi highlighting with dark-plus, fix #597 - by @chwzr in https://github.com/shikijs/shiki/issues/598 and https://github.com/shikijs/shiki/issues/597 (ccb58)
View changes on GitHub
v1.1.6
🚀 Features
- Provide lang sub module for alias - by @antfu in https://github.com/shikijs/shiki/issues/596 (b61a6)
- Include new
Typstgrammar - by @antfu (9f70e)
🐞 Bug Fixes
- vitepress: Missing
:shownprop for query, fix #595 - by @antfu in https://github.com/shikijs/shiki/issues/595 (b667b)
View changes on GitHub
v1.1.5
🐞 Bug Fixes
- monaco: Editor colors interop, fix #594 - by @antfu in https://github.com/shikijs/shiki/issues/594 (78825)
View changes on GitHub
v1.1.4
🚀 Features
- Add length and time limit to tokenizer - by @ije and @antfu in https://github.com/shikijs/shiki/issues/588 (2803f)
🐞 Bug Fixes
- monaco: Normalize hex color for monaco, fix #594 - by @antfu in https://github.com/shikijs/shiki/issues/594 (ecb36)
View changes on GitHub
v1.1.3
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v1.1.2
🚀 Features
🐞 Bug Fixes
- Remove trailing newline added by markdown-it - by @KermanX and @antfu in https://github.com/shikijs/shiki/issues/585 (b559c)
- twoslash: Improve error handling - by @antfu (73fdb)
View changes on GitHub
v1.1.1
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v1.1.0
🚀 Features
🐞 Bug Fixes
- Stricter type for
getHighlighterthat requireslangsandthemesto be set, close #583 - by @antfu in https://github.com/shikijs/shiki/issues/583 (8515a) - twoslash: Use internal map to share state, allow multiple transformers to coexists - by @antfu (18c22)
View changes on GitHub
v1.0.0
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.
Notable Highlights
- Full ESM support, no static assets or CDN settings are needed anymore
- No filesystem dependencies, platform agnostic, works for Node.js, browsers, and any other modern runtime out-of-box.
- Dual themes built-in, to support Light/Dark modes efficiently
- Transformers & Decorations API, maximize the customizability
- Official rehype and markdown-it plugin
- TwoSlash integration is now a Shiki transformer instead of a wrapper
- More themes and better language support. Maintained as a standalone repo: https://github.com/shikijs/textmate-grammars-themes
- New docs: https://shiki.style
Generated Changelog
🚨 Breaking Changes
- Flat lang registration - by @antfu (d7f66)
- Shorten
languages/tolangs/- by @antfu (2f4fe) - Change
codeToThemedTokensoptions - by @antfu (5d8cf) - Rename
codeToHtmlDualThemestocodeToHtmlThemes- by @antfu (57daa) - Use hast, unify
codeToHtmlThemestocodeToHtml- by @antfu in https://github.com/shikijs/shiki/issues/9 (26cd5) - Rework
hastTransformtotransforms- by @antfu (3d245) - Improve return type of
codeToTokensWithThemes, close #37 - by @antfu in https://github.com/shikijs/shiki/issues/37 (3acf1) - Add
unwasmcondition in exports - by @antfu in https://github.com/shikijs/shiki/issues/72 (96300) - Remove deprecated APIs - by @antfu in https://github.com/shikijs/shiki/issues/75 (97c96)
- Consistent case of
Twoslash- by @antfu (f740b) - Rename to shiki - by @antfu (a04b3)
- Remove renderers - by @antfu (718b0)
- Merge Shikiji back into Shiki for v1.0 - by @antfu (c72a5)
- Remove all deprecated APIs - by @antfu (1a39f)
- Refactor internal context - by @antfu (5ba2a)
- core:
- markdown-it:
- rehype:
- twoslash:
- Improve rich renderer - by @antfu in https://github.com/shikijs/shiki/issues/41 (0bd42)
- Move to
twoslashpackage for better performance and composablity - by @antfu in https://github.com/shikijs/shiki/issues/91 (fc67e) - Rename renderer hook
nodeCompletionstonodeCompletion- by @antfu (b7637) - Support highlight - by @antfu (1ebe8)
- Fix highlight typos - by @jxom in https://github.com/shikijs/shiki/issues/102 (b8c4c)
🚀 Features
- Rewrite from shiki - by @antfu (c14ed)
- Types for each export - by @antfu (1ffb6)
- Improve types - by @antfu (762d5)
- Auto module
defaultresolution - by @antfu (de847) - Improve module resolution - by @antfu (fa20a)
- Bundle include embedded languages - by @antfu (7e85d)
- Provide singleton shorthands - by @antfu (e00df)
- Add
codeToHtmlDualThemes- by @antfu in https://github.com/shikijs/shiki/issues/5 (751f9) - Support multiple themes for
renderToHtmlDualThemes- by @antfu (cedad) - Support no default color for dual themes, #6 - by @antfu in https://github.com/shikijs/shiki/issues/6 (69b99)
- Add
codeToTokensWithThemes, fix #7 - by @antfu and starknt in https://github.com/shikijs/shiki/issues/7 (b3cb0) - Port back ansi support - by @antfu (80c74)
- Add rehype and markdown-it plugins - by @antfu in https://github.com/shikijs/shiki/issues/12 (f096f)
- Wip
shikiji-compactpackage - by @antfu (ea2d6) - Support passing raw theme object on generation - by @antfu (03db7)
- Improve compatibility - by @antfu (8e11f)
- Improve compat - by @antfu (3b41d)
- Support font-style for multiples themes - by @antfu (b6a42)
- Support lang on the meta - by @ovflowd in https://github.com/shikijs/shiki/issues/26 (f0e6b)
- Treat
plainas plain text, close #24 - by @antfu in https://github.com/shikijs/shiki/issues/24 (6ae61) - Support multiple transformers - by @antfu (50466)
- Introduce transformers package - by @antfu in https://github.com/shikijs/shiki/issues/32 (370a4)
- Add
preprocessandpostprocesshooks to transformer - by @antfu (c1aba) - Support lang alias - by @antfu (fe120)
- Introduce twoslash transformer - by @antfu in https://github.com/shikijs/shiki/issues/39 (06742)
- Expose more utils - by @antfu (53343)
- Additional
codeToHastutil in transformer context - by @antfu (fc857) - Adjust css - by @antfu (724ad)
- New
shikiji-corepackage, improve bundling - by @antfu in https://github.com/shikijs/shiki/issues/42 (60184) - Introduce
shikiji-monacopackage - by @antfu (61794) - Provide more info for languages and themes - by @antfu (d187e)
- Support grammar injection - by @antfu in https://github.com/shikijs/shiki/issues/48 (c176b)
- Change source from shiki to
tm-grammarsandtm-themes- by @antfu (be0c9) - Introduce web bundle - by @antfu in https://github.com/shikijs/shiki/issues/56 (9cc01)
- Introduce lazy embedded, more efficient bundle - by @antfu in https://github.com/shikijs/shiki/issues/59 (90fa1)
- Call
preprocesshook incodeToHast- by @antfu (ed447) - Introduce
shikiji-cli- by @antfu (68cd3) - Support arbitrary colors value in theme, support
colorReplacementsfield - by @antfu in https://github.com/shikijs/shiki/issues/68 (a5ee1) - Support
mergeWhitespaces: neverfor themes are not handling perfectly - by @antfu (74459) - Update deps, a few new themes - by @antfu (6f92c)
- Improve wasm support - by @antfu (bee23)
- Also support wasm import module - by @antfu (637d2)
- Support also passing promises to
loadWasm- by @antfu (b8694) - Support angular - by @antfu (a383d)
- Introduce
vitepress-plugin-twoslash- by @antfu (cc128) - Support
unwasmcondition for core - by @antfu in https://github.com/shikijs/shiki/issues/97 (71249) - Support configure
cacheoption for twoslash transformer - by @antfu (d5773) - Upgrade to twoslash v0.1.0 - by @antfu (b6cbf)
- Add a special
nonetheme - by @antfu in https://github.com/shikijs/shiki/issues/115 (32f8a) - Support ansi background color, fix #432 - by @antfu in https://github.com/shikijs/shiki/issues/432 (19455)
- Add fortran support - by @antfu (55706)
- Export
tokensToHast- by @antfu (e959e) - Support passing
includeExplanation, close #568 - by @antfu in https://github.com/shikijs/shiki/issues/568 (cebf1) - Add
codeToTokensAPI, renamecodeToThemedTokenstocodeToTokensBase- by @antfu in https://github.com/shikijs/shiki/issues/572 (d123b) - Add
addClassToHastto transformer context - by @antfu in https://github.com/shikijs/shiki/issues/573 (6dfcd) - Introduce Decorations API - by @antfu in https://github.com/shikijs/shiki/issues/574 (e0fcf)
- Apply full line decoration when possible - by @antfu (52f6a)
- compat:
- core:
- html:
- Add
mergeWhitespacesoption, thanks to @dominikg - by @antfu (e8833)
- Add
- markdown-it:
- rehype:
- Custom
parseMetaString- by @AntzyMo and @antfu in https://github.com/shikijs/shiki/issues/17 (3aae9) - Support fine-grain integration, close #64 - by @antfu in https://github.com/shikijs/shiki/issues/64 (890ef)
- Add onError option, close #64 - by @antfu in https://github.com/shikijs/shiki/issues/64 (1abc5)
- Custom
- rehype-shikiji:
- Add language class to code element - by @wststone in https://github.com/shikijs/shiki/issues/33 (ddcc3)
- Add custom cache option - by @wststone and @antfu in https://github.com/shikijs/shiki/issues/80 (fde81)
- Support metastring from node.properties - by @zce, Anthony Fu and @antfu in https://github.com/shikijs/shiki/issues/114 (3b0cb)
- transformers:
- Nations support range - by @antfu (543c2)
render-whitepsacesupportpositionoption - by @antfu (ba679)- Introduce
transformerMetaHighlighttransformer - by @antfu (aa81a) - Two new transformers for word highlighting - by @fuma-nama and @antfu in https://github.com/shikijs/shiki/issues/92 (ecf60)
- Support word highlighting across multiple tokens - by @fuma-nama and @antfu in https://github.com/shikijs/shiki/issues/561 (70fdc)
- transforms:
- Add line node element to
tokentransformer - by @innocenzi in https://github.com/shikijs/shiki/issues/14 (116ec)
- Add line node element to
- twoslash:
- Support custom renderer - by @antfu (3fbd0)
- Support passing explicit trigger in markdown-it and rehype integration - by @antfu (66661)
- Expose core module, independent from twoslash - by @antfu in https://github.com/shikijs/shiki/issues/52 (1c0d4)
- Expose
twoslasheroption to be override - by @antfu (ed1a1) - Add
classExtrato rich renderer - by @antfu (383fc) - Allow provide custom trigger - by @antfu (6b177)
- Allow lossy custom twoslash implementation - by @antfu (38a9f)
- Support
errorRenderingto render error in hover style - by @antfu (28e32) - Support extend
popupError- by @antfu (df62d) - Wrap tokens in a single span for errors - by @antfu (efea5)
- twoslash/rich:
- vitepress:
- vitepress-twoslash:
🐞 Bug Fixes
- Oniguruma options - by @antfu (45dd7)
- Make cf working - by @antfu (b01a6)
- Rename APIs - by @antfu (de1b6)
- Add type export - by @antfu (2a185)
.d.mtsfor all - by @antfu (3c63c)- Allow loading multiple langs at once - by @antfu (a5c8e)
- Subpackages dts in node10 - by @userquin in https://github.com/shikijs/shiki/issues/2 (11e6a)
- Support language alias - by @antfu (31816)
- Types - by @antfu (cd13e)
- Langs subpackage dts in node10 - by @userquin in https://github.com/shikijs/shiki/issues/4 (18e26)
- Do not include any default themes/languages - by @antfu (56ce8)
- Improve type exchangeability - by @antfu (3944a)
- Allow to init the highlighter without themes and langs - by @antfu (705cd)
- Typo in ThemeRegistration - by @brc-dd in https://github.com/shikijs/shiki/issues/11 (4dfc6)
- Typo - by @antfu (c6f53)
- Remove empty style - by @bluwy in https://github.com/shikijs/shiki/issues/21 (7fd20)
- Add lang to HtmlRendererOptions - by @devjvao in https://github.com/shikijs/shiki/issues/29 (a34ad)
- Revert #26, fix #30 - by @antfu in https://github.com/shikijs/shiki/issues/26 and https://github.com/shikijs/shiki/issues/30 (6f029)
- Improve transformers - by @antfu (182dc)
- Improve types - by @antfu (96fd6)
- Improve types in
ThemeRegistration- by @GoodbyeNJN in https://github.com/shikijs/shiki/issues/34 (21559) - Load all embedded langs with markdown - by @antfu in https://github.com/shikijs/shiki/issues/36 (741b8)
- Improve
ThemeRegistrationtype, close #63 - by @antfu in https://github.com/shikijs/shiki/issues/63 (03d13) - Avoid merge style when visible styles are applied, close #65 - by @antfu in https://github.com/shikijs/shiki/issues/65 (2c33a)
- Improve css variable handling for background - by @antfu (2964d)
- MergeWhitespaceTokens offset calculation - by @antfu (3cf46)
- Improve error handling - by @antfu (d9fcd)
- Update grammar registry, fix html in markdown highlighting - by @antfu (502ed)
- Stricter types - by @antfu (1b3dc)
- SplitLines extra new lines, fix #576 - by @antfu in https://github.com/shikijs/shiki/issues/576 (0bb28)
- compact:
- compat:
- core:
- GetHighlighter type inference, close #50 - by @antfu in https://github.com/shikijs/shiki/issues/50 (f6060)
- Dts naming conflicts - by @antfu (43455)
- Sub export types, fix #566 - by @antfu in https://github.com/shikijs/shiki/issues/566 (72824)
- dual-theme:
- markdown-it:
- Prepend builtin transformers, close #40 - by @antfu in https://github.com/shikijs/shiki/issues/40 (e653e)
- Improve types compactible with legacy resolution, close #44 - by @antfu in https://github.com/shikijs/shiki/issues/44 (cc23a)
- monaco:
- rehype-shikiji:
- Lazily initialize promise - by @jxom in https://github.com/shikijs/shiki/issues/112 (3d5b4)
- transformers:
- twoslash:
- Fix popover offset calculation - by @antfu (5c8fc)
- Avoid deps on typescript runtime - by @antfu (5d411)
- Should not throw when
throws: true- by @antfu (dd6c7) - Split tokens to match the twoslash nodes - by @antfu (9016d)
- Support targeting multiple tokens a node, more accurate result - by @antfu (23ece)
- Avoid genreate duplicate hovers - by @antfu (04352)
- Respect twoslash output lang - by @antfu (a5a8a)
- Completion on string quotes and literals - by @jxom and @antfu in https://github.com/shikijs/shiki/issues/99 (c1e9c)
- Completion on multifile - by @jxom and @antfu in https://github.com/shikijs/shiki/issues/100 (ac629)
- Adjust styles - by @antfu (2602b)
- Split tokens on completion - by @antfu (3f349)
- Improve css variables definition - by @antfu (68429)
- Improve types - by @antfu (5a177)
- twoslash/rich:
- types:
- vitepress:
- vitepress-plugin-twoslash:
- Improve tooltip experience - by @antfu (47aa2)
- Disable triggers for presistented popover - by @antfu (d21dc)
- Fix floating jump - by @kongmoumou in https://github.com/shikijs/shiki/issues/90 (c00cb)
- vitepress-twoslash:
🏎 Performance
- Optimize internal logic - by @antfu (852dd)
- Cleanup unused attribute in themes and langs - by @antfu (38c88)
- Skip
setThemeif theme hasn't changed - by @banga in https://github.com/shikijs/shiki/issues/66 (c6f82) - cli: Use Promise.all - by @Plumbiu in https://github.com/shikijs/shiki/issues/104 (ddb94)
- vitepress: Add v-pre to docs - by @antfu (72440)
View changes on GitHub
Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), 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.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.