Skip to content

Releases: metonym/svelte-highlight

v1.0.1

23 Apr 22:12
Compare
Choose a tag to compare

Fixes

  • fix typos in README.md

v1.0.0

23 Apr 21:12
Compare
Choose a tag to compare

Breaking Changes

  • upgrade highlight.js to version 10.7
  • remove all forwarded events from Highlight, HighlightSvelte
  • remove legacy component; replace with Highlight.svelte as the default export
  • remove Rollup from build process; only ship Svelte source code and languages/styles as ESM
  • remove highlightjs-svelte dependency; use XML/JavaScript/CSS as sublanguages

Features

  • add HighlightAuto component that auto highlights code
  • major bundle size improvements by using only the core library

Fixes

  • correctly type languages/styles

Other

  • drop Node.js v12 from Travis CI build config

Documentation

  • use SvelteKit instead of Sapper for the documentation/live demo site
  • provide correct NPM install command

v0.7.1

13 Feb 22:54
Compare
Choose a tag to compare

Fixes

  • include types folder in published files

v0.7.0

13 Feb 22:24
Compare
Choose a tag to compare

Features

  • include highlighted markup in dispatched event detail

    <Highlight
      language="{typescript}"
      code="{code}"
      on:highlight="{(e) => {
        console.log(e.detail.highlighted); // "<span>...</span>"
      }}"
    />
  • add TypeScript definitions

Fixes

  • mark CSS styles as side effects

Other

  • make scripts compatible with Node.js v14
  • upgrade development dependencies
  • remove peerDependencies field