From 29af3ba256abd085aa34b49030bce67c64670ddb Mon Sep 17 00:00:00 2001 From: Steven Occhipinti Date: Fri, 10 Apr 2020 16:33:24 +1000 Subject: [PATCH] Allow the use of `react-helmet@6.0.0` `react-helmet` `v6.0.0` was just released: https://www.npmjs.com/package/react-helmet Currently, installing `gatsby-plugin-react-helmet` alongside `react-helmet@6.0.0` causes the following warning: ``` warning " > gatsby-plugin-react-helmet@3.2.1" has incorrect peer dependency "react-helmet@^5.1.3". ``` This `peerDependency` can be bumped to support both versions as the only breaking change for v6 is the removal of the default export in favour of the named export, as explained in the upgrade guide here: https://github.com/nfl/react-helmet/wiki/Upgrade-from-5.x.x----6.x.x-beta `gatsby-plugin-react-helmet` already uses the named export as of 99b57c1484f5876751829d81674a34996f627b6b which explains the same rationale. This commit just brings the `package.json` into alignment. --- packages/gatsby-plugin-react-helmet/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-react-helmet/package.json b/packages/gatsby-plugin-react-helmet/package.json index e38c12715069a..b4289339ac001 100644 --- a/packages/gatsby-plugin-react-helmet/package.json +++ b/packages/gatsby-plugin-react-helmet/package.json @@ -36,7 +36,7 @@ "main": "index.js", "peerDependencies": { "gatsby": "^2.0.0", - "react-helmet": "^5.1.3" + "react-helmet": "^5.1.3 || ^6.0.0" }, "repository": { "type": "git",