[Snyk] Upgrade highlight.js from 10.6.0 to 10.7.1 #276
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade highlight.js from 10.6.0 to 10.7.1.
ℹ️ 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
- enh(api) add
- enh: Make alias registration case insensitive (#3026) David Ostrovsky
- fix(parser)
- 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
- 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
- fix(c) comments after
- fix(cpp) comments after
- 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
- enh(php) Add
- enh(php) Add
- 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
- enh(css) Add
- fix(python) Highlight
- fix(csharp) Fix unit being highlighted instead of uint (#3046) [Spacehamster][]
- enh(swift) add async/await keywords (#3048) [Bradley Mackey][]
- Please use the newer API which takes
- IE:
- Please use
- Plugin callbacks renamed
- Plugin callback now takes
- The old API and callbacks will be supported until v12.
-
10.7.0 - 2021-03-20
-
10.6.0 - 2021-02-08
- Added 3rd party Laravel Blade grammar to SUPPORTED_LANGUAGES (#2944) Michael Newton
- enh(scala) fix triple quoted strings (#2987) Josh Goebel
- enh(perl) Much improved regex detection (#2960) Josh Goebel
- enh(swift) Improved highlighting for operator and precedencegroup declarations. (#2938) Steven Van Impe
- fix(xml) Support single-character namespaces. (#2957) [Jan Pilzer][]
- enh(ruby) Support for character literals (#2950) Vaibhav Chanana
- enh(powershell) Add three VALID_VERBS and update the reference link (#2981) davidhcefx
- Deprecate
- will be removed in v11.
- new simpler
- this should be a drop-in replacement for both
- note: it does not prevent itself from being called multiple times (as the previous API did)
- allow
- add
- This can be used with
- Please use the new
- Deprecated as of 10.6.
- These will both be aliases to
from highlight.js GitHub release notesThis .1 patch release fixes an issue with the TypeScript typing info in 10.7.0.
Release notes from 10.7.0
Parser:
unregisterLanguagemethod (#3009) Antoine du HamelhighlightAll()now works if the library is lazy loaded Josh GoebelNew Languages:
Language grammar improvements:
defined?()mis-highlighted asdef(#3025) Josh Goebel#include <str>blocks (#3041) Josh Goebel#include <str>blocks (#3041) Josh Goebeltraitto class-like naming patterns (#2997) AyeshStringable,UnhandledMatchError, andWeakMapclasses/interfaces (#2997) Ayeshmixedto list of keywords (#2997) Ayeshktsas an alias for Kotlin (#3021) Vaibhav Chananafont-smoothingto attributes list for CSS (#3027) AndyKIronprintandexecas a builtin (#1468) Samuel ColvinDeprecations:
highlight(languageName, code, ignoreIllegals, continuation)deprecated as of 10.7codeand then accepts options as an objecthighlight(code, {language, ignoreIllegals})continuationis for internal use only and no longer supportedhighlightBlock(el)deprecated as of 10.7.highlightElement(el)instead.before/after:highlightBlock=>before/after:highlightElementelvsblockattributeRead more
New Languages:
Language grammar improvements:
Grammar Deprecations:
c-like, though you should not be using it directly anyways.candcppare now wholly unique grammars that will diverge over timeParser:
highlightAll()API (#2962) Josh GoebelinitHighlighting()andinitHighlightingOnLoad()beginKeywordno longer bestows double relevance (#2953) Josh Goebelkeywordsto be an array of strings Josh Goebelmodes.MATCH_NOTHING_REthat will never matchendto hold a mode open (it must then be ended withendsParentin one of it's children modes) Josh GoebelDeprecations:
initHighlighting()andinitHighlightingOnLoad()deprecated.highlightAll()API instead.highlightAllin v11.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