shiki 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/themes.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { BundledThemeInfo, DynamicImportThemeRegistration } from '@shikijs/core';
1
+ import { BundledThemeInfo, DynamicImportThemeRegistration } from '@shikijs/types';
2
2
 
3
3
  declare const bundledThemesInfo: BundledThemeInfo[];
4
4
  type BundledTheme = 'andromeeda' | 'aurora-x' | 'ayu-dark' | 'catppuccin-frappe' | 'catppuccin-latte' | 'catppuccin-macchiato' | 'catppuccin-mocha' | 'dark-plus' | 'dracula' | 'dracula-soft' | 'everforest-dark' | 'everforest-light' | 'github-dark' | 'github-dark-default' | 'github-dark-dimmed' | 'github-dark-high-contrast' | 'github-light' | 'github-light-default' | 'github-light-high-contrast' | 'houston' | 'kanagawa-dragon' | 'kanagawa-lotus' | 'kanagawa-wave' | 'laserwave' | 'light-plus' | 'material-theme' | 'material-theme-darker' | 'material-theme-lighter' | 'material-theme-ocean' | 'material-theme-palenight' | 'min-dark' | 'min-light' | 'monokai' | 'night-owl' | 'nord' | 'one-dark-pro' | 'one-light' | 'plastic' | 'poimandres' | 'red' | 'rose-pine' | 'rose-pine-dawn' | 'rose-pine-moon' | 'slack-dark' | 'slack-ochin' | 'snazzy-light' | 'solarized-dark' | 'solarized-light' | 'synthwave-84' | 'tokyo-night' | 'vesper' | 'vitesse-black' | 'vitesse-dark' | 'vitesse-light';
@@ -160,15 +160,6 @@ interface RootContentMap {
160
160
  text: Text;
161
161
  }
162
162
 
163
- /**
164
- * Union of registered hast nodes.
165
- *
166
- * To register custom hast nodes, add them to {@link RootContentMap} and other
167
- * places where relevant.
168
- * They will be automatically added here.
169
- */
170
- type Nodes = Root | RootContent;
171
-
172
163
  // ## Abstract nodes
173
164
 
174
165
  /**
@@ -341,4 +332,4 @@ interface Text extends Literal {
341
332
  */
342
333
  interface TextData extends Data {}
343
334
 
344
- export type { Element as E, Nodes as N, Root as R, RootContent as a };
335
+ export type { Root as R };
package/dist/types.d.mts CHANGED
@@ -2,7 +2,6 @@ import { BundledLanguage } from './langs.mjs';
2
2
  import { BundledTheme } from './themes.mjs';
3
3
  export * from '@shikijs/core/types';
4
4
  import '@shikijs/types';
5
- import '@shikijs/core';
6
5
 
7
6
  type BuiltinLanguage = BundledLanguage;
8
7
  type BuiltinTheme = BundledTheme;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shiki",
3
3
  "type": "module",
4
- "version": "3.0.0",
4
+ "version": "3.1.0",
5
5
  "description": "A beautiful Syntax Highlighter.",
6
6
  "author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -48,17 +48,17 @@
48
48
  "dependencies": {
49
49
  "@shikijs/vscode-textmate": "^10.0.2",
50
50
  "@types/hast": "^3.0.4",
51
- "@shikijs/core": "3.0.0",
52
- "@shikijs/engine-javascript": "3.0.0",
53
- "@shikijs/engine-oniguruma": "3.0.0",
54
- "@shikijs/themes": "3.0.0",
55
- "@shikijs/langs": "3.0.0",
56
- "@shikijs/types": "3.0.0"
51
+ "@shikijs/engine-javascript": "3.1.0",
52
+ "@shikijs/core": "3.1.0",
53
+ "@shikijs/langs": "3.1.0",
54
+ "@shikijs/engine-oniguruma": "3.1.0",
55
+ "@shikijs/themes": "3.1.0",
56
+ "@shikijs/types": "3.1.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "rollup-plugin-copy": "^3.5.0",
60
- "tm-grammars": "^1.22.14",
61
- "tm-themes": "^1.9.12",
60
+ "tm-grammars": "^1.22.18",
61
+ "tm-themes": "^1.9.13",
62
62
  "vscode-oniguruma": "1.7.0"
63
63
  },
64
64
  "scripts": {