Skip to content

Commit 708e3f2

Browse files
committed
fix: warn about missing deprecation
1 parent 36f6737 commit 708e3f2

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

packages/engine-oniguruma/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"prepublishOnly": "nr build"
5252
},
5353
"dependencies": {
54+
"@shikijs/core": "workspace:*",
5455
"@shikijs/types": "workspace:*",
5556
"@shikijs/vscode-textmate": "catalog:"
5657
},

packages/engine-oniguruma/src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { LoadWasmOptions, RegexEngine } from '@shikijs/types'
22

3+
import { warnDeprecated } from '@shikijs/core'
34
import { loadWasm, OnigScanner, OnigString } from './oniguruma'
45

56
export { loadWasm }
@@ -36,8 +37,9 @@ export async function createOnigurumaEngine(options?: LoadWasmOptions | null): P
3637
}
3738

3839
/**
39-
* Deprecated. Use `createOnigurumaEngine` instead.
40+
* @deprecated Use `createOnigurumaEngine` instead.
4041
*/
4142
export async function createWasmOnigEngine(options?: LoadWasmOptions | null): Promise<RegexEngine> {
43+
warnDeprecated('Use `createOnigurumaEngine` instead.')
4244
return createOnigurumaEngine(options)
4345
}

pnpm-lock.yaml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)