@shikijs/engine-oniguruma 2.5.0 → 3.0.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/index.d.mts CHANGED
@@ -12,9 +12,5 @@ declare function setDefaultWasmLoader(_loader: LoadWasmOptions): void;
12
12
  */
13
13
  declare function getDefaultWasmLoader(): LoadWasmOptions | undefined;
14
14
  declare function createOnigurumaEngine(options?: LoadWasmOptions | null): Promise<RegexEngine>;
15
- /**
16
- * @deprecated Use `createOnigurumaEngine` instead.
17
- */
18
- declare function createWasmOnigEngine(options?: LoadWasmOptions | null): Promise<RegexEngine>;
19
15
 
20
- export { createOnigurumaEngine, createWasmOnigEngine, getDefaultWasmLoader, loadWasm, setDefaultWasmLoader };
16
+ export { createOnigurumaEngine, getDefaultWasmLoader, loadWasm, setDefaultWasmLoader };
package/dist/index.mjs CHANGED
@@ -448,8 +448,5 @@ async function createOnigurumaEngine(options) {
448
448
  }
449
449
  };
450
450
  }
451
- async function createWasmOnigEngine(options) {
452
- return createOnigurumaEngine(options);
453
- }
454
451
 
455
- export { createOnigurumaEngine, createWasmOnigEngine, getDefaultWasmLoader, loadWasm, setDefaultWasmLoader };
452
+ export { createOnigurumaEngine, getDefaultWasmLoader, loadWasm, setDefaultWasmLoader };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/engine-oniguruma",
3
3
  "type": "module",
4
- "version": "2.5.0",
4
+ "version": "3.0.0",
5
5
  "description": "Engine for Shiki using Oniguruma RegExp engine in WebAssembly",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -19,35 +19,18 @@
19
19
  ],
20
20
  "sideEffects": false,
21
21
  "exports": {
22
- ".": {
23
- "types": "./dist/index.d.mts",
24
- "default": "./dist/index.mjs"
25
- },
26
- "./wasm-inlined": {
27
- "types": "./dist/wasm-inlined.d.mts",
28
- "default": "./dist/wasm-inlined.mjs"
29
- }
22
+ ".": "./dist/index.mjs",
23
+ "./wasm-inlined": "./dist/wasm-inlined.mjs"
30
24
  },
31
25
  "main": "./dist/index.mjs",
32
26
  "module": "./dist/index.mjs",
33
27
  "types": "./dist/index.d.mts",
34
- "typesVersions": {
35
- "*": {
36
- "wasm-inlined": [
37
- "./dist/wasm-inlined.d.mts"
38
- ],
39
- "*": [
40
- "./dist/*",
41
- "./*"
42
- ]
43
- }
44
- },
45
28
  "files": [
46
29
  "dist"
47
30
  ],
48
31
  "dependencies": {
49
32
  "@shikijs/vscode-textmate": "^10.0.2",
50
- "@shikijs/types": "2.5.0"
33
+ "@shikijs/types": "3.0.0"
51
34
  },
52
35
  "devDependencies": {
53
36
  "vscode-oniguruma": "1.7.0"