@shikijs/core
Advanced tools
Comparing version 1.29.0 to 1.29.1
@@ -281,15 +281,16 @@ import { CreatedBundledHighlighterOptions, CreateHighlighterFactory, LanguageInput, ThemeInput, HighlighterCoreOptions, CodeToHastOptions, CodeToTokensOptions, TokensResult, RequireKeys, CodeToTokensBaseOptions, ThemedToken, CodeToTokensWithThemesOptions, ThemedTokenWithVariants, BundledHighlighterOptions, HighlighterGeneric, GrammarState, HighlighterCore, ShikiInternal, RegexEngine, LoadWasmOptions, ShikiTransformerContextCommon, CodeToHastRenderOptions, ShikiTransformerContextSource, ThemeRegistrationResolved, TokenizeWithThemeOptions, Grammar, ThemeRegistrationAny, ThemeRegistration, ShikiTransformer, MaybeArray, PlainTextLanguage, SpecialLanguage, SpecialTheme, MaybeGetter, TokenStyles, Position } from '@shikijs/types'; | ||
type DeprecationTarget = 3; | ||
/** | ||
* Enable runtime warning for deprecated APIs, for the future versions of Shiki. | ||
* | ||
* Disabled by default, will be enabled in Shiki v2. | ||
* You can pass a major version to only warn for deprecations that will be removed in that version. | ||
* | ||
* @experimental The accuracy of the warning messages is not yet guaranteed. | ||
* By default, deprecation warning is set to 3 since Shiki v2.0.0 | ||
*/ | ||
declare function enableDeprecationWarnings(value?: boolean): void; | ||
declare function enableDeprecationWarnings(emitDeprecation?: DeprecationTarget | boolean, emitError?: boolean): void; | ||
/** | ||
* @internal | ||
*/ | ||
declare function warnDeprecated(message: string): void; | ||
declare function warnDeprecated(message: string, version?: DeprecationTarget): void; | ||
export { type CssVariablesThemeOptions, type ShorthandsBundle, addClassToHast, applyColorReplacements, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createCssVariablesTheme, createHighlighterCore, createHighlighterCoreSync, createJavaScriptRegexEngine, createOnigurumaEngine, createPositionConverter, createShikiInternal, createShikiInternalSync, createSingletonShorthands, createWasmOnigEngine, createdBundledHighlighter, defaultJavaScriptRegexConstructor, enableDeprecationWarnings, getHighlighterCore, getShikiInternal, getSingletonHighlighterCore, getTokenStyleObject, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, loadWasm, makeSingletonHighlighter, makeSingletonHighlighterCore, normalizeGetter, normalizeTheme, resolveColorReplacements, splitLines, splitToken, splitTokens, stringifyTokenStyle, toArray, tokenizeAnsiWithTheme, tokenizeWithTheme, tokensToHast, transformerDecorations, warnDeprecated }; |
{ | ||
"name": "@shikijs/core", | ||
"type": "module", | ||
"version": "1.29.0", | ||
"version": "1.29.1", | ||
"description": "Core of Shiki", | ||
@@ -66,5 +66,5 @@ "author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>", | ||
"hast-util-to-html": "^9.0.4", | ||
"@shikijs/engine-oniguruma": "1.29.0", | ||
"@shikijs/engine-javascript": "1.29.0", | ||
"@shikijs/types": "1.29.0" | ||
"@shikijs/types": "1.29.1", | ||
"@shikijs/engine-javascript": "1.29.1", | ||
"@shikijs/engine-oniguruma": "1.29.1" | ||
}, | ||
@@ -71,0 +71,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
106569
2516
+ Added@shikijs/engine-javascript@1.29.1(transitive)
+ Added@shikijs/engine-oniguruma@1.29.1(transitive)
+ Added@shikijs/types@1.29.1(transitive)
- Removed@shikijs/engine-javascript@1.29.0(transitive)
- Removed@shikijs/engine-oniguruma@1.29.0(transitive)
- Removed@shikijs/types@1.29.0(transitive)
Updated@shikijs/types@1.29.1