Skip to content

Commit

Permalink
9.18.4
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Nov 18, 2020
1 parent 2a04835 commit ec0bfd5
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
26 changes: 26 additions & 0 deletions deprecated.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Reset = "\x1b[0m"
FgRed = "\x1b[31m"
FgWhite = "\x1b[37m"
FgWhite = "\x1b[37m"
Bright = "\x1b[1m"
FgBlue = "\x1b[34m"
BgRed = "\x1b[41m"

DEPRECATION = `
${BgRed + FgWhite}
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
${Reset}${Bright}${FgWhite}
Verion 9 of Highlight.js has reached EOL. It will no longer
be supported or receive security updates in the future.
Please upgrade to version 10.
For more info:
${FgBlue}
https://github.com/highlightjs/highlight.js/issues/2877
https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md
${BgRed + FgWhite}
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
${Reset}
`.trim()

console.log(DEPRECATION)
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '9.18'
# The full version, including alpha/beta/rc tags.
release = '9.18.3'
release = '9.18.4'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"syntax"
],
"homepage": "https://highlightjs.org/",
"version": "9.18.3",
"version": "9.18.4",
"author": {
"name": "Ivan Sagalaev",
"email": "maniac@softwaremaniacs.org"
Expand All @@ -24,6 +24,7 @@
"scripts": {
"mocha": "mocha",
"test": "mocha --globals document test",
"postinstall": "node deprecated.js",
"test-browser": "mocha --globals document test/browser"
},
"engines": {
Expand Down
5 changes: 4 additions & 1 deletion tools/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ let commander = require('commander');
let path = require('path');
let Queue = require('gear').Queue;
let registry = require('./tasks');
let fs = require('fs');

let build, dir = {};

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

0 comments on commit ec0bfd5

Please sign in to comment.