deps:chore - update dependency highlight.js to v11 #490
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.
This PR contains the following updates:
10.4.1
->11.3.1
Release Notes
highlightjs/highlight.js
v11.3.1
Compare Source
Build:
v11.3.0
Compare Source
Build:
HighlightJS
named export (#3295) Josh Goebel.default
named export to CJS builds (#3333) Josh GoebelParser:
throwUnescapedHTML
to warn against potential HTML injection Josh Goebelregex
helper functions viahljs
injection Josh GoebelGrammars:
class X extends Y
(#3278) Josh GoebelFloat32Array
highlighted incorrectly (#3353) Josh Goebelerror
type Josh GoebelSUBST
is no longer highlighted Josh Goebelxor_eq
keyword highlighting. Denis Kovalchukdo
andthen
keyword (#3323) Nicolas Stuckienum
,export
andgiven
keywords (#3328) Nicolas Stuckiextension
soft keyword (#3326) Nicolas Stuckiend
soft keyword (#3327) Nicolas Stuckiinline
soft keyword (#3329) Nicolas Stuckiusing
soft keyword (#3330) Nicolas Stuckif#
alias (#3337) Bahnschriftcase_insensitive
totrue
(#3351) idlebergv11.2.0
Compare Source
Build:
Parser:
_
(#3283) Josh Goebel__FILE__
and__LINE__
constants (#3283) Josh GoebelGrammars:
isolated
/nonisolated
keywords (#3296) Bradley MackeyNew Languages:
v11.1.0
Compare Source
Grammars:
catch
keyword (#3251) Konrad Rudolphpwsh
alias (#3236) tebecoedn
alias (#3213) Stel Abregov11.0.1
Compare Source
v11.0.0
Compare Source
This is a major release. As such it contains breaking changes which may require action from users. Please read VERSION_11_UPGRADE.md for a detailed summary of all breaking changes.
Potentially breaking changes
Unless otherwise attributed items below are thanks to Josh Goebel (ref: #2558).
The below list should only be considered to be a high-level summary.
Deprecations / Removals / API Changes:
initHighlighting()
andinitHighlightingOnLoad()
deprecated. UsehighlightAll()
.highlightBlock(el)
deprecated. UsehighlightElement(el)
before:highlightBlock
&after:highlightBlock
callbacks deprecated. Use equivalenthighlightElement
callbacks.highlight(languageName, code, ignoreIllegals, continuation)
signature deprecated. Usehighlight(code, {language, ignoreIllegals})
.highlight()
signature no longer supportscontinuation
argument.tabReplace
option removed. Consider a plugin.useBR
option removed. Consider a plugin or CSS.requireLanguage()
removed. UsegetLanguage()
.endSameAsBegin
mode key removed. Usehljs.END_SAME_AS_BEGIN
.lexemes
mode key removed. Usekeywords.$pattern
.Security:
Themes:
schoolbook
has been updated to remove the lined background.github
updated to better match modern GitHub (#1616) Jan Pilzergithub-gist
has been removed in favor ofgithub
Jan Pilzernnfx
updated for v11 xml styles and improved css supportLanguage Grammars:
Other changes
Parser:
beginScope
andendScope
to allow separate scoping begin and end (#3159) Josh GoebelendScope
now supports multi-class matchers as well (#3159) Josh GoebelhighlightElement
now always tags blocks with a consistentlanguage-[name]
class Josh Goebelspan
tags now also always have thelanguage-
prefix addedtitle.class.inherited
sub-scope support Josh Goebeltitle.class
sub-scope support (#3078) Josh Goebeltitle.function
sub-scope support (#3078) Josh GoebelbeforeMatch
compiler extension (#3078) Josh GoebelcssSelector
configuration option (#3180) James EdingtonGrammars:
.meta-keyword
=>.meta .keyword
(nested scopes) (#3167) Josh Goebel.meta-string
=>.meta .string
(nested scopes) (#3167) Josh Goebelactor
keyword (#3171) Bradley Mackey@resultBuilder
attribute (#3151) Bradley Mackeypde
alias (#3142) Dylan McBeanfunction.title
=>title.function
(#3078) Josh Goebelfunction.title
=>title.function
(#3078) Josh Goebelfunction.title
=>title.function
(#3078) Josh Goebelimpl
(#3078) Josh GoebelNew Languages:
Theme Improvements:
builtin-name
CSS class (#3119) Josh GoebelNew Themes:
Dev Improvements:
v10.7.3
Compare Source
No other changes.
v10.7.2
Compare Source
This is a patch release. The only change is that deprecation messages
are throttled and shown only once.
v10.7.1
Compare Source
Version 10.7.0
Parser:
unregisterLanguage
method (#3009) Antoine du HamelhighlightAll()
now works if the library is lazy loaded Josh GoebelNew Languages:
Language grammar improvements:
title.function
(#3169) Josh Goebeldefined?()
mis-highlighted asdef
(#3025) Josh Goebel#include <str>
blocks (#3041) Josh Goebel#include <str>
blocks (#3041) Josh Goebeltrait
to class-like naming patterns (#2997) AyeshStringable
,UnhandledMatchError
, andWeakMap
classes/interfaces (#2997) Ayeshmixed
to list of keywords (#2997) Ayeshkts
as an alias for Kotlin (#3021) Vaibhav Chananafont-smoothing
to attributes list for CSS (#3027) AndyKIronprint
andexec
as a builtin (#1468) Samuel ColvinDeprecations:
highlight(languageName, code, ignoreIllegals, continuation)
deprecated as of 10.7code
and then accepts options as an objecthighlight(code, {language, ignoreIllegals})
continuation
is for internal use only and no longer supportedhighlightBlock(el)
deprecated as of 10.7.highlightElement(el)
instead.before/after:highlightBlock
=>before/after:highlightElement
el
vsblock
attributev10.7.0
Compare Source
Parser:
unregisterLanguage
method (#3009) Antoine du HamelhighlightAll()
now works if the library is lazy loaded Josh GoebelNew Languages:
Language grammar improvements:
title.function
(#3169) Josh Goebeldefined?()
mis-highlighted asdef
(#3025) Josh Goebel#include <str>
blocks (#3041) Josh Goebel#include <str>
blocks (#3041) Josh Goebeltrait
to class-like naming patterns (#2997) AyeshStringable
,UnhandledMatchError
, andWeakMap
classes/interfaces (#2997) Ayeshmixed
to list of keywords (#2997) Ayeshkts
as an alias for Kotlin (#3021) Vaibhav Chananafont-smoothing
to attributes list for CSS (#3027) AndyKIronprint
andexec
as a builtin (#1468) Samuel ColvinDeprecations:
highlight(languageName, code, ignoreIllegals, continuation)
deprecated as of 10.7code
and then accepts options as an objecthighlight(code, {language, ignoreIllegals})
continuation
is for internal use only and no longer supportedhighlightBlock(el)
deprecated as of 10.7.highlightElement(el)
instead.before/after:highlightBlock
=>before/after:highlightElement
el
vsblock
attributev10.6.0
Compare Source
New Languages:
Language grammar improvements:
Grammar Deprecations:
c-like
, though you should not be using it directly anyways.c
andcpp
are now wholly unique grammars that will diverge over timeParser:
highlightAll()
API (#2962) Josh GoebelinitHighlighting()
andinitHighlightingOnLoad()
beginKeyword
no longer bestows double relevance (#2953) Josh Goebelkeywords
to be an array of strings Josh Goebelmodes.MATCH_NOTHING_RE
that will never matchend
to hold a mode open (it must then be ended withendsParent
in one of it's children modes) Josh GoebelDeprecations:
initHighlighting()
andinitHighlightingOnLoad()
deprecated.highlightAll()
API instead.highlightAll
in v11.v10.5.0
Compare Source
Build:
cdn-assets
Josh Goebel:common
) Josh GoebelParser:
match
as sugar for simplebegin
only matches (#2834) Josh Goebelillegal
to also be an array of regex (#2834) Josh GoebelcompilerExtensions
allows grammers to influence mode compilation (#2834) Josh GoebelNew Languages:
Language grammar improvements:
make
as an alias (#2883) tripleee[]
for argument lists (#2913) Josh GoebelREM
comments and fixes'''
doctags (#2875) (#2851)Enable
,Disable
, andThen
keywordsRecent Deprecations:
<pre>
blocks will no longer be magically merged back into thehighlighted code's HTML result - it will instead be silently removed.
tabReplace
option deprecated. (#2873) Josh Goebeltab-size
property, or simply pre-process thetext yourself before rendering the initial HTML
useBR
option deprecated. (#2559) Josh Goebel<pre>
tagwhite-space: pre;
requireLanguage
API is deprecated, will be removed in v11.0.getLanguage
(with custom error handling) or built-time dependencies.Configuration
📅 Schedule: "every weekend" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.