@shikijs/core 2.0.2 → 2.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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1776,7 +1776,7 @@ async function createShikiInternal(options) {
1776
1776
  warnDeprecated("`loadWasm` option is deprecated. Use `engine: createOnigurumaEngine(loadWasm)` instead.");
1777
1777
  }
1778
1778
  if (!options.engine) {
1779
- throw new Error("`engine` option is required.");
1779
+ warnDeprecated("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
1780
1780
  }
1781
1781
  const [
1782
1782
  themes,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/core",
3
3
  "type": "module",
4
- "version": "2.0.2",
4
+ "version": "2.1.0",
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/engine-javascript": "2.0.2",
67
- "@shikijs/engine-oniguruma": "2.0.2",
68
- "@shikijs/types": "2.0.2"
66
+ "@shikijs/engine-javascript": "2.1.0",
67
+ "@shikijs/engine-oniguruma": "2.1.0",
68
+ "@shikijs/types": "2.1.0"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "unbuild",