Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: gatsby-plugin-feed@4.21.0
Choose a base ref
...
head repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: gatsby-plugin-feed@4.22.0
Choose a head ref

Commits on Aug 11, 2022

  1. chore(release): Publish next pre-minor

     - babel-plugin-remove-graphql-queries@4.22.0-next.0
     - babel-preset-gatsby-package@2.22.0-next.0
     - babel-preset-gatsby@2.22.0-next.0
     - create-gatsby@2.22.0-next.0
     - gatsby-cli@4.22.0-next.0
     - gatsby-codemods@3.22.0-next.0
     - gatsby-core-utils@3.22.0-next.0
     - gatsby-cypress@2.22.0-next.0
     - gatsby-design-tokens@4.22.0-next.0
     - gatsby-dev-cli@4.22.0-next.0
     - gatsby-graphiql-explorer@2.22.0-next.0
     - gatsby-legacy-polyfills@2.22.0-next.0
     - gatsby-link@4.22.0-next.0
     - gatsby-page-utils@2.22.0-next.0
     - gatsby-parcel-config@0.13.0-next.0
     - @gatsbyjs/parcel-namer-relative-to-cwd@1.7.0-next.0
     - gatsby-plugin-benchmark-reporting@2.22.0-next.0
     - gatsby-plugin-canonical-urls@4.22.0-next.0
     - gatsby-plugin-catch-links@4.22.0-next.0
     - gatsby-plugin-coffeescript@4.22.0-next.0
     - gatsby-plugin-cxs@4.22.0-next.0
     - gatsby-plugin-emotion@7.22.0-next.0
     - gatsby-plugin-facebook-analytics@4.22.0-next.0
     - gatsby-plugin-feed@4.22.0-next.0
     - gatsby-plugin-flow@3.22.0-next.0
     - gatsby-plugin-fullstory@4.22.0-next.0
     - gatsby-plugin-gatsby-cloud@4.22.0-next.0
     - gatsby-plugin-google-analytics@4.22.0-next.0
     - gatsby-plugin-google-gtag@4.22.0-next.0
     - gatsby-plugin-google-tagmanager@4.22.0-next.0
     - gatsby-plugin-image@2.22.0-next.0
     - gatsby-plugin-jss@4.22.0-next.0
     - gatsby-plugin-layout@3.22.0-next.0
     - gatsby-plugin-less@6.22.0-next.0
     - gatsby-plugin-lodash@5.22.0-next.0
     - gatsby-plugin-manifest@4.22.0-next.0
     - gatsby-plugin-mdx@4.1.0-next.0
     - gatsby-plugin-netlify-cms@6.22.0-next.0
     - gatsby-plugin-no-sourcemaps@4.22.0-next.0
     - gatsby-plugin-nprogress@4.22.0-next.0
     - gatsby-plugin-offline@5.22.0-next.0
     - gatsby-plugin-page-creator@4.22.0-next.0
     - gatsby-plugin-postcss@5.22.0-next.0
     - gatsby-plugin-preact@6.22.0-next.0
     - gatsby-plugin-preload-fonts@3.22.0-next.0
     - gatsby-plugin-react-css-modules@4.22.0-next.0
     - gatsby-plugin-react-helmet@5.22.0-next.0
     - gatsby-plugin-sass@5.22.0-next.0
     - gatsby-plugin-schema-snapshot@3.22.0-next.0
     - gatsby-plugin-sharp@4.22.0-next.0
     - gatsby-plugin-sitemap@5.22.0-next.0
     - gatsby-plugin-styled-components@5.22.0-next.0
     - gatsby-plugin-styled-jsx@5.22.0-next.0
     - gatsby-plugin-styletron@7.22.0-next.0
     - gatsby-plugin-stylus@4.22.0-next.0
     - gatsby-plugin-subfont@4.22.0-next.0
     - gatsby-plugin-twitter@4.22.0-next.0
     - gatsby-plugin-typescript@4.22.0-next.0
     - gatsby-plugin-typography@4.22.0-next.0
     - gatsby-plugin-utils@3.16.0-next.0
     - gatsby-react-router-scroll@5.22.0-next.0
     - gatsby-remark-autolink-headers@5.22.0-next.0
     - gatsby-remark-code-repls@6.22.0-next.0
     - gatsby-remark-copy-linked-files@5.22.0-next.0
     - gatsby-remark-custom-blocks@4.22.0-next.0
     - gatsby-remark-embed-snippet@7.22.0-next.0
     - gatsby-remark-graphviz@4.22.0-next.0
     - gatsby-remark-images-contentful@5.22.0-next.0
     - gatsby-remark-images@6.22.0-next.0
     - gatsby-remark-katex@6.22.0-next.0
     - gatsby-remark-prismjs@6.22.0-next.0
     - gatsby-remark-responsive-iframe@5.22.0-next.0
     - gatsby-remark-smartypants@5.22.0-next.0
     - gatsby-script@1.7.0-next.0
     - gatsby-sharp@0.16.0-next.0
     - gatsby-source-contentful@7.20.0-next.0
     - gatsby-source-drupal@5.23.0-next.0
     - gatsby-source-faker@4.22.0-next.0
     - gatsby-source-filesystem@4.22.0-next.0
     - gatsby-source-graphql@4.22.0-next.0
     - gatsby-source-hacker-news@4.22.0-next.0
     - gatsby-source-lever@4.22.0-next.0
     - gatsby-source-medium@4.22.0-next.0
     - gatsby-source-mongodb@4.22.0-next.0
     - gatsby-source-npm-package-search@4.22.0-next.0
     - gatsby-source-shopify@7.11.0-next.0
     - gatsby-source-wikipedia@4.22.0-next.0
     - gatsby-source-wordpress@6.22.0-next.0
     - gatsby-telemetry@3.22.0-next.0
     - gatsby-transformer-asciidoc@3.22.0-next.0
     - gatsby-transformer-csv@4.22.0-next.0
     - gatsby-transformer-documentationjs@6.22.0-next.0
     - gatsby-transformer-excel@4.22.0-next.0
     - gatsby-transformer-hjson@4.22.0-next.0
     - gatsby-transformer-javascript-frontmatter@4.22.0-next.0
     - gatsby-transformer-javascript-static-exports@4.22.0-next.0
     - gatsby-transformer-json@4.22.0-next.0
     - gatsby-transformer-pdf@3.22.0-next.0
     - gatsby-transformer-react-docgen@7.22.0-next.0
     - gatsby-transformer-remark@5.22.0-next.0
     - gatsby-transformer-screenshot@4.22.0-next.0
     - gatsby-transformer-sharp@4.22.0-next.0
     - gatsby-transformer-sqip@4.22.0-next.0
     - gatsby-transformer-toml@4.22.0-next.0
     - gatsby-transformer-xml@4.22.0-next.0
     - gatsby-transformer-yaml@4.22.0-next.0
     - gatsby-worker@1.22.0-next.0
     - gatsby@4.22.0-next.0
    marvinjude committed Aug 11, 2022
    Copy the full SHA
    f1a45e7 View commit details
  2. chore(gatsby): convert babel-loaders to typescript (#36318)

    * Convert babel-loaders to ts
    
    * change imports and exports
    
    * import type
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    Kornil and LekoArts authored Aug 11, 2022
    Copy the full SHA
    fe1d2e1 View commit details

Commits on Aug 12, 2022

  1. chore(release): Publish next

     - gatsby@4.22.0-next.1
    tyhopp committed Aug 12, 2022
    Copy the full SHA
    df76277 View commit details
  2. Copy the full SHA
    8bad1a7 View commit details
  3. Copy the full SHA
    3dfc1ec View commit details
  4. Copy the full SHA
    48b4011 View commit details

Commits on Aug 15, 2022

  1. chore(release): Publish next

     - create-gatsby@2.22.0-next.1
     - gatsby-cli@4.22.0-next.1
     - gatsby-plugin-gatsby-cloud@4.22.0-next.1
     - gatsby-plugin-image@2.22.0-next.1
     - gatsby-plugin-page-creator@4.22.0-next.1
     - gatsby-plugin-sharp@4.22.0-next.1
     - gatsby-source-contentful@7.20.0-next.1
     - gatsby-source-drupal@5.23.0-next.1
     - gatsby-source-filesystem@4.22.0-next.1
     - gatsby-source-shopify@7.11.0-next.1
     - gatsby-source-wordpress@6.22.0-next.1
     - gatsby-telemetry@3.22.0-next.1
     - gatsby-transformer-sqip@4.22.0-next.1
     - gatsby@4.22.0-next.2
    tyhopp committed Aug 15, 2022
    Copy the full SHA
    3b6b975 View commit details
  2. chore(deps): update starters and examples to ^18.0.17 (#36384)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 15, 2022
    Copy the full SHA
    b3960c8 View commit details
  3. Copy the full SHA
    4c752d1 View commit details
  4. chore(release): Publish next

     - gatsby-script@1.7.0-next.1
     - gatsby@4.22.0-next.3
    tyhopp committed Aug 15, 2022
    Copy the full SHA
    c5ad03a View commit details
  5. Copy the full SHA
    0744cfd View commit details
  6. fix(gatsby-plugin-mdx): Hashing and pluginOptions (#36387)

    Co-authored-by: Benedikt Rötsch <axe312ger@users.noreply.github.com>
    LekoArts and axe312ger authored Aug 15, 2022
    Copy the full SHA
    65739fc View commit details
  7. chore(release): Publish next

     - create-gatsby@2.22.0-next.2
     - gatsby-cli@4.22.0-next.2
     - gatsby-plugin-cxs@4.22.0-next.1
     - gatsby-plugin-feed@4.22.0-next.1
     - gatsby-plugin-flow@3.22.0-next.1
     - gatsby-plugin-google-tagmanager@4.22.0-next.1
     - gatsby-plugin-image@2.22.0-next.2
     - gatsby-plugin-manifest@4.22.0-next.1
     - gatsby-plugin-mdx@4.1.0-next.1
     - gatsby-plugin-offline@5.22.0-next.1
     - gatsby-plugin-page-creator@4.22.0-next.2
     - gatsby-plugin-sass@5.22.0-next.1
     - gatsby-plugin-sharp@4.22.0-next.2
     - gatsby-plugin-sitemap@5.22.0-next.1
     - gatsby-plugin-twitter@4.22.0-next.1
     - gatsby-plugin-utils@3.16.0-next.1
     - gatsby-remark-autolink-headers@5.22.0-next.1
     - gatsby-remark-images@6.22.0-next.1
     - gatsby-source-contentful@7.20.0-next.2
     - gatsby-source-drupal@5.23.0-next.2
     - gatsby-source-shopify@7.11.0-next.2
     - gatsby-source-wordpress@6.22.0-next.2
     - gatsby-transformer-remark@5.22.0-next.1
     - gatsby-transformer-sharp@4.22.0-next.1
     - gatsby-transformer-sqip@4.22.0-next.2
     - gatsby@4.22.0-next.4
    LekoArts committed Aug 15, 2022
    Copy the full SHA
    ee8df07 View commit details
  8. Copy the full SHA
    28cfade View commit details

Commits on Aug 16, 2022

  1. chore(docs): MDX v2 (#35893)

    Co-authored-by: Josh Johnson <jcjohnson77@gmail.com>
    Co-authored-by: LekoArts <lekoarts@gmail.com>
    Co-authored-by: Lennart <lekoarts@gmail.com>
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    Co-authored-by: Ty Hopp <tyhopp@users.noreply.github.com>
    Co-authored-by: Levi Zim <rsworktech@outlook.com>
    Co-authored-by: pieh <misiek.piechowiak@gmail.com>
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    7 people authored Aug 16, 2022
    Copy the full SHA
    de153b6 View commit details
  2. chore(docs): Release Notes for 4.21 (#36372)

    * add release note template
    
    * update changelog url
    
    * add mdx
    
    * add example
    
    * add some bugfixes & improvements
    
    * add contributors log
    
    * Add RFC callout
    
    * format
    
    * add jsx to return block
    
    Co-authored-by: LekoArts <lekoarts@gmail.com>
    Co-authored-by: Josh Johnson <jcjohnson77@gmail.com>
    3 people authored Aug 16, 2022
    Copy the full SHA
    14792cf View commit details
  3. chore(gatsby): convert sanitize-node to typescript (#36327)

    * Convert sanitize-node
    
    * Convert sanitize-node test
    
    * Change to trigger build
    
    * Change to trigger build
    
    * Change to trigger build
    
    Co-authored-by: Josh Johnson <jcjohnson77@gmail.com>
    Kornil and imjoshin authored Aug 16, 2022
    Copy the full SHA
    d59e7b6 View commit details

Commits on Aug 17, 2022

  1. Copy the full SHA
    b92bd7a View commit details
  2. fix(deps): update starters and examples - gatsby (#36396)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 17, 2022
    Copy the full SHA
    e477938 View commit details
  3. chore: pin xstate (#36398)

    Co-authored-by: LekoArts <lekoarts@gmail.com>
    pieh and LekoArts authored Aug 17, 2022
    Copy the full SHA
    6e4a0de View commit details
  4. Copy the full SHA
    57602fe View commit details
  5. Copy the full SHA
    03157e8 View commit details
  6. Copy the full SHA
    977a211 View commit details

Commits on Aug 18, 2022

  1. fix(gatsby): close parcel cache db before clearing cache and retrying (

    …#36377)
    
    Co-authored-by: Dan Kirkham <herecy@live.co.uk>
    Co-authored-by: Lennart <lekoarts@gmail.com>
    Co-authored-by: Ty Hopp <tyhopp@users.noreply.github.com>
    4 people authored Aug 18, 2022
    Copy the full SHA
    9d737b6 View commit details
  2. fix(gatsby): Prevent errors if Head has root text node (#36402)

    * Don't break when Head has root text node(s)
    
    * test that we dont break on root text nodes
    marvinjude authored Aug 18, 2022
    Copy the full SHA
    a05201e View commit details
  3. chore(release): Publish next

     - gatsby-cli@4.22.0-next.3
     - gatsby-plugin-preact@6.22.0-next.1
     - gatsby-source-contentful@7.20.0-next.3
     - gatsby-source-drupal@5.23.0-next.3
     - gatsby-source-filesystem@4.22.0-next.2
     - gatsby-source-shopify@7.11.0-next.3
     - gatsby-source-wordpress@6.22.0-next.3
     - gatsby@4.22.0-next.5
    marvinjude committed Aug 18, 2022
    Copy the full SHA
    c01806e View commit details
  4. Copy the full SHA
    3760a0e View commit details
  5. chore: Use GCS for pipeline tests (#36413)

    * initial
    
    * fix tests
    LekoArts authored Aug 18, 2022
    Copy the full SHA
    dc283d7 View commit details

Commits on Aug 19, 2022

  1. Copy the full SHA
    7b3286c View commit details
  2. Copy the full SHA
    b7b3577 View commit details
  3. Copy the full SHA
    c92404b View commit details
  4. fix(deps): update starters and examples - gatsby (#36416)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 19, 2022
    Copy the full SHA
    77190f4 View commit details
  5. chore(docs): Update tutorial to Head API (#36378)

    * use Head API in code snippets for stepwise tutorial
    
    * use Head API in SEO tutorial
    
    * add intro to Head API
    
    * correct step
    
    * format
    
    * restore image
    
    * Update docs/docs/tutorial/part-2/index.mdx
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * Update docs/docs/tutorial/part-2/index.mdx
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * Update docs/docs/tutorial/part-2/index.mdx
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * Update docs/docs/tutorial/part-2/index.mdx
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * Update docs/docs/tutorial/part-4/index.mdx
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * one liner
    
    * Update docs/docs/tutorial/part-2/index.mdx
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * resolve conflict
    
    * Update docs/docs/tutorial/part-2/index.mdx
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * Update docs/docs/tutorial/part-2/index.mdx
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * remove duplicate SEO tutorial
    
    * add key concept
    
    * Update docs/docs/tutorial/part-2/index.mdx
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * remove all data prop access
    
    * add note about tutorial vs videos
    
    * update note
    
    * add seo component instructions and other stuff
    
    * revert one change
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    marvinjude and LekoArts authored Aug 19, 2022
    Copy the full SHA
    2e67161 View commit details
  6. Copy the full SHA
    b361081 View commit details
  7. Copy the full SHA
    240dfac View commit details
  8. Copy the full SHA
    8043d7e View commit details

Commits on Aug 22, 2022

  1. docs: plugin image / image cdn (#36423)

    * start adding new Image CDN section to using-gatsby-plugin-image
    
    * Update using-gatsby-plugin-image.md
    
    * Add kb link
    
    * sp
    TylerBarnes authored Aug 22, 2022
    Copy the full SHA
    a21510e View commit details

Commits on Aug 23, 2022

  1. chore(gatsby-plugin-sharp,gatsby-plugin-utils,gatsby-remark-images,ga…

    …tsby-transformer-sharp): bump min potrace version (#36443)
    marvinjude authored Aug 23, 2022
    Copy the full SHA
    0d896ae View commit details
  2. fix(gatsby): remove resource query from warnings (#36439)

    remove resource query from warning
    marvinjude authored Aug 23, 2022
    Copy the full SHA
    1bf2358 View commit details

Commits on Aug 24, 2022

  1. chore(docs): Fix some typos (#36431)

    Fix some typos
    
    This PR is fix some spelling.
    
    - docs/docs/reference/config-files/gatsby-config.md
    - examples/functions-google-gmail/README.md
    - examples/functions-google-oauth/README.md
    taiga39 authored Aug 24, 2022
    Copy the full SHA
    0b458e6 View commit details
  2. Copy the full SHA
    3222684 View commit details
  3. chore(docs): Update plugin count in part 3 of the tutorial (#36455)

    Update plugin count in part 3 of the tutorial
    TalAter authored Aug 24, 2022
    Copy the full SHA
    222793d View commit details
  4. chore(docs): fix incorrect closing tag in tutorial (#36459)

    fix incorrect closing tag in tutorial
    mashehu authored Aug 24, 2022
    Copy the full SHA
    b45debc View commit details
  5. fix(gatsby-source-graphql): add dataLoaderOptions validation to gatsb…

    …y-source-graphql (#36112)
    
    fix: add dataLoaderOptions to gatsby-source-graphql
    that1matt authored Aug 24, 2022
    Copy the full SHA
    b8c2072 View commit details

Commits on Aug 25, 2022

  1. feat(gatsby): add partial hydration flag (#36436)

    * add partial hydration flag
    
    * delete pkjson update
    
    * adjust flag
    
    * dry constraint check
    
    * Update packages/gatsby/src/utils/flags.ts
    
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    marvinjude and wardpeet authored Aug 25, 2022
    Copy the full SHA
    41de1f0 View commit details
  2. chore(gatsby): Add env log for build and remove incorrect log for fun…

    …ctions (#36462) (#36466)
    
    Add env log for build and remove incorrect log for functions
    
    (cherry picked from commit 613729d)
    
    Co-authored-by: Josh Johnson <jcjohnson77@gmail.com>
    gatsbybot and imjoshin authored Aug 25, 2022
    Copy the full SHA
    4dcdeb1 View commit details

Commits on Aug 30, 2022

  1. chore(release): Publish

     - babel-plugin-remove-graphql-queries@4.22.0
     - babel-preset-gatsby-package@2.22.0
     - babel-preset-gatsby@2.22.0
     - create-gatsby@2.22.0
     - gatsby-cli@4.22.0
     - gatsby-codemods@3.22.0
     - gatsby-core-utils@3.22.0
     - gatsby-cypress@2.22.0
     - gatsby-design-tokens@4.22.0
     - gatsby-dev-cli@4.22.0
     - gatsby-graphiql-explorer@2.22.0
     - gatsby-legacy-polyfills@2.22.0
     - gatsby-link@4.22.0
     - gatsby-page-utils@2.22.0
     - gatsby-parcel-config@0.13.0
     - @gatsbyjs/parcel-namer-relative-to-cwd@1.7.0
     - gatsby-plugin-benchmark-reporting@2.22.0
     - gatsby-plugin-canonical-urls@4.22.0
     - gatsby-plugin-catch-links@4.22.0
     - gatsby-plugin-coffeescript@4.22.0
     - gatsby-plugin-cxs@4.22.0
     - gatsby-plugin-emotion@7.22.0
     - gatsby-plugin-facebook-analytics@4.22.0
     - gatsby-plugin-feed@4.22.0
     - gatsby-plugin-flow@3.22.0
     - gatsby-plugin-fullstory@4.22.0
     - gatsby-plugin-gatsby-cloud@4.22.0
     - gatsby-plugin-google-analytics@4.22.0
     - gatsby-plugin-google-gtag@4.22.0
     - gatsby-plugin-google-tagmanager@4.22.0
     - gatsby-plugin-image@2.22.0
     - gatsby-plugin-jss@4.22.0
     - gatsby-plugin-layout@3.22.0
     - gatsby-plugin-less@6.22.0
     - gatsby-plugin-lodash@5.22.0
     - gatsby-plugin-manifest@4.22.0
     - gatsby-plugin-mdx@4.1.0
     - gatsby-plugin-netlify-cms@6.22.0
     - gatsby-plugin-no-sourcemaps@4.22.0
     - gatsby-plugin-nprogress@4.22.0
     - gatsby-plugin-offline@5.22.0
     - gatsby-plugin-page-creator@4.22.0
     - gatsby-plugin-postcss@5.22.0
     - gatsby-plugin-preact@6.22.0
     - gatsby-plugin-preload-fonts@3.22.0
     - gatsby-plugin-react-css-modules@4.22.0
     - gatsby-plugin-react-helmet@5.22.0
     - gatsby-plugin-sass@5.22.0
     - gatsby-plugin-schema-snapshot@3.22.0
     - gatsby-plugin-sharp@4.22.0
     - gatsby-plugin-sitemap@5.22.0
     - gatsby-plugin-styled-components@5.22.0
     - gatsby-plugin-styled-jsx@5.22.0
     - gatsby-plugin-styletron@7.22.0
     - gatsby-plugin-stylus@4.22.0
     - gatsby-plugin-subfont@4.22.0
     - gatsby-plugin-twitter@4.22.0
     - gatsby-plugin-typescript@4.22.0
     - gatsby-plugin-typography@4.22.0
     - gatsby-plugin-utils@3.16.0
     - gatsby-react-router-scroll@5.22.0
     - gatsby-remark-autolink-headers@5.22.0
     - gatsby-remark-code-repls@6.22.0
     - gatsby-remark-copy-linked-files@5.22.0
     - gatsby-remark-custom-blocks@4.22.0
     - gatsby-remark-embed-snippet@7.22.0
     - gatsby-remark-graphviz@4.22.0
     - gatsby-remark-images-contentful@5.22.0
     - gatsby-remark-images@6.22.0
     - gatsby-remark-katex@6.22.0
     - gatsby-remark-prismjs@6.22.0
     - gatsby-remark-responsive-iframe@5.22.0
     - gatsby-remark-smartypants@5.22.0
     - gatsby-script@1.7.0
     - gatsby-sharp@0.16.0
     - gatsby-source-contentful@7.20.0
     - gatsby-source-drupal@5.23.0
     - gatsby-source-faker@4.22.0
     - gatsby-source-filesystem@4.22.0
     - gatsby-source-graphql@4.22.0
     - gatsby-source-hacker-news@4.22.0
     - gatsby-source-lever@4.22.0
     - gatsby-source-medium@4.22.0
     - gatsby-source-mongodb@4.22.0
     - gatsby-source-npm-package-search@4.22.0
     - gatsby-source-shopify@7.11.0
     - gatsby-source-wikipedia@4.22.0
     - gatsby-source-wordpress@6.22.0
     - gatsby-telemetry@3.22.0
     - gatsby-transformer-asciidoc@3.22.0
     - gatsby-transformer-csv@4.22.0
     - gatsby-transformer-documentationjs@6.22.0
     - gatsby-transformer-excel@4.22.0
     - gatsby-transformer-hjson@4.22.0
     - gatsby-transformer-javascript-frontmatter@4.22.0
     - gatsby-transformer-javascript-static-exports@4.22.0
     - gatsby-transformer-json@4.22.0
     - gatsby-transformer-pdf@3.22.0
     - gatsby-transformer-react-docgen@7.22.0
     - gatsby-transformer-remark@5.22.0
     - gatsby-transformer-screenshot@4.22.0
     - gatsby-transformer-sharp@4.22.0
     - gatsby-transformer-sqip@4.22.0
     - gatsby-transformer-toml@4.22.0
     - gatsby-transformer-xml@4.22.0
     - gatsby-transformer-yaml@4.22.0
     - gatsby-worker@1.22.0
     - gatsby@4.22.0
    imjoshin committed Aug 30, 2022
    Copy the full SHA
    78f8c7a View commit details
Showing 328 changed files with 6,955 additions and 45,509 deletions.
3 changes: 0 additions & 3 deletions .jestSetup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
process.env.GATSBY_RECIPES_NO_COLOR = "true"
process.env.GATSBY_SHOULD_TRACK_IMAGE_CDN_URLS = "true"

// Potrace has a dependency on giwrap which has a process.nextTick as a sideEffect which messes up with jest.
jest.mock(`gifwrap`, () => jest.fn())
2 changes: 1 addition & 1 deletion docs/docs/glossary/mdx.md
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ export const Figure = props => {
Now you can import this component into your Markdown document.

```markdown
import { Figure } from './components/Figure';
import { Figure } from "./components/Figure"

# Hello world!

2 changes: 1 addition & 1 deletion docs/docs/glossary/server-side-rendering.md
Original file line number Diff line number Diff line change
@@ -44,6 +44,6 @@ Instead of purely server-side rendering, Gatsby uses the same APIs to create sta

- [Why server-side render?](/blog/2019-04-02-behind-the-scenes-what-makes-gatsby-great/#why-server-side-render) from _Behind the Scenes: What makes Gatsby Great_

- [Search Engine Optimization (SEO) and Social Sharing Cards with Gatsby](/tutorial/seo-and-social-sharing-cards-tutorial/#reach-skip-nav)
- [Adding an SEO Component](/docs/how-to/adding-common-features/adding-seo-component/)

- [What is a Static Site Generator?](/docs/glossary/static-site-generator/#what-is-a-static-site-generator) from the Gatsby docs
22 changes: 13 additions & 9 deletions docs/docs/how-to/images-and-media/using-gatsby-plugin-image.md
Original file line number Diff line number Diff line change
@@ -233,11 +233,21 @@ module.exports = {

## Using images from a CMS or CDN

Many source plugins have native support for `gatsby-plugin-image`, with images served directly from a content delivery network (CDN). This means that builds are faster, because there is no need to download images and process them locally. The query syntax varies according to the plugin, as do the supported transformation features and image formats. Make sure you update to the latest version of the source plugin to ensure there is support. For plugins that are not in this list you can use [dynamic images from `gatsby-transformer-sharp`](#dynamic-images).
### Gatsby Cloud Image CDN

### Source plugins
Image CDN is Gatsby Clouds image hosting and transformation service. It speeds up your build times by deferring image downloading and processing until the first user requests an image. Image CDN also speeds up your frontend performance by serving CDN hosted images on the same domain as your Gatsby Cloud site. In our testing this can shave up to 300ms off of frontend page load times and as a result improve your lighthouse scores.

These source plugins support using `gatsby-plugin-image` with images served from their CDN.
For more information on what Image CDN is, how to use it, and what the platform limits are, visit the [Gatsby Cloud knowledge base article on "What Is Image CDN?"](https://support.gatsbyjs.com/hc/en-us/articles/4426379634835-What-is-Image-CDN-). To learn which source plugins currently support it and how to enable and use Image CDN on Gatsby Cloud take a look at the ["How-to Enable Image CDN" article](https://support.gatsbyjs.com/hc/en-us/articles/4426393233171).

For all supported source plugins, the query syntax and feature-set is identical. Check your source plugin's documentation or the [Gatsby Cloud knowledge base article on "Configuring source plugins for Image CDN"](https://support.gatsbyjs.com/hc/en-us/articles/4522338898579-Configuring-Source-Plugins-for-Image-CDN) for more info.

### Source plugins with their own CDN

Many source plugins have native support for `gatsby-plugin-image`, with images served directly from that CMS's content delivery network (CDN). This means that builds are faster than local images because there is no need to download images and process them. While this is faster for builds, it isn't as performant on the frontend as [Gatsby Cloud's Image CDN](#gatsby-cloud-image-cdn) due to images being served from a different domain than the domain your site is hosted on.

The query syntax varies according to the plugin, as do the supported transformation features and image formats. Make sure you update to the latest version of the source plugin to ensure there is support. For plugins that are not in this list you can use [dynamic images from `gatsby-transformer-sharp`](#dynamic-images).

These source plugins support using `gatsby-plugin-image` with images served from their own CDN.

- [AgilityCMS](https://github.com/agility/gatsby-image-agilitycms)
- [Contentful](/plugins/gatsby-source-contentful/#using-the-new-gatsby-image-plugin)
@@ -247,12 +257,6 @@ These source plugins support using `gatsby-plugin-image` with images served from
- [Sanity](/plugins/gatsby-source-sanity/#using-images)
- [Shopify](https://github.com/gatsbyjs/gatsby-source-shopify-experimental#images)

### Image CDNs

A dedicated image CDN can be used with sources that don't have their own CDN, or where you need more transforms or formats than the CDN offers.

- [imgix](/plugins/@imgix/gatsby/)

### Plugin authors

If you maintain a source plugin or image CDN, there is a toolkit to help you add support for `gatsby-plugin-image`. See [Adding Gatsby Image support to your plugin](/docs/how-to/plugins-and-themes/adding-gatsby-image-support/) for more details. You can then open a PR to add your plugin to this list.
50 changes: 49 additions & 1 deletion docs/docs/how-to/local-development/graphql-typegen.md
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ examples:

If you're already using [Gatsby with TypeScript](/docs/how-to/custom-configuration/typescript) and manually typing the results of your queries, you'll learn in this guide how Gatsby's automatic GraphQL Typegen feature can make your life easier. By relying on the types that are generated by Gatsby itself and using autocompletion for GraphQL queries in your IDE you'll be able to write GraphQL queries quicker and safer.

This feature was added in `gatsby@4.15.0`.
This feature was added in `gatsby@4.15.0`. By default, this feature is only generating files during `gatsby develop`.

## Prerequisites

@@ -105,6 +105,54 @@ export const createSchemaCustomization: GatsbyNode["createSchemaCustomization"]

Read the [Customizing the GraphQL schema guide](/docs/reference/graphql-data-layer/schema-customization/) to learn how to explicitly define types in your site or source plugin.

### GraphQL fragments

Fragments allow you to reuse parts of GraphQL queries throughout your site and collocate specific parts of a query to individual files. Learn more about it in the [Using GraphQL fragments guide](/docs/reference/graphql-data-layer/using-graphql-fragments/).

In the context of GraphQL Typegen fragments enable you to have individual TypeScript types for nested parts of your queries since each fragment will be its own TypeScript type. You then can use these types to e.g. type arguments of components consuming the GraphQL data.

Here's an example (also used in [using-graphql-typegen](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-graphql-typegen)) with a `Info` component that gets the `buildTime` as an argument. This `Info` component and its `SiteInformation` fragment is used in the `src/pages/index.tsx` file then:

```tsx:title=src/components/info.tsx
import * as React from "react"
import { graphql } from "gatsby"

// highlight-next-line
const Info = ({ buildTime }: { buildTime?: any }) => {
return (
<p>
Build time: {buildTime}
</p>
)
}

export default Info

// highlight-start
export const query = graphql`
fragment SiteInformation on Site {
buildTime
}
`
// highlight-end
```

```graphql:title=src/pages/index.tsx
# Rest of the page above...

query IndexPage {
site {
...SiteInformation
}
}
```

This way a `SiteInformationFragment` TypeScript type will be created that you can use in the `Info` component:

```tsx:title=src/components/info.tsx
const Info = ({ buildTime }: { buildTime?: Queries.SiteInformationFragment["buildTime"] }) => {}
```

### Tips

- When adding a new key to your GraphQL query you'll need to save the file before new TypeScript types are generated. The autogenerated files are only updated on file saves.
Original file line number Diff line number Diff line change
@@ -48,12 +48,12 @@ Any JavaScript data type can be passed in as an option.

The following table lists possible options values and an example plugin that makes use of them.

| Data Type | Sample Value | Example Plugin |
| --------- | -------------------------------- | ---------------------------------------------------------------- |
| Boolean | `true` | [`gatsby-plugin-sharp`](/plugins/gatsby-plugin-sharp/) |
| String | `/src/data/` | [`gatsby-source-filesystem`](/plugins/gatsby-source-filesystem/) |
| Array | `["/about-us/", "/projects/*"]` | [`gatsby-plugin-offline`](/plugins/gatsby-plugin-offline/) |
| Object | `{ default: "./src/layout.js" }` | [`gatsby-plugin-mdx`](/plugins/gatsby-plugin-mdx/) |
| Data Type | Sample Value | Example Plugin |
| --------- | ------------------------------- | ---------------------------------------------------------------- |
| Boolean | `true` | [`gatsby-plugin-sharp`](/plugins/gatsby-plugin-sharp/) |
| String | `/src/data/` | [`gatsby-source-filesystem`](/plugins/gatsby-source-filesystem/) |
| Array | `["/about-us/", "/projects/*"]` | [`gatsby-plugin-offline`](/plugins/gatsby-plugin-offline/) |
| Object | `{ mdxOptions: {} }` | [`gatsby-plugin-mdx`](/plugins/gatsby-plugin-mdx/) |

**Note**: Themes (which are a type of plugin) are able to receive options from a site's `gatsby-config.js` to be used in its `gatsby-config.js` in order to allow themes to be composed together. This is done by exporting the `gatsby-config.js` as a function instead of an object. You can see an example of this in the [`gatsby-theme-blog`](https://github.com/gatsbyjs/themes/tree/master/packages/gatsby-theme-blog) and [`gatsby-theme-blog-core`](https://github.com/gatsbyjs/themes/tree/master/packages/gatsby-theme-blog-core) repositories. Plugins are not capable of this functionality.

Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ Add the plugin as a project dependency in your `package.json` file by running th
npm install gatsby-plugin-sitemap
```

Check the plugin's README file to see if there are any other dependencies that you also need to install. (For example, [`gatsby-plugin-mdx`](/plugins/gatsby-plugin-mdx/) also requires `@mdx-js/mdx` and `@mdx-js/react` to be installed.)
Check the plugin's README file to see if there are any other dependencies that you also need to install. (For example, [`gatsby-plugin-mdx`](/plugins/gatsby-plugin-mdx/) also requires `@mdx-js/react` to be installed.)

### Step 2: Configure the plugin in your `gatsby-config.js` file

4 changes: 2 additions & 2 deletions docs/docs/how-to/querying-data/page-query.md
Original file line number Diff line number Diff line change
@@ -153,7 +153,7 @@ Consider the following query:
```js:title=src/templates/blog-post.js
export const query = graphql`
query MdxBlogPost {
query {
mdx(title: { eq: "Using a Theme" }) {
id
title
@@ -168,7 +168,7 @@ In addition to hardcoding an argument directly into the page query, you can pass
```js:title=src/templates/blog-post.js
export const query = graphql`
query MdxBlogPost($title: String) { // highlight-line
query ($title: String) { // highlight-line
mdx(title: {eq: $title}) { // highlight-line
id
title
10 changes: 5 additions & 5 deletions docs/docs/how-to/routing/customizing-components.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ Using MDX, you can replace every HTML element that Markdown renders with a
custom implementation. This allows you to use a set of design system components
when rendering.

```jsx:title=src/components/layout.js
```jsx:title=src/components/layout.jsx
import { MDXProvider } from "@mdx-js/react"
import * as DesignSystem from "your-design-system"

@@ -28,7 +28,7 @@ export default function Layout({ children }) {
}
```

**Note**: you can also provide your own custom components to the `MDXProvider` that make them globally available while writing MDX. You can find more details about this pattern in the [Importing and Using Components in MDX guide](/docs/mdx/importing-and-using-components#make-components-available-globally-as-shortcodes).
**Note**: You can also provide your own custom components to the `MDXProvider` that make them globally available while writing MDX. You can find more details about this pattern in the [Importing and Using Components in MDX guide](/docs/how-to/routing/mdx#make-components-available-globally-as-shortcodes).

The following components can be customized with the MDXProvider:

@@ -68,10 +68,10 @@ The following components can be customized with the MDXProvider:

## How does this work?

Components passed to the MDXProvider are used to render the HTML elements
that Markdown creates. It uses
[React's Context API](https://reactjs.org/docs/context.html).
Components passed to the MDXProvider are used to render the HTML elements that Markdown creates. It uses [React's Context API](https://reactjs.org/docs/context.html).

## Related

- [MDX components](https://mdxjs.com/getting-started/)
- [Adding Components to Markdown with MDX](/docs/how-to/routing/mdx/)
- [gatsby-plugin-mdx README](/plugins/gatsby-plugin-mdx)
Loading