Skip to content

Commit 421b23b

Browse files
committed
(chore) fix TS issue, bump 10.7.1
1 parent 7ec45af commit 421b23b

File tree

8 files changed

+35
-16
lines changed

8 files changed

+35
-16
lines changed

CHANGES.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## Version 10.7.0
1+
## Version 10.7.1
2+
3+
- fix(parser) Resolves issues with TypeScript types [Josh Goebel][]
4+
5+
### Version 10.7.0
26

37
Parser:
48

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -271,28 +271,28 @@ see [DIGESTS.md](https://github.com/highlightjs/cdn-release/blob/main/DIGESTS.md
271271
**cdnjs** ([link](https://cdnjs.com/libraries/highlight.js))
272272

273273
```html
274-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.0/styles/default.min.css">
275-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.0/highlight.min.js"></script>
274+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/styles/default.min.css">
275+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/highlight.min.js"></script>
276276
<!-- and it's easy to individually load additional languages -->
277-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.0/languages/go.min.js"></script>
277+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/languages/go.min.js"></script>
278278
```
279279

280280
**jsdelivr** ([link](https://www.jsdelivr.com/package/gh/highlightjs/cdn-release))
281281

282282
```html
283-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/[email protected].0/build/styles/default.min.css">
284-
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected].0/build/highlight.min.js"></script>
283+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/[email protected].1/build/styles/default.min.css">
284+
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected].1/build/highlight.min.js"></script>
285285
<!-- and it's easy to individually load additional languages -->
286-
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected].0/build/languages/go.min.js"></script>
286+
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected].1/build/languages/go.min.js"></script>
287287
```
288288

289289
**unpkg** ([link](https://unpkg.com/browse/@highlightjs/cdn-assets/))
290290

291291
```html
292-
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/[email protected].0/styles/default.min.css">
293-
<script src="https://unpkg.com/@highlightjs/[email protected].0/highlight.min.js"></script>
292+
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/[email protected].1/styles/default.min.css">
293+
<script src="https://unpkg.com/@highlightjs/[email protected].1/highlight.min.js"></script>
294294
<!-- and it's easy to individually load additional languages -->
295-
<script src="https://unpkg.com/@highlightjs/[email protected].0/languages/go.min.js"></script>
295+
<script src="https://unpkg.com/@highlightjs/[email protected].1/languages/go.min.js"></script>
296296
```
297297

298298
**Note:** *The CDN-hosted `highlight.min.js` package doesn't bundle every language.* It would be

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Due to both time and resource constrains the Highlight.js core team only fully s
66

77
| Version | Supported | Status |
88
| :-----: | :-: | :------ |
9-
| 10.7.0 | :white_check_mark: &nbsp; :closed_lock_with_key: | The 10.x series recieves regular updates, new features & bug fixes. |
9+
| 10.7.1 | :white_check_mark: &nbsp; :closed_lock_with_key: | The 10.x series recieves regular updates, new features & bug fixes. |
1010
| <= 10.4.0 | :x: | Known vulnerabities. *Please upgrade to a more recent 10.x release.* |
1111
| 9.18.5 | :x: | [EOL](https://github.com/highlightjs/highlight.js/issues/2877). No longer supported. See [VERSION_10_UPGRADE.md](https://github.com/highlightjs/highlight.js/blob/main/VERSION_10_UPGRADE.md). |
1212
| <= 9.18.3 | :x: | No longer supported. Known vulnerabities. |

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# built documents.
4949

5050
# The full version, including alpha/beta/rc tags.
51-
release = '10.7.0'
51+
release = '10.7.1'
5252
# The short X.Y version.
5353
version = ".".join(release.split(".")[:2])
5454

package-lock.json

+15-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"syntax"
77
],
88
"homepage": "https://highlightjs.org/",
9-
"version": "10.7.0",
9+
"version": "10.7.1",
1010
"author": {
1111
"name": "Ivan Sagalaev",
1212
"email": "[email protected]"
@@ -55,6 +55,7 @@
5555
"@rollup/plugin-commonjs": "^17.0.0",
5656
"@rollup/plugin-json": "^4.1.0",
5757
"@rollup/plugin-node-resolve": "^11.1.0",
58+
"@types/mocha": "^8.2.2",
5859
"@typescript-eslint/eslint-plugin": "^4.6.1",
5960
"@typescript-eslint/parser": "^4.6.1",
6061
"clean-css": "^5.0.1",

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
4343
// "typeRoots": ["./"], /* List of folders to include type definitions from. */
4444
"types": [
45+
"mocha",
4546
"./types/index"
4647
], /* Type declaration files to be included in compilation. */
4748
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface VuePlugin {
1515
}
1616

1717
interface PublicApi {
18-
highlight: (languageName: string, code: string, ignoreIllegals?: boolean, continuation?: Mode) => HighlightResult
18+
highlight: (codeOrlanguageName: string, optionsOrCode: string | HighlightOptions, ignoreIllegals?: boolean, continuation?: Mode) => HighlightResult
1919
highlightAuto: (code: string, languageSubset?: string[]) => AutoHighlightResult
2020
fixMarkup: (html: string) => string
2121
highlightBlock: (element: HTMLElement) => void

0 commit comments

Comments
 (0)