Skip to content

Commit 1785dcf

Browse files
authored
BREAKING: Next major version of all themes (Gatsby v3, Theme UI v0.9) (#599)
1 parent 520818f commit 1785dcf

322 files changed

Lines changed: 8808 additions & 9511 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/clever-items-march.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
"@lekoarts/gatsby-theme-emma": major
3+
"@lekoarts/gatsby-theme-emma-core": major
4+
---
5+
6+
### Breaking Changes
7+
8+
1. Using `lessBabel` option for `gatsby-plugin-mdx`
9+
1. Updating `react-spring` from v8 to v9
10+
1. Updating `theme-ui` from v0.3 to v0.9 and thus also `emotion` from v10 to v11
11+
1. Removed `@emotion/styled`
12+
1. Updating all Gatsby related packages to latest
13+
1. Migrated from `gatsby-image` to `gatsby-plugin-image`
14+
1. Removed `gatsby-plugin-typescript` & `gatsby-plugin-emotion`
15+
16+
#### Migrating
17+
18+
1. The `lessBabel` option might break your setup in some edge cases. If it doesn't work, turn on the `mdx` option and choose your own config for `gatsby-plugin-mdx`
19+
1. You can find the migration guide for `react-spring` here: https://react-spring.io/changelog#v900
20+
1. The changelog/migration guide for `theme-ui` is here: https://theme-ui.com/migrating and for `emotion` here: https://emotion.sh/docs/emotion-11
21+
1. If you still want to use `@emotion/styled` you'll need to install it separately now
22+
1. Gatsby v3 migration guide: https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/
23+
1. The theme itself is completely migrated to the new image plugin, but if you shadowed components and relied on the old structure, you'll need to migrate to `gatsby-plugin-image`: https://www.gatsbyjs.com/docs/reference/release-notes/image-migration-guide/
24+
1. The TypeScript plugin isn't necessary anymore with Gatsby v3 -- if you want to continue to use `@emotion/styled` you'll need to add `gatsby-plugin-emotion` yourself
25+
26+
### Improvements
27+
28+
- You can use the `sharp` theme option to be able to configure `gatsby-plugin-sharp` on your own (helpful for defaults for `gatsby-plugin-image`)
29+
- Performance improvements from `react-spring` and `theme-ui` upgrades
30+
- Eagerly load the first image in the grid (better lighthouse score)
31+
- Update header/navigation for better mobile view
32+
33+
### Updates to Starter
34+
35+
If you only cloned the starter (https://github.com/LekoArts/gatsby-starter-portfolio-emma) and didn't change anything else this section will be more relevant to you.
36+
37+
- Conditionally add `gatsby-plugin-google-analytics`
38+
- Add `FAST_DEV` flag
39+
- Update to all latest Gatsby (+ plugins) versions

.changeset/clever-toys-thank.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
"@lekoarts/gatsby-theme-graphql-playground": major
3+
---
4+
5+
### Breaking Changes
6+
7+
1. Using `lessBabel` option for `gatsby-plugin-mdx`
8+
1. Removed `gatsby-plugin-typescript` & `gatsby-plugin-emotion`
9+
10+
#### Migrating
11+
12+
1. The `lessBabel` option might break your setup in some edge cases. If it doesn't work, turn on the `mdx` option and choose your own config for `gatsby-plugin-mdx`
13+
1. The TypeScript plugin isn't necessary anymore with Gatsby v3
14+
15+
### Improvements
16+
17+
- Performance improvements from `theme-ui` upgrade
18+
19+
### Updates to Starter
20+
21+
If you only cloned the starter (https://github.com/LekoArts/gatsby-starter-graphql-playground) and didn't change anything else this section will be more relevant to you.
22+
23+
- Add `FAST_DEV` flag
24+
- Update to all latest Gatsby (+ plugins) versions

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@1.4.0/schema.json",
2+
"$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json",
33
"changelog": [
44
"@changesets/changelog-github",
55
{ "repo": "LekoArts/gatsby-themes" }

.changeset/light-birds-beam.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
"@lekoarts/gatsby-theme-cara": major
3+
---
4+
5+
### Breaking Changes
6+
7+
1. Using `lessBabel` option for `gatsby-plugin-mdx`
8+
1. Updating `react-spring` from v8 to v9
9+
1. Updating `theme-ui` from v0.3 to v0.9 and thus also `emotion` from v10 to v11
10+
1. Removed `@emotion/styled`
11+
1. Updating all Gatsby related packages to latest
12+
1. Removed `gatsby-plugin-typescript` & `gatsby-plugin-emotion`
13+
14+
#### Migrating
15+
16+
1. The `lessBabel` option might break your setup in some edge cases. If it doesn't work, turn on the `mdx` option and choose your own config for `gatsby-plugin-mdx`
17+
1. You can find the migration guide for `react-spring` here: https://react-spring.io/changelog#v900. The most notable change is the import that was used inside the components. From `import { ParallaxLayer } from "react-spring/renderprops-addons.cjs"` to `import { ParallaxLayer } from "@react-spring/parallax"`
18+
1. The changelog/migration guide for `theme-ui` is here: https://theme-ui.com/migrating and for `emotion` here: https://emotion.sh/docs/emotion-11
19+
1. If you still want to use `@emotion/styled` you'll need to install it separately now
20+
1. Gatsby v3 migration guide: https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/
21+
1. The TypeScript plugin isn't necessary anymore with Gatsby v3 -- if you want to continue to use `@emotion/styled` you'll need to add `gatsby-plugin-emotion` yourself
22+
23+
### Improvements
24+
25+
- You can use the `sharp` theme option to be able to configure `gatsby-plugin-sharp` on your own (helpful for defaults for `gatsby-plugin-image`)
26+
- Performance improvements from `react-spring` and `theme-ui` upgrades
27+
- Additional props to the `ProjectCard` component are now spread by default in the `components` config of `gatsby-plugin-theme-ui`
28+
29+
### Updates to Starter
30+
31+
If you only cloned the starter (https://github.com/LekoArts/gatsby-starter-portfolio-cara) and didn't change anything else this section will be more relevant to you.
32+
33+
- Conditionally add `gatsby-plugin-google-analytics`
34+
- Add `FAST_DEV` flag
35+
- Update to all latest Gatsby (+ plugins) versions
36+
- Add 404 page

.changeset/metal-badgers-fail.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
"@lekoarts/gatsby-theme-specimens": major
3+
---
4+
5+
### Breaking Changes
6+
7+
1. Removed `gatsby-plugin-typescript`
8+
1. Updating `theme-ui` from v0.3 to v0.9 and thus also `emotion` from v10 to v11
9+
10+
#### Migrating
11+
12+
1. The TypeScript plugin isn't necessary anymore with Gatsby v3
13+
1. The changelog/migration guide for `theme-ui` is here: https://theme-ui.com/migrating and for `emotion` here: https://emotion.sh/docs/emotion-11
14+
15+
### Updates to Starter
16+
17+
If you only cloned the starter (https://github.com/LekoArts/gatsby-starter-specimens) and didn't change anything else this section will be more relevant to you.
18+
19+
- Add `FAST_DEV` flag
20+
- Update to all latest Gatsby (+ plugins) versions
21+
- Add `lessBabel` option to `gatsby-plugin-mdx`
22+
- Update usage of `wrapPageElement` API in `gatsby-browser.js` and `gatsby-ssr.js`
23+
- Update `theme-ui` from v0.3 to v0.9

.changeset/nervous-falcons-lie.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
"@lekoarts/gatsby-theme-styleguide": major
3+
---
4+
5+
### Breaking Changes
6+
7+
1. `peerDependencies` of `theme-ui` v0.9, React v17 and Gatsby v3
8+
9+
#### Migrating
10+
11+
1. Update your packages to the necessary `peerDependency` versions
12+
13+
### Updates to Starter
14+
15+
If you only cloned the starter (https://github.com/LekoArts/gatsby-starter-styleguide) and didn't change anything else this section will be more relevant to you.
16+
17+
- Add `FAST_DEV` flag
18+
- Update to all latest Gatsby (+ plugins) versions
19+
- Update `emotion` from v10 to v11

.changeset/quick-socks-relax.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
"@lekoarts/gatsby-theme-status-dashboard": major
3+
---
4+
5+
### Breaking Changes
6+
7+
1. Removed `gatsby-plugin-typescript`
8+
1. Updating `theme-ui` from v0.3 to v0.9 and thus also `emotion` from v10 to v11
9+
10+
#### Migrating
11+
12+
1. The TypeScript plugin isn't necessary anymore with Gatsby v3
13+
1. The changelog/migration guide for `theme-ui` is here: https://theme-ui.com/migrating and for `emotion` here: https://emotion.sh/docs/emotion-11
14+
15+
### Improvements
16+
17+
- Performance improvements from `theme-ui` upgrade
18+
19+
### Updates to Starter
20+
21+
If you only cloned the starter (https://github.com/LekoArts/gatsby-status-dashboard) and didn't change anything else this section will be more relevant to you.
22+
23+
- Add `FAST_DEV` flag
24+
- Update to all latest Gatsby (+ plugins) versions
25+
- Update `emotion` from v10 to v11
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
"@lekoarts/gatsby-theme-jodie": major
3+
"@lekoarts/gatsby-theme-jodie-core": major
4+
---
5+
6+
### Breaking Changes
7+
8+
1. Using `lessBabel` option for `gatsby-plugin-mdx`
9+
1. Updating `theme-ui` from v0.3 to v0.9 and thus also `emotion` from v10 to v11
10+
1. Updating all Gatsby related packages to latest
11+
1. Migrated from `gatsby-image` to `gatsby-plugin-image`
12+
1. Removed `fontsource-work-sans` npm package
13+
14+
#### Migrating
15+
16+
1. The `lessBabel` option might break your setup in some edge cases. If it doesn't work, turn on the `mdx` option and choose your own config for `gatsby-plugin-mdx`
17+
1. The changelog/migration guide for `theme-ui` is here: https://theme-ui.com/migrating and for `emotion` here: https://emotion.sh/docs/emotion-11
18+
1. Gatsby v3 migration guide: https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/
19+
1. The theme itself is completely migrated to the new image plugin, but if you shadowed components and relied on the old structure, you'll need to migrate to `gatsby-plugin-image`: https://www.gatsbyjs.com/docs/reference/release-notes/image-migration-guide/
20+
1. The starter now handles loading the font (via `gatsby-omni-font-loader`). This enables you to switch the primary font more easily (once you updated the Theme UI config). You can copy the configuration from there into your own `gatsby-config.js`
21+
22+
### Improvements
23+
24+
- You can use the `sharp` theme option to be able to configure `gatsby-plugin-sharp` on your own (helpful for defaults for `gatsby-plugin-image`)
25+
- Performance improvements from `theme-ui` upgrade
26+
- Eagerly load the first image in the grid (better lighthouse score)
27+
28+
### Updates to Starter
29+
30+
If you only cloned the starter (https://github.com/LekoArts/gatsby-starter-portfolio-jodie) and didn't change anything else this section will be more relevant to you.
31+
32+
- Conditionally add `gatsby-plugin-google-analytics`
33+
- Conditionally add `gatsby-plugin-webpack-bundle-analyser-v2`
34+
- Use `gatsby-omni-font-loader` to load the primary font ("Work Sans") instead of in the theme itself
35+
- Add `FAST_DEV` flag
36+
- Update to all latest Gatsby (+ plugins) versions
37+
- Remove `gatsby-source-instagram` as Instagram locked down its API (and public scraping methods) even further. The page is now called `/art` and showcases the custom page in the same way

.changeset/thick-donuts-juggle.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
"@lekoarts/gatsby-theme-emilia": major
3+
"@lekoarts/gatsby-theme-emilia-core": major
4+
---
5+
6+
### Breaking Changes
7+
8+
1. Using `lessBabel` option for `gatsby-plugin-mdx`
9+
1. Updating `react-spring` from v8 to v9
10+
1. Updating `theme-ui` from v0.3 to v0.9 and thus also `emotion` from v10 to v11
11+
1. Removed `@emotion/styled`
12+
1. Updating all Gatsby related packages to latest
13+
1. Migrated from `gatsby-image` to `gatsby-plugin-image`
14+
1. Removed `gatsby-plugin-typescript` & `gatsby-plugin-emotion`
15+
1. Removed the `colorThief` node field
16+
1. Normal CSS grid layout (instead of Masonry layout)
17+
18+
#### Migrating
19+
20+
1. The `lessBabel` option might break your setup in some edge cases. If it doesn't work, turn on the `mdx` option and choose your own config for `gatsby-plugin-mdx`
21+
1. You can find the migration guide for `react-spring` here: https://react-spring.io/changelog#v900. The most notable change is the import that was used inside the components. From `import { ParallaxLayer } from "react-spring/renderprops-addons.cjs"` to `import { ParallaxLayer } from "@react-spring/parallax"`
22+
1. The changelog/migration guide for `theme-ui` is here: https://theme-ui.com/migrating and for `emotion` here: https://emotion.sh/docs/emotion-11
23+
1. If you still want to use `@emotion/styled` you'll need to install it separately now
24+
1. Gatsby v3 migration guide: https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/
25+
1. The theme itself is completely migrated to the new image plugin, but if you shadowed components and relied on the old structure, you'll need to migrate to `gatsby-plugin-image`: https://www.gatsbyjs.com/docs/reference/release-notes/image-migration-guide/
26+
1. The TypeScript plugin isn't necessary anymore with Gatsby v3 -- if you want to continue to use `@emotion/styled` you'll need to add `gatsby-plugin-emotion` yourself
27+
1. The `gatsby-plugin-image` now exposes the dominant color via the `placeholder` itself
28+
1. The Masonry layout was a bit hacky, so I switched it to a normal CSS grid layout. You could shadow the `card` component to try something on your own. Once the CSS spec itself has a native masonry layout I'll add it back
29+
30+
### Improvements
31+
32+
- You can use the `sharp` theme option to be able to configure `gatsby-plugin-sharp` on your own (helpful for defaults for `gatsby-plugin-image`)
33+
- Performance improvements from `react-spring` and `theme-ui` upgrades
34+
- Eagerly load the first image in the grid (better lighthouse score)
35+
36+
### Updates to Starter
37+
38+
If you only cloned the starter (https://github.com/LekoArts/gatsby-starter-portfolio-emilia) and didn't change anything else this section will be more relevant to you.
39+
40+
- Conditionally add `gatsby-plugin-google-analytics`
41+
- Add `FAST_DEV` flag
42+
- Update to all latest Gatsby (+ plugins) versions
43+
- Add 404 page

.changeset/tricky-glasses-love.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
"@lekoarts/gatsby-theme-minimal-blog": major
3+
"@lekoarts/gatsby-theme-minimal-blog-core": major
4+
---
5+
6+
### Breaking Changes
7+
8+
1. Using `lessBabel` option for `gatsby-plugin-mdx`
9+
1. Updating `theme-ui` from v0.3 to v0.9 and thus also `emotion` from v10 to v11
10+
1. Updating all Gatsby related packages to latest
11+
1. Removed `gatsby-plugin-typescript`
12+
1. Removed `gatsby-plugin-feed`
13+
1. Removed `typeface-ibm-plex-sans` npm package
14+
15+
#### Migrating
16+
17+
1. The `lessBabel` option might break your setup in some edge cases. If it doesn't work, turn on the `mdx` option and choose your own config for `gatsby-plugin-mdx`
18+
1. The changelog/migration guide for `theme-ui` is here: https://theme-ui.com/migrating and for `emotion` here: https://emotion.sh/docs/emotion-11
19+
1. Gatsby v3 migration guide: https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/
20+
1. The TypeScript plugin isn't necessary anymore with Gatsby v3
21+
1. The plugin and its config was moved to the starter. You can copy the configuration from there into your own `gatsby-config.js`
22+
1. The starter now handles loading the font (via `gatsby-omni-font-loader`). This enables you to switch the primary font more easily (once you updated the Theme UI config). You can copy the configuration from there into your own `gatsby-config.js`
23+
24+
### Improvements
25+
26+
- Performance improvements from `theme-ui` upgrade
27+
- Fixed https://github.com/LekoArts/gatsby-themes/issues/415
28+
29+
### Updates to Starter
30+
31+
If you only cloned the starter (https://github.com/LekoArts/gatsby-starter-minimal-blog) and didn't change anything else this section will be more relevant to you.
32+
33+
- Conditionally add `gatsby-plugin-google-analytics`
34+
- Add `FAST_DEV` flag
35+
- Update to all latest Gatsby (+ plugins) versions
36+
- Move `gatsby-plugin-feed` from theme to starter
37+
- Use `gatsby-omni-font-loader` to load the primary font ("IBM Plex Sans") instead of in the theme itself

0 commit comments

Comments
 (0)