File tree 5 files changed +34
-4
lines changed
5 files changed +34
-4
lines changed Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change 50
50
# The short X.Y version.
51
51
version = '9.18'
52
52
# The full version, including alpha/beta/rc tags.
53
- release = '9.18.3 '
53
+ release = '9.18.4 '
54
54
55
55
# The language for content autogenerated by Sphinx. Refer to documentation
56
56
# for a list of supported languages.
Original file line number Diff line number Diff line change 6
6
" syntax"
7
7
],
8
8
"homepage" : " https://highlightjs.org/" ,
9
- "version" : " 9.18.3 " ,
9
+ "version" : " 9.18.4 " ,
10
10
"author" : {
11
11
"name" : " Ivan Sagalaev" ,
12
12
24
24
"scripts" : {
25
25
"mocha" : " mocha" ,
26
26
"test" : " mocha --globals document test" ,
27
+ "postinstall" : " node deprecated.js" ,
27
28
"test-browser" : " mocha --globals document test/browser"
28
29
},
29
30
"engines" : {
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ let commander = require('commander');
64
64
let path = require ( 'path' ) ;
65
65
let Queue = require ( 'gear' ) . Queue ;
66
66
let registry = require ( './tasks' ) ;
67
+ let fs = require ( 'fs' ) ;
67
68
68
69
let build , dir = { } ;
69
70
@@ -85,5 +86,7 @@ new Queue({ registry: registry })
85
86
. clean ( dir . build )
86
87
. log ( 'Starting build.' )
87
88
. series ( build ( commander , dir ) )
89
+ . read ( [ "deprecated.js" ] )
90
+ . dest ( "./build" )
88
91
. log ( 'Finished build.' )
89
- . run ( ) ;
92
+ . run ( )
You can’t perform that action at this time.
0 commit comments