@shikijs/core 1.29.1 → 2.0.1
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/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ShikiError as ShikiError$1 } from '@shikijs/types';
|
|
2
2
|
export * from '@shikijs/types';
|
|
3
3
|
import { createOnigurumaEngine as createOnigurumaEngine$1, loadWasm as loadWasm$1, getDefaultWasmLoader } from '@shikijs/engine-oniguruma';
|
|
4
|
-
import { w as warnDeprecated } from './shared/core.
|
|
5
|
-
export { e as enableDeprecationWarnings } from './shared/core.
|
|
4
|
+
import { w as warnDeprecated } from './shared/core.5hv0Law9.mjs';
|
|
5
|
+
export { e as enableDeprecationWarnings } from './shared/core.5hv0Law9.mjs';
|
|
6
6
|
import { FontStyle, INITIAL, EncodedTokenMetadata, Registry as Registry$1, Theme } from '@shikijs/vscode-textmate';
|
|
7
7
|
export { FontStyle, EncodedTokenMetadata as StackElementMetadata } from '@shikijs/vscode-textmate';
|
|
8
8
|
import { toHtml } from 'hast-util-to-html';
|
|
@@ -244,7 +244,7 @@ class GrammarState {
|
|
|
244
244
|
lang: this.lang,
|
|
245
245
|
theme: this.theme,
|
|
246
246
|
themes: this.themes,
|
|
247
|
-
scopes: this.
|
|
247
|
+
scopes: this.getScopes()
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
250
|
}
|
package/dist/wasm-inlined.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"description": "Core of Shiki",
|
|
6
6
|
"author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"@shikijs/vscode-textmate": "^10.0.1",
|
|
64
64
|
"@types/hast": "^3.0.4",
|
|
65
65
|
"hast-util-to-html": "^9.0.4",
|
|
66
|
-
"@shikijs/
|
|
67
|
-
"@shikijs/engine-
|
|
68
|
-
"@shikijs/
|
|
66
|
+
"@shikijs/engine-javascript": "2.0.1",
|
|
67
|
+
"@shikijs/engine-oniguruma": "2.0.1",
|
|
68
|
+
"@shikijs/types": "2.0.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "unbuild",
|