Skip to content

Commit

Permalink
Changesets: Version Packages (#1234)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Sep 1, 2023
1 parent d1a23dc commit 7a392d1
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 41 deletions.
40 changes: 0 additions & 40 deletions .changeset/slow-suns-attack.md

This file was deleted.

41 changes: 41 additions & 0 deletions themes/gatsby-theme-minimal-blog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 = (
- <Highlight {...defaultProps} code={exampleCode} language="jsx">
+ <Highlight code={exampleCode} language="jsx">
```

## 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
Expand Down
2 changes: 1 addition & 1 deletion themes/gatsby-theme-minimal-blog/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 7a392d1

Please sign in to comment.