From 0890a5cf2c881b49193113a1e1bd5fe13a2c328f Mon Sep 17 00:00:00 2001 From: LekoArts Date: Fri, 1 Jul 2022 09:13:01 +0200 Subject: [PATCH 01/12] chore: Update READMEs for better instructions --- packages/gatsby-codemods/README.md | 16 ++++----- packages/gatsby-design-tokens/README.md | 4 --- packages/gatsby-plugin-flow/README.md | 14 ++++---- .../gatsby-plugin-google-analytics/README.md | 6 ++-- packages/gatsby-plugin-google-gtag/README.md | 6 ++-- packages/gatsby-plugin-sitemap/README.md | 6 ++-- .../gatsby-plugin-styled-components/README.md | 4 ++- packages/gatsby-plugin-typography/README.md | 4 ++- packages/gatsby-remark-images/README.md | 4 ++- packages/gatsby-remark-katex/README.md | 4 ++- packages/gatsby-source-contentful/README.md | 6 ---- packages/gatsby-source-faker/README.md | 33 ++++++++++--------- packages/gatsby-source-mongodb/README.md | 6 ++++ packages/gatsby-telemetry/README.md | 2 +- .../gatsby-transformer-asciidoc/README.md | 4 ++- packages/gatsby-transformer-sharp/README.md | 4 ++- packages/gatsby-transformer-sqip/README.md | 2 -- 17 files changed, 71 insertions(+), 54 deletions(-) diff --git a/packages/gatsby-codemods/README.md b/packages/gatsby-codemods/README.md index 533b633265544..0d624ce7bc95b 100644 --- a/packages/gatsby-codemods/README.md +++ b/packages/gatsby-codemods/README.md @@ -1,10 +1,10 @@ -## gatsby-codemods +# gatsby-codemods A collection of codemod scripts for use with [JSCodeshift](https://github.com/facebook/jscodeshift) that help migrate to newer versions of Gatsby. > **Note:** Codemods are designed to rewrite your project's files. Ensure you have a backup before going any further. -### Setup & Run +## Setup & Run There are two ways to run codemods on this package. @@ -49,9 +49,9 @@ Structure of a jscodeshift call: - use the `--extensions` option if your files have different extensions than `.js` (for example, `--extensions js,jsx`) - see all available [jscodeshift options](https://github.com/facebook/jscodeshift#usage-cli). -### Included scripts +## Included scripts -#### `global-graphql-calls` +### `global-graphql-calls` Add a `graphql` import to modules that use the `graphql` tag function without an import. This was supported in Gatsby v1 and deprecated for Gatsby v2. @@ -82,7 +82,7 @@ export const query = graphql` ` ``` -#### `import-link` +### `import-link` Import `Link` from `gatsby` instead of `gatsby-link` and remove the `gatsby-link` import. @@ -103,7 +103,7 @@ export default props => ( ) ``` -#### `navigate-calls` +### `navigate-calls` Change the deprecated `navigateTo` method from `gatsby-link` to `navigate` from the `gatsby` module. @@ -128,7 +128,7 @@ export default props => ( ) ``` -#### `rename-bound-action-creators` +### `rename-bound-action-creators` Rename `boundActionCreators` to `actions`. `boundActionCreators` has been deprecated in Gatsby v2 @@ -158,7 +158,7 @@ Example result: } ``` -### More scripts +## More scripts Check out [issue 5038 in the Gatsby repo for additional codemod ideas](https://github.com/gatsbyjs/gatsby/issues/5038#issuecomment-411516865). diff --git a/packages/gatsby-design-tokens/README.md b/packages/gatsby-design-tokens/README.md index 8b859b86f19a1..a74fdb59e24fc 100644 --- a/packages/gatsby-design-tokens/README.md +++ b/packages/gatsby-design-tokens/README.md @@ -1,7 +1,3 @@ -rebeccapurple dot -
-
- # gatsby-design-tokens diff --git a/packages/gatsby-plugin-flow/README.md b/packages/gatsby-plugin-flow/README.md index 6616405885418..25401d6060edc 100644 --- a/packages/gatsby-plugin-flow/README.md +++ b/packages/gatsby-plugin-flow/README.md @@ -4,15 +4,17 @@ Provides drop-in support for Flow by adding `@babel/preset-flow`. ## Install -`npm install gatsby-plugin-flow` +```shell +npm install gatsby-plugin-flow +``` ## How to use -1. Include the plugin in your `gatsby-config.js` file. -1. You're good to go. - -`gatsby-config.js` +Add the plugin to your `gatsby-config.js` file: ```javascript -plugins: [`gatsby-plugin-flow`] +// In your gatsby-config.js +module.exports = { + plugins: [`gatsby-plugin-flow`], +} ``` diff --git a/packages/gatsby-plugin-google-analytics/README.md b/packages/gatsby-plugin-google-analytics/README.md index ea72dbf97d3d2..a37c219af8c32 100644 --- a/packages/gatsby-plugin-google-analytics/README.md +++ b/packages/gatsby-plugin-google-analytics/README.md @@ -2,13 +2,15 @@ Easily add Google Analytics to your Gatsby site. -## Upgrade note +## Deprecation Notice This plugin uses Google's `analytics.js` file under the hood. Google has a [guide recommending users upgrade to `gtag.js` instead](https://developers.google.com/analytics/devguides/collection/upgrade/analyticsjs). There is another plugin [`gatsby-plugin-gtag`](https://gatsbyjs.com/plugins/gatsby-plugin-google-gtag/) which uses `gtag.js` and we recommend it. ## Install -`npm install gatsby-plugin-google-analytics` +```shell +npm install gatsby-plugin-google-analytics +``` ## How to use diff --git a/packages/gatsby-plugin-google-gtag/README.md b/packages/gatsby-plugin-google-gtag/README.md index 51e7649570b0a..81c8bdfab3e12 100644 --- a/packages/gatsby-plugin-google-gtag/README.md +++ b/packages/gatsby-plugin-google-gtag/README.md @@ -10,11 +10,13 @@ For more general information on gtag you can read Google's official documentatio If you're migrating from analytics.js (gatsby-plugin-google-analytics) you can read about the subtle API differences in more depth at: https://developers.google.com/analytics/devguides/migration/ua/analyticsjs-to-gtagjs. -NOTE: This plugin only works in production mode! To test your Global Site Tag is installed and firing events correctly run: `gatsby build && gatsby serve.` +**Please note:** This plugin only works in production mode! To test your Global Site Tag is installed and firing events correctly run: `gatsby build && gatsby serve.` ## Install -`npm install gatsby-plugin-google-gtag` +```shell +npm install gatsby-plugin-google-gtag +``` ## How to use diff --git a/packages/gatsby-plugin-sitemap/README.md b/packages/gatsby-plugin-sitemap/README.md index 85976a381439e..2a833e8699a14 100644 --- a/packages/gatsby-plugin-sitemap/README.md +++ b/packages/gatsby-plugin-sitemap/README.md @@ -2,11 +2,13 @@ Create a sitemap for your Gatsby site. -_NOTE: This plugin only generates output when run in `production` mode! To test your sitemap, run: `gatsby build && gatsby serve`_ +**Please note:** This plugin only generates output when run in `production` mode! To test your sitemap, run: `gatsby build && gatsby serve`. ## Install -`npm install gatsby-plugin-sitemap` +```shell +npm install gatsby-plugin-sitemap +``` ## How to Use diff --git a/packages/gatsby-plugin-styled-components/README.md b/packages/gatsby-plugin-styled-components/README.md index d6498da8adcdf..c41d60d499549 100644 --- a/packages/gatsby-plugin-styled-components/README.md +++ b/packages/gatsby-plugin-styled-components/README.md @@ -6,7 +6,9 @@ built-in server-side rendering support. ## Install -`npm install gatsby-plugin-styled-components styled-components babel-plugin-styled-components` +```shell +npm install gatsby-plugin-styled-components styled-components babel-plugin-styled-components +``` ## How to use diff --git a/packages/gatsby-plugin-typography/README.md b/packages/gatsby-plugin-typography/README.md index bb3fcfe448258..40fcfcdbc934d 100644 --- a/packages/gatsby-plugin-typography/README.md +++ b/packages/gatsby-plugin-typography/README.md @@ -4,7 +4,9 @@ A Gatsby plugin for utilizing the [Typography](https://kyleamathews.github.io/ty ## Install -`npm install gatsby-plugin-typography react-typography typography` +```shell +npm install gatsby-plugin-typography react-typography typography +``` ## Why to use diff --git a/packages/gatsby-remark-images/README.md b/packages/gatsby-remark-images/README.md index f34c9a50de3c0..22b5440b54904 100644 --- a/packages/gatsby-remark-images/README.md +++ b/packages/gatsby-remark-images/README.md @@ -15,7 +15,9 @@ In the processing, it makes images responsive by: ## Install -`npm install gatsby-remark-images gatsby-plugin-sharp` +```shell +npm install gatsby-remark-images gatsby-plugin-sharp +``` ## How to use diff --git a/packages/gatsby-remark-katex/README.md b/packages/gatsby-remark-katex/README.md index 82d41e0139e32..abbd8aaa4a2bf 100644 --- a/packages/gatsby-remark-katex/README.md +++ b/packages/gatsby-remark-katex/README.md @@ -5,7 +5,9 @@ ## Install -`npm install gatsby-transformer-remark gatsby-remark-katex katex` +```shell +npm install gatsby-transformer-remark gatsby-remark-katex katex +``` ## How to use diff --git a/packages/gatsby-source-contentful/README.md b/packages/gatsby-source-contentful/README.md index 82f2d49c515a3..9e6cec80170e4 100644 --- a/packages/gatsby-source-contentful/README.md +++ b/packages/gatsby-source-contentful/README.md @@ -1,11 +1,5 @@ # gatsby-source-contentful -> Source plugin for pulling content types, entries, and assets into Gatsby from -> Contentful spaces. It creates links between entry types and asset so they can be -> queried in Gatsby using GraphQL. -> -> An example site for using this plugin is at https://using-contentful.gatsbyjs.org/ -
Table of contents diff --git a/packages/gatsby-source-faker/README.md b/packages/gatsby-source-faker/README.md index b53a0584059f2..ec814204325db 100644 --- a/packages/gatsby-source-faker/README.md +++ b/packages/gatsby-source-faker/README.md @@ -2,30 +2,33 @@ This is a plugin that allows you to use [faker.js](https://github.com/marak/Faker.js/) to generate fake data for Gatsby sites. This could come in handy for creating example sites, documentation, or just to experiment with Gatsby. -## How to use it - -Install `gatsby-source-faker` +## Installation ```shell npm install gatsby-source-faker ``` -Add `gatsby-source-faker` to the `gatsby-config.js` as follows +## How to use it + +Add `gatsby-source-faker` to the `gatsby-config.js` as following: ```javascript -plugins: [ - { - resolve: `gatsby-source-faker`, - // derive schema from faker's options - options: { - schema: { - name: ["firstName", "lastName"], +// In your gatsby-config.js +module.exports = { + plugins: [ + { + resolve: `gatsby-source-faker`, + // derive schema from faker's options + options: { + schema: { + name: ["firstName", "lastName"], + }, + count: 3, // how many fake objects you need + type: "NameData", // Name of the graphql query node }, - count: 3, // how many fake objects you need - type: "NameData", // Name of the graphql query node }, - }, -] + ], +} ``` Example: [Using Faker](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-faker) diff --git a/packages/gatsby-source-mongodb/README.md b/packages/gatsby-source-mongodb/README.md index 8a3b4a7a3525e..5ea35720b1043 100644 --- a/packages/gatsby-source-mongodb/README.md +++ b/packages/gatsby-source-mongodb/README.md @@ -2,6 +2,12 @@ Source plugin for pulling data into Gatsby from MongoDB collections. +## Installation + +```shell +npm install gatsby-source-mongodb +``` + ## How to use ```javascript diff --git a/packages/gatsby-telemetry/README.md b/packages/gatsby-telemetry/README.md index 0819b2d44db25..c8de982955954 100644 --- a/packages/gatsby-telemetry/README.md +++ b/packages/gatsby-telemetry/README.md @@ -1,6 +1,6 @@ # gatsby-telemetry -Check out: [gatsby.dev/telemetry](https://gatsby.dev/telemetry) +Check out [gatsby.dev/telemetry](https://gatsby.dev/telemetry) for more information. ## API diff --git a/packages/gatsby-transformer-asciidoc/README.md b/packages/gatsby-transformer-asciidoc/README.md index f4a6a61d9fa1b..5ba107ac3aa1c 100644 --- a/packages/gatsby-transformer-asciidoc/README.md +++ b/packages/gatsby-transformer-asciidoc/README.md @@ -4,7 +4,9 @@ Parses AsciiDoc files using [Asciidoctor.js](https://asciidoctor.org/docs/asciid ## Install -`npm install gatsby-transformer-asciidoc` +```shell +npm install gatsby-transformer-asciidoc +``` ## How to use diff --git a/packages/gatsby-transformer-sharp/README.md b/packages/gatsby-transformer-sharp/README.md index 05474cc9db7ea..ad6e4882c6ed3 100644 --- a/packages/gatsby-transformer-sharp/README.md +++ b/packages/gatsby-transformer-sharp/README.md @@ -10,7 +10,9 @@ including resizing, cropping, and creating responsive images. ## Install -`npm install gatsby-transformer-sharp gatsby-plugin-sharp` +```shell +npm install gatsby-transformer-sharp gatsby-plugin-sharp +``` ## How to use diff --git a/packages/gatsby-transformer-sqip/README.md b/packages/gatsby-transformer-sqip/README.md index b1ab08eb7d038..f8fb2727e382c 100644 --- a/packages/gatsby-transformer-sqip/README.md +++ b/packages/gatsby-transformer-sqip/README.md @@ -22,8 +22,6 @@ This project can create beautiful results, but this comes with the cost of processing power. It may take several seconds on your machine to generate the preview. **Make sure to invest some time and to cache your `public` folder to avoid regeneration of the previews on every build.** -Netlify users might use [gatsby-plugin-netlify-cache](https://github.com/axe312ger/gatsby-plugin-netlify-cache). -
Table of contents: From f66604aa86cbf28b4c530920ae0186dd7447f32d Mon Sep 17 00:00:00 2001 From: LekoArts Date: Fri, 1 Jul 2022 09:13:40 +0200 Subject: [PATCH 02/12] chore(release): Publish next - gatsby-cli@4.19.0-next.1 - gatsby-codemods@3.19.0-next.1 - gatsby-design-tokens@4.19.0-next.1 - gatsby-plugin-flow@3.19.0-next.1 - gatsby-plugin-gatsby-cloud@4.19.0-next.1 - gatsby-plugin-google-analytics@4.19.0-next.1 - gatsby-plugin-google-gtag@4.19.0-next.1 - gatsby-plugin-page-creator@4.19.0-next.1 - gatsby-plugin-sharp@4.19.0-next.1 - gatsby-plugin-sitemap@5.19.0-next.1 - gatsby-plugin-styled-components@5.19.0-next.1 - gatsby-plugin-typography@4.19.0-next.1 - gatsby-remark-images@6.19.0-next.1 - gatsby-remark-katex@6.19.0-next.1 - gatsby-source-contentful@7.17.0-next.1 - gatsby-source-faker@4.19.0-next.1 - gatsby-source-mongodb@4.19.0-next.1 - gatsby-source-wordpress@6.19.0-next.1 - gatsby-telemetry@3.19.0-next.1 - gatsby-transformer-asciidoc@3.19.0-next.1 - gatsby-transformer-sharp@4.19.0-next.1 - gatsby-transformer-sqip@4.19.0-next.1 - gatsby@4.19.0-next.1 --- packages/gatsby-cli/package.json | 4 ++-- packages/gatsby-codemods/package.json | 2 +- packages/gatsby-design-tokens/package.json | 2 +- packages/gatsby-plugin-flow/package.json | 2 +- packages/gatsby-plugin-gatsby-cloud/package.json | 4 ++-- packages/gatsby-plugin-google-analytics/package.json | 2 +- packages/gatsby-plugin-google-gtag/package.json | 2 +- packages/gatsby-plugin-page-creator/package.json | 4 ++-- packages/gatsby-plugin-sharp/package.json | 4 ++-- packages/gatsby-plugin-sitemap/package.json | 2 +- packages/gatsby-plugin-styled-components/package.json | 2 +- packages/gatsby-plugin-typography/package.json | 2 +- packages/gatsby-remark-images/package.json | 2 +- packages/gatsby-remark-katex/package.json | 2 +- packages/gatsby-source-contentful/package.json | 2 +- packages/gatsby-source-faker/package.json | 2 +- packages/gatsby-source-mongodb/package.json | 2 +- packages/gatsby-source-wordpress/package.json | 2 +- packages/gatsby-telemetry/package.json | 2 +- packages/gatsby-transformer-asciidoc/package.json | 2 +- packages/gatsby-transformer-sharp/package.json | 2 +- packages/gatsby-transformer-sqip/package.json | 4 ++-- packages/gatsby/package.json | 8 ++++---- 23 files changed, 31 insertions(+), 31 deletions(-) diff --git a/packages/gatsby-cli/package.json b/packages/gatsby-cli/package.json index 183e7fd1c50de..a26f7aae92542 100644 --- a/packages/gatsby-cli/package.json +++ b/packages/gatsby-cli/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-cli", "description": "Gatsby command-line interface for creating new sites and running Gatsby commands", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Kyle Mathews ", "bin": { "gatsby": "cli.js" @@ -33,7 +33,7 @@ "fs-exists-cached": "^1.0.0", "fs-extra": "^10.1.0", "gatsby-core-utils": "^3.19.0-next.0", - "gatsby-telemetry": "^3.19.0-next.0", + "gatsby-telemetry": "^3.19.0-next.1", "hosted-git-info": "^3.0.8", "is-valid-path": "^0.1.1", "joi": "^17.4.2", diff --git a/packages/gatsby-codemods/package.json b/packages/gatsby-codemods/package.json index f82e4b056686a..8eb0e43b3362c 100644 --- a/packages/gatsby-codemods/package.json +++ b/packages/gatsby-codemods/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-codemods", - "version": "3.19.0-next.0", + "version": "3.19.0-next.1", "description": "A collection of codemod scripts for use with JSCodeshift that help migrate to newer versions of Gatsby.", "main": "index.js", "scripts": { diff --git a/packages/gatsby-design-tokens/package.json b/packages/gatsby-design-tokens/package.json index 4cc18474b3067..8602a0cb7e426 100644 --- a/packages/gatsby-design-tokens/package.json +++ b/packages/gatsby-design-tokens/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-design-tokens", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "description": "Gatsby Design Tokens", "main": "dist/index.js", "module": "dist/index.esm.js", diff --git a/packages/gatsby-plugin-flow/package.json b/packages/gatsby-plugin-flow/package.json index f7f9425894a4c..ab03036fe6dff 100644 --- a/packages/gatsby-plugin-flow/package.json +++ b/packages/gatsby-plugin-flow/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-flow", - "version": "3.19.0-next.0", + "version": "3.19.0-next.1", "description": "Provides drop-in support for Flow by adding @babel/preset-flow.", "main": "index.js", "scripts": { diff --git a/packages/gatsby-plugin-gatsby-cloud/package.json b/packages/gatsby-plugin-gatsby-cloud/package.json index 2acf98d23ca21..4d9b2ccb77ee0 100644 --- a/packages/gatsby-plugin-gatsby-cloud/package.json +++ b/packages/gatsby-plugin-gatsby-cloud/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-plugin-gatsby-cloud", "description": "A Gatsby plugin which optimizes working with Gatsby Cloud", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Kyle Mathews ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" @@ -10,7 +10,7 @@ "@babel/runtime": "^7.15.4", "fs-extra": "^10.1.0", "gatsby-core-utils": "^3.19.0-next.0", - "gatsby-telemetry": "^3.19.0-next.0", + "gatsby-telemetry": "^3.19.0-next.1", "kebab-hash": "^0.1.2", "lodash": "^4.17.21", "webpack-assets-manifest": "^5.1.0" diff --git a/packages/gatsby-plugin-google-analytics/package.json b/packages/gatsby-plugin-google-analytics/package.json index d82a4bd5c84fa..096c6b682bb91 100644 --- a/packages/gatsby-plugin-google-analytics/package.json +++ b/packages/gatsby-plugin-google-analytics/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-plugin-google-analytics", "description": "Gatsby plugin to add google analytics onto a site", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Kyle Mathews ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-plugin-google-gtag/package.json b/packages/gatsby-plugin-google-gtag/package.json index 3d390fee87b35..491a3752fe726 100644 --- a/packages/gatsby-plugin-google-gtag/package.json +++ b/packages/gatsby-plugin-google-gtag/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-plugin-google-gtag", "description": "Gatsby plugin to add google gtag onto a site", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Tyler Buchea ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-plugin-page-creator/package.json b/packages/gatsby-plugin-page-creator/package.json index f57da0685ab46..9d041ba1a550c 100644 --- a/packages/gatsby-plugin-page-creator/package.json +++ b/packages/gatsby-plugin-page-creator/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-page-creator", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "description": "Gatsby plugin that automatically creates pages from React components in specified directories", "main": "index.js", "scripts": { @@ -32,7 +32,7 @@ "gatsby-core-utils": "^3.19.0-next.0", "gatsby-page-utils": "^2.19.0-next.0", "gatsby-plugin-utils": "^3.13.0-next.0", - "gatsby-telemetry": "^3.19.0-next.0", + "gatsby-telemetry": "^3.19.0-next.1", "globby": "^11.1.0", "lodash": "^4.17.21" }, diff --git a/packages/gatsby-plugin-sharp/package.json b/packages/gatsby-plugin-sharp/package.json index 46fc20ac1a1dc..f3a6b1860b215 100644 --- a/packages/gatsby-plugin-sharp/package.json +++ b/packages/gatsby-plugin-sharp/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-plugin-sharp", "description": "Wrapper of the Sharp image manipulation library for Gatsby plugins", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Kyle Mathews ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" @@ -16,7 +16,7 @@ "fs-extra": "^10.1.0", "gatsby-core-utils": "^3.19.0-next.0", "gatsby-plugin-utils": "^3.13.0-next.0", - "gatsby-telemetry": "^3.19.0-next.0", + "gatsby-telemetry": "^3.19.0-next.1", "got": "^11.8.5", "lodash": "^4.17.21", "mini-svg-data-uri": "^1.4.4", diff --git a/packages/gatsby-plugin-sitemap/package.json b/packages/gatsby-plugin-sitemap/package.json index cd11a65760fb4..ad8e196dacaa6 100644 --- a/packages/gatsby-plugin-sitemap/package.json +++ b/packages/gatsby-plugin-sitemap/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-plugin-sitemap", "description": "Gatsby plugin that automatically creates a sitemap for your site", - "version": "5.19.0-next.0", + "version": "5.19.0-next.1", "contributors": [ "Alex Moon ", "Nicholas Young " diff --git a/packages/gatsby-plugin-styled-components/package.json b/packages/gatsby-plugin-styled-components/package.json index 75c62ddc66a36..9d738d2e17089 100644 --- a/packages/gatsby-plugin-styled-components/package.json +++ b/packages/gatsby-plugin-styled-components/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-plugin-styled-components", "description": "Gatsby plugin to add support for styled components", - "version": "5.19.0-next.0", + "version": "5.19.0-next.1", "author": "Guten Ye ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-plugin-typography/package.json b/packages/gatsby-plugin-typography/package.json index 5ecdd2b0d647b..09eb115139d85 100644 --- a/packages/gatsby-plugin-typography/package.json +++ b/packages/gatsby-plugin-typography/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-plugin-typography", "description": "Gatsby plugin to setup server rendering of Typography.js' CSS", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Kyle Mathews ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-remark-images/package.json b/packages/gatsby-remark-images/package.json index 2bae72246a350..3a64d274c223a 100644 --- a/packages/gatsby-remark-images/package.json +++ b/packages/gatsby-remark-images/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-remark-images", "description": "Processes images in markdown so they can be used in the production build.", - "version": "6.19.0-next.0", + "version": "6.19.0-next.1", "author": "Kyle Mathews ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-remark-katex/package.json b/packages/gatsby-remark-katex/package.json index 41c0cf77bde27..9596cd0fbfd6c 100644 --- a/packages/gatsby-remark-katex/package.json +++ b/packages/gatsby-remark-katex/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-remark-katex", "description": "Transform math nodes to html markup", - "version": "6.19.0-next.0", + "version": "6.19.0-next.1", "author": "Jeffrey Xiao ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-source-contentful/package.json b/packages/gatsby-source-contentful/package.json index 3c9f38e2a4471..a40dcab06a5f5 100644 --- a/packages/gatsby-source-contentful/package.json +++ b/packages/gatsby-source-contentful/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-source-contentful", "description": "Gatsby source plugin for building websites using the Contentful CMS as a data source", - "version": "7.17.0-next.0", + "version": "7.17.0-next.1", "author": "Marcus Ericsson (mericsson.com)", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-source-faker/package.json b/packages/gatsby-source-faker/package.json index 67913adebd290..fc88eecb43060 100644 --- a/packages/gatsby-source-faker/package.json +++ b/packages/gatsby-source-faker/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-source-faker", "description": "A gatsby plugin to get fake data for testing", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Pavithra Kodmad", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-source-mongodb/package.json b/packages/gatsby-source-mongodb/package.json index 5dcf8f66f40a3..c74791ce48664 100644 --- a/packages/gatsby-source-mongodb/package.json +++ b/packages/gatsby-source-mongodb/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-source-mongodb", "description": "Source plugin for pulling data into Gatsby from MongoDB collections", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "authors": [ "jhermans85@hotmail.com", "hi@elmar.codes" diff --git a/packages/gatsby-source-wordpress/package.json b/packages/gatsby-source-wordpress/package.json index ce894959602fc..03d172b97f0de 100644 --- a/packages/gatsby-source-wordpress/package.json +++ b/packages/gatsby-source-wordpress/package.json @@ -2,7 +2,7 @@ "name": "gatsby-source-wordpress", "description": "Source data from WordPress in an efficient and scalable way.", "author": "Tyler Barnes ", - "version": "6.19.0-next.0", + "version": "6.19.0-next.1", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" }, diff --git a/packages/gatsby-telemetry/package.json b/packages/gatsby-telemetry/package.json index 6933dc2d66ce4..d334b2851fb64 100644 --- a/packages/gatsby-telemetry/package.json +++ b/packages/gatsby-telemetry/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-telemetry", "description": "Gatsby Telemetry", - "version": "3.19.0-next.0", + "version": "3.19.0-next.1", "author": "Jarmo Isotalo ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-transformer-asciidoc/package.json b/packages/gatsby-transformer-asciidoc/package.json index 8babda2a2dd3d..729307718f514 100644 --- a/packages/gatsby-transformer-asciidoc/package.json +++ b/packages/gatsby-transformer-asciidoc/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-transformer-asciidoc", "description": "Gatsby transformer plugin for Asciidocs using the Asciidoctor.js library", - "version": "3.19.0-next.0", + "version": "3.19.0-next.1", "author": "Daniel Oliver ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-transformer-sharp/package.json b/packages/gatsby-transformer-sharp/package.json index 11387fc941b48..8154085480f2f 100644 --- a/packages/gatsby-transformer-sharp/package.json +++ b/packages/gatsby-transformer-sharp/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-transformer-sharp", "description": "Gatsby transformer plugin for images using Sharp", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Kyle Mathews ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-transformer-sqip/package.json b/packages/gatsby-transformer-sqip/package.json index 01d3933d6b515..5ce873c31365e 100644 --- a/packages/gatsby-transformer-sqip/package.json +++ b/packages/gatsby-transformer-sqip/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-transformer-sqip", "description": "Generates geometric primitive version of images", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Benedikt Rötsch ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" @@ -10,7 +10,7 @@ "@babel/runtime": "^7.15.4", "fs-extra": "^10.1.0", "gatsby-core-utils": "^3.19.0-next.0", - "gatsby-plugin-sharp": "^4.19.0-next.0", + "gatsby-plugin-sharp": "^4.19.0-next.1", "md5-file": "^5.0.0", "mini-svg-data-uri": "^1.4.4", "p-queue": "^6.6.2", diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index 21a9695d3523a..0037962bdcb2e 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -1,7 +1,7 @@ { "name": "gatsby", "description": "Blazing fast modern site generator for React", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Kyle Mathews ", "bin": { "gatsby": "./cli.js" @@ -88,19 +88,19 @@ "find-cache-dir": "^3.3.2", "fs-exists-cached": "1.0.0", "fs-extra": "^10.1.0", - "gatsby-cli": "^4.19.0-next.0", + "gatsby-cli": "^4.19.0-next.1", "gatsby-core-utils": "^3.19.0-next.0", "gatsby-graphiql-explorer": "^2.19.0-next.0", "gatsby-legacy-polyfills": "^2.19.0-next.0", "gatsby-link": "^4.19.0-next.0", "gatsby-page-utils": "^2.19.0-next.0", "gatsby-parcel-config": "0.10.0-next.0", - "gatsby-plugin-page-creator": "^4.19.0-next.0", + "gatsby-plugin-page-creator": "^4.19.0-next.1", "gatsby-plugin-typescript": "^4.19.0-next.0", "gatsby-plugin-utils": "^3.13.0-next.0", "gatsby-react-router-scroll": "^5.19.0-next.0", "gatsby-script": "^1.4.0-next.0", - "gatsby-telemetry": "^3.19.0-next.0", + "gatsby-telemetry": "^3.19.0-next.1", "gatsby-worker": "^1.19.0-next.0", "glob": "^7.2.3", "globby": "^11.1.0", From 5bd3063a1e72c6f98447bfac2bf767cca781330b Mon Sep 17 00:00:00 2001 From: Lennart Date: Fri, 1 Jul 2022 11:34:37 +0200 Subject: [PATCH 03/12] feat: Publish some packages as ESM & CJS (#36012) Co-authored-by: Ward Peeters --- packages/create-gatsby/package.json | 2 +- packages/gatsby-design-tokens/package.json | 2 +- packages/gatsby-legacy-polyfills/package.json | 2 +- packages/gatsby-link/.babelrc | 4 +- packages/gatsby-link/package.json | 29 +++++--- packages/gatsby-link/src/index.js | 33 +-------- packages/gatsby-link/src/prefix-helpers.js | 32 ++++++++ packages/gatsby-link/src/rewrite-link-path.js | 2 +- packages/gatsby-link/tsconfig.json | 3 - packages/gatsby-plugin-image/package.json | 8 +- packages/gatsby-script/.babelrc | 7 +- packages/gatsby-script/package.json | 26 +++---- yarn.lock | 73 +++++-------------- 13 files changed, 89 insertions(+), 134 deletions(-) create mode 100644 packages/gatsby-link/src/prefix-helpers.js delete mode 100644 packages/gatsby-link/tsconfig.json diff --git a/packages/create-gatsby/package.json b/packages/create-gatsby/package.json index ab72cec6d6f85..b61c2be81f7a7 100644 --- a/packages/create-gatsby/package.json +++ b/packages/create-gatsby/package.json @@ -30,7 +30,7 @@ "fs-extra": "^10.1.0", "gatsby-plugin-utils": "^3.13.0-next.0", "joi": "^17.4.2", - "microbundle": "^0.14.2", + "microbundle": "^0.15.0", "node-fetch": "^2.6.6", "string-length": "^4.0.2", "terminal-link": "^2.1.1", diff --git a/packages/gatsby-design-tokens/package.json b/packages/gatsby-design-tokens/package.json index 8602a0cb7e426..bf06e2b6a5021 100644 --- a/packages/gatsby-design-tokens/package.json +++ b/packages/gatsby-design-tokens/package.json @@ -32,7 +32,7 @@ "devDependencies": { "agadoo": "^2.0.0", "cross-env": "^7.0.3", - "microbundle": "^0.14.2", + "microbundle": "^0.15.0", "preval.macro": "^5.0.0" }, "engines": { diff --git a/packages/gatsby-legacy-polyfills/package.json b/packages/gatsby-legacy-polyfills/package.json index 9799f71764899..3d172f003b068 100644 --- a/packages/gatsby-legacy-polyfills/package.json +++ b/packages/gatsby-legacy-polyfills/package.json @@ -40,7 +40,7 @@ "event-target-polyfill": "^0.0.3", "execa": "^5.1.1", "fs-extra": "^10.1.0", - "microbundle": "^0.14.2", + "microbundle": "^0.15.0", "npm-run-all": "^4.1.5", "object-assign": "^4.1.1", "url-polyfill": "^1.1.12", diff --git a/packages/gatsby-link/.babelrc b/packages/gatsby-link/.babelrc index 152bd0cb4257e..0967ef424bce6 100644 --- a/packages/gatsby-link/.babelrc +++ b/packages/gatsby-link/.babelrc @@ -1,3 +1 @@ -{ - "presets": [["babel-preset-gatsby-package", { "browser": true, "esm": true }]] -} +{} diff --git a/packages/gatsby-link/package.json b/packages/gatsby-link/package.json index 85d025253da19..8abf5e275538d 100644 --- a/packages/gatsby-link/package.json +++ b/packages/gatsby-link/package.json @@ -6,18 +6,30 @@ "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" }, + "source": "src/index.js", + "main": "dist/index.js", + "module": "dist/index.modern.mjs", + "types": "index.d.ts", + "files": [ + "dist/*" + ], + "sideEffects": false, + "scripts": { + "build": "microbundle -f cjs,modern --jsx React.createElement --generateTypes false", + "watch": "npm run build watch --no-compress", + "prepare": "cross-env NODE_ENV=production npm run clean && npm run build", + "clean": "del-cli dist/*" + }, "dependencies": { - "@babel/runtime": "^7.15.4", "@types/reach__router": "^1.3.10", "gatsby-page-utils": "^2.19.0-next.0", "prop-types": "^15.8.1" }, "devDependencies": { - "@babel/cli": "^7.15.4", - "@babel/core": "^7.15.5", "@testing-library/react": "^11.2.7", - "babel-preset-gatsby-package": "^2.19.0-next.0", - "cross-env": "^7.0.3" + "cross-env": "^7.0.3", + "del-cli": "^3.0.1", + "microbundle": "^0.15.0" }, "peerDependencies": { "@gatsbyjs/reach-router": "^1.3.5", @@ -29,18 +41,11 @@ "gatsby" ], "license": "MIT", - "main": "index.js", "repository": { "type": "git", "url": "https://github.com/gatsbyjs/gatsby.git", "directory": "packages/gatsby-link" }, - "scripts": { - "build": "babel src --out-dir . --ignore \"**/__tests__\"", - "prepare": "cross-env NODE_ENV=production npm run build", - "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" - }, - "types": "index.d.ts", "engines": { "node": ">=14.15.0" } diff --git a/packages/gatsby-link/src/index.js b/packages/gatsby-link/src/index.js index 490289713aad2..67cc83d6eee3c 100644 --- a/packages/gatsby-link/src/index.js +++ b/packages/gatsby-link/src/index.js @@ -4,38 +4,9 @@ import { Link, Location } from "@gatsbyjs/reach-router" import { parsePath } from "./parse-path" import { isLocalLink } from "./is-local-link" import { rewriteLinkPath } from "./rewrite-link-path" +import { withPrefix, getGlobalPathPrefix } from "./prefix-helpers" -export { parsePath } - -export function withPrefix(path, prefix = getGlobalBasePrefix()) { - if (!isLocalLink(path)) { - return path - } - - if (path.startsWith(`./`) || path.startsWith(`../`)) { - return path - } - const base = prefix ?? getGlobalPathPrefix() ?? `/` - - return `${base?.endsWith(`/`) ? base.slice(0, -1) : base}${ - path.startsWith(`/`) ? path : `/${path}` - }` -} - -// These global values are wrapped in typeof clauses to ensure the values exist. -// This is especially problematic in unit testing of this component. -const getGlobalPathPrefix = () => - process.env.NODE_ENV !== `production` - ? typeof __PATH_PREFIX__ !== `undefined` - ? __PATH_PREFIX__ - : undefined - : __PATH_PREFIX__ -const getGlobalBasePrefix = () => - process.env.NODE_ENV !== `production` - ? typeof __BASE_PATH__ !== `undefined` - ? __BASE_PATH__ - : undefined - : __BASE_PATH__ +export { parsePath, withPrefix } export function withAssetPrefix(path) { return withPrefix(path, getGlobalPathPrefix()) diff --git a/packages/gatsby-link/src/prefix-helpers.js b/packages/gatsby-link/src/prefix-helpers.js new file mode 100644 index 0000000000000..054e417b314ca --- /dev/null +++ b/packages/gatsby-link/src/prefix-helpers.js @@ -0,0 +1,32 @@ +import { isLocalLink } from "./is-local-link" + +export const getGlobalBasePrefix = () => + process.env.NODE_ENV !== `production` + ? typeof __BASE_PATH__ !== `undefined` + ? __BASE_PATH__ + : undefined + : __BASE_PATH__ + +// These global values are wrapped in typeof clauses to ensure the values exist. +// This is especially problematic in unit testing of this component. +export const getGlobalPathPrefix = () => + process.env.NODE_ENV !== `production` + ? typeof __PATH_PREFIX__ !== `undefined` + ? __PATH_PREFIX__ + : undefined + : __PATH_PREFIX__ + +export function withPrefix(path, prefix = getGlobalBasePrefix()) { + if (!isLocalLink(path)) { + return path + } + + if (path.startsWith(`./`) || path.startsWith(`../`)) { + return path + } + const base = prefix ?? getGlobalPathPrefix() ?? `/` + + return `${base?.endsWith(`/`) ? base.slice(0, -1) : base}${ + path.startsWith(`/`) ? path : `/${path}` + }` +} diff --git a/packages/gatsby-link/src/rewrite-link-path.js b/packages/gatsby-link/src/rewrite-link-path.js index 242205961a8aa..6ac57ee203264 100644 --- a/packages/gatsby-link/src/rewrite-link-path.js +++ b/packages/gatsby-link/src/rewrite-link-path.js @@ -3,7 +3,7 @@ import { resolve } from "@gatsbyjs/reach-router/lib/utils" import { applyTrailingSlashOption } from "gatsby-page-utils/apply-trailing-slash-option" import { parsePath } from "./parse-path" import { isLocalLink } from "./is-local-link" -import { withPrefix } from "." +import { withPrefix } from "./prefix-helpers" const isAbsolutePath = path => path?.startsWith(`/`) diff --git a/packages/gatsby-link/tsconfig.json b/packages/gatsby-link/tsconfig.json deleted file mode 100644 index 4082f16a5d91c..0000000000000 --- a/packages/gatsby-link/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../tsconfig.json" -} diff --git a/packages/gatsby-plugin-image/package.json b/packages/gatsby-plugin-image/package.json index 8b39baaae4988..5e360abe141db 100644 --- a/packages/gatsby-plugin-image/package.json +++ b/packages/gatsby-plugin-image/package.json @@ -4,9 +4,9 @@ "scripts": { "build": "npm-run-all --npm-path npm -s clean -p build:*", "build:gatsby-node": "tsc --jsx react --downlevelIteration true --skipLibCheck true --esModuleInterop true --outDir dist/ src/gatsby-node.ts src/babel-plugin-parse-static-images.ts src/resolver-utils.ts src/types.d.ts -d --declarationDir dist/src", - "build:gatsby-ssr": "microbundle -i src/gatsby-ssr.tsx -f cjs -o ./[name].js --no-pkg-main --jsx React.createElement --no-compress --external=common-tags,react --no-sourcemap", - "build:server": "microbundle -f cjs,es --jsx React.createElement --define SERVER=true", - "build:browser": "microbundle -i src/index.browser.ts -f cjs,modern --jsx React.createElement -o dist/gatsby-image.browser --define SERVER=false", + "build:gatsby-ssr": "microbundle -i src/gatsby-ssr.tsx -f cjs -o ./[name].js --no-pkg-main --jsx React.createElement --jsxFragment React.Fragment --no-compress --external=common-tags,react --no-sourcemap", + "build:server": "microbundle -f cjs,es --jsx React.createElement --jsxFragment React.Fragment --define SERVER=true", + "build:browser": "microbundle -i src/index.browser.ts -f cjs,modern --jsx React.createElement --jsxFragment React.Fragment -o dist/gatsby-image.browser --define SERVER=false", "prepare": "yarn build", "watch": "npm-run-all --npm-path npm -s clean -p watch:*", "watch:gatsby-node": "yarn build:gatsby-node --watch", @@ -56,7 +56,7 @@ "cssnano": "^4.1.10", "del-cli": "^3.0.1", "do-sync": "^3.0.11", - "microbundle": "^0.13.0", + "microbundle": "^0.15.0", "npm-run-all": "^4.1.5", "postcss": "^8.2.9", "semver": "^7.3.7", diff --git a/packages/gatsby-script/.babelrc b/packages/gatsby-script/.babelrc index ff76a7a2f0f3b..0967ef424bce6 100644 --- a/packages/gatsby-script/.babelrc +++ b/packages/gatsby-script/.babelrc @@ -1,6 +1 @@ -{ - "presets": [ - ["babel-preset-gatsby-package", { "browser": true, "esm": true }], - "@babel/preset-typescript" - ] -} +{} diff --git a/packages/gatsby-script/package.json b/packages/gatsby-script/package.json index d9a05b6f568ff..f900fae028a57 100644 --- a/packages/gatsby-script/package.json +++ b/packages/gatsby-script/package.json @@ -6,33 +6,25 @@ "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" }, + "source": "src/index.ts", "main": "dist/index.js", + "module": "dist/index.modern.mjs", "types": "dist/index.d.ts", - "typesVersions": { - "*": { - "*": [ - "dist/*.d.ts", - "dist/index.d.ts" - ] - } - }, "files": [ "dist/*" ], + "sideEffects": false, "scripts": { - "typegen": "rimraf \"dist/**/*.d.ts\" && tsc --emitDeclarationOnly --declaration --declarationDir dist/", - "build": "babel src --extensions \".js,.jsx,.ts,.tsx\" --out-dir dist --ignore \"**/__tests__\"", - "watch": "babel -w src --extensions \".js,.jsx,.ts,.tsx\" --out-dir dist --ignore \"**/__tests__\"", - "prepare": "cross-env NODE_ENV=production npm run build && npm run typegen" + "build": "microbundle -f cjs,modern --jsx React.createElement", + "watch": "microbundle watch -f cjs,modern --jsx React.createElement --no-compress", + "prepare": "cross-env NODE_ENV=production npm run clean && npm run build", + "clean": "del-cli dist/*" }, "devDependencies": { - "@babel/cli": "^7.15.4", - "@babel/core": "^7.15.5", - "@babel/preset-typescript": "^7.16.7", "@testing-library/react": "^11.2.7", - "babel-preset-gatsby-package": "^2.19.0-next.0", "cross-env": "^7.0.3", - "rimraf": "^3.0.2", + "del-cli": "^3.0.1", + "microbundle": "^0.15.0", "typescript": "^4.7.2" }, "peerDependencies": { diff --git a/yarn.lock b/yarn.lock index 2a502718b8121..ea2c54554b20a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16536,56 +16536,10 @@ methods@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" -microbundle@^0.13.0: - version "0.13.3" - resolved "https://registry.yarnpkg.com/microbundle/-/microbundle-0.13.3.tgz#cfc5055b50cf7a0bcc5eec441604f4520ccd07ec" - integrity sha512-nlP20UmyqGGeh6jhk8VaVFEoRlF+JAvnwixPLQUwHEcAF59ROJCyh34eylJzUAVNvF3yrCaHxIBv8lYcphDM1g== - dependencies: - "@babel/core" "^7.12.10" - "@babel/plugin-proposal-class-properties" "7.12.1" - "@babel/plugin-syntax-import-meta" "^7.10.4" - "@babel/plugin-syntax-jsx" "^7.12.1" - "@babel/plugin-transform-flow-strip-types" "^7.12.10" - "@babel/plugin-transform-react-jsx" "^7.12.11" - "@babel/plugin-transform-regenerator" "^7.12.1" - "@babel/preset-env" "^7.12.11" - "@babel/preset-flow" "^7.12.1" - "@babel/preset-react" "^7.12.10" - "@rollup/plugin-alias" "^3.1.1" - "@rollup/plugin-babel" "^5.2.2" - "@rollup/plugin-commonjs" "^17.0.0" - "@rollup/plugin-json" "^4.1.0" - "@rollup/plugin-node-resolve" "^11.0.1" - asyncro "^3.0.0" - autoprefixer "^10.1.0" - babel-plugin-macros "^3.0.1" - babel-plugin-transform-async-to-promises "^0.8.15" - babel-plugin-transform-replace-expressions "^0.2.0" - brotli-size "^4.0.0" - builtin-modules "^3.1.0" - camelcase "^6.2.0" - escape-string-regexp "^4.0.0" - filesize "^6.1.0" - gzip-size "^6.0.0" - kleur "^4.1.3" - lodash.merge "^4.6.2" - postcss "^8.2.1" - pretty-bytes "^5.4.1" - rollup "^2.35.1" - rollup-plugin-bundle-size "^1.0.3" - rollup-plugin-postcss "^4.0.0" - rollup-plugin-terser "^7.0.2" - rollup-plugin-typescript2 "^0.29.0" - sade "^1.7.4" - terser "^5.7.0" - tiny-glob "^0.2.8" - tslib "^2.0.3" - typescript "^4.1.3" - -microbundle@^0.14.2: - version "0.14.2" - resolved "https://registry.yarnpkg.com/microbundle/-/microbundle-0.14.2.tgz#2db869c8145bd159aa55058ead47223f58f93bf2" - integrity sha512-jODALfU3w7jnJAqw7Tou9uU8e8zH0GRVWzOd/V7eAvD1fsfb9pyMbmzhFZqnX6SCb54eP1EF5oRyNlSxBAxoag== +microbundle@^0.15.0: + version "0.15.0" + resolved "https://registry.yarnpkg.com/microbundle/-/microbundle-0.15.0.tgz#d5a63ce02271b20d79fd30d83a123aaf962a5191" + integrity sha512-EkFst5ntLXoQGewkvga/Kd72RcN7IuJRl5ivLihJSbvLfJQo8LDS0n9X0q81vegiC59vhtKIM6qjrl1fOAtuGw== dependencies: "@babel/core" "^7.12.10" "@babel/plugin-proposal-class-properties" "7.12.1" @@ -16623,6 +16577,7 @@ microbundle@^0.14.2: rollup-plugin-postcss "^4.0.0" rollup-plugin-terser "^7.0.2" rollup-plugin-typescript2 "^0.29.0" + rollup-plugin-visualizer "^5.6.0" sade "^1.7.4" terser "^5.7.0" tiny-glob "^0.2.8" @@ -17112,10 +17067,10 @@ nan@^2.10.0, nan@^2.14.2: resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19" integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ== -nanoid@^3.1.30: - version "3.1.30" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.30.tgz#63f93cc548d2a113dc5dfbc63bfa09e2b9b64362" - integrity sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ== +nanoid@^3.1.30, nanoid@^3.1.32: + version "3.3.4" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" + integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== nanomatch@^1.2.9: version "1.2.13" @@ -21972,6 +21927,16 @@ rollup-plugin-virtual@^1.0.1: resolved "https://registry.yarnpkg.com/rollup-plugin-virtual/-/rollup-plugin-virtual-1.0.1.tgz#8227c94c605b981adfe433ea74de3551e42ffeb4" integrity sha512-HCTBpV8MwP5lNzZrHD2moVxHIToHU1EkzkKGVj6Z0DcgUfxrxrZmeQirQeLz2yhnkJqRjwiVywK9CS8jDYakrw== +rollup-plugin-visualizer@^5.6.0: + version "5.6.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.6.0.tgz#06aa7cf3fd504a29d404335700f2a3f28ebb33f3" + integrity sha512-CKcc8GTUZjC+LsMytU8ocRr/cGZIfMR7+mdy4YnlyetlmIl/dM8BMnOEpD4JPIGt+ZVW7Db9ZtSsbgyeBH3uTA== + dependencies: + nanoid "^3.1.32" + open "^8.4.0" + source-map "^0.7.3" + yargs "^17.3.1" + rollup-pluginutils@^2.8.2: version "2.8.2" resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" From fc1bf10a7d16e742c1c0653fbafb5ca3b63f11cd Mon Sep 17 00:00:00 2001 From: LekoArts Date: Fri, 1 Jul 2022 12:42:30 +0200 Subject: [PATCH 04/12] chore(release): Publish next - babel-preset-gatsby@2.19.0-next.1 - create-gatsby@2.19.0-next.1 - gatsby-cli@4.19.0-next.2 - gatsby-design-tokens@4.19.0-next.2 - gatsby-legacy-polyfills@2.19.0-next.1 - gatsby-link@4.19.0-next.1 - gatsby-plugin-image@2.19.0-next.1 - gatsby-plugin-sharp@4.19.0-next.2 - gatsby-script@1.4.0-next.1 - gatsby-source-shopify@7.8.0-next.1 - gatsby-source-wordpress@6.19.0-next.2 - gatsby-transformer-sqip@4.19.0-next.2 - gatsby@4.19.0-next.2 --- packages/babel-preset-gatsby/package.json | 4 ++-- packages/create-gatsby/package.json | 2 +- packages/gatsby-cli/package.json | 4 ++-- packages/gatsby-design-tokens/package.json | 2 +- packages/gatsby-legacy-polyfills/package.json | 2 +- packages/gatsby-link/package.json | 2 +- packages/gatsby-plugin-image/package.json | 2 +- packages/gatsby-plugin-sharp/package.json | 4 ++-- packages/gatsby-script/package.json | 2 +- packages/gatsby-source-shopify/package.json | 4 ++-- packages/gatsby-source-wordpress/package.json | 6 +++--- packages/gatsby-transformer-sqip/package.json | 4 ++-- packages/gatsby/package.json | 12 ++++++------ 13 files changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/babel-preset-gatsby/package.json b/packages/babel-preset-gatsby/package.json index 2bb09c3d5ee21..e733bcabdd48c 100644 --- a/packages/babel-preset-gatsby/package.json +++ b/packages/babel-preset-gatsby/package.json @@ -1,6 +1,6 @@ { "name": "babel-preset-gatsby", - "version": "2.19.0-next.0", + "version": "2.19.0-next.1", "author": "Philipp Spiess ", "repository": { "type": "git", @@ -23,7 +23,7 @@ "babel-plugin-macros": "^3.1.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "gatsby-core-utils": "^3.19.0-next.0", - "gatsby-legacy-polyfills": "^2.19.0-next.0" + "gatsby-legacy-polyfills": "^2.19.0-next.1" }, "peerDependencies": { "@babel/core": "^7.11.6", diff --git a/packages/create-gatsby/package.json b/packages/create-gatsby/package.json index b61c2be81f7a7..9dab90816885f 100644 --- a/packages/create-gatsby/package.json +++ b/packages/create-gatsby/package.json @@ -1,6 +1,6 @@ { "name": "create-gatsby", - "version": "2.19.0-next.0", + "version": "2.19.0-next.1", "main": "lib/index.js", "bin": "cli.js", "license": "MIT", diff --git a/packages/gatsby-cli/package.json b/packages/gatsby-cli/package.json index a26f7aae92542..e7c6071d4e5fe 100644 --- a/packages/gatsby-cli/package.json +++ b/packages/gatsby-cli/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-cli", "description": "Gatsby command-line interface for creating new sites and running Gatsby commands", - "version": "4.19.0-next.1", + "version": "4.19.0-next.2", "author": "Kyle Mathews ", "bin": { "gatsby": "cli.js" @@ -27,7 +27,7 @@ "common-tags": "^1.8.2", "configstore": "^5.0.1", "convert-hrtime": "^3.0.0", - "create-gatsby": "^2.19.0-next.0", + "create-gatsby": "^2.19.0-next.1", "envinfo": "^7.8.1", "execa": "^5.1.1", "fs-exists-cached": "^1.0.0", diff --git a/packages/gatsby-design-tokens/package.json b/packages/gatsby-design-tokens/package.json index bf06e2b6a5021..a348fecd92ba4 100644 --- a/packages/gatsby-design-tokens/package.json +++ b/packages/gatsby-design-tokens/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-design-tokens", - "version": "4.19.0-next.1", + "version": "4.19.0-next.2", "description": "Gatsby Design Tokens", "main": "dist/index.js", "module": "dist/index.esm.js", diff --git a/packages/gatsby-legacy-polyfills/package.json b/packages/gatsby-legacy-polyfills/package.json index 3d172f003b068..e32746d52bb76 100644 --- a/packages/gatsby-legacy-polyfills/package.json +++ b/packages/gatsby-legacy-polyfills/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-legacy-polyfills", "description": "Polyfills for legacy browsers", - "version": "2.19.0-next.0", + "version": "2.19.0-next.1", "main": "dist/polyfills.js", "author": "Ward Peeters ", "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-legacy-polyfills#readme", diff --git a/packages/gatsby-link/package.json b/packages/gatsby-link/package.json index 8abf5e275538d..f21dcffb4a344 100644 --- a/packages/gatsby-link/package.json +++ b/packages/gatsby-link/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-link", "description": "An enhanced Link component for Gatsby sites with support for resource prefetching", - "version": "4.19.0-next.0", + "version": "4.19.0-next.1", "author": "Kyle Mathews ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-plugin-image/package.json b/packages/gatsby-plugin-image/package.json index 5e360abe141db..6f39eae5bdf7c 100644 --- a/packages/gatsby-plugin-image/package.json +++ b/packages/gatsby-plugin-image/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-image", - "version": "2.19.0-next.0", + "version": "2.19.0-next.1", "scripts": { "build": "npm-run-all --npm-path npm -s clean -p build:*", "build:gatsby-node": "tsc --jsx react --downlevelIteration true --skipLibCheck true --esModuleInterop true --outDir dist/ src/gatsby-node.ts src/babel-plugin-parse-static-images.ts src/resolver-utils.ts src/types.d.ts -d --declarationDir dist/src", diff --git a/packages/gatsby-plugin-sharp/package.json b/packages/gatsby-plugin-sharp/package.json index f3a6b1860b215..1a197ad7bc947 100644 --- a/packages/gatsby-plugin-sharp/package.json +++ b/packages/gatsby-plugin-sharp/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-plugin-sharp", "description": "Wrapper of the Sharp image manipulation library for Gatsby plugins", - "version": "4.19.0-next.1", + "version": "4.19.0-next.2", "author": "Kyle Mathews ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" @@ -32,7 +32,7 @@ "@types/sharp": "^0.30.0", "babel-preset-gatsby-package": "^2.19.0-next.0", "cross-env": "^7.0.3", - "gatsby-plugin-image": "^2.19.0-next.0" + "gatsby-plugin-image": "^2.19.0-next.1" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sharp#readme", "keywords": [ diff --git a/packages/gatsby-script/package.json b/packages/gatsby-script/package.json index f900fae028a57..6e4975275b50c 100644 --- a/packages/gatsby-script/package.json +++ b/packages/gatsby-script/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-script", "description": "An enhanced script component for Gatsby sites with support for various loading strategies", - "version": "1.4.0-next.0", + "version": "1.4.0-next.1", "author": "Ty Hopp ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" diff --git a/packages/gatsby-source-shopify/package.json b/packages/gatsby-source-shopify/package.json index e57543db65062..5f683a7460055 100644 --- a/packages/gatsby-source-shopify/package.json +++ b/packages/gatsby-source-shopify/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-source-shopify", - "version": "7.8.0-next.0", + "version": "7.8.0-next.1", "description": "Gatsby source plugin for building websites using Shopify as a data source.", "scripts": { "watch": "tsc-watch --outDir .", @@ -36,7 +36,7 @@ "@types/node-fetch": "^2.5.12", "@types/sharp": "^0.30.0", "cross-env": "^7.0.3", - "gatsby-plugin-image": "^2.19.0-next.0", + "gatsby-plugin-image": "^2.19.0-next.1", "msw": "^0.38.2", "prettier": "^2.7.1", "prettier-check": "^2.0.0", diff --git a/packages/gatsby-source-wordpress/package.json b/packages/gatsby-source-wordpress/package.json index 03d172b97f0de..707b5e0d5908b 100644 --- a/packages/gatsby-source-wordpress/package.json +++ b/packages/gatsby-source-wordpress/package.json @@ -2,7 +2,7 @@ "name": "gatsby-source-wordpress", "description": "Source data from WordPress in an efficient and scalable way.", "author": "Tyler Barnes ", - "version": "6.19.0-next.1", + "version": "6.19.0-next.2", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" }, @@ -53,10 +53,10 @@ "@types/semver": "^7.3.9", "babel-plugin-import-globals": "^2.0.0", "babel-plugin-module-resolver": "4.1.0", - "babel-preset-gatsby": "^2.19.0-next.0", + "babel-preset-gatsby": "^2.19.0-next.1", "babel-preset-gatsby-package": "^2.19.0-next.0", "cross-env": "^7.0.3", - "gatsby-plugin-image": "^2.19.0-next.0", + "gatsby-plugin-image": "^2.19.0-next.1", "identity-obj-proxy": "^3.0.0", "react-test-renderer": "^16.14.0", "rimraf": "^3.0.2", diff --git a/packages/gatsby-transformer-sqip/package.json b/packages/gatsby-transformer-sqip/package.json index 5ce873c31365e..7522504137725 100644 --- a/packages/gatsby-transformer-sqip/package.json +++ b/packages/gatsby-transformer-sqip/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-transformer-sqip", "description": "Generates geometric primitive version of images", - "version": "4.19.0-next.1", + "version": "4.19.0-next.2", "author": "Benedikt Rötsch ", "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" @@ -10,7 +10,7 @@ "@babel/runtime": "^7.15.4", "fs-extra": "^10.1.0", "gatsby-core-utils": "^3.19.0-next.0", - "gatsby-plugin-sharp": "^4.19.0-next.1", + "gatsby-plugin-sharp": "^4.19.0-next.2", "md5-file": "^5.0.0", "mini-svg-data-uri": "^1.4.4", "p-queue": "^6.6.2", diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index 0037962bdcb2e..0294594b7db08 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -1,7 +1,7 @@ { "name": "gatsby", "description": "Blazing fast modern site generator for React", - "version": "4.19.0-next.1", + "version": "4.19.0-next.2", "author": "Kyle Mathews ", "bin": { "gatsby": "./cli.js" @@ -45,7 +45,7 @@ "babel-plugin-dynamic-import-node": "^2.3.3", "babel-plugin-lodash": "^3.3.4", "babel-plugin-remove-graphql-queries": "^4.19.0-next.0", - "babel-preset-gatsby": "^2.19.0-next.0", + "babel-preset-gatsby": "^2.19.0-next.1", "better-opn": "^2.1.1", "bluebird": "^3.7.2", "body-parser": "^1.19.0", @@ -88,18 +88,18 @@ "find-cache-dir": "^3.3.2", "fs-exists-cached": "1.0.0", "fs-extra": "^10.1.0", - "gatsby-cli": "^4.19.0-next.1", + "gatsby-cli": "^4.19.0-next.2", "gatsby-core-utils": "^3.19.0-next.0", "gatsby-graphiql-explorer": "^2.19.0-next.0", - "gatsby-legacy-polyfills": "^2.19.0-next.0", - "gatsby-link": "^4.19.0-next.0", + "gatsby-legacy-polyfills": "^2.19.0-next.1", + "gatsby-link": "^4.19.0-next.1", "gatsby-page-utils": "^2.19.0-next.0", "gatsby-parcel-config": "0.10.0-next.0", "gatsby-plugin-page-creator": "^4.19.0-next.1", "gatsby-plugin-typescript": "^4.19.0-next.0", "gatsby-plugin-utils": "^3.13.0-next.0", "gatsby-react-router-scroll": "^5.19.0-next.0", - "gatsby-script": "^1.4.0-next.0", + "gatsby-script": "^1.4.0-next.1", "gatsby-telemetry": "^3.19.0-next.1", "gatsby-worker": "^1.19.0-next.0", "glob": "^7.2.3", From 538c0cdc55066e48b8c3a6693b16e5814b3a7e02 Mon Sep 17 00:00:00 2001 From: Timxyx <62754419+Timxyx@users.noreply.github.com> Date: Fri, 1 Jul 2022 12:47:07 +0200 Subject: [PATCH 05/12] fix(gatsby-source-contentful): Add `proxy.protocol` to Joi schema (#36011) Co-authored-by: Lennart --- packages/gatsby-source-contentful/src/gatsby-node.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gatsby-source-contentful/src/gatsby-node.js b/packages/gatsby-source-contentful/src/gatsby-node.js index 4ca05ab2a5980..55b6a2f3ea95b 100644 --- a/packages/gatsby-source-contentful/src/gatsby-node.js +++ b/packages/gatsby-source-contentful/src/gatsby-node.js @@ -124,6 +124,7 @@ List of locales and their codes can be found in Contentful app -> Settings -> Lo .default(50), proxy: Joi.object() .keys({ + protocol: Joi.string(), host: Joi.string().required(), port: Joi.number().required(), auth: Joi.object().keys({ From 8568e7b71a32b6cdb564927794b2e249c25de665 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 12:50:13 +0200 Subject: [PATCH 06/12] chore(deps): update formatting & linting (#36038) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 8 +++--- yarn.lock | 75 ++++++++++++++++++++++++++-------------------------- 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/package.json b/package.json index 65fa7ac71c38b..aefa0d7c7f4e1 100644 --- a/package.json +++ b/package.json @@ -40,9 +40,9 @@ "eslint-plugin-filenames": "^1.3.2", "eslint-plugin-flowtype": "^6.1.1", "eslint-plugin-import": "^2.26.0", - "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-react": "^7.30.0", + "eslint-plugin-jsx-a11y": "^6.6.0", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-react": "^7.30.1", "fs-extra": "^10.1.0", "glob": "^7.2.3", "husky": "3.1.0", @@ -61,7 +61,7 @@ "npm-packlist": "^2.1.5", "npm-run-all": "4.1.5", "plop": "^1.9.1", - "prettier": "^2.6.2", + "prettier": "^2.7.1", "remark": "^13.0.0", "remark-cli": "^9.0.0", "remark-frontmatter": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index ea2c54554b20a..7d86a9e06e135 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1457,10 +1457,10 @@ core-js-pure "^3.0.0" regenerator-runtime "^0.13.4" -"@babel/runtime@^7.0.0", "@babel/runtime@^7.10.0", "@babel/runtime@^7.10.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.15.4", "@babel/runtime@^7.16.3", "@babel/runtime@^7.18.0", "@babel/runtime@^7.3.4", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": - version "7.18.0" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.0.tgz#6d77142a19cb6088f0af662af1ada37a604d34ae" - integrity sha512-YMQvx/6nKEaucl0MY56mwIG483xk8SDNdlUwb2Ts6FUpr7fm85DxEmsY18LXBNhcTz6tO6JwZV8w1W06v8UKeg== +"@babel/runtime@^7.0.0", "@babel/runtime@^7.10.0", "@babel/runtime@^7.10.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.15.4", "@babel/runtime@^7.18.0", "@babel/runtime@^7.18.3", "@babel/runtime@^7.3.4", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.6.tgz#6a1ef59f838debd670421f8c7f2cbb8da9751580" + integrity sha512-t9wi7/AW6XtKahAe20Yw0/mMljKq0B1r2fPdvaAdV/KPDZewFXdaaa6K7lxmZBZ8FBNpCiAT6iHPmd6QO9bKfQ== dependencies: regenerator-runtime "^0.13.4" @@ -5814,7 +5814,7 @@ array-ify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece" -array-includes@^3.1.3, array-includes@^3.1.4, array-includes@^3.1.5: +array-includes@^3.1.4, array-includes@^3.1.5: version "3.1.5" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.5.tgz#2c320010db8d31031fd2a5f6b3bbd4b1aad31bdb" integrity sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ== @@ -6100,10 +6100,10 @@ aws4@^1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" -axe-core@^4.3.5: - version "4.3.5" - resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.3.5.tgz#78d6911ba317a8262bfee292aeafcc1e04b49cc5" - integrity sha512-WKTW1+xAzhMS5dJsxWkliixlO/PqC4VhmO9T4juNYcaTg9jzWiJsou6m5pxWYGfigWbwzJWeFY6z47a+4neRXA== +axe-core@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.4.2.tgz#dcf7fb6dea866166c3eab33d68208afe4d5f670c" + integrity sha512-LVAaGp/wkkgYJcjmHsoKx4juT1aQvJyPcW09MLCjVTh3V2cc6PnyempiLMNH5iMdfIX/zdbjUx2KDjMLCTdPeA== axios-rate-limit@^1.3.0: version "1.3.0" @@ -8859,10 +8859,10 @@ d@1, d@^1.0.1: es5-ext "^0.10.50" type "^1.0.1" -damerau-levenshtein@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.7.tgz#64368003512a1a6992593741a09a9d31a836f55d" - integrity sha512-VvdQIPGdWP0SqFXghj79Wf/5LArmreyMsGLa6FG6iC4t3j7j5s71TrwWmT/4akbDQIqjfACkLZmjXhA7g2oUZw== +damerau-levenshtein@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" + integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA== danger@^10.6.4: version "10.6.4" @@ -10226,28 +10226,29 @@ eslint-plugin-import@^2.26.0: resolve "^1.22.0" tsconfig-paths "^3.14.1" -eslint-plugin-jsx-a11y@^6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.1.tgz#cdbf2df901040ca140b6ec14715c988889c2a6d8" - integrity sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g== +eslint-plugin-jsx-a11y@^6.5.1, eslint-plugin-jsx-a11y@^6.6.0: + version "6.6.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.0.tgz#2c5ac12e013eb98337b9aa261c3b355275cc6415" + integrity sha512-kTeLuIzpNhXL2CwLlc8AHI0aFRwWHcg483yepO9VQiHzM9bZwJdzTkzBszbuPrbgGmq2rlX/FaT2fJQsjUSHsw== dependencies: - "@babel/runtime" "^7.16.3" + "@babel/runtime" "^7.18.3" aria-query "^4.2.2" - array-includes "^3.1.4" + array-includes "^3.1.5" ast-types-flow "^0.0.7" - axe-core "^4.3.5" + axe-core "^4.4.2" axobject-query "^2.2.0" - damerau-levenshtein "^1.0.7" + damerau-levenshtein "^1.0.8" emoji-regex "^9.2.2" has "^1.0.3" - jsx-ast-utils "^3.2.1" + jsx-ast-utils "^3.3.1" language-tags "^1.0.5" - minimatch "^3.0.4" + minimatch "^3.1.2" + semver "^6.3.0" -eslint-plugin-prettier@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz#8b99d1e4b8b24a762472b4567992023619cb98e0" - integrity sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ== +eslint-plugin-prettier@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b" + integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== dependencies: prettier-linter-helpers "^1.0.0" @@ -10256,10 +10257,10 @@ eslint-plugin-react-hooks@^4.5.0: resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.5.0.tgz#5f762dfedf8b2cf431c689f533c9d3fa5dcf25ad" integrity sha512-8k1gRt7D7h03kd+SAAlzXkQwWK22BnK6GKZG+FJA6BAGy22CFvl8kCIXKpVux0cCxMWDQUPqSok0LKaZ0aOcCw== -eslint-plugin-react@^7.30.0: - version "7.30.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.30.0.tgz#8e7b1b2934b8426ac067a0febade1b13bd7064e3" - integrity sha512-RgwH7hjW48BleKsYyHK5vUAvxtE9SMPDKmcPRQgtRCYaZA0XQPt5FSkrU3nhz5ifzMZcA8opwmRJ2cmOO8tr5A== +eslint-plugin-react@^7.30.0, eslint-plugin-react@^7.30.1: + version "7.30.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.30.1.tgz#2be4ab23ce09b5949c6631413ba64b2810fd3e22" + integrity sha512-NbEvI9jtqO46yJA3wcRF9Mo0lF9T/jhdHqhCHXiXtD+Zcb98812wvokjWpU7Q4QH5edo6dmqrukxVvWWXHlsUg== dependencies: array-includes "^3.1.5" array.prototype.flatmap "^1.3.0" @@ -14879,12 +14880,12 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.10.0" -"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.1.tgz#720b97bfe7d901b927d87c3773637ae8ea48781b" - integrity sha512-uP5vu8xfy2F9A6LGC22KO7e2/vGTS1MhP+18f++ZNlf0Ohaxbc9nIEwHAsejlJKyzfZzU5UIhe5ItYkitcZnZA== +"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.1.tgz#a3e0f1cb7e230954eab4dcbce9f6288a78f8ba44" + integrity sha512-pxrjmNpeRw5wwVeWyEAk7QJu2GnBO3uzPFmHCKJJFPKK2Cy0cWL23krGtLdnMmbIi6/FjlrQpPyfQI19ByPOhQ== dependencies: - array-includes "^3.1.3" + array-includes "^3.1.5" object.assign "^4.1.2" junk@^3.1.0: @@ -19391,7 +19392,7 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.6.2, prettier@^2.7.1: +prettier@^2.7.1: version "2.7.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== From f298e44b3169dfa3e3c69845d3b705e637038fb0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 12:50:25 +0200 Subject: [PATCH 07/12] chore(deps): update dependency aws-sdk to ^2.1166.0 (#36037) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/gatsby-transformer-screenshot/lambda/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-transformer-screenshot/lambda/package.json b/packages/gatsby-transformer-screenshot/lambda/package.json index 5d8cb4cd0632b..d8e7bf8139f74 100644 --- a/packages/gatsby-transformer-screenshot/lambda/package.json +++ b/packages/gatsby-transformer-screenshot/lambda/package.json @@ -5,7 +5,7 @@ "puppeteer-core": "^3.3.0" }, "devDependencies": { - "aws-sdk": "^2.1146.0" + "aws-sdk": "^2.1166.0" }, "keywords": [], "engines": { From a66e2c3cf6158c9bc941108fd5af6841328fe620 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 12:50:43 +0200 Subject: [PATCH 08/12] fix(deps): update dependency react-docgen to ^5.4.2 for gatsby-transformer-react-docgen (#36035) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/gatsby-transformer-react-docgen/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/gatsby-transformer-react-docgen/package.json b/packages/gatsby-transformer-react-docgen/package.json index 190a530c110fd..7bdc6c7b4b33f 100644 --- a/packages/gatsby-transformer-react-docgen/package.json +++ b/packages/gatsby-transformer-react-docgen/package.json @@ -12,7 +12,7 @@ "@babel/types": "^7.15.4", "ast-types": "^0.14.2", "common-tags": "^1.8.2", - "react-docgen": "^5.4.1" + "react-docgen": "^5.4.2" }, "devDependencies": { "@babel/cli": "^7.15.4", diff --git a/yarn.lock b/yarn.lock index 7d86a9e06e135..5f2c1d84970fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19923,10 +19923,10 @@ react-devtools-core@^4.19.1: shell-quote "^1.6.1" ws "^7" -react-docgen@^5.4.1: - version "5.4.1" - resolved "https://registry.yarnpkg.com/react-docgen/-/react-docgen-5.4.1.tgz#867168accce39e25095a23a922eaa90722e9d182" - integrity sha512-TZqD1aApirw86NV6tHrmDoxUn8wlinkVyutFarzbdwuhEurAzDN0y5sSj64o+BrHLPqjwpH9tunpfwgy+3Uyww== +react-docgen@^5.4.2: + version "5.4.2" + resolved "https://registry.yarnpkg.com/react-docgen/-/react-docgen-5.4.2.tgz#697ec899e8dd493bb7ba0d50ec0aa5e49f41d3fa" + integrity sha512-4Z5XYpHsn2bbUfaflxoS30VhUvQLBe4GCwwM5v1e1FUOeDdaoJi6wUGSmYp6OdXYEISEAOEIaSPBk4iezNCKBw== dependencies: "@babel/core" "^7.7.5" "@babel/generator" "^7.12.11" From 4a2d194c887ac5050df4eb64e496263d7f6a1126 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 12:51:53 +0200 Subject: [PATCH 09/12] fix(deps): update dependency eslint-plugin-react to ^7.30.1 (#36033) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/gatsby/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index 0294594b7db08..84289c3340223 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -74,7 +74,7 @@ "eslint-plugin-graphql": "^4.0.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-react": "^7.30.0", + "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.5.0", "eslint-webpack-plugin": "^2.6.0", "event-source-polyfill": "1.0.25", From 20c790ae4edf421e684b7628c03925895ddabf25 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 12:52:21 +0200 Subject: [PATCH 10/12] fix(deps): update dependency async to ^3.2.4 for gatsby-plugin-sharp (#36032) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/gatsby-plugin-sharp/package.json | 2 +- yarn.lock | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-plugin-sharp/package.json b/packages/gatsby-plugin-sharp/package.json index 1a197ad7bc947..ad6f2c266b51e 100644 --- a/packages/gatsby-plugin-sharp/package.json +++ b/packages/gatsby-plugin-sharp/package.json @@ -9,7 +9,7 @@ "dependencies": { "@babel/runtime": "^7.15.4", "@gatsbyjs/potrace": "^2.2.0", - "async": "^3.2.3", + "async": "^3.2.4", "bluebird": "^3.7.2", "debug": "^4.3.4", "filenamify": "^4.3.0", diff --git a/yarn.lock b/yarn.lock index 5f2c1d84970fe..fa5acb884a7c2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6040,11 +6040,16 @@ async@3.2.0: resolved "https://registry.yarnpkg.com/async/-/async-3.2.0.tgz#b3a2685c5ebb641d3de02d161002c60fc9f85720" integrity sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw== -async@3.2.3, async@^3.2.0, async@^3.2.3: +async@3.2.3: version "3.2.3" resolved "https://registry.yarnpkg.com/async/-/async-3.2.3.tgz#ac53dafd3f4720ee9e8a160628f18ea91df196c9" integrity sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g== +async@^3.2.0, async@^3.2.4: + version "3.2.4" + resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" + integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== + asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" From 245c71749b3899136d9c96e0b593cd06f6d2e8c4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 12:53:51 +0200 Subject: [PATCH 11/12] fix(deps): update dependency @prefresh/webpack to ^3.3.4 for gatsby-plugin-preact (#36031) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/gatsby-plugin-preact/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/gatsby-plugin-preact/package.json b/packages/gatsby-plugin-preact/package.json index 1570ccee8b69c..a50f85a5161a4 100644 --- a/packages/gatsby-plugin-preact/package.json +++ b/packages/gatsby-plugin-preact/package.json @@ -10,7 +10,7 @@ "@babel/runtime": "^7.15.4", "@gatsbyjs/webpack-hot-middleware": "^2.25.3", "@prefresh/babel-plugin": "^0.4.3", - "@prefresh/webpack": "^3.3.3" + "@prefresh/webpack": "^3.3.4" }, "devDependencies": { "@babel/cli": "^7.15.4", diff --git a/yarn.lock b/yarn.lock index fa5acb884a7c2..60d1b152cc33f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4037,10 +4037,10 @@ resolved "https://registry.yarnpkg.com/@prefresh/utils/-/utils-1.1.3.tgz#c764c6c8f0917f0a72ae14ec57ed8befde3f9bac" integrity sha512-Mb9abhJTOV4yCfkXrMrcgFiFT7MfNOw8sDa+XyZBdq/Ai2p4Zyxqsb3EgHLOEdHpMj6J9aiZ54W8H6FTam1u+A== -"@prefresh/webpack@^3.3.3": - version "3.3.3" - resolved "https://registry.yarnpkg.com/@prefresh/webpack/-/webpack-3.3.3.tgz#6090d5b7081ad39e926efaae4c344441949b7d0b" - integrity sha512-uT+A7ZuA7fuuUPNEde6Gmzr4oFnzreW9xw6iqw01nPpDiv46o6YWq1j0oGCbdffzHl3fBpcgkPuY07vIfmZ9Lg== +"@prefresh/webpack@^3.3.4": + version "3.3.4" + resolved "https://registry.yarnpkg.com/@prefresh/webpack/-/webpack-3.3.4.tgz#742b70cc6e9a51ff9da80dc75eeccb38d18274aa" + integrity sha512-RiXS/hvXDup5cQw/267kxkKie81kxaAB7SFbkr8ppshobDEzwgUN1tbGbHNx6Uari0Ql2XByC6HIgQGpaq2Q7w== dependencies: "@prefresh/core" "^1.3.3" "@prefresh/utils" "^1.1.2" From 2263c8c9b96fdfab38d65b5eea0abc30c364a490 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 12:55:24 +0200 Subject: [PATCH 12/12] chore(deps): update dependency msw to ^0.42.3 for gatsby-plugin-utils (#36028) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/gatsby-plugin-utils/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/gatsby-plugin-utils/package.json b/packages/gatsby-plugin-utils/package.json index 099720e253dfb..6760908faddc7 100644 --- a/packages/gatsby-plugin-utils/package.json +++ b/packages/gatsby-plugin-utils/package.json @@ -63,7 +63,7 @@ "@babel/core": "^7.15.5", "babel-preset-gatsby-package": "^2.19.0-next.0", "cross-env": "^7.0.3", - "msw": "^0.42.0", + "msw": "^0.42.3", "rimraf": "^3.0.2", "typescript": "^4.7.2" }, diff --git a/yarn.lock b/yarn.lock index 60d1b152cc33f..5c47f4f2e2993 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16992,10 +16992,10 @@ msw@^0.38.2: type-fest "^1.2.2" yargs "^17.3.1" -msw@^0.42.0: - version "0.42.0" - resolved "https://registry.yarnpkg.com/msw/-/msw-0.42.0.tgz#2286aefad82808888914e2bc5e40666e82b2824b" - integrity sha512-vB9rzgiGHoQGfkKpp3QZHxobzfuuQOJk+0bff0wtbK8k3P3CaUSt8bCwvExours682AY4mUfTjIkCsxy0JoS3w== +msw@^0.42.3: + version "0.42.3" + resolved "https://registry.yarnpkg.com/msw/-/msw-0.42.3.tgz#150c475e2cb6d53c67503bd0e3f6251bfd075328" + integrity sha512-zrKBIGCDsNUCZLd3DLSeUtRruZ0riwJgORg9/bSDw3D0PTI8XUGAK3nC0LJA9g0rChGuKaWK/SwObA8wpFrz4g== dependencies: "@mswjs/cookies" "^0.2.0" "@mswjs/interceptors" "^0.16.3"