Comparing version 2.8.1 to 2.9.0
@@ -34,3 +34,3 @@ export namespace lowlight { | ||
*/ | ||
subset?: string[] | undefined | ||
subset?: Array<string> | ||
} | ||
@@ -44,3 +44,3 @@ /** | ||
*/ | ||
prefix?: string | undefined | ||
prefix?: string | ||
} | ||
@@ -47,0 +47,0 @@ export type AutoOptions = Options & ExtraOptions |
@@ -61,2 +61,4 @@ /** | ||
// @ts-expect-error: Types out of date. | ||
// See: <https://github.com/highlightjs/highlight.js/issues/3621#issuecomment-1528841888> | ||
high.configure({__emitter: HastEmitter, classPrefix: prefix}) | ||
@@ -235,8 +237,12 @@ | ||
/** | ||
* @param {string} value | ||
* @param {string} name | ||
* | ||
* @param {unknown} rawName | ||
*/ | ||
addKeyword(value, name) { | ||
this.openNode(name) | ||
this.addText(value) | ||
startScope(rawName) { | ||
this.openNode(String(rawName)) | ||
} | ||
/** | ||
*/ | ||
endScope() { | ||
this.closeNode() | ||
@@ -249,3 +255,3 @@ } | ||
*/ | ||
addSublanguage(other, name) { | ||
__addSublanguage(other, name) { | ||
const current = this.stack[this.stack.length - 1] | ||
@@ -297,6 +303,2 @@ const results = other.root.children | ||
*/ | ||
closeAllNodes() {} | ||
/** | ||
*/ | ||
finalize() {} | ||
@@ -303,0 +305,0 @@ |
{ | ||
"name": "lowlight", | ||
"version": "2.8.1", | ||
"version": "2.9.0", | ||
"description": "Virtual syntax highlighting for virtual DOMs and non-HTML things", | ||
@@ -43,7 +43,7 @@ "license": "MIT", | ||
"fault": "^2.0.0", | ||
"highlight.js": "~11.7.0" | ||
"highlight.js": "~11.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/mdast": "^3.0.0", | ||
"@types/node": "^18.0.0", | ||
"@types/node": "^20.0.0", | ||
"@types/unist": "^2.0.0", | ||
@@ -59,6 +59,6 @@ "c8": "^7.0.0", | ||
"type-coverage": "^2.0.0", | ||
"typescript": "^4.0.0", | ||
"typescript": "^5.0.0", | ||
"unist-builder": "^3.0.0", | ||
"unist-util-remove-position": "^4.0.0", | ||
"xo": "^0.53.0" | ||
"xo": "^0.54.0" | ||
}, | ||
@@ -65,0 +65,0 @@ "scripts": { |
@@ -470,3 +470,3 @@ <!--lint disable no-html--> | ||
* [x] `java` (`jsp`) — Java | ||
* [x] `javascript` (`js`, `jsx`, `mjs`, `cjs`) — Javascript | ||
* [x] `javascript` (`js`, `jsx`, `mjs`, `cjs`) — JavaScript | ||
* [ ] `jboss-cli` (`wildfly-cli`) — JBoss CLI | ||
@@ -524,3 +524,3 @@ * [x] `json` — JSON | ||
* [ ] `properties` — .properties | ||
* [ ] `protobuf` — Protocol Buffers | ||
* [ ] `protobuf` (`proto`) — Protocol Buffers | ||
* [ ] `puppet` (`pp`) — Puppet | ||
@@ -564,3 +564,3 @@ * [ ] `purebasic` (`pb`, `pbi`) — PureBASIC | ||
* [ ] `twig` (`craftcms`) — Twig | ||
* [x] `typescript` (`ts`, `tsx`) — TypeScript | ||
* [x] `typescript` (`ts`, `tsx`, `mts`, `cts`) — TypeScript | ||
* [ ] `vala` — Vala | ||
@@ -567,0 +567,0 @@ * [x] `vbnet` (`vb`) — Visual Basic .NET |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53480
801
+ Addedhighlight.js@11.8.0(transitive)
- Removedhighlight.js@11.7.0(transitive)
Updatedhighlight.js@~11.8.0