diff --git a/sites/dev/package.json b/sites/dev/package.json index b6cb93e0c12..a368efa56cf 100644 --- a/sites/dev/package.json +++ b/sites/dev/package.json @@ -51,7 +51,7 @@ "react-swipeable": "7.0.1", "react-timeago": "7.1.0", "rehype-autolink-headings": "6.1.1", - "rehype-highlight": "6.0.0", + "rehype-highlight": "7.0.0", "rehype-sanitize": "5.0.1", "rehype-slug": "5.1.0", "rehype-stringify": "10.0.0", diff --git a/sites/lab/package.json b/sites/lab/package.json index 3046408a86f..863f8c48f35 100644 --- a/sites/lab/package.json +++ b/sites/lab/package.json @@ -54,7 +54,7 @@ "react-swipeable": "7.0.1", "react-timeago": "7.1.0", "rehype-autolink-headings": "6.1.1", - "rehype-highlight": "6.0.0", + "rehype-highlight": "7.0.0", "rehype-sanitize": "5.0.1", "rehype-slug": "5.1.0", "rehype-stringify": "10.0.0", diff --git a/sites/org/package.json b/sites/org/package.json index 063a4f912ae..f1bdd27ff05 100644 --- a/sites/org/package.json +++ b/sites/org/package.json @@ -55,7 +55,7 @@ "react-swipeable": "7.0.1", "react-timeago": "7.1.0", "rehype-autolink-headings": "6.1.1", - "rehype-highlight": "6.0.0", + "rehype-highlight": "7.0.0", "rehype-sanitize": "5.0.1", "rehype-slug": "5.1.0", "rehype-stringify": "10.0.0", diff --git a/sites/shared/package.json b/sites/shared/package.json index 59873f70621..2b5058d71f0 100644 --- a/sites/shared/package.json +++ b/sites/shared/package.json @@ -48,7 +48,7 @@ "react-timeago": "7.1.0", "react-zoom-pan-pinch": "3.1.0", "rehype-autolink-headings": "6.1.1", - "rehype-highlight": "6.0.0", + "rehype-highlight": "7.0.0", "remark-frontmatter": "4.0.1", "remark-mdx-frontmatter": "3.0.0", "remark-smartypants": "2.0.0", diff --git a/yarn.lock b/yarn.lock index b954e2a3bdb..c8619595fde 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7096,6 +7096,13 @@ hast-util-is-element@^2.0.0: "@types/hast" "^2.0.0" "@types/unist" "^2.0.0" +hast-util-is-element@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz#6e31a6532c217e5b533848c7e52c9d9369ca0932" + integrity sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g== + dependencies: + "@types/hast" "^3.0.0" + hast-util-parse-selector@^3.0.0: version "3.1.1" resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-3.1.1.tgz#25ab00ae9e75cbc62cf7a901f68a247eade659e2" @@ -7266,15 +7273,15 @@ hast-util-to-string@^2.0.0: dependencies: "@types/hast" "^2.0.0" -hast-util-to-text@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/hast-util-to-text/-/hast-util-to-text-3.1.2.tgz#ecf30c47141f41e91a5d32d0b1e1859fd2ac04f2" - integrity sha512-tcllLfp23dJJ+ju5wCCZHVpzsQQ43+moJbqVX3jNWPB7z/KFC4FyZD6R7y94cHL6MQ33YtMZL8Z0aIXXI4XFTw== +hast-util-to-text@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/hast-util-to-text/-/hast-util-to-text-4.0.0.tgz#7f33a45d0bf7981ead44e82d9d8d75f511b3642f" + integrity sha512-EWiE1FSArNBPUo1cKWtzqgnuRQwEeQbQtnFJRYV1hb1BWDgrAlBU0ExptvZMM/KSA82cDpm2sFGf3Dmc5Mza3w== dependencies: - "@types/hast" "^2.0.0" - "@types/unist" "^2.0.0" - hast-util-is-element "^2.0.0" - unist-util-find-after "^4.0.0" + "@types/hast" "^3.0.0" + "@types/unist" "^3.0.0" + hast-util-is-element "^3.0.0" + unist-util-find-after "^5.0.0" hast-util-whitespace@^1.0.0, hast-util-whitespace@^1.0.4: version "1.0.4" @@ -8996,13 +9003,13 @@ loupe@^2.3.1: dependencies: get-func-name "^2.0.0" -lowlight@^2.0.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/lowlight/-/lowlight-2.9.0.tgz#70da647a4319c7bfd8e97721a679b13ef5621496" - integrity sha512-OpcaUTCLmHuVuBcyNckKfH5B0oA4JUavb/M/8n9iAvanJYNQkrVm4pvyX0SUaqkBG4dnWHKt7p50B3ngAG2Rfw== +lowlight@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/lowlight/-/lowlight-3.0.0.tgz#8772e6514f1c14cd576b5a7a22668f5aa2ddd10b" + integrity sha512-kedX6yxvgak8P4LGh3vKRDQuMbVcnP+qRuDJlve2w+mNJAbEhEQPjYCp9QJnpVL5F2aAAVjeIzzrbQZUKHiDJw== dependencies: - "@types/hast" "^2.0.0" - fault "^2.0.0" + "@types/hast" "^3.0.0" + devlop "^1.0.0" highlight.js "~11.8.0" lru-cache@^5.1.1: @@ -12296,16 +12303,16 @@ rehype-format@^4.0.1: unified "^10.0.0" unist-util-visit-parents "^5.0.0" -rehype-highlight@6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/rehype-highlight/-/rehype-highlight-6.0.0.tgz#8097219d8813b51f4c2b6d92db27dac6cbc9a641" - integrity sha512-q7UtlFicLhetp7K48ZgZiJgchYscMma7XjzX7t23bqEJF8m6/s+viXQEe4oHjrATTIZpX7RG8CKD7BlNZoh9gw== +rehype-highlight@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/rehype-highlight/-/rehype-highlight-7.0.0.tgz#f2fd0eaebea7d4d4ce2fca2e8d9e3aea9441aefc" + integrity sha512-QtobgRgYoQaK6p1eSr2SD1i61f7bjF2kZHAQHxeCHAuJf7ZUDMvQ7owDq9YTkmar5m5TSUol+2D3bp3KfJf/oA== dependencies: - "@types/hast" "^2.0.0" - hast-util-to-text "^3.0.0" - lowlight "^2.0.0" - unified "^10.0.0" - unist-util-visit "^4.0.0" + "@types/hast" "^3.0.0" + hast-util-to-text "^4.0.0" + lowlight "^3.0.0" + unist-util-visit "^5.0.0" + vfile "^6.0.0" rehype-minify-whitespace@^4.0.0: version "4.0.5" @@ -14654,13 +14661,13 @@ unist-builder@^2.0.0: resolved "https://registry.yarnpkg.com/unist-builder/-/unist-builder-2.0.3.tgz#77648711b5d86af0942f334397a33c5e91516436" integrity sha512-f98yt5pnlMWlzP539tPc4grGMsFaQQlP/vM396b00jngsiINumNmsY8rkXjfoi1c6QaM8nQ3vaGDuoKWbe/1Uw== -unist-util-find-after@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/unist-util-find-after/-/unist-util-find-after-4.0.1.tgz#80c69c92b0504033638ce11973f4135f2c822e2d" - integrity sha512-QO/PuPMm2ERxC6vFXEPtmAutOopy5PknD+Oq64gGwxKtk4xwo9Z97t9Av1obPmGU0IyTa6EKYUfTrK2QJS3Ozw== +unist-util-find-after@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz#3fccc1b086b56f34c8b798e1ff90b5c54468e896" + integrity sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ== dependencies: - "@types/unist" "^2.0.0" - unist-util-is "^5.0.0" + "@types/unist" "^3.0.0" + unist-util-is "^6.0.0" unist-util-generated@^1.0.0: version "1.1.6"