@shikijs/core 1.0.0-rc.0 → 1.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.
@@ -929,13 +929,13 @@ interface BundledHighlighterOptions<L extends string, T extends string> {
929
929
  *
930
930
  * @default []
931
931
  */
932
- themes?: (ThemeInput | StringLiteralUnion<T>)[];
932
+ themes: (ThemeInput | StringLiteralUnion<T>)[];
933
933
  /**
934
934
  * Language registation
935
935
  *
936
- * @default Object.keys(bundledThemes)
936
+ * @default []
937
937
  */
938
- langs?: (LanguageInput | StringLiteralUnion<L> | SpecialLanguage)[];
938
+ langs: (LanguageInput | StringLiteralUnion<L> | SpecialLanguage)[];
939
939
  /**
940
940
  * Alias of languages
941
941
  * @example { 'my-lang': 'javascript' }
package/dist/index.d.mts CHANGED
@@ -12,7 +12,7 @@ export { l as loadWasm } from './chunk-index.mjs';
12
12
  */
13
13
  declare function getHighlighterCore(options?: HighlighterCoreOptions): Promise<HighlighterCore>;
14
14
 
15
- type GetHighlighterFactory<L extends string, T extends string> = (options?: BundledHighlighterOptions<L, T>) => Promise<HighlighterGeneric<L, T>>;
15
+ type GetHighlighterFactory<L extends string, T extends string> = (options: BundledHighlighterOptions<L, T>) => Promise<HighlighterGeneric<L, T>>;
16
16
  /**
17
17
  * Create a `getHighlighter` function with bundled themes and languages.
18
18
  *
package/dist/index.mjs CHANGED
@@ -5356,7 +5356,7 @@ async function getHighlighterCore(options = {}) {
5356
5356
  * @param loadWasm
5357
5357
  */
5358
5358
  function createdBundledHighlighter(bundledLanguages, bundledThemes, loadWasm) {
5359
- async function getHighlighter(options = {}) {
5359
+ async function getHighlighter(options) {
5360
5360
  function resolveLang(lang) {
5361
5361
  if (typeof lang === 'string') {
5362
5362
  if (isSpecialLang(lang))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/core",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.0",
4
+ "version": "1.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",