File tree Expand file tree Collapse file tree 5 files changed +34
-4
lines changed Expand file tree Collapse file tree 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 5050# The short X.Y version.
5151version = '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.
Original file line number Diff line number Diff line change 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" : " maniac@softwaremaniacs.org"
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" : {
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ let commander = require('commander');
6464let path = require ( 'path' ) ;
6565let Queue = require ( 'gear' ) . Queue ;
6666let registry = require ( './tasks' ) ;
67+ let fs = require ( 'fs' ) ;
6768
6869let 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 ( )
You can’t perform that action at this time.
0 commit comments