nteract / nteract.io

:mega: Our site! :mega:
https://nteract.io
BSD 3-Clause "New" or "Revised" License
44 stars 30 forks source link

Update dependency react-syntax-highlighter to v14 - autoclosed #318

Closed renovate[bot] closed 4 years ago

renovate[bot] commented 4 years ago

This PR contains the following updates:

Package Type Update Change
react-syntax-highlighter dependencies major 9.0.1 -> 14.0.2

Release Notes

react-syntax-highlighter/react-syntax-highlighter ### [`v14.0.2`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1402--2020-10-03) [Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v14.0.0...2bb9819186e938190452b88ad2a009bdec1fe95b) - updated test snapshots after 14.0.1 fix - added tests for line number rendering behavior ### [`v14.0.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1400--2020-10-01) [Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v13.5.3...v14.0.0) - 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 `` block - Explicit white-space styling on `` tag (will be set to either `white-space: pre` or `white-space: pre-wrap` depending on value of `wrapLongLines` prop) ### [`v13.5.3`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1353--2020-09-03) [Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v13.5.2...v13.5.3) - don't forget to add current version to CHANGELOG at release time :) ### [`v13.5.2`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1352--2020-09-03) [Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v13.5.1...v13.5.2) - filled in CHANGELOG for v10.x through v13.5.1 ### [`v13.5.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1351--2020-08-19) [Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v13.5.0...v13.5.1) - Brought back `createElement` that went missing as of version 13.5. ```js import createElement from "react-syntax-highlighter/create-element"; ``` ### [`v13.5.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1350--2020-08-17) [Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v13.4.0...v13.5.0) - 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`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1340--2020-08-14) [Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v13.3.1...v13.4.0) - added ESLint ([#​298](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/pull/298)) - added favicon to demo ([#​295](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/pull/295)) - new addition to the "built with" list ([#​293](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/pull/293)) ##### Bugfixes - JS error when using lineNumberStyle() for inline line numbers - incorrect 'hljs' className applied to `
` when using Prism

### [`v13.3.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1331--2020-08-08)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/13.2.1...v13.3.1)

-   `prism` updated to 1.21.0, with lots of improvements: [CHANGELOG for prism 1.21.0](https://togithub.com/PrismJS/prism/blob/master/CHANGELOG.md#​1210-2020-08-06)
-   added Github repo link to the upper right corner of demo pages

##### Bugfixes

-   Truncated Prism `shell-session` language command output
-   Incorrect syntax highlighting for mutli-line comments
-   Unexpected behavior with `useInlineStyles={false}`

### [`v13.2.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1321--2020-07-30)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/13.2.0...13.2.1)

##### Bugfixes

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

### [`v13.2.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1320--2020-07-30)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/13.1.0...13.2.0)

-   Updated our `prism-themes` dependency to pull in new themes, including `vsc-dark-plus`
-   [Prism async demo](https://react-syntax-highlighter.github.io/react-syntax-highlighter/demo/prism-async-light.html) 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`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1310--2020-07-23)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/13.0.0...13.1.0)

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`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1300--2020-07-23)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v12.2.1...13.0.0)

-   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`

```jsx
 block
  renderer={virtualizedRenderer({
    rowHeight: 20
  })}
>
  {code}

```

When paired with `showLineNumbers={true}`, `showInlineLineNumbers={true}` injects line numbers into each wrapped line of code, instead of creating a separate `` 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`

### [`v12.2.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v12.1.0...v12.2.1)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v12.1.0...v12.2.1)

### [`v12.1.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v12.0.2...v12.1.0)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v12.0.2...v12.1.0)

### [`v12.0.2`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1202--2019-12-15)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v12.0.1...v12.0.2)

-   version bump, no other changes

### [`v12.0.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1201--2019-12-15)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v12.0.0...v12.0.1)

-   version bump, no other changes

### [`v12.0.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1200--2019-12-15)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v11.0.2...v12.0.0)

-   added projects to README
-   updated Docker config: removed `/sbin/init` command
-   introduced Github Actions config
-   removed CircleCI config
-   updated `mixin-deep` and `handlebars` dependencies
-   updated "removed" code in diff demo

### [`v11.0.2`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1102--2019-07-13)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v11.0.1...v11.0.2)

-   updated `style` prop description in README
-   updated demo URL from `conor.rodeo` to `conorhastings.github.io`
-   updated `lodash` dep from 4.17.11 to 4.17.14

### [`v11.0.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1101--2019-06-27)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v11.0.0...v11.0.1)

-   version bump, no other changes

### [`v11.0.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1100--2019-06-27)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.3.5...v11.0.0)

-   version bump, no other changes

### [`v10.3.5`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.3.4...v10.3.5)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.3.4...v10.3.5)

### [`v10.3.4`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.3.3...v10.3.4)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.3.3...v10.3.4)

### [`v10.3.3`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1033--2019-06-27)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.3.2...v10.3.3)

-   build to update `async-languages` for highlight, picking up new languages added in 10.3.0

> Historical note: `vs-dark` theme was automatically removed from `AVAILABLE_STYLES_PRISM.MD` in build process here

### [`v10.3.2`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1032--2019-06-27)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.3.1...v10.3.2)

-   version bump

### [`v10.3.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1031--2019-06-27)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.3.0...v10.3.1)

-   minor code change to diff demo
-   added FUNDING.yml
-   minor README updates

### [`v10.3.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1030--2019-05-22)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.2.1...v10.3.0)

-   added projects to "built with" section of README
-   corrected README typos

##### New highlight.js languages

-   `angelscript`
-   `arcade`
-   `gml`
-   `isbl`
-   `pgsql`
-   `plaintext`
-   `properties`
-   `reasonml`
-   `sas`

##### New prism.js styles

-   `xonokai`
-   `vs-dark`

### [`v10.2.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1021--2019-03-21)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.2.0...v10.2.1)

-   fixed `classNames` concatenation in `createElement`
-   updated test snapshots accordingly

### [`v10.2.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1020--2019-03-10)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.1.3...v10.2.0)

-   updated license copyright date
-   updated `highlight` from 9.12.0 to 9.13.0
-   updated `lowlight` from 1.9.1 to 1.11.0

##### New highlight.js styles available

-   `a11yDark`
-   `a11yLight`
-   `anOldHope`
-   `atomOneDarkReasonable`
-   `gml`
-   `isblEditorDark`
-   `isblEditorLight`
-   `lightfair`
-   `nord`
-   `shadesOfPurple`

### [`v10.1.3`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1013--2019-02-16)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.1.2...v10.1.3)

-   README corrections
-   updated deps: `@babel/runtime`, `babel-jest`, `codecov`, `jest`, `request`, `webpack-dev-server`
-   updated import paths in demos

### [`v10.1.2`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1012--2018-12-06)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/4d4856c40d7cef6e7de67a9ece82f21b8398b1c4...v10.1.2)

-   fine-tuned `prettier` config
-   prettier cleanup of src and demo code
-   use `@babel/runtime` instead of `babel-runtime`

### [`v10.1.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/399d529ddd3e5ff83b00034c13ca5f721811d987...4d4856c40d7cef6e7de67a9ece82f21b8398b1c4)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/399d529ddd3e5ff83b00034c13ca5f721811d987...4d4856c40d7cef6e7de67a9ece82f21b8398b1c4)

### [`v10.1.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.0.1...399d529ddd3e5ff83b00034c13ca5f721811d987)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.0.1...399d529ddd3e5ff83b00034c13ca5f721811d987)

### [`v10.0.1`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1001--2018-11-09)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v10.0.0...v10.0.1)

-   All highlighters except for the old "-light" varieties now have a `supportedLanguages` field which can be used to determine the supported languages

### [`v10.0.0`](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD#​1000--2018-10-30)

[Compare Source](https://togithub.com/react-syntax-highlighter/react-syntax-highlighter/compare/v9.0.1...v10.0.0)

-   `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 loaders
-   Added `esm` & `cjs` outputs. Importing should now be done through import OR the import should point into the dist directory.

    import SyntaxHighlighter from "react-syntax-highlighter/prism";

    // Becomes:
    import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";

    // OR (less ideally)
    import { Prism as SyntaxHighlighter } from "react-syntax-highlighter/dist/cjs/prism";
    // OR
    import { Prism as SyntaxHighlighter } from "react-syntax-highlighter/dist/esm/prism";

-   styles have moved into the `dist` directory. Update your imports from:

    import style from 'react-syntax-highlighter/styles/prism'

to:

    import style from 'react-syntax-highlighter/dist/styles/prism'


Renovate configuration

:date: Schedule: At any time (no schedule defined).

:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.

:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: Ignore: Close this PR and you won't be reminded about this update again.


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

This PR has been generated by WhiteSource Renovate. View repository job log here.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nteract/nteract-site/heib8g1zh
✅ Preview: Failed

[Deployment for a55eeb8 failed]