You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[New image plugin](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-image) to replace `gatsby-image`, which greatly improves performance (Lighthouse 💯 again) and adds easy static images (no GraphQL). Part of it is also a new, simpler API for `gatsby-transformer-sharp`.
63
63
64
-
### StaticImage
64
+
### `StaticImage`
65
65
66
66
This component is a new, simpler way to use Gatsby's image processing for static images without needing to write GraphQL queries:
67
67
68
-
```js
68
+
```jsx
69
69
importReactfrom"react"
70
70
import { StaticImage } from"gatsby-plugin-image"
71
71
@@ -74,7 +74,7 @@ export const Dino = () => (
74
74
)
75
75
```
76
76
77
-
### GatsbyImage
77
+
### `GatsbyImage`
78
78
79
79
This is a complete rewrite of the Gatsby Image component, using native lazy loading whenever possible.
80
80
In our tests it allows sites whose Lighthouse scores dropped in recent updates to get back to 100s across the board.
@@ -108,7 +108,7 @@ export function Plant({ data }) {
108
108
-[Details, Migration guide and discussion](https://github.com/gatsbyjs/gatsby/discussions/27950)
There is now a new, interactive way to create a Gatsby site. As long as you have Node.js installed you're ready to go.
35
35
@@ -75,7 +75,7 @@ Try it out immediately by running `GATSBY_EXPERIMENTAL_DEV_SSR=true gatsby devel
75
75
76
76
### Experimental: Lazy page bundling in development
77
77
78
-
UPDATE: After a number of community members tested the change on their website, we decided it wasn't going to work out—https://github.com/gatsbyjs/gatsby/discussions/28137#discussioncomment-138998
78
+
UPDATE: After a number of community members tested the change on their website, we decided it wasn't going to work out — https://github.com/gatsbyjs/gatsby/discussions/28137#discussioncomment-138998
79
79
80
80
An obstacle to Gatsby being a delightful experience for larger sites is JavaScript compilation can start to get annoyingly slow. For example, gatsbyjs.com takes over two minutes currently (with a cold cache) to compile and bundle the code for the many page components. Not acceptable!
81
81
@@ -85,7 +85,7 @@ Now when you run `GATSBY_EXPERIMENT_DEVJS_LAZY=true gatsby develop`, webpack won
85
85
86
86
All sites should see some speedups but it's especially noticeable for larger sites like gatsbyjs.com which now starts webpack 81% faster than before! Please test it out and tell us how fast your dev server boots up over at the [umbrella issue](https://github.com/gatsbyjs/gatsby/discussions/28137) along with any bugs you might run across.
Adds a `lessBabel` option to the plugin which allows you to use a fast path for scanning exports during sourcing. The savings are significant, especially at scale, but as the new scanner does not use Babel, if your site depends on Babel then you can't use this. Please give the option a try and report any problems unrelated to not running Babel so we can improve the support.
91
91
@@ -106,7 +106,7 @@ This experimental version of `gatsby-plugin-sharp` only does image processing wh
106
106
107
107
Try early alpha (and [let us know](https://github.com/gatsbyjs/gatsby/discussions/27603) if you have any issues with it):
-[New `gatsby new`](#new-gatsby-new) - new, interactive way to create a Gatsby site
15
-
-[Feature flags in gatsby-config](#feature-flags-in-gatsby-config) - set your feature toggles without environment variables
15
+
-[Feature flags in `gatsby-config.js`](#feature-flags-in-gatsby-configjs) - set your feature toggles without environment variables
16
16
-[Improved Fast Refresh integration](#improved-fast-refresh-integration) - better hot reloading
17
17
-[Experimental: Lazy images in develop](#experimental-lazy-images-in-develop) - run image transformations only when they are needed by browser
18
18
19
19
Other notable changes:
20
20
21
21
-[Image plugin helpers](#image-plugin-helpers) - make it easier for plugin authors to support the new gatsby image plugin
22
22
-[Experimental: New cache clearing behaviors](#experimental-new-cache-clearing-behaviors) - we're experimenting with ways to be smarter about clearing caches
23
-
-[gatsby-plugin-emotion v5.0](#gatsby-plugin-emotion500) - now uses emotion v11
23
+
-[`gatsby-plugin-emotion` v5.0](#gatsby-plugin-emotion500) - now uses emotion v11
@@ -39,7 +39,7 @@ if you have any [issues](https://github.com/gatsbyjs/gatsby/issues).
39
39
40
40
In previous release we added [interactive way of scaffolding new gatsby project](/docs/reference/release-notes/v2.27#create-gatsby) (with `npm init gatsby`). As of this release, `gatsby new` (without any addition arguments) will use the same flow.
41
41
42
-
## Feature flags in `gatsby-config`
42
+
## Feature flags in `gatsby-config.js`
43
43
44
44
Gatsby traditionally used environment variables to use various modes or enable experimental features. This worked, but it was far from pleasant and had many issues, notably:
45
45
@@ -66,7 +66,7 @@ Currently supported flags:
66
66
-`QUERY_ON_DEMAND` - Only run queries when needed instead of running all queries upfront. Speeds starting the develop server.
67
67
-`LAZY_IMAGES` - Don't process images during development until they're requested from the browser. Speeds starting the develop server (requires `gatsby-plugin-sharp@^2.10.0`). See [Experimental: Lazy images in develop](#experimental-lazy-images-in-develop) section for additional details.
68
68
-`FAST_DEV` - Umbrella flag that enables `DEV_SSR`, `QUERY_ON_DEMAND` and `LAZY_IMAGES` features.
69
-
-`FAST_REFRESH` - Use React Fast Refresh instead of the legacy react-hot-loader for instantaneous feedback in your development server. Recommended for versions of React >= 17.0.
69
+
-`FAST_REFRESH` - Use React Fast Refresh instead of the legacy `react-hot-loader` for instantaneous feedback in your development server. Recommended for versions of React >= 17.0.
The plugin is updated to the new major version of emotion: v11. Check out [this post](https://emotion.sh/docs/emotion-11) in emotion docs for updates.
144
144
@@ -157,7 +157,7 @@ In `[email protected]` we added [Experimental: Lazy page bundling](/docs/reference/r
157
157
158
158
Plugin APIs in Gatsby run serially. Generally this what we want as most API calls are CPU/IO bound so things are fastest letting each plugin have the full undivided attention of your computer. But source plugins are often _network_ bound as they're hitting remote APIs and waiting for responses. We tried [changing the invocation of `sourceNodes` to parallel](https://github.com/gatsbyjs/gatsby/pull/28214) on a few sites with 4+ source plugins and saw a big speedup on sourcing (40%+) as they were no longer waiting on each other to start their API calls.
159
159
160
-
This is a very "Your mileage may vary" situation — not all sites will notice any difference and also not all source plugins are network bound (gatsby-source-filesystem reads from the local machine). We're looking at finding better heuristics so that all sites are as fast as possible at data sourcing but in the meantime, if you have sites with multiple source plugins, this could be a big help.
160
+
This is a very "Your mileage may vary" situation — not all sites will notice any difference and also not all source plugins are network bound (`gatsby-source-filesystem` reads from the local machine). We're looking at finding better heuristics so that all sites are as fast as possible at data sourcing but in the meantime, if you have sites with multiple source plugins, this could be a big help.
161
161
162
162
You can try it today using `gatsby@next` version and adding a flag to your `gatsby-config.js`:
-[Slugify option for File System Route API](#slugify-option-for-file-system-route-api)
23
-
-[gatsby-image codemod](#gatsby-image-codemod)
23
+
-[`gatsby-image` codemod](#gatsby-image-codemod)
24
24
-[Notable bugfixes](#notable-bugfixes)
25
25
26
26
**Bleeding Edge:** Want to try new features as soon as possible? Install `gatsby@next` and let us know
@@ -131,7 +131,7 @@ We were able to ship a bunch of performance improvements both to Gatsby itself a
131
131
132
132
The File System Route API uses [slugify](https://github.com/sindresorhus/slugify) to create slugs for the generated routes. You're now able to pass custom options to that instance, e.g. when you want to change the separator. The full details are listed in the [README](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-page-creator) of `gatsby-plugin-page-creator`.
133
133
134
-
## gatsby-image codemod
134
+
## `gatsby-image` codemod
135
135
136
136
We introduced some API changes for working with images when we published the new `gatsby-plugin-image` in [v2.26](/docs/reference/release-notes/v2.26#gatsby-plugin-image010-beta). In order to make it easier to migrate your code to work with the new plugin, we've created a codemod. Follow the migration instructions in the [README](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-image#upgrading-from-the-gatsby-image2) in order to run the codemod against your project.
Copy file name to clipboardExpand all lines: docs/docs/reference/release-notes/v2.30/index.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Key highlights of this release:
13
13
14
14
-[Query on Demand and Lazy Images: Generally available](#query-on-demand-and-lazy-images-generally-available) - improves `gatsby develop` bootup time
15
15
-[Server Side Rendering (SSR) in development](#server-side-rendering-ssr-in-development) — helps you find and fix many build errors in development. We're starting a partial release of this feature to 5% of users.
16
-
-[gatsby-plugin-sass v3](#gatsby-plugin-sass300) - use the latest `sass-loader` and `Dart Sass` by default
16
+
-[`gatsby-plugin-sass` v3](#gatsby-plugin-sass300) - use the latest `sass-loader` and `Dart Sass` by default
17
17
-[Image transformations up to 30% faster](#gatsby-plugin-sharp2120)
18
18
19
19
And several impactful updates in the new [`gatsby-plugin-image`](#gatsby-plugin-image050-beta) (beta):
0 commit comments