Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 16, 2020

This PR contains the following updates:

Package Change Age Confidence
react-syntax-highlighter 12.2.1 -> 15.6.6 age confidence
@types/react-syntax-highlighter (source) 11.0.5 -> 15.5.13 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

react-syntax-highlighter/react-syntax-highlighter (react-syntax-highlighter)

v15.6.6

Compare Source

Updated overrides block attempting to solve transitive prismjs dependency issue:

"overrides": {
    "prismjs": "^1.30.0",
    "refractor": {
      "prismjs": "^1.30.0"
    }
  }

Full Changelog: react-syntax-highlighter/react-syntax-highlighter@v15.6.5...v15.6.6

v15.6.5

Compare Source

What's Changed

New Contributors

Full Changelog: react-syntax-highlighter/react-syntax-highlighter@v15.6.4...v15.6.5

v15.6.4

Compare Source

What's Changed

Full Changelog: react-syntax-highlighter/react-syntax-highlighter@v15.6.3...v15.6.4

v15.6.3

Compare Source

What's Changed

New Contributors

Full Changelog: react-syntax-highlighter/react-syntax-highlighter@v15.6.2...v15.6.3

v15.6.2

Compare Source

What's Changed

New Contributors

Full Changelog: react-syntax-highlighter/react-syntax-highlighter@v15.6.1...v15.6.2

v15.6.1

Compare Source

  • Fix: Allow override of display: styles when wrapLongLines is true

v15.6.0

Compare Source

  • Fix: #​561 Fix bug with wrapLines that butchers highlighting
  • Docs: #​559 Adding languages
  • Feat: #​555 Add Vue language support
  • Feat: #​534 Add a11yOneLight theme

v15.5.0

Compare Source

  • #​466: updated prismjs to 1.27.0, fixing the XSS vuln mentioned in #​461

As noted in the PR, updating prism usually brings along a few surprises; this one gave us a new programming language named false, which as you can imagine is fun to import and parse within Javascript.

Thanks to everyone for your patience. We'll be getting back in the groove of regular releases here.

v15.4.5

Compare Source

v15.4.4

Compare Source

v15.4.3

Compare Source

  • Fixed highlight version regression

v15.4.2

Compare Source

  • Updated lowlight to 1.17.0 to match highlight dependency version

v15.4.1

Compare Source

  • Bugfix: increased minwidth to avoid unequal line number widths
  • Bugfix: prevent last line of file from rendering an unwanted line number

v15.4.0

Compare Source

  • Security fix: updated highlight.js to 10.4.1

v15.3.1

Compare Source

  • Bugfix: styling correctly applied to interpolation punctuation

v15.3.0

Compare Source

  • Updated prismjs (1.22.0) and refractor (3.2.0)
  • Updated prism-themes (1.5.0)
  • Fixed a broken readme link

v15.2.1

Compare Source

  • Bugfix: use string templating in language-specific theming code

v15.2.0

Compare Source

  • Allow language-specific theme styles to override default theme styles

v15.1.0

Compare Source

  • Updated to prism-themes 1.4.1

v15.0.1

Compare Source

  • Regenerate Prism themes containing nested tokens

v15.0.0

Compare Source

  • Breaking change: Allow styling nested tokens with classes in styles (probably not practically breaking for most, since this is a change that fixes a previously non-working feature)

v14.0.2

Compare Source

  • updated test snapshots after 14.0.1 fix
  • added tests for line number rendering behavior

v14.0.0

Compare Source

  • New prop: wrapLongLines, which removes the need to manually add white-space: pre styling
  • New default prop value: showInlineLineNumbers = true: when showLineNumbers is true, we now default to inline line numbers instead of putting them in a separate <code> block
  • Explicit white-space styling on <code> tag (will be set to either white-space: pre or white-space: pre-wrap depending on value of wrapLongLines prop)

v13.5.3

Compare Source

  • don't forget to add current version to CHANGELOG at release time :)

v13.5.2

Compare Source

  • filled in CHANGELOG for v10.x through v13.5.1

v13.5.1

Compare Source

  • Brought back createElement that went missing as of version 13.5.
import createElement from "react-syntax-highlighter/create-element";

v13.5.0

Compare Source

  • Cleaned up old files in project root, add jest to eslint
  • Updated to refractor 3.1.0, which brings in prismjs 1.21.0. We'd pinned react-syntax-highlighter 13.3.1 to prismjs 1.21.0, but didn't realize that refractor's dependency would keep us at 1.20.0

v13.4.0

Compare Source

Bugfixes
  • JS error when using lineNumberStyle() for inline line numbers
  • incorrect 'hljs' className applied to <pre> when using Prism

v13.3.1

Compare Source

  • Cleaned up old files in project root, add jest to eslint
  • Updated to refractor 3.1.0, which brings in prismjs 1.21.0. We'd pinned react-syntax-highlighter 13.3.1 to prismjs 1.21.0, but didn't realize that refractor's dependency would keep us at 1.20.0

v13.2.1

Compare Source

Bugfixes
  • Neglected to include rebuilt "Prism async light" demo files in 13.2.0 release

v13.2.0

Compare Source

  • Updated our prism-themes dependency to pull in new themes, including vsc-dark-plus
  • Prism async demo now dynamically loads autogenerated Prism themes list (EDIT: neglected to include built demo files, fixed in 13.2.1)
New Prism themes available
  • a11yDark
  • dracula
  • materialDark
  • materialLight
  • materialOceanic
  • nord
  • shadesOfPurple
  • synthwave84
  • vscDarkPlus

v13.1.0

Compare Source

Demo updates:

  • indicate that Highlight powers the default demo
  • restored Prism demo that went missing in 13.0.0
  • autogenerate demo-specific style lists (and add a comment to autogenerated files pointing out that they're autogenerated)
  • demos now autoload full lists of languages and styles from highlight/prism
  • minor UI adjustments

v13.0.0

Compare Source

  • latest highlight ^10.1.1 and lowlight ^1.14.0 dependencies
  • latest refractor ^3.0.0 and prism ^1.20.0 dependencies
  • updated codecov and lodash deps
  • corrected .gitignore
  • updated/fixed tests
  • new Demos UI
  • CircleCi v2 config added
  • exposed createElement() in public API
  • change FUNDING platform from liberapay to github
  • added projects to "built with" section of README
  • updated websocket-extensions to 0.1.4
New prop: showInlineLineNumbers
<SyntaxHighlighter
  showLineNumbers={true} // required to show line numbers, whether inline or not
  showInlineLineNumbers={true} // render them inside wrapped lines, instead of as a separate <code> block
  renderer={virtualizedRenderer({
    rowHeight: 20
  })}
>
  {code}
</SyntaxHighlighter>

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 as react-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 on react-syntax-highlighter and not consuming highlight.js directly.

Theme rename
  • If you rely on the darkula theme from highlight.js, highlight v10 has renamed that style to darcula.
Renamed/removed highlight.js languages
  • cs (renamed to csharp)
  • nimrod (renamed to nim)
  • tex (removed)
New languages

Note: react-syntax-highlighter provides an automated build wrapper around styles and languages provided by highlight.js (via lowlight) and prism (via refractor). Changes here are simply describing what's changed in those libraries. If you'd like to see another language or style added, please contribute to those libraries.

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

Configuration

📅 Schedule: Branch creation - "before 6am" in timezone Europe/Berlin, Automerge - 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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@HenningCash
Copy link
Member

v15 (accidentally) dropped the lineNumberContainerProps property. Waiting for them to be re-added before upgrading to v15.
If we merge this as-is it will break the comment feature.

@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 93ed4e2 to fba929d Compare October 29, 2020 15:58
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from fba929d to c495678 Compare November 9, 2020 09:55
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from c495678 to c894c43 Compare November 24, 2020 19:12
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch 4 times, most recently from 2a5aaaa to ae2b6dc Compare December 9, 2020 23:54
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from ae2b6dc to 57834d8 Compare January 6, 2021 18:00
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch 2 times, most recently from f8f40e6 to 5ab1910 Compare April 29, 2021 20:12
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch 2 times, most recently from bafe95e to 819979d Compare May 21, 2021 08:04
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 819979d to 27c94f6 Compare July 23, 2021 18:05
@HenningCash HenningCash added the dependencies Pull requests that update a dependency file label Sep 30, 2021
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 27c94f6 to b655210 Compare November 12, 2021 23:29
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from b655210 to 075e1d1 Compare March 26, 2022 13:31
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 075e1d1 to 1a36447 Compare May 15, 2022 22:58
@renovate
Copy link
Contributor Author

renovate bot commented May 15, 2022

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: client/package-lock.json
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @use-it/event-listener@0.1.6
npm WARN Found: react@17.0.2
npm WARN node_modules/react
npm WARN   react@"17.0.2" from the root project
npm WARN   66 more (@ant-design/icons, @ant-design/pro-layout, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8.0" from @use-it/event-listener@0.1.6
npm WARN node_modules/@use-it/event-listener
npm WARN   @use-it/event-listener@"^0.1.2" from use-persisted-state@0.3.3
npm WARN   node_modules/use-persisted-state
npm WARN 
npm WARN Conflicting peer dependency: react@16.14.0
npm WARN node_modules/react
npm WARN   peer react@"^16.8.0" from @use-it/event-listener@0.1.6
npm WARN   node_modules/@use-it/event-listener
npm WARN     @use-it/event-listener@"^0.1.2" from use-persisted-state@0.3.3
npm WARN     node_modules/use-persisted-state
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: craco-antd@1.19.0
npm ERR! Found: @craco/craco@6.3.0
npm ERR! node_modules/@craco/craco
npm ERR!   @craco/craco@"6.3.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @craco/craco@"^5.5.0" from craco-antd@1.19.0
npm ERR! node_modules/craco-antd
npm ERR!   craco-antd@"1.19.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @craco/craco@5.9.0
npm ERR! node_modules/@craco/craco
npm ERR!   peer @craco/craco@"^5.5.0" from craco-antd@1.19.0
npm ERR!   node_modules/craco-antd
npm ERR!     craco-antd@"1.19.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/renovate/cache/others/npm/_logs/2023-12-11T19_26_16_596Z-debug-0.log

@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 1a36447 to 85ed56a Compare June 18, 2022 13:45
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 85ed56a to c06c7d6 Compare November 20, 2022 11:48
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from c06c7d6 to 148ad97 Compare March 23, 2023 21:52
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 148ad97 to 87ea8c2 Compare June 1, 2023 20:19
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 87ea8c2 to 6fdb134 Compare October 16, 2023 01:29
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 6fdb134 to 92a9cf8 Compare October 25, 2023 16:24
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 92a9cf8 to 7b0328c Compare November 14, 2023 15:44
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 7b0328c to d80c3d1 Compare December 11, 2023 19:26
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from d80c3d1 to 4ed1e7d Compare May 10, 2024 03:24
Copy link
Contributor Author

renovate bot commented May 10, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: client/package-lock.json
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @use-it/event-listener@0.1.6
npm WARN Found: react@17.0.2
npm WARN node_modules/react
npm WARN   react@"17.0.2" from the root project
npm WARN   66 more (@ant-design/icons, @ant-design/pro-layout, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8.0" from @use-it/event-listener@0.1.6
npm WARN node_modules/@use-it/event-listener
npm WARN   @use-it/event-listener@"^0.1.2" from use-persisted-state@0.3.3
npm WARN   node_modules/use-persisted-state
npm WARN 
npm WARN Conflicting peer dependency: react@16.14.0
npm WARN node_modules/react
npm WARN   peer react@"^16.8.0" from @use-it/event-listener@0.1.6
npm WARN   node_modules/@use-it/event-listener
npm WARN     @use-it/event-listener@"^0.1.2" from use-persisted-state@0.3.3
npm WARN     node_modules/use-persisted-state
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: craco-antd@1.19.0
npm ERR! Found: @craco/craco@6.3.0
npm ERR! node_modules/@craco/craco
npm ERR!   @craco/craco@"6.3.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @craco/craco@"^5.5.0" from craco-antd@1.19.0
npm ERR! node_modules/craco-antd
npm ERR!   craco-antd@"1.19.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @craco/craco@5.9.0
npm ERR! node_modules/@craco/craco
npm ERR!   peer @craco/craco@"^5.5.0" from craco-antd@1.19.0
npm ERR!   node_modules/craco-antd
npm ERR!     craco-antd@"1.19.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /runner/cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /runner/cache/others/npm/_logs/2025-09-01T20_32_19_615Z-debug-0.log

@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from 4ed1e7d to d99b5ff Compare May 10, 2024 18:33
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from d99b5ff to 6aa920a Compare October 23, 2024 17:24
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch 2 times, most recently from 1fff078 to ced0458 Compare September 1, 2025 19:34
@renovate renovate bot force-pushed the renovate/react-syntax-highlighter-15.x branch from ced0458 to b1bb112 Compare September 1, 2025 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant