ITADN
shikijs/shiki

版本发布 8

v4.0.0
? · 2026-02-27

### &nbsp;&nbsp;&nbsp;🚨 Breaking Changes - Drop Node v18 support, remove deprecated APIs &nbsp;-&nbsp; by @antfu in https://github.com/shikijs/shiki/issues/1249 [<samp>(cdca9)</samp>](https://github.com/shikijs/shiki/commit/cdca9945) ### &nbsp;&nbsp;&nbsp;🚀 Features - A leaner `@shikijs/primitive` package &nbsp;-&nbsp; by @antfu in https://github.com/shikijs/shiki/issues/1251 [<samp>(05a77)</samp>](https://github.com/shikijs/shiki/commit/05a77f1b) - New `@shikijs/markdown-exit` package &nbsp;-&nbsp; by @antfu [<samp>(d1257)</samp>](https://github.com/shikijs/shiki/commit/d1257c25) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/shikijs/shiki/compare/v3.23.0...v4.0.0)

v3.22.0
? · 2026-01-30

### &nbsp;&nbsp;&nbsp;🚀 Features - Update grammar and themes &nbsp;-&nbsp; by @antfu [<samp>(40676)</samp>](https://github.com/shikijs/shiki/commit/40676761) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/shikijs/shiki/compare/v3.21.0...v3.22.0)

v3.21.0
? · 2026-01-07

### &nbsp;&nbsp;&nbsp;🚀 Features - Update grammar &nbsp;-&nbsp; by @antfu [<samp>(6d109)</samp>](https://github.com/shikijs/shiki/commit/6d109ce4) - **core**: Preserve HAST data and properties in codeToHast &nbsp;-&nbsp; by @AmanCrafts in https://github.com/shikijs/shiki/issues/1204 [<samp>(747ea)</samp>](https://github.com/shikijs/shiki/commit/747eabd9) ### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes - **vitepress-twoslash**: Fix scroll blocking on mobile viewports &nbsp;-&nbsp; by @dahlia in https://github.com/shikijs/shiki/issues/1235 [<samp>(8e931)</samp>](https://github.com/shikijs/shiki/commit/8e9314f0) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/shikijs/shiki/compare/v3.20.0...v3.21.0)

v3.18.0
? · 2025-12-02

### &nbsp;&nbsp;&nbsp;🚀 Features - **transformers**: Support `zeroIndexed` option to `transformerMetaHighlight` &nbsp;-&nbsp; by @manak-sharma20 in https://github.com/shikijs/shiki/issues/1149 [<samp>(c39ff)</samp>](https://github.com/shikijs/shiki/commit/c39ff79a) ### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes - **core**: - Correct offset calculation in mergeWhitespaceTokens &nbsp;-&nbsp; by @Karthikeya1500 in https://github.com/shikijs/shiki/issues/1162 [<samp>(15e73)</samp>](https://github.com/shikijs/shiki/commit/15e73459) - Allow `langAlias` to special languages, close #1164 &nbsp;-&nbsp; by @antfu in https://github.com/shikijs/shiki/issues/1164 [<samp>(45ab1)</samp>](https://github.com/shikijs/shiki/commit/45ab19a6) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/shikijs/shiki/compare/v3.17.1...v3.18.0)

v3.12.3
? · 2025-09-19

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes - `@shikijs/twoslash` version specifier &nbsp;-&nbsp; by @9romise in https://github.com/shikijs/shiki/issues/1078 [<samp>(a1cde)</samp>](https://github.com/shikijs/shiki/commit/a1cdea41) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/shikijs/shiki/compare/v3.12.2...v3.12.3)

v3.12.2
? · 2025-09-03

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes - **twoslash**: Fix `onTwoslashError` return value handling &nbsp;-&nbsp; by @Karibash in https://github.com/shikijs/shiki/issues/1070 [<samp>(e86b0)</samp>](https://github.com/shikijs/shiki/commit/e86b0a7c) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/shikijs/shiki/compare/v3.12.1...v3.12.2)

v3.12.0
? · 2025-08-27

### &nbsp;&nbsp;&nbsp;🚀 Features - **vitepress-twoslash**: - Improve UX for option customization &nbsp;-&nbsp; by @9romise in https://github.com/shikijs/shiki/issues/1066 [<samp>(e3cfd)</samp>](https://github.com/shikijs/shiki/commit/e3cfdeca) - Twoslash inline type cache for markdown &nbsp;-&nbsp; by @serkodev and @antfu in https://github.com/shikijs/shiki/issues/1063 [<samp>(dc7fb)</samp>](https://github.com/shikijs/shiki/commit/dc7fbc70) ### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes - **remove-notation-escape**: Correct escape sequence &nbsp;-&nbsp; by @sor4chi in https://github.com/shikijs/shiki/issues/1065 [<samp>(22d0c)</samp>](https://github.com/shikijs/shiki/commit/22d0c780) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/shikijs/shiki/compare/v3.11.0...v3.12.0)

v3.11.0
? · 2025-08-19

### &nbsp;&nbsp;&nbsp;🚀 Features - **core**: Add `enforce` options to `ShikiTransformer` &nbsp;-&nbsp; by @serkodev and @antfu in https://github.com/shikijs/shiki/issues/1062 [<samp>(8ad05)</samp>](https://github.com/shikijs/shiki/commit/8ad05bd8) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/shikijs/shiki/compare/v3.10.0...v3.11.0)