[Snyk] Upgrade highlight.js from 10.7.3 to 11.10.0 #9
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.7.3 to 11.10.0.
ℹ️ 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.
The recommended version is 18 versions ahead of your current version.
The recommended version was released on 3 months ago.
Release notes
Package name: highlight.js
Sorry for the wait, this one is a doozie, thanks to all the contributors who made it possible!
CAVEATS / POTENTIALLY BREAKING CHANGES
Important
This version drops support for Node 16.x, which is no longer supported by Node.js.
Core Grammars:
satisfies
operator Kisaragi Hiuor
conflicts with string highlighting Mohamed Aliself
variable [Lee Falin][]goto
to be recognized as a keyword in Java Alvin Joysudo
Alvin Joynew
keyword without capturing it within variables/class names Cameron Taylor_
separators, add hex p exponents Lisa Ugrayjustify-items
andjustify-self
attributes Vasily Polovnyovaccent-color
,appearance
,color-scheme
,rotate
,scale
andtranslate
attributes Carl Räftingselect
,option
,optgroup
,picture
andsource
to list of known tags Vasily Polovnyovinset
,inset-*
,border-start-*-radius
andborder-end-*-radius
attributes Vasily Polovnyovtext-decoration-skip-ink
,text-decoration-thickness
andtext-underline-offset
attributes Vasily PolovnyovNew Grammars:
Developer Tool:
highlight
API Misha KaletskyThemes:
1c-light
theme a like in the IDE 1C:Enterprise 8 (for 1c) Vitaly BarilkoVersion 11.9.0
CAVEATS / POTENTIALLY BREAKING CHANGES
node
buildstyles/*.css
files now ship un-minifiedwith minified counterparts as:
styles/*.min.css
mvorisek(this makes things consistent with our
cdn
builds)Parser:
New Grammars:
Core Grammars:
if
while
for
[Omar Hussein][]x0-x30
andw0-w30
ARMv8 registers Nicholas Thompsonfinal
,is
,macro
keywords and$
identifiers Robert Borgheseabstract
declaration from keyword Robert Borghesemacro
keyword Bradley Mackey@ unchecked
and@ Sendable
support Bradley Mackey//> using foo bar
[Jamie Thompson][]!assert
compiler flag [idleberg][]eprintln!
macro qoheniacwarn_unqualified_access
is an attribute Bradley Mackeyrecord
andvar
as keywords Guillaume LaforgeDeveloper Tool:
highlight
API. Shah Shabbir AhmmedChangelog
Parser engine:
__emitTokens
key to grammars to allow then to direct their own parsing, only using Highlight.js for the HTML rendering Josh GoebelremovePlugin
api faga295JavaScript
Cyrus KaoNew Grammars:
Core Grammars:
_
in variable names [joshgoebel][]proto
alias for Protobuf [dimitropoulos][]base
,interface
,sealed
, andwhen
keywords Sam Rawlins->
operator legal) Keyacomselect
anduntil
as keywordsVersion 11.7.0
New Grammars:
Grammars:
scm
alias for Scheme matyklug18<T =
are not JSX Josh Goebel((
keyword Nick Chambersimport()
as a function, rather a keyword nathnolt((
keyword Nick ChambersImprovements:
Version 11.6.0
Supported Node.js versions:
Default build changes:
wasm
to default:common
build (#3526) [Josh Goebel][]graphql
to default:common
build (#3526) [Josh Goebel][]Grammars:
keyword
toliteral
shikhar13012001scoped
keyword in C# (#3571) [David Pine][]transparent
keyword Matt Bovel::
(#3540) [Josh Goebel][]include_bytes!
macro (#3541) Serial-ATA==
as a variable declaration Mousetailany
keyword (#3515) Bradley Mackeydistributed
keyword Marcus Ortizmatch
andcase
keywords Avrumy LungerJust a tiny release to hopefully fix the issues some are having with CSS not seen as having side effects with web pack, etc...
Packaging:
sideEffect
for css and scss files, fixes #3504Changes from CHANGELOG:
Themes:
Tokyo-Night-dark
theme Henri VandersleyenTokyo-Night-light
theme Henri VandersleyenNew Grammars:
Grammars:
type
andvariable.language
scopes Josh Goebel$pattern
(numbers allowed in command names) Martin Mattelmeta.prompt
scope for REPL prompts, etc Josh Goebel***Hello world***
without breaking Josh Goebelelse
Josh GoebelThis is a big one. Holidays and all. Wishing all of you the best for 2022! See the note below about theme changes if you're super picky about your theming.
New Languages:
Themes:
Default
is now much closer WCAG AA (contrast) (#3402) Josh GoebelDark
now meets WCAG AA (contrast) (#3402) Josh Goebelintellij-light
theme PegasisThese changes should be for the better and should not be super noticeable but if you're super picky about your colors you may want to intervene here or copy over the older themes from 11.3 or prior.
Grammars:
vector<<
template false positive (#3437) Josh Goebelnamespace
anduse
highlighting (#3427) Josh Goebel$this
is avariable.language
now (#3427) Josh Goebel__COMPILER_HALT_OFFSET__
(#3427) Josh Goebelsealed
andnon-sealed
keywords (#3386) Bradley MackeyCLASS_REFERENCE
(#3411) Josh Goebel!
(#3417) idleberg!
(#3420) idlebergcomment
macro catches more than it should (#3395)$
in symbol breaks highlightingregex
mode to regex literalpunctuation
mode for commas.jldoctest
alias (#3432) Fons van der PlasDeveloper Tools:
Themes:
Version 11.3.1
Same as 11.3.0 except for the fix to generating optional CDN grammar modules.
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) idlebergImportant
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: