From 9dd428557fcb2fb74b7208e19ba0144a270b4d03 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 May 2023 13:30:14 +0200 Subject: [PATCH] deps: update dependency prism-react-renderer to v2 (#1824) * deps: update dependency prism-react-renderer to v2 * Update docusaurus.config.js --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com> --- docs/docusaurus.config.js | 4 ++-- docs/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index bd4596079..9b0eba607 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -1,8 +1,8 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion -const lightCodeTheme = require('prism-react-renderer/themes/github'); -const darkCodeTheme = require('prism-react-renderer/themes/dracula'); +const lightCodeTheme = require('prism-react-renderer').themes.github; +const darkCodeTheme = require('prism-react-renderer').themes.dracula; /** @type {import('@docusaurus/types').Config} */ async function createConfig() { diff --git a/docs/package.json b/docs/package.json index 4e6405a9f..a78edc49e 100644 --- a/docs/package.json +++ b/docs/package.json @@ -23,7 +23,7 @@ "clsx": "^1.2.1", "mdx-mermaid": "^1.3.2", "mermaid": "^10.0.0", - "prism-react-renderer": "^1.3.5", + "prism-react-renderer": "^2.0.0", "react": "^17.0.2", "react-dom": "^17.0.2" },