Monkey-Mouse / mo2

blog with go
MIT License
11 stars 4 forks source link

[Snyk] Upgrade highlight.js from 10.6.0 to 10.7.1 #276

Open snyk-bot opened 3 years ago

snyk-bot commented 3 years ago

Snyk has created this PR to upgrade highlight.js from 10.6.0 to 10.7.1.

merge advice :information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Release notes
Package name: highlight.js
  • 10.7.1 - 2021-03-21

    This .1 patch release fixes an issue with the TypeScript typing info in 10.7.0.

    Release notes from 10.7.0

    Parser:

    New Languages:

    • Added 3rd party RiScript grammar to SUPPORTED_LANGUAGES (#2988) [John C][]
    • Added 3rd party HLSL grammar to SUPPORTED_LANGUAGES (#3002) Stef Levesque
    • Added 3rd party Q# grammar to SUPPORTED_LANGUAGES(#3006) Vyron Vasileiadis

    Language grammar improvements:

    • fix(python) allow keywords immediately following numbers (#2985) Josh Goebel
    • fix(xml) char immediately following tag close mis-highlighted (#3044) Josh Goebel
    • fix(ruby) fix defined?() mis-highlighted as def (#3025) Josh Goebel
    • fix(c) comments after #include <str> blocks (#3041) Josh Goebel
    • fix(cpp) comments after #include <str> blocks (#3041) Josh Goebel
    • enh(cpp) Highlight all function dispatches (#3005) Josh Goebel
    • enh(python) support type hints and better type support (#2972) Josh Goebel
    • enh(gml) Add additional GML 2.3 keywords (#2984) xDGameStudios
    • fix(cpp) constructor support for initializers (#3001) Josh Goebel
    • enh(php) Add trait to class-like naming patterns (#2997) Ayesh
    • enh(php) Add Stringable, UnhandledMatchError, and WeakMap classes/interfaces (#2997) Ayesh
    • enh(php) Add mixed to list of keywords (#2997) Ayesh
    • enh(php) Add support binary, octal, hex and scientific numerals with underscore separator support (#2997) Ayesh
    • enh(php) Add support for Enums (#3004) Ayesh
    • enh(ecmascript) Add built-in types Vaibhav Chanana
    • enh(kotlin) Add kts as an alias for Kotlin (#3021) Vaibhav Chanana
    • enh(css) Add font-smoothing to attributes list for CSS (#3027) AndyKIron
    • fix(python) Highlight print and exec as a builtin (#1468) Samuel Colvin
    • fix(csharp) Fix unit being highlighted instead of uint (#3046) [Spacehamster][]
    • enh(swift) add async/await keywords (#3048) [Bradley Mackey][]

    Deprecations:

    • highlight(languageName, code, ignoreIllegals, continuation) deprecated as of 10.7
      • Please use the newer API which takes code and then accepts options as an object
      • IE: highlight(code, {language, ignoreIllegals})
      • continuation is for internal use only and no longer supported
    • highlightBlock(el) deprecated as of 10.7.
      • Please use highlightElement(el) instead.
      • Plugin callbacks renamed before/after:highlightBlock => before/after:highlightElement
      • Plugin callback now takes el vs block attribute
      • The old API and callbacks will be supported until v12.
  • 10.7.0 - 2021-03-20
    Read more
  • 10.6.0 - 2021-02-08

    New Languages:

    Language grammar improvements:

    Grammar Deprecations:

    • Deprecate c-like, though you should not be using it directly anyways.
      • will be removed in v11.
    • c and cpp are now wholly unique grammars that will diverge over time

    Parser:

    • new simpler highlightAll() API (#2962) Josh Goebel
      • this should be a drop-in replacement for both initHighlighting() and initHighlightingOnLoad()
      • note: it does not prevent itself from being called multiple times (as the previous API did)
    • beginKeyword no longer bestows double relevance (#2953) Josh Goebel
    • allow keywords to be an array of strings Josh Goebel
    • add modes.MATCH_NOTHING_RE that will never match
      • This can be used with end to hold a mode open (it must then be ended with endsParent in one of it's children modes) Josh Goebel

    Deprecations:

    • initHighlighting() and initHighlightingOnLoad() deprecated.
      • Please use the new highlightAll() API instead.
      • Deprecated as of 10.6.
      • These will both be aliases to highlightAll in v11.
from highlight.js GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

codecov[bot] commented 3 years ago

Codecov Report

Merging #276 (3c014d4) into main (3722b14) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #276   +/-   ##
=======================================
  Coverage   32.47%   32.47%           
=======================================
  Files          40       40           
  Lines        2186     2186           
=======================================
  Hits          710      710           
  Misses       1387     1387           
  Partials       89       89