@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.Bn_XU0Iv.mjs';
5
- export { e as enableDeprecationWarnings } from './shared/core.Bn_XU0Iv.mjs';
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.scopes
247
+ scopes: this.getScopes()
248
248
  };
249
249
  }
250
250
  }
@@ -1,4 +1,4 @@
1
- let _emitDeprecation = false;
1
+ let _emitDeprecation = 3;
2
2
  let _emitError = false;
3
3
  function enableDeprecationWarnings(emitDeprecation = true, emitError = false) {
4
4
  _emitDeprecation = emitDeprecation;
@@ -1,4 +1,4 @@
1
- import { w as warnDeprecated } from './shared/core.Bn_XU0Iv.mjs';
1
+ import { w as warnDeprecated } from './shared/core.5hv0Law9.mjs';
2
2
  export * from '@shikijs/engine-oniguruma/wasm-inlined';
3
3
  export { default } from '@shikijs/engine-oniguruma/wasm-inlined';
4
4
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/core",
3
3
  "type": "module",
4
- "version": "1.29.1",
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/types": "1.29.1",
67
- "@shikijs/engine-javascript": "1.29.1",
68
- "@shikijs/engine-oniguruma": "1.29.1"
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",