From 7a392d1aa2933ef9268b79fbe4e7a365706f5af3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 1 Sep 2023 10:12:34 +0200 Subject: [PATCH] Changesets: Version Packages (#1234) Co-authored-by: github-actions[bot] --- .changeset/slow-suns-attack.md | 40 ------------------ themes/gatsby-theme-minimal-blog/CHANGELOG.md | 41 +++++++++++++++++++ themes/gatsby-theme-minimal-blog/package.json | 2 +- 3 files changed, 42 insertions(+), 41 deletions(-) delete mode 100644 .changeset/slow-suns-attack.md diff --git a/.changeset/slow-suns-attack.md b/.changeset/slow-suns-attack.md deleted file mode 100644 index f0c59cd87..000000000 --- a/.changeset/slow-suns-attack.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -"@lekoarts/gatsby-theme-minimal-blog": minor ---- - -This theme uses [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) for its code blocks. The version was updated from `1.3.5` to `2.0.6` and it contains some breaking changes in regards to the API surface. - -If you modified the theme in any way (e.g. by shadowing or adding additional Prism languages) you need to apply those changes, too. - -## Change of module imports - -```diff -- import Highlight, { defaultProps } from "prism-react-renderer"; -+ import { Highlight } from "prism-react-renderer" - -const Content = ( -- -+ -``` - -## Custom languages - -```js -import { Highlight, Prism } from "prism-react-renderer"; - -(typeof global !== "undefined" ? global : window).Prism = Prism -await import("prismjs/components/prism-applescript") -/** or **/ -require("prismjs/components/prism-applescript") -``` - -## Theme imports - -```diff -- import vsDark from "prism-react-renderer/themes/vsDark" -+ import { themes } from "prism-react-renderer" -+ const { vsDark } = themes - -- const theme = require('prism-react-renderer/themes/vsDark') -+ const theme = require('prism-react-renderer').themes.vsDark -``` diff --git a/themes/gatsby-theme-minimal-blog/CHANGELOG.md b/themes/gatsby-theme-minimal-blog/CHANGELOG.md index 9d841e72e..b5755da0a 100755 --- a/themes/gatsby-theme-minimal-blog/CHANGELOG.md +++ b/themes/gatsby-theme-minimal-blog/CHANGELOG.md @@ -1,5 +1,46 @@ # Change Log +## 6.2.0 + +### Minor Changes + +- [#1232](https://github.com/LekoArts/gatsby-themes/pull/1232) [`d1a23dc5`](https://github.com/LekoArts/gatsby-themes/commit/d1a23dc54df81599c0d0eab13182e07cd4538a77) Thanks [@renovate](https://github.com/apps/renovate)! - This theme uses [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) for its code blocks. The version was updated from `1.3.5` to `2.0.6` and it contains some breaking changes in regards to the API surface. + + If you modified the theme in any way (e.g. by shadowing or adding additional Prism languages) you need to apply those changes, too. + + ## Change of module imports + + ```diff + - import Highlight, { defaultProps } from "prism-react-renderer"; + + import { Highlight } from "prism-react-renderer" + + const Content = ( + - + + + ``` + + ## Custom languages + + ```js + import { Highlight, Prism } from "prism-react-renderer"; + + (typeof global !== "undefined" ? global : window).Prism = Prism; + await import("prismjs/components/prism-applescript"); + /** or **/ + require("prismjs/components/prism-applescript"); + ``` + + ## Theme imports + + ```diff + - import vsDark from "prism-react-renderer/themes/vsDark" + + import { themes } from "prism-react-renderer" + + const { vsDark } = themes + + - const theme = require('prism-react-renderer/themes/vsDark') + + const theme = require('prism-react-renderer').themes.vsDark + ``` + ## 6.1.3 ### Patch Changes diff --git a/themes/gatsby-theme-minimal-blog/package.json b/themes/gatsby-theme-minimal-blog/package.json index dc74aeee3..7417c2eee 100755 --- a/themes/gatsby-theme-minimal-blog/package.json +++ b/themes/gatsby-theme-minimal-blog/package.json @@ -1,6 +1,6 @@ { "name": "@lekoarts/gatsby-theme-minimal-blog", - "version": "6.1.3", + "version": "6.2.0", "author": "LekoArts", "description": "Typography driven, feature-rich blogging theme with minimal aesthetics. Includes tags/categories support and extensive features for code blocks such as live preview, line numbers, and line highlighting.", "license": "MIT",