Skip to content

Commit

Permalink
v7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Dec 30, 2022
1 parent 4b84dac commit 280ac45
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [7.0.0](https://github.com/metonym/svelte-highlight/releases/tag/v7.0.0) - 2022-12-30

**Breaking Changes**

- rename langtag style props
- `--hljs-background` -> `--langtag-background`
- `--hljs-foreground` -> `--langtag-color`
- `--hljs-radius` -> `--langtag-border-radius`
- mark `code`, `language` as required props

**Features**

- include inferred `language` in `on:highlight` event detail in `HighlightAuto`
- add `LineNumbers` component to support rendering line numbers
- upgrade `highlight.js` to version [11.7.0](https://github.com/highlightjs/highlight.js/releases/tag/11.7.0)

**Fixes**

- use `HTMLAttributes` from `svelte/elements` to correctly type `$$restProps`

## [6.2.1](https://github.com/metonym/svelte-highlight/releases/tag/v6.2.1) - 2022-08-07

**Fixes**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-highlight",
"version": "6.2.1",
"version": "7.0.0",
"license": "MIT",
"description": "Syntax Highlighting for Svelte using highlight.js",
"author": "Eric Liu (https://github.com/metonym)",
Expand Down

0 comments on commit 280ac45

Please sign in to comment.