You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shiki v4.0.0 drops support for Node.js 18 and remove deprecated APIs.
8
+
9
+
In Shiki, new features are shipped in minor releases progressively, while the major releases are for cleaning up and removing deprecated APIs.
10
+
11
+
## Breaking Changes
12
+
13
+
### Node.js 18 Dropped
14
+
15
+
Shiki v4 requires **Node.js ≥ 20**. Node.js 18 reached End-of-Life in April 2025 and is no longer supported.
16
+
17
+
If you are running Node.js 18, please upgrade to Node.js 20 LTS or later before upgrading to Shiki v4.
18
+
19
+
### Deprecated APIs Removed
20
+
21
+
#### `CreatedBundledHighlighterOptions` Removed
22
+
23
+
The `CreatedBundledHighlighterOptions` interface (a typo, with "Created" instead of "Create") has been removed. Use `CreateBundledHighlighterOptions` instead:
#### `theme` Option Removed in `TwoslashFloatingVue`
40
+
41
+
The singular `theme` option passed to `TwoslashFloatingVue` (from `@shikijs/vitepress-twoslash`) has been removed. Use `themes` instead:
42
+
43
+
```ts
44
+
app.use(TwoslashFloatingVue, {
45
+
theme: { /* ... */ }, // [!code --]
46
+
themes: { /* ... */ }, // [!code ++]
47
+
})
48
+
```
49
+
50
+
#### CSS Class `twoslash-query-presisted` Removed
51
+
52
+
The misspelled CSS class `twoslash-query-presisted` (note the typo — missing the second `s`) has been removed. Use the correct `twoslash-query-persisted` instead.
Copy file name to clipboardExpand all lines: docs/guide/migrate.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@ outline: deep
6
6
7
7
We suggest you to migrate step by step, following each version's migration guide.
8
8
9
+
## Migrate from v3.0
10
+
11
+
If you are on v3.0, v4.0 only drops support for Node.js 18 and remove deprecated APIs, so you should be able to directly bump to v4.0. Read [Shiki v4.0](/blog/v4) for more details.
12
+
9
13
## Migrate from v2.0
10
14
11
15
If you are on v2.0 and there is no warning in your usage, you should be able to directly bump to v3.0, read [Shiki v3.0](/blog/v3) for more details.
0 commit comments