Skip to content

Releases: metonym/svelte-highlight

v6.2.1

07 Aug 17:01
Compare
Choose a tag to compare

Fixes

  • generate types for svelte-highlight/languages/*, svelte-highlight/styles/* (5ea7dbd, #231)

Documentation

v6.2.0

13 Jul 15:35
Compare
Choose a tag to compare

Features

v6.1.2

02 Jul 15:54
Compare
Choose a tag to compare

Fixes

  • remove language prop type from HighlightAuto TypeScript definitions (f66e5ed, #217)

v6.1.1

27 Jun 12:22
Compare
Choose a tag to compare

Refactor

  • remove unnecessary language null check when setting data-language attribute (1a6ba47, #213)
  • reduce .langtag CSS specificity (64a7596, #211)

v6.1.0

10 Jun 14:44
Compare
Choose a tag to compare

Features

Documentation

  • fix prop table types and default values (63bdb01)

v6.0.1

26 Mar 17:23
Compare
Choose a tag to compare
  • update generated SUPPORTED_LANGUAGES.md and SUPPORTED_STYLES.md

v6.0.0

26 Mar 17:23
Compare
Choose a tag to compare

Breaking Changes

  • use SvelteKit to package the library and auto-generate TypeScript definitions
    • styles are moved from src/styles to styles
    • languages are moved from src/languages to languages
- import github from "svelte-highlight/src/styles/github";
+ import github from "svelte-highlight/styles/github";

- import typescript from "svelte-highlight/src/languages/typescript";
+ import typescript from "svelte-highlight/languages/typescript";

v5.3.2

17 Mar 03:05
Compare
Choose a tag to compare

Documentation

  • specify in docs that vite should optimize both "highlight.js" and "highlight.js/lib/core" if using SvelteKit or vite
# svelte.config.js
export default {
  kit: {
+   vite: {
+     optimizeDeps: {
+       include: ["highlight.js", "highlight.js/lib/core"],
+     },
+   },
  },
};

v5.3.1

17 Mar 02:40
Compare
Choose a tag to compare

Fixes

  • use default highlight.js library for HighlightAuto

v5.3.0

12 Mar 17:05
Compare
Choose a tag to compare

Features

  • upgrade highlight.js to version 11.5.0 (net +1 language, +3 styles)
    • languages: graphql
    • styles: felipec, tokyo-night-dark, tokyo-night-light