Skip to content

Commit

Permalink
[Snyk] Upgrade highlight.js from 11.9.0 to 11.10.0 (#78)
Browse files Browse the repository at this point in the history
![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)


<h3>Snyk has created this PR to upgrade highlight.js from 11.9.0 to
11.10.0.</h3>

:information_source: 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.

<hr/>


- The recommended version is **1 version** ahead of your current
version.

- The recommended version was released on **21 days ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>highlight.js</b></summary>
    <ul>
      <li>
<b>11.10.0</b> - <a
href="https://github.com/highlightjs/highlight.js/releases/tag/11.10.0">2024-07-06</a></br><p>Sorry
for the wait, this one is a doozie, thanks to all the contributors who
made it possible!</p>
<hr>
<h3>CAVEATS / POTENTIALLY BREAKING CHANGES</h3>
<div class="markdown-alert markdown-alert-important"><p
class="markdown-alert-title"><svg class="octicon octicon-report mr-2"
viewBox="0 0 16 16" version="1.1" width="16" height="16"
aria-hidden="true"><path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16
.784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458
0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0
0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1
.75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0
.25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5
0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2
0Z"></path></svg>Important</p><p>This version drops support for Node
16.x, which is no longer supported by Node.js.</p>
</div>
<hr>
<p>Core Grammars:</p>
<ul>
<li>enh(typescript) add support for <code>satisfies</code> operator <a
href="https://github.com/kisaragi-hiu">Kisaragi Hiu</a></li>
<li>enc(c) added more C23 keywords <a
href="https://github.com/Melkor-1">Melkor-1</a></li>
<li>enh(json) added jsonc as an alias <a
href="https://github.com/BackupMiles">BackupMiles</a></li>
<li>enh(gml) updated to latest language version (GML v2024.2) <a
href="https://github.com/gnysek">gnysek</a></li>
<li>enh(c) added more C23 keywords and preprcoessor directives <a
href="https://github.com/Eisenwave">Eisenwave</a></li>
<li>enh(js/ts) support namespaced tagged template strings <a
href="https://github.com/aral">Aral Balkan</a></li>
<li>enh(perl) fix false-positive variable match at end of string <a
href="https://github.com/joshgoebel">Josh Goebel</a></li>
<li>fix(cpp) not all kinds of number literals are highlighted correctly
<a href="https://github.com/leduyquang753">Lê Duy Quang</a></li>
<li>fix(css) fix overly greedy pseudo class matching <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>enh(arcade) updated to ArcGIS Arcade version 1.24 <a
href="https://github.com/ekenes">Kristian Ekenes</a></li>
<li>fix(typescript): params types <a
href="https://github.com/MohamedAli00949">Mohamed Ali</a></li>
<li>fix(rust) fix escaped double quotes in string <a
href="https://github.com/MohamedAli00949">Mohamed Ali</a></li>
<li>fix(rust) fix for r# raw identifier not being highlighted correctly.
<a href="https://github.com/ThinkingVincent">JaeBaek Lee</a></li>
<li>enh(rust) Adding union to be recognized as a keyword in Rust. <a
href="https://github.com/ThinkingVincent">JaeBaek Lee</a></li>
<li>fix(yaml) fix for yaml with keys having brackets highlighted
incorrectly <a href="https://github.com/aneesh98">Aneesh
Kulkarni</a></li>
<li>fix(csharp) add raw string highlighting for C# 11. <a
href="https://github.com/taralei">Tara</a></li>
<li>fix(bash) fix # within token being detected as the start of a
comment <a href="https://github.com/iFreilicht">Felix Uhl</a></li>
<li>fix(python) fix <code>or</code> conflicts with string highlighting
<a href="https://github.com/MohamedAli00949">Mohamed Ali</a></li>
<li>enh(python) adds a scope to the <code>self</code> variable [Lee
Falin][]</li>
<li>enh(delphi) allow digits to be omitted for hex and binary literals
<a href="https://github.com/cirras">Jonah Jeleniewski</a></li>
<li>enh(delphi) add support for digit separators <a
href="https://github.com/cirras">Jonah Jeleniewski</a></li>
<li>enh(delphi) add support for character strings with non-decimal
numerics <a href="https://github.com/cirras">Jonah Jeleniewski</a></li>
<li>fix(javascript) incorrect function name highlighting <a
href="https://github.com/cyfung1031">CY Fung</a></li>
<li>fix(1c) fix escaped symbols "+-;():=,[]" literals <a
href="https://github.com/Diversus23">Vitaly Barilko</a></li>
<li>fix(swift) correctly highlight generics and conformances in type
definitions <a href="https://github.com/bradleymackey">Bradley
Mackey</a></li>
<li>enh(swift) add package keyword <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>fix(swift) ensure keyword attributes highlight correctly <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>fix(types) fix interface LanguageDetail &gt; keywords <a
href="https://github.com/patrick-kw-chiu">Patrick Chiu</a></li>
<li>enh(java) add <code>goto</code> to be recognized as a keyword in
Java <a href="https://github.com/alvinsjoy">Alvin Joy</a></li>
<li>enh(bash) add keyword <code>sudo</code> <a
href="https://github.com/alvinsjoy">Alvin Joy</a></li>
<li>fix(haxe) captures <code>new</code> keyword without capturing it
within variables/class names <a
href="https://github.com/ninjamuffin99">Cameron Taylor</a></li>
<li>fix(go) fix go number literals to accept <code>_</code> separators,
add hex p exponents <a href="https://github.com/lugray">Lisa
Ugray</a></li>
<li>enh(markdown) add entity support <a
href="https://github.com/dschach">David Schach</a> <a
href="https://github.com/TaraLei">TaraLei</a></li>
<li>enh(css) add <code>justify-items</code> and
<code>justify-self</code> attributes <a
href="https://github.com/vast">Vasily Polovnyov</a></li>
<li>enh(css) add <code>accent-color</code>, <code>appearance</code>,
<code>color-scheme</code>, <code>rotate</code>, <code>scale</code> and
<code>translate</code> attributes <a
href="https://github.com/carlrafting">Carl Räfting</a></li>
<li>fix(fortran) fixes parsing of keywords delimited by dots <a
href="https://github.com/jbloino">Julien Bloino</a></li>
<li>enh(css) add <code>select</code>, <code>option</code>,
<code>optgroup</code>, <code>picture</code> and <code>source</code> to
list of known tags <a href="https://github.com/vast">Vasily
Polovnyov</a></li>
<li>enh(css) add <code>inset</code>, <code>inset-*</code>,
<code>border-start-*-radius</code> and <code>border-end-*-radius</code>
attributes <a href="https://github.com/vast">Vasily Polovnyov</a></li>
<li>enh(css) add <code>text-decoration-skip-ink</code>,
<code>text-decoration-thickness</code> and
<code>text-underline-offset</code> attributes <a
href="https://github.com/vast">Vasily Polovnyov</a></li>
</ul>
<p>New Grammars:</p>
<ul>
<li>added 3rd party CODEOWNERS grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/Nataliia-Radina">nataliia-radina</a></li>
<li>added 3rd party Luau grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/RobloxianDemo">Robloxian Demo</a></li>
<li>added 3rd party ReScript grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/tsnobip">Paul Tsnobiladzé</a></li>
<li>added 3rd party Zig grammar to SUPPORTED_LANGUAGES [Hyou
BunKen][]</li>
<li>added 3rd party WGSL grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/armansito">Arman Uguray</a></li>
<li>added 3rd party Unison grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/runarorama">Rúnar Bjarnason</a></li>
<li>added 3rd party Phix grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/petelomax">PeteLomax</a></li>
<li>added 3rd party Mirth grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/casuallyblue">Sierra</a></li>
<li>added 3rd party JSONata grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/DevDimov">Vlad Dimov</a></li>
</ul>
<p>Developer Tool:</p>
<ul>
<li>enh(tools): order CSS options picklist <a
href="https://github.com/dschach">David Schach</a></li>
<li>enh(tools): remove duplicate CSS options <a
href="https://github.com/dschach">David Schach</a></li>
<li>(typescript): deprecate old <code>highlight</code> API <a
href="https://github.com/mmkal">Misha Kaletsky</a></li>
</ul>
<p>Themes:</p>
<ul>
<li>Added <code>1c-light</code> theme a like in the IDE 1C:Enterprise 8
(for 1c) <a href="https://github.com/Diversus23">Vitaly Barilko</a></li>
</ul>
      </li>
      <li>
<b>11.9.0</b> - <a
href="https://github.com/highlightjs/highlight.js/releases/tag/11.9.0">2023-10-09</a></br><h2>Version
11.9.0</h2>
<p>CAVEATS / POTENTIALLY BREAKING CHANGES</p>
<ul>
<li>Drops support for Node 14.x, which is no longer supported by
Node.js.</li>
<li>In the <code>node</code> build <code>styles/*.css</code> files now
ship un-minified<br>
with minified counterparts as: <code>styles/*.min.css</code> <a
href="https://github.com/mvorisek">mvorisek</a><br>
(this makes things consistent with our <code>cdn</code> builds)</li>
</ul>
<p>Parser:</p>
<ul>
<li>(enh) prevent re-highlighting of an element [joshgoebel][]</li>
<li>(chore) Remove discontinued badges from README <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>(chore) Fix build size report <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
</ul>
<p>New Grammars:</p>
<ul>
<li>added 3rd party Iptables grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/Checconio">Checconio</a></li>
<li>added 3rd party x86asmatt grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/gondow">gondow</a></li>
<li>added 3rd party riscv64 grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/aana-h2">aana-h2</a></li>
<li>added 3rd party Ballerina grammar to SUPPORTED_LANGUAGES <a
href="https://github.com/YasithD">Yasith Deelaka</a></li>
</ul>
<p>Core Grammars:</p>
<ul>
<li>fix(rust) added negative-lookahead for callable keywords
<code>if</code> <code>while</code> <code>for</code> [Omar
Hussein][]</li>
<li>enh(armasm) added <code>x0-x30</code> and <code>w0-w30</code> ARMv8
registers <a href="https://github.com/NAThompson">Nicholas
Thompson</a></li>
<li>enh(haxe) added <code>final</code>, <code>is</code>,
<code>macro</code> keywords and <code>$</code> identifiers <a
href="https://github.com/RobertBorghese">Robert Borghese</a></li>
<li>enh(haxe) support numeric separators and suffixes <a
href="https://github.com/RobertBorghese">Robert Borghese</a></li>
<li>fix(haxe) fixed metadata arguments and support non-colon syntax <a
href="https://github.com/RobertBorghese">Robert Borghese</a></li>
<li>fix(haxe) differentiate <code>abstract</code> declaration from
keyword <a href="https://github.com/RobertBorghese">Robert
Borghese</a></li>
<li>fix(bash) do not delimit a string by an escaped apostrophe
[hancar][]</li>
<li>enh(swift) support <code>macro</code> keyword <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>enh(swift) support parameter pack keywords <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>enh(swift) regex literal support <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>enh(swift) <code>@ unchecked</code> and <code>@ Sendable</code>
support <a href="https://github.com/bradleymackey">Bradley
Mackey</a></li>
<li>enh(scala) add using directives support <code>//&gt; using foo
bar</code> [Jamie Thompson][]</li>
<li>fix(scala) fixed comments in constructor arguments not being
properly highlighted <a href="https://github.com/isaacnonato">Isaac
Nonato</a></li>
<li>enh(swift) ownership modifiers support <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>enh(nsis) Add <code>!assert</code> compiler flag [idleberg][]</li>
<li>fix(haskell) do not treat double dashes inside infix operators as
comments [Zlondrej][]</li>
<li>enh(rust) added <code>eprintln!</code> macro <a
href="https://github.com/qoheniac">qoheniac</a></li>
<li>enh(leaf) update syntax to 4.0 <a
href="https://github.com/dannflor">Samuel Bishop</a></li>
<li>fix(reasonml) simplify syntax and align it with ocaml <a
href="https://github.com/jchavarri">jchavarri</a></li>
<li>fix(swift) <code>warn_unqualified_access</code> is an attribute <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>enh(swift) macro attributes are highlighted as keywords <a
href="https://github.com/bradleymackey">Bradley Mackey</a></li>
<li>enh(stan) updated for version 2.33 (<a class="issue-link
js-issue-link" data-error-text="Failed to load title"
data-id="1891162011" data-permission-text="Title is private"
data-url="highlightjs/highlight.js#3859"
data-hovercard-type="pull_request"
data-hovercard-url="/highlightjs/highlight.js/pull/3859/hovercard"
href="https://github.com/highlightjs/highlight.js/pull/3859">#3859</a>)
<a href="https://github.com/WardBrian">Brian Ward</a></li>
<li>fix(css) added '_' css variable detection <a
href="https://github.com/akhtarmdsaad">Md Saad Akhtar</a></li>
<li>enh(groovy) add <code>record</code> and <code>var</code> as keywords
<a href="https://github.com/glaforge">Guillaume Laforge</a></li>
</ul>
<p>Developer Tool:</p>
<ul>
<li>(chore) Update dev tool to use the new <code>highlight</code> API.
<a href="https://github.com/shabbir23ah">Shah Shabbir Ahmmed</a></li>
<li>(enh) Auto-update the highlighted output when the language dropdown
changes. <a href="https://github.com/shabbir23ah">Shah Shabbir
Ahmmed</a></li>
</ul>
      </li>
    </ul>
from <a
href="https://github.com/highlightjs/highlight.js/releases">highlight.js
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**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:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI1MjUyZTQ5OS05M2UwLTQ3MDQtYWUxNS00YjRmYzIzYmE2YzYiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjUyNTJlNDk5LTkzZTAtNDcwNC1hZTE1LTRiNGZjMjNiYTZjNiJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/blankll/project/d19c39b4-9b25-4232-b09a-2d71e94c8a24?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/blankll/project/d19c39b4-9b25-4232-b09a-2d71e94c8a24/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/blankll/project/d19c39b4-9b25-4232-b09a-2d71e94c8a24/settings/integration?pkg&#x3D;highlight.js&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

<!---
(snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"highlight.js","from":"11.9.0","to":"11.10.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"5252e499-93e0-4704-ae15-4b4fc23ba6c6","prPublicId":"5252e499-93e0-4704-ae15-4b4fc23ba6c6","packageManager":"npm","priorityScoreList":[],"projectPublicId":"d19c39b4-9b25-4232-b09a-2d71e94c8a24","projectUrl":"https://app.snyk.io/org/blankll/project/d19c39b4-9b25-4232-b09a-2d71e94c8a24?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":1,"publishedDate":"2024-07-06T21:12:53.887Z"},"vulns":[]})
--->

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
  • Loading branch information
Blankll and snyk-bot committed Jul 29, 2024
1 parent e8f2b76 commit f99b4d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@tauri-apps/api": "^1.6.0",
"debug": "^4.3.5",
"highlight.js": "^11.9.0",
"highlight.js": "^11.10.0",
"lodash": "^4.17.21",
"markdown-it": "^14.1.0",
"monaco-editor": "^0.50.0",
Expand Down

0 comments on commit f99b4d0

Please sign in to comment.