unstale

npm / react-syntax-highlighter

react-syntax-highlighter

What changed in react-syntax-highlighter 13 to 16, from its official release notes, upgrade guides and advisories. Also covers @types/react-syntax-highlighter. Sources checked 2026-11-30.

8 breaking32 new APIs and options2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

react-syntax-highlighter 163 changes

Breaking changes 1

  • The major version update remedies security issues but could result in a breaking change to your app's dependencies; update with care.

    16.0.0release notes

Fixes and other changes 2

  • Fixed ESM imports still missing the .js extension when using highlight.js.

    16.1.2release notes

  • Fixed missing .js extensions in ESM imports.

    16.1.1release notes

react-syntax-highlighter 151 changes

Breaking changes 1

  • Nested tokens can now be styled via CSS, correcting a longstanding flaw in token highlighting; this is technically a breaking change for theme styling.

    15.0.0release notes

react-syntax-highlighter 143 changes

Breaking changes 2

  • Applies explicit white-space styling on the <code> tag, which may override a white-space property supplied via external CSS.

    14.0.0release notes

  • Defaults to true, so line numbers are no longer rendered in a separate <code> element unless you explicitly pass false.

    14.0.0release notes

New APIs and options 1

react-syntax-highlighter 1335 changes

Breaking changes 4

  • The highlight.js language name cs was renamed to csharp.

    13.0.0release notes

  • The highlight.js theme formerly named darkula was renamed to darcula; update theme references accordingly.

    13.0.0release notes

  • The highlight.js language name nimrod was renamed to nim.

    13.0.0release notes

  • The tex language was removed from highlight.js.

    13.0.0release notes

New APIs and options 31

  • Added the antlr4 language from prism.js.

    13.0.0release notes

  • Added the aql language from prism.js.

    13.0.0release notes

  • Added the bbcode language from prism.js.

    13.0.0release notes

  • Added the brightscript language from prism.js.

    13.0.0release notes

  • Added the c language from highlight.js.

    13.0.0release notes

  • Added the highlight.js c-like language, also identified as c-like.

    13.0.0release notes

  • Added the concurnas language from prism.js.

    13.0.0release notes

  • Added the dax language from prism.js.

    13.0.0release notes

  • Added the etlua language from prism.js.

    13.0.0release notes

  • Added the excel-formula language from prism.js, also identified as excelFormula.

    13.0.0release notes

  • Added the factor language from prism.js.

    13.0.0release notes

  • Added the firestore-security-rules language from prism.js, also identified as firestoreSecurityRules.

    13.0.0release notes

  • Added the ftl language from prism.js.

    13.0.0release notes

  • Added the gdscript language from prism.js.

    13.0.0release notes

  • Added the latex language from highlight.js.

    13.0.0release notes

  • Added the latte language from prism.js.

    13.0.0release notes

  • Added the llvm language from prism.js.

    13.0.0release notes

  • Added the moonscript language from prism.js.

    13.0.0release notes

  • Added the neon language from prism.js.

    13.0.0release notes

  • Added the highlight.js php-template language, also identified as phpTemplate.

    13.0.0release notes

  • Added the powerquery language from prism.js.

    13.0.0release notes

  • Added the highlight.js python-repl language, also identified as pythonRepl.

    13.0.0release notes

  • Added the qml language from prism.js.

    13.0.0release notes

  • Added the robotframework language from prism.js.

    13.0.0release notes

  • When paired with showLineNumbers, renders line numbers inside wrapped lines instead of in a separate code block, enabling line numbering with virtualized renderers.

    13.0.0release notes

  • Added the solidity language from prism.js.

    13.0.0release notes

  • Added the solution-file language from prism.js, also identified as solutionFile.

    13.0.0release notes

  • Added the sparql language from prism.js.

    13.0.0release notes

  • Added the sqf language from prism.js.

    13.0.0release notes

  • Added the turtle language from prism.js.

    13.0.0release notes

  • Added the zig language from prism.js.

    13.0.0release notes