Releases: metonym/svelte-highlight
Releases · metonym/svelte-highlight
v2.0.0-rc.1
Fixes
- omit
.js
extension when importinghighlight.js
language - sort
types/styles/index.d.ts
by name
v2.0.0-rc.0
Breaking Changes
- upgrade
highlight.js
to the next major version (v11), which supports ESM- removed languages:
c-like
,htmlbars
,sql_more
- removed languages:
Features
- added languages:
nestedtext
,wasm
- 143 new styles
v2.0.0
v1.0.1
v1.0.0
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
v0.7.0
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