Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit f0eee70

Browse files
selbekkrakannimer
authored andcommitted
chore(gatsby-theme-docz): switch out react-helmet (#1223)
This change switches out react-helmet with react-helmet-async. This change removes an annoying warning about deprecated lifecycle usage
1 parent 9fa000d commit f0eee70

5 files changed

Lines changed: 29 additions & 36 deletions

File tree

core/gatsby-theme-docz/gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = opts => {
6262
},
6363
},
6464
{
65-
resolve: 'gatsby-plugin-react-helmet',
65+
resolve: 'gatsby-plugin-react-helmet-async',
6666
},
6767
{
6868
resolve: 'gatsby-plugin-root-import',

core/gatsby-theme-docz/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
"gatsby-plugin-emotion": "^4.1.2",
3535
"gatsby-plugin-manifest": "^2.2.3",
3636
"gatsby-plugin-mdx": "^1.0.13",
37-
"gatsby-plugin-react-helmet": "^3.1.2",
37+
"gatsby-plugin-react-helmet-async": "^1.0.5",
3838
"gatsby-plugin-root-import": "^2.0.5",
3939
"lodash": "^4.17.14",
4040
"mdx-utils": "^0.2.0",
4141
"prop-types": "^15.7.2",
4242
"re-resizable": "^6.1.0",
4343
"react-feather": "^2.0.3",
44-
"react-helmet": "^5.2.1",
44+
"react-helmet-async": "^1.0.4",
4545
"react-live": "^2.1.2",
4646
"rehype-docz": "2.0.0-rc.69",
4747
"rehype-slug": "^2.0.3",

core/gatsby-theme-docz/src/base/Seo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3-
import Helmet from 'react-helmet'
3+
import { Helmet } from 'react-helmet-async'
44

55
import { useDbQuery } from '../hooks/useDbQuery'
66

examples/gatsby/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"prop-types": "^15.7.2",
3030
"react": "^16.9.0",
3131
"react-dom": "^16.9.0",
32-
"react-helmet": "^5.2.1",
32+
"react-helmet-async": "^1.0.4",
3333
"scheduler": "^0.15.0"
3434
}
3535
}

yarn.lock

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,13 @@
989989
dependencies:
990990
regenerator-runtime "^0.13.2"
991991

992+
"@babel/runtime@^7.3.4":
993+
version "7.6.3"
994+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.6.3.tgz#935122c74c73d2240cafd32ddb5fc2a6cd35cf1f"
995+
integrity sha512-kq6anf9JGjW8Nt5rYfEuGRaEAaH1mkv3Bbu6rYvLOpPh/RusSJXuKPEAoZ7L7gybZkchE8+NV5g9vKF4AGAtsA==
996+
dependencies:
997+
regenerator-runtime "^0.13.2"
998+
992999
"@babel/standalone@^7.4.5":
9931000
version "7.5.4"
9941001
resolved "https://registry.npmjs.org/@babel/standalone/-/standalone-7.5.4.tgz#c57221528619fcd2e8e2425f11d5d7cd79263b80"
@@ -8500,11 +8507,6 @@ execa@^2.0.1, execa@^2.0.4:
85008507
signal-exit "^3.0.2"
85018508
strip-final-newline "^2.0.0"
85028509

8503-
exenv@^1.2.1:
8504-
version "1.2.2"
8505-
resolved "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz#2ae78e85d9894158670b03d47bec1f03bd91bb9d"
8506-
integrity sha1-KueOhdmJQVhnCwPUe+wfA72Ru50=
8507-
85088510
exit@^0.1.2:
85098511
version "0.1.2"
85108512
resolved "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c"
@@ -9329,12 +9331,10 @@ gatsby-plugin-page-creator@^2.1.5:
93299331
lodash "^4.17.14"
93309332
micromatch "^3.1.10"
93319333

9332-
gatsby-plugin-react-helmet@^3.1.2:
9333-
version "3.1.2"
9334-
resolved "https://registry.npmjs.org/gatsby-plugin-react-helmet/-/gatsby-plugin-react-helmet-3.1.2.tgz#cde010f708581db4afbb3014257a6cef5c062116"
9335-
integrity sha512-9rqa0D7qV+d7lMcnoV2Y4PTSNJcolTVZDygINYAboeef8fflcvGmOYUl16SbC0HjRjdGSiS9bmcsUNHeYPC/7g==
9336-
dependencies:
9337-
"@babel/runtime" "^7.0.0"
9334+
gatsby-plugin-react-helmet-async@^1.0.5:
9335+
version "1.0.5"
9336+
resolved "https://registry.yarnpkg.com/gatsby-plugin-react-helmet-async/-/gatsby-plugin-react-helmet-async-1.0.5.tgz#e22d8822a8c54f9a5785f4eaca9c82ba22df20cd"
9337+
integrity sha512-SUI7BVc521NSlUHaek5TRIp1LOPtQ365DFMN+6KkbpzUY2kHeQr2n5KExeCLOBfApFSohJOerOsKoGYwWDHXHw==
93389338

93399339
gatsby-plugin-root-import@^2.0.5:
93409340
version "2.0.5"
@@ -15378,7 +15378,7 @@ promzard@^0.3.0:
1537815378
dependencies:
1537915379
read "1"
1538015380

15381-
prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.8, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2:
15381+
prop-types@^15.5.10, prop-types@^15.5.8, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2:
1538215382
version "15.7.2"
1538315383
resolved "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
1538415384
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -15718,9 +15718,9 @@ react-error-overlay@^6.0.1:
1571815718
resolved "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.1.tgz#b8d3cf9bb991c02883225c48044cb3ee20413e0f"
1571915719
integrity sha512-V9yoTr6MeZXPPd4nV/05eCBvGH9cGzc52FN8fs0O0TVQ3HYYf1n7EgZVtHbldRq5xU9zEzoXIITjYNIfxDDdUw==
1572015720

15721-
react-fast-compare@^2.0.2:
15721+
react-fast-compare@^2.0.4:
1572215722
version "2.0.4"
15723-
resolved "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz#e84b4d455b0fec113e0402c329352715196f81f9"
15723+
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-2.0.4.tgz#e84b4d455b0fec113e0402c329352715196f81f9"
1572415724
integrity sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw==
1572515725

1572615726
react-feather@^2.0.3:
@@ -15730,15 +15730,16 @@ react-feather@^2.0.3:
1573015730
dependencies:
1573115731
prop-types "^15.7.2"
1573215732

15733-
react-helmet@^5.2.1:
15734-
version "5.2.1"
15735-
resolved "https://registry.npmjs.org/react-helmet/-/react-helmet-5.2.1.tgz#16a7192fdd09951f8e0fe22ffccbf9bb3e591ffa"
15736-
integrity sha512-CnwD822LU8NDBnjCpZ4ySh8L6HYyngViTZLfBBb3NjtrpN8m49clH8hidHouq20I51Y6TpCTISCBbqiY5GamwA==
15733+
react-helmet-async@^1.0.4:
15734+
version "1.0.4"
15735+
resolved "https://registry.yarnpkg.com/react-helmet-async/-/react-helmet-async-1.0.4.tgz#079ef10b7fefcaee6240fefd150711e62463cc97"
15736+
integrity sha512-KTGHE9sz8N7+fCkZ2a3vzXH9eIkiTNhL2NhKR7XzzQl3WsGlCHh76arauJUIiGdfhjeMp7DY7PkASAmYFXeJYg==
1573715737
dependencies:
15738-
object-assign "^4.1.1"
15739-
prop-types "^15.5.4"
15740-
react-fast-compare "^2.0.2"
15741-
react-side-effect "^1.1.0"
15738+
"@babel/runtime" "^7.3.4"
15739+
invariant "^2.2.4"
15740+
prop-types "^15.7.2"
15741+
react-fast-compare "^2.0.4"
15742+
shallowequal "^1.1.0"
1574215743

1574315744
react-hot-loader@^4.12.5, react-hot-loader@^4.8.4:
1574415745
version "4.12.12"
@@ -15788,14 +15789,6 @@ react-reconciler@^0.20.0:
1578815789
prop-types "^15.6.2"
1578915790
scheduler "^0.13.6"
1579015791

15791-
react-side-effect@^1.1.0:
15792-
version "1.1.5"
15793-
resolved "https://registry.npmjs.org/react-side-effect/-/react-side-effect-1.1.5.tgz#f26059e50ed9c626d91d661b9f3c8bb38cd0ff2d"
15794-
integrity sha512-Z2ZJE4p/jIfvUpiUMRydEVpQRf2f8GMHczT6qLcARmX7QRb28JDBTpnM2g/i5y/p7ZDEXYGHWg0RbhikE+hJRw==
15795-
dependencies:
15796-
exenv "^1.2.1"
15797-
shallowequal "^1.0.1"
15798-
1579915792
react-simple-code-editor@^0.9.0:
1580015793
version "0.9.10"
1580115794
resolved "https://registry.npmjs.org/react-simple-code-editor/-/react-simple-code-editor-0.9.10.tgz#1ab5ea7215687ed918c6d0dae90736cf01890905"
@@ -17187,7 +17180,7 @@ shallow-compare@^1.2.2:
1718717180
resolved "https://registry.npmjs.org/shallow-compare/-/shallow-compare-1.2.2.tgz#fa4794627bf455a47c4f56881d8a6132d581ffdb"
1718817181
integrity sha512-LUMFi+RppPlrHzbqmFnINTrazo0lPNwhcgzuAXVVcfy/mqPDrQmHAyz5bvV0gDAuRFrk804V0HpQ6u9sZ0tBeg==
1718917182

17190-
shallowequal@^1.0.1, shallowequal@^1.1.0:
17183+
shallowequal@^1.1.0:
1719117184
version "1.1.0"
1719217185
resolved "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8"
1719317186
integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==

0 commit comments

Comments
 (0)