Comparing version 2.7.0 to 2.8.0
export {lowlight} from './common.js' | ||
export type DoNotTochItRegistersLanguageFiles = any |
@@ -0,1 +1,4 @@ | ||
// @ts-expect-error: this registers types for the language files. | ||
/** @typedef {import('highlight.js/types/index.js')} DoNotTochItRegistersLanguageFiles */ | ||
import $1c from 'highlight.js/lib/languages/1c' | ||
@@ -2,0 +5,0 @@ import abnf from 'highlight.js/lib/languages/abnf' |
export {lowlight} from './core.js' | ||
export type DoNotTochItRegistersLanguageFiles = any |
@@ -0,1 +1,4 @@ | ||
// @ts-expect-error: this registers types for the language files. | ||
/** @typedef {import('highlight.js/types/index.js')} DoNotTochItRegistersLanguageFiles */ | ||
import arduino from 'highlight.js/lib/languages/arduino' | ||
@@ -2,0 +5,0 @@ import bash from 'highlight.js/lib/languages/bash' |
{ | ||
"name": "lowlight", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "Virtual syntax highlighting for virtual DOMs and non-HTML things", | ||
@@ -42,7 +42,7 @@ "license": "MIT", | ||
"fault": "^2.0.0", | ||
"highlight.js": "~11.6.0" | ||
"highlight.js": "~11.7.0" | ||
}, | ||
"devDependencies": { | ||
"@types/mdast": "^3.0.0", | ||
"@types/tape": "^4.0.0", | ||
"@types/node": "^18.0.0", | ||
"@types/unist": "^2.0.0", | ||
@@ -57,4 +57,2 @@ "c8": "^7.0.0", | ||
"remark-preset-wooorm": "^9.0.0", | ||
"rimraf": "^3.0.0", | ||
"tape": "^5.0.0", | ||
"type-coverage": "^2.0.0", | ||
@@ -64,11 +62,11 @@ "typescript": "^4.0.0", | ||
"unist-util-remove-position": "^4.0.0", | ||
"xo": "^0.50.0" | ||
"xo": "^0.53.0" | ||
}, | ||
"scripts": { | ||
"generate": "node script/build-registry.js", | ||
"prepublishOnly": "npm run build && npm run format", | ||
"build": "rimraf \"{lib,script,test}/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage", | ||
"prepack": "npm run generate && npm run build && npm run format", | ||
"generate": "node --conditions development script/build-registry.js", | ||
"build": "tsc --build --clean && tsc --build && type-coverage", | ||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", | ||
"test-api": "node --conditions development test/index.js", | ||
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api", | ||
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api", | ||
"test": "npm run generate && npm run build && npm run format && npm run test-coverage" | ||
@@ -101,4 +99,7 @@ }, | ||
"strict": true, | ||
"ignoreCatch": true | ||
"ignoreCatch": true, | ||
"ignoreFiles": [ | ||
"lib/common.d.ts" | ||
] | ||
} | ||
} |
@@ -74,3 +74,3 @@ <!--lint disable no-html--> | ||
This package is [ESM only][esm]. | ||
In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]: | ||
In Node.js (version 14.14+, 16.0+), install with [npm][]: | ||
@@ -125,3 +125,3 @@ ```sh | ||
This package exports the following identifier: `lowlight`. | ||
This package exports the identifier `lowlight`. | ||
There is no default export. | ||
@@ -369,4 +369,3 @@ | ||
This package is fully typed with [TypeScript][]. | ||
It exports additional `Root`, `Options`, and `AutoOptions` types that models | ||
their respective interfaces. | ||
It exports the additional types `Root`, `Options`, and `AutoOptions`. | ||
@@ -538,3 +537,3 @@ <!--Old name of the following section:--> | ||
* [ ] `roboconf` (`graph`, `instances`) — Roboconf | ||
* [ ] `routeros` (`mikrotik`) — Microtik RouterOS script | ||
* [ ] `routeros` (`mikrotik`) — MikroTik RouterOS script | ||
* [ ] `rsl` — RenderMan RSL | ||
@@ -546,3 +545,3 @@ * [x] `ruby` (`rb`, `gemspec`, `podspec`, `thor`, `irb`) — Ruby | ||
* [ ] `scala` — Scala | ||
* [ ] `scheme` — Scheme | ||
* [ ] `scheme` (`scm`) — Scheme | ||
* [ ] `scilab` (`sci`) — Scilab | ||
@@ -601,3 +600,3 @@ * [x] `scss` — SCSS | ||
This package is at least compatible with all maintained versions of Node.js. | ||
As of now, that is Node.js 12.20+, 14.14+, and 16.0+. | ||
As of now, that is Node.js 14.14+ and 16.0+. | ||
It also works in Deno and modern browsers. | ||
@@ -604,0 +603,0 @@ |
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
53360
16
799
684
+ Addedhighlight.js@11.7.0(transitive)
- Removedhighlight.js@11.6.0(transitive)
Updatedhighlight.js@~11.7.0