Update dependency react-syntax-highlighter to v15 #461
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:
9.0.1
->15.4.5
Release Notes
react-syntax-highlighter/react-syntax-highlighter
v15.4.5
Compare Source
v15.4.4
Compare Source
v15.4.3
Compare Source
highlight
version regressionv15.4.2
Compare Source
lowlight
to 1.17.0 to matchhighlight
dependency versionv15.4.1
Compare Source
v15.4.0
Compare Source
v15.3.1
Compare Source
v15.3.0
Compare Source
v15.2.1
Compare Source
v15.2.0
Compare Source
v15.1.0
Compare Source
prism-themes
1.4.1v15.0.1
Compare Source
v15.0.0
Compare Source
v14.0.2
Compare Source
v14.0.0
Compare Source
wrapLongLines
, which removes the need to manually addwhite-space: pre
stylingshowInlineLineNumbers = true
: whenshowLineNumbers
istrue
, we now default to inline line numbers instead of putting them in a separate<code>
block<code>
tag (will be set to eitherwhite-space: pre
orwhite-space: pre-wrap
depending on value ofwrapLongLines
prop)v13.5.3
Compare Source
v13.5.2
Compare Source
v13.5.1
Compare Source
createElement
that went missing as of version 13.5.v13.5.0
Compare Source
refractor
3.1.0, which brings inprismjs
1.21.0. We'd pinnedreact-syntax-highlighter 13.3.1
toprismjs 1.21.0
, but didn't realize thatrefractor
's dependency would keep us at 1.20.0v13.4.0
Compare Source
Bugfixes
<pre>
when using Prismv13.3.1
Compare Source
prism
updated to 1.21.0, with lots of improvements: CHANGELOG for prism 1.21.0Bugfixes
shell-session
language command outputuseInlineStyles={false}
v13.2.1
Compare Source
Bugfixes
v13.2.0
Compare Source
prism-themes
dependency to pull in new themes, includingvsc-dark-plus
New Prism themes available
a11yDark
dracula
materialDark
materialLight
materialOceanic
nord
shadesOfPurple
synthwave84
vscDarkPlus
v13.1.0
Compare Source
Demo updates:
v13.0.0
Compare Source
highlight ^10.1.1
andlowlight ^1.14.0
dependenciesrefractor ^3.0.0
andprism ^1.20.0
dependenciescreateElement()
in public APIliberapay
togithub
websocket-extensions
to 0.1.4New prop:
showInlineLineNumbers
When paired with
showLineNumbers={true}
,showInlineLineNumbers={true}
injects line numbers into each wrapped line of code, instead of creating a separate<code></code>
block for the numbers. This allows line numbering to work with virtualized renderers such asreact-syntax-highlighter-virtualized-renderer
.Inline line numbers are styled so that they're not selected when drag-selecting multiple lines of highlighted text, preserving expected behavior.
Breaking changes
Highlight v10 introduced some breaking changes for us here which we've worked around (mainly that
getLanguage
was no longer exposed), but this shouldn't cause breakage for most people relying onreact-syntax-highlighter
and not consuminghighlight.js
directly.Theme rename
darkula
theme fromhighlight.js
, highlight v10 has renamed that style todarcula
.Renamed/removed highlight.js languages
cs
(renamed tocsharp
)nimrod
(renamed tonim
)tex
(removed)New languages
New highlight.js languages
cLike
(c-like
)c
latex
phpTemplate
(php-template
)pythonRepl
(python-repl
)New prism.js languages
abnf
antlr4
aql
bbcode
bnf
brightscript
cil
cmake
concurnas
dax
dnsZoneFile
(dns-zone-file
)ebnf
ejs
etlua
excelFormula
(excel-formula
)factor
firestoreSecurityRules
(firestore-security-rules
)ftl
gcode
gdscript
gml
hcl
javadoc
javadoclike
javastacktrace
jq
jsExtras
(js-extras
)jsTemplates
(js-templates
)jsdoc
json5
jsonp
latte
lilypond
llvm
moonscript
n1ql
nand2tetrisHdl
(nand2tetris-hdl
)neon
pascaligo
pcaxis
phpdoc
powerquery
qml
regex
robotframework
shellSession
(shell-session
)solidity
solutionFile
(solution-file
)sparql
splunkSpl
(splunk-spl
)sqf
t4Cs
(t4-cs
)t4Templating
(t4-templating
)t4Vb
(t4-vb
)toml
turtle
vala
zig
v12.2.1
Compare Source
v12.1.0
Compare Source
v12.0.2
Compare Source
v12.0.1
Compare Source
v12.0.0
Compare Source
/sbin/init
commandmixin-deep
andhandlebars
dependenciesv11.0.3
Compare Source
v11.0.2
Compare Source
style
prop description in READMEconor.rodeo
toconorhastings.github.io
lodash
dep from 4.17.11 to 4.17.14v11.0.1
Compare Source
v11.0.0
Compare Source
v10.3.5
Compare Source
v10.3.4
Compare Source
v10.3.3
Compare Source
async-languages
for highlight, picking up new languages added in 10.3.0v10.3.2
Compare Source
v10.3.1
Compare Source
v10.3.0
Compare Source
New highlight.js languages
angelscript
arcade
gml
isbl
pgsql
plaintext
properties
reasonml
sas
New prism.js styles
xonokai
vs-dark
v10.2.1
Compare Source
classNames
concatenation increateElement
v10.2.0
Compare Source
highlight
from 9.12.0 to 9.13.0lowlight
from 1.9.1 to 1.11.0New highlight.js styles available
a11yDark
a11yLight
anOldHope
atomOneDarkReasonable
gml
isblEditorDark
isblEditorLight
lightfair
nord
shadesOfPurple
v10.1.3
Compare Source
@babel/runtime
,babel-jest
,codecov
,jest
,request
,webpack-dev-server
v10.1.2
Compare Source
prettier
config@babel/runtime
instead ofbabel-runtime
v10.1.1
Compare Source
v10.1.0
Compare Source
v10.0.1
Compare Source
supportedLanguages
field which can be used to determine the supported languagesv10.0.0
Compare Source
registerLanguage
is now a static method of the default export of highlighters that require registering of languages.prism-async-light
&light-async
now ship with their own language loadersesm
&cjs
outputs. Importing should now be done through import OR the import should point into the dist directory.dist
directory. Update your imports from:to:
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 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.