deprecated.js 825 B

1234567891011121314151617181920212223242526
  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. DEPRECATION = `${BgRed + FgWhite}-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*${Reset}
  9. ${Bright}${FgWhite}
  10. Verion 9 of Highlight.js has reached EOL. It will no longer
  11. be supported or receive security updates in the future.
  12. Please upgrade to version 10 or encourage your indirect
  13. dependencies to do so.
  14. For more info:
  15. ${FgBlue}
  16. https://github.com/highlightjs/highlight.js/issues/2877
  17. https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md
  18. ${BgRed + FgWhite}
  19. -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*${Reset}
  20. `.trim()
  21. if (!process.env["HLJS_HIDE_UPGRADE_WARNING"]) {
  22. console.log(DEPRECATION)
  23. }