From 51fe036ee3c864c5c4ebc0e13d34d925f0368a54 Mon Sep 17 00:00:00 2001 From: seven Date: Sat, 11 Jan 2025 15:00:41 +0800 Subject: [PATCH] [Snyk] Upgrade highlight.js from 11.10.0 to 11.11.0 (#154) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ![snyk-top-banner](https://redirect.github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade highlight.js from 11.10.0 to 11.11.0.

: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.
- The recommended version is **1 version** ahead of your current version. - The recommended version was released **a month ago**.
Release notes
Package name: highlight.js
  • 11.11.0 - 2024-12-14

    Version 11.11.0

    CAVEATS / POTENTIALLY BREAKING CHANGES

    • Nothing.

    Core Grammars:

    • fix(rust) - adds emoji support in single quote strings [joshgoebel][]
    • fix(apache) - support line continuation via \ Josh Goebel
    • fix(makefile) - allow strings inside $() expressions aneesh98
    • enh(arcade) updated to ArcGIS Arcade version 1.29 Kristian Ekenes
    • enh(css) add all properties listed on MDN (96 additions including anchor-name, aspect-ratio, backdrop-filter, container, margin-trim, place-content, scroll-timeline, ...) BaliBalo
    • enh(excel) add built-in functions for Excel 365 release to 2024 Danny Winrow
    • enh(erlang) OTP 27 triple-quoted strings nixxquality
    • enh(erlang) OTP 27 doc attribute nixxquality
    • enh(erlang) OTP 27 Sigil type nixxquality
    • enh(erlang) OTP25/27 maybe statement nixxquality
    • enh(dart) Support digit-separators in number literals [Sam Rawlins][]
    • enh(csharp) add Contextual keywords file, args, dynamic, record, required and scoped Alvin Joy
    • enh(lua) add 'pluto' as an alias Sainan
    • enh(bash) add reserved keywords time and coproc Álvaro Mondéjar
    • enh(nix) update keywords [h7x4][]
    • enh(nix) support paths [h7x4][]
    • enh(nix) support lookup paths [h7x4][]
    • enh(nix) support operators [h7x4][]
    • enh(nix) support REPL keywords [h7x4][]
    • enh(nix) support markdown comments [h7x4][]
    • enh(nix) support basic function params [h7x4][]
    • enh(nix) better parsing of attrsets [h7x4][]
    • fix(c) - Fixed hex numbers with decimals Dxuian
    • fix(typescript) - Fixedoptional property not highlighted correctly Dxuian
    • fix(ruby) - fix |= operator false positives (as block arguments) Aboobacker MK
    • enh(gcode) rewrote language for modern gcode support Barthélémy Bonhomme
    • fix(sql) - Fixed sql primary key and foreign key spacing issue Dxuian
    • fix(cpp) added flat_set and flat_map as a part of cpp 23 version Lavan
    • fix(yaml) - Fixed special chars in yaml Dxuian
    • fix(basic) - Fixed closing quotation marks not required for a PRINT statement Somya
    • fix(nix) remove add builtin [h7x4][]
    • fix(nix) mark or as builtin instead of literal [h7x4][]
    • fix(nix) handle ''' string escapes [h7x4][]
    • fix(nix) handle backslash string escapes [h7x4][]
    • fix(nix) don't mix escapes for " and '' strings [h7x4][]
    • fix(swift) - Fixed syntax highlighting for class func/var declarations guuido
    • fix(yaml) - Fixed wrong escaping behavior in single quoted strings guuido
    • enh(nim) - Add concept and defer to list of Nim keywords Jake Leahy

    New Grammars:

    • added 3rd party TTCN-3 grammar to SUPPORTED_LANGUAGES Osmocom
    • added 3rd party Odin grammar to SUPPORTED_LANGUAGES clsource
    • added 3rd party Liquid grammar to SUPPORTED_LANGUAGES Laurel King

    Developer Tools:

    • Nothing yet.

    Themes:

    Improvements:

    • Resolve the memory leak problem when creating multiple Highlight.js instances Imken

    CONTRIBUTORS

  • 11.10.0 - 2024-07-06

    Sorry for the wait, this one is a doozie, thanks to all the contributors who made it possible!


    CAVEATS / POTENTIALLY BREAKING CHANGES

    Important

    This version drops support for Node 16.x, which is no longer supported by Node.js.


    Core Grammars:

    • enh(typescript) add support for satisfies operator Kisaragi Hiu
    • enc(c) added more C23 keywords Melkor-1
    • enh(json) added jsonc as an alias BackupMiles
    • enh(gml) updated to latest language version (GML v2024.2) gnysek
    • enh(c) added more C23 keywords and preprcoessor directives Eisenwave
    • enh(js/ts) support namespaced tagged template strings Aral Balkan
    • enh(perl) fix false-positive variable match at end of string Josh Goebel
    • fix(cpp) not all kinds of number literals are highlighted correctly Lê Duy Quang
    • fix(css) fix overly greedy pseudo class matching Bradley Mackey
    • enh(arcade) updated to ArcGIS Arcade version 1.24 Kristian Ekenes
    • fix(typescript): params types Mohamed Ali
    • fix(rust) fix escaped double quotes in string Mohamed Ali
    • fix(rust) fix for r# raw identifier not being highlighted correctly. JaeBaek Lee
    • enh(rust) Adding union to be recognized as a keyword in Rust. JaeBaek Lee
    • fix(yaml) fix for yaml with keys having brackets highlighted incorrectly Aneesh Kulkarni
    • fix(csharp) add raw string highlighting for C# 11. Tara
    • fix(bash) fix # within token being detected as the start of a comment Felix Uhl
    • fix(python) fix or conflicts with string highlighting Mohamed Ali
    • enh(python) adds a scope to the self variable [Lee Falin][]
    • enh(delphi) allow digits to be omitted for hex and binary literals Jonah Jeleniewski
    • enh(delphi) add support for digit separators Jonah Jeleniewski
    • enh(delphi) add support for character strings with non-decimal numerics Jonah Jeleniewski
    • fix(javascript) incorrect function name highlighting CY Fung
    • fix(1c) fix escaped symbols "+-;():=,[]" literals Vitaly Barilko
    • fix(swift) correctly highlight generics and conformances in type definitions Bradley Mackey
    • enh(swift) add package keyword Bradley Mackey
    • fix(swift) ensure keyword attributes highlight correctly Bradley Mackey
    • fix(types) fix interface LanguageDetail > keywords Patrick Chiu
    • enh(java) add goto to be recognized as a keyword in Java Alvin Joy
    • enh(bash) add keyword sudo Alvin Joy
    • fix(haxe) captures new keyword without capturing it within variables/class names Cameron Taylor
    • fix(go) fix go number literals to accept _ separators, add hex p exponents Lisa Ugray
    • enh(markdown) add entity support David Schach TaraLei
    • enh(css) add justify-items and justify-self attributes Vasily Polovnyov
    • enh(css) add accent-color, appearance, color-scheme, rotate, scale and translate attributes Carl Räfting
    • fix(fortran) fixes parsing of keywords delimited by dots Julien Bloino
    • enh(css) add select, option, optgroup, picture and source to list of known tags Vasily Polovnyov
    • enh(css) add inset, inset-*, border-start-*-radius and border-end-*-radius attributes Vasily Polovnyov
    • enh(css) add text-decoration-skip-ink, text-decoration-thickness and text-underline-offset attributes Vasily Polovnyov

    New Grammars:

    • added 3rd party CODEOWNERS grammar to SUPPORTED_LANGUAGES nataliia-radina
    • added 3rd party Luau grammar to SUPPORTED_LANGUAGES Robloxian Demo
    • added 3rd party ReScript grammar to SUPPORTED_LANGUAGES Paul Tsnobiladzé
    • added 3rd party Zig grammar to SUPPORTED_LANGUAGES [Hyou BunKen][]
    • added 3rd party WGSL grammar to SUPPORTED_LANGUAGES Arman Uguray
    • added 3rd party Unison grammar to SUPPORTED_LANGUAGES Rúnar Bjarnason
    • added 3rd party Phix grammar to SUPPORTED_LANGUAGES PeteLomax
    • added 3rd party Mirth grammar to SUPPORTED_LANGUAGES Sierra
    • added 3rd party JSONata grammar to SUPPORTED_LANGUAGES Vlad Dimov

    Developer Tool:

    Themes:

    • Added 1c-light theme a like in the IDE 1C:Enterprise 8 (for 1c) Vitaly Barilko
from highlight.js GitHub release notes
--- > [!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:** > - 🧐 [View latest project report](https://app.snyk.io/org/blankll/project/d19c39b4-9b25-4232-b09a-2d71e94c8a24?utm_source=github&utm_medium=referral&page=upgrade-pr) > - 📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template) > - 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/blankll/project/d19c39b4-9b25-4232-b09a-2d71e94c8a24/settings/integration?utm_source=github&utm_medium=referral&page=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=highlight.js&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades) [//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"highlight.js","from":"11.10.0","to":"11.11.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"f5301790-189f-49d2-b2b1-e2fd8dabb8a2","prPublicId":"f5301790-189f-49d2-b2b1-e2fd8dabb8a2","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-12-14T16:23:34.323Z"},"vulns":[]}' Co-authored-by: snyk-bot --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index fb8f1530..4d3628f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@tauri-apps/api": "^1.6.0", "debug": "^4.4.0", - "highlight.js": "^11.10.0", + "highlight.js": "^11.11.0", "json5": "^2.2.3", "lodash": "^4.17.21", "markdown-it": "^14.1.0", @@ -5131,9 +5131,9 @@ } }, "node_modules/highlight.js": { - "version": "11.10.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.10.0.tgz", - "integrity": "sha512-SYVnVFswQER+zu1laSya563s+F8VDGt7o35d4utbamowvUNLLMovFqwCLSocpZTz3MgaSRA1IbqRWZv97dtErQ==", + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.11.0.tgz", + "integrity": "sha512-6ErL7JlGu2CNFHyRQEuDogOyGPNiqcuWdt4iSSFUPyferNTGlNTPFqeV36Y/XwA4V/TJ8l0sxp6FTnxud/mf8g==", "license": "BSD-3-Clause", "engines": { "node": ">=12.0.0" diff --git a/package.json b/package.json index cd8e5d10..86218a80 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "@tauri-apps/api": "^1.6.0", "debug": "^4.4.0", - "highlight.js": "^11.10.0", + "highlight.js": "^11.11.0", "json5": "^2.2.3", "lodash": "^4.17.21", "markdown-it": "^14.1.0",