Skip to content

Commit ec0bfd5

Browse files
committed
9.18.4
1 parent 2a04835 commit ec0bfd5

File tree

5 files changed

+34
-4
lines changed

5 files changed

+34
-4
lines changed

deprecated.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Reset = "\x1b[0m"
2+
FgRed = "\x1b[31m"
3+
FgWhite = "\x1b[37m"
4+
FgWhite = "\x1b[37m"
5+
Bright = "\x1b[1m"
6+
FgBlue = "\x1b[34m"
7+
BgRed = "\x1b[41m"
8+
9+
DEPRECATION = `
10+
${BgRed + FgWhite}
11+
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
12+
${Reset}${Bright}${FgWhite}
13+
Verion 9 of Highlight.js has reached EOL. It will no longer
14+
be supported or receive security updates in the future.
15+
Please upgrade to version 10.
16+
17+
For more info:
18+
${FgBlue}
19+
https://github.com/highlightjs/highlight.js/issues/2877
20+
https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md
21+
${BgRed + FgWhite}
22+
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
23+
${Reset}
24+
`.trim()
25+
26+
console.log(DEPRECATION)

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
# The short X.Y version.
5151
version = '9.18'
5252
# The full version, including alpha/beta/rc tags.
53-
release = '9.18.3'
53+
release = '9.18.4'
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.

package-lock.json

+1-1
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": "9.18.3",
9+
"version": "9.18.4",
1010
"author": {
1111
"name": "Ivan Sagalaev",
1212
"email": "[email protected]"
@@ -24,6 +24,7 @@
2424
"scripts": {
2525
"mocha": "mocha",
2626
"test": "mocha --globals document test",
27+
"postinstall": "node deprecated.js",
2728
"test-browser": "mocha --globals document test/browser"
2829
},
2930
"engines": {

tools/build.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ let commander = require('commander');
6464
let path = require('path');
6565
let Queue = require('gear').Queue;
6666
let registry = require('./tasks');
67+
let fs = require('fs');
6768

6869
let build, dir = {};
6970

@@ -85,5 +86,7 @@ new Queue({ registry: registry })
8586
.clean(dir.build)
8687
.log('Starting build.')
8788
.series(build(commander, dir))
89+
.read(["deprecated.js"])
90+
.dest("./build")
8891
.log('Finished build.')
89-
.run();
92+
.run()

0 commit comments

Comments
 (0)