Détail du package

@gerrit0/mini-shiki

Gerrit02.6mMIT3.7.0

This is a re-bundled version of Shiki which strips out the dependencies which aren't necessary for TypeDoc's usage.

readme

@gerrit0/mini-shiki

This is a re-bundled version of Shiki which strips out the dependencies which aren't necessary for TypeDoc's usage.

Why?

Compare Shiki's dependency tree:

To this package's dependency tree:

The Shiki maintainers have declined to split up the package in a way which makes it possible to avoid these dependencies when just relying on shikijs published packages.

Releases

This package will be released and keep the same major/minor version numbers as Shiki. Patch versions will generally be the same as Shiki, but may differ if adjustments are necessary to fix compatibility issues.

ESM / CommonJS

This package is ESM, but does not use top level await, so may be required in Node 23, or Node 20.17+ with the --experimental-require-module flag.

Usage

import {
  codeToTokensWithThemes,
  createShikiInternal,
  createOnigurumaEngine,
  bundledLanguages,
  bundledThemes,
  loadBuiltinWasm,
} from "@gerrit0/mini-shiki";

await loadBuiltinWasm();
const shiki = await createShikiInternal({
  engine: createOnigurumaEngine(),
  langs: [bundledLanguages.typescript],
  themes: [bundledThemes["light-plus"]],
});

const lines = codeToTokensWithThemes(shiki, "console.log('Hello world!')", {
  themes: { light: "light-plus" },
  lang: "typescript",
});

changelog

Changelog

v3.7.0 (2025-06-21)

  • Update to Shiki v3.7.0

v3.6.0 (2025-06-07)

  • Update to Shiki v3.6.0

v3.5.0 (2025-06-05)

  • Update to Shiki v3.5.0

v3.4.2 (2025-05-16)

  • Update to Shiki v3.4.2

v3.4.1 (2025-05-15)

  • Update to Shiki v3.4.1

v3.4.0 (2025-05-07)

  • Update to Shiki v3.4.0

v3.3.0 (2025-04-23)

  • Update to Shiki v3.3.0

v3.2.3 (2025-04-11)

  • Update to Shiki v3.2.2

v3.2.2 (2025-03-31)

  • Don't bundle @shikijs/langs and @shikijs/themes, #2 (@ocavue)

v3.2.1 (2025-03-12)

  • Update to Shiki v3.2.1

v3.1.0 (2025-02-28)

  • Update to Shiki v3.1.0

v3.0.0 (2025-02-19)

  • Update to Shiki v3.0.0

v2.4.2 (2025-02-18)

  • Update to Shiki v2.4.2

v2.4.1 (2025-02-16)

  • Update to Shiki v2.4.1

v2.3.2 (2025-02-07)

  • Update to Shiki v2.3.2

v2.3.1 (2025-02-06)

  • Update to Shiki v2.3.1

v2.3.0 (2025-02-05)

  • Update to Shiki v2.3.0

v2.2.0 (2025-01-31)

  • Update to Shiki v2.2.0

v2.1.0 (2025-01-23)

  • Update to Shiki v2.1.0

v2.0.3 (2025-01-21)

  • Update to Shiki v2.0.3

v1.27.2 (2025-01-16)

  • Update to Shiki v1.27.2

v1.27.0 (2025-01-15)

  • Update to Shiki v1.27.0

v1.26.1 (2025-01-04)

  • Update to Shiki v1.26.1

v1.25.1 (2025-01-03)

  • Update to Shiki v1.25.1

v1.24.4 (2024-12-22)

  • Update to Shiki v1.24.4

v1.24.3 (2024-12-20)

  • Update to Shiki v1.24.3

v1.24.4 (2024-12-13)

  • Update to Shiki v1.24.2

v1.24.3 (2024-12-11)

  • Update to Shiki v1.24.2

v1.24.2 (2024-12-10)

  • Update to Shiki v1.24.1

v1.24.1 (2024-11-29)

  • Support require with Node's --experimental-require-module flag

v1.24.0 (2024-11-28)

  • Update to Shiki v1.24.0

v1.23.2 (2024-11-24)

  • Fix publish, include built source

v1.23.1 (2024-11-24)

  • Initial release, Shiki v1.23.1