Skip to content

Commit

Permalink
release: 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Jun 15, 2022
1 parent bbf07fe commit 6933a35
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var context = {};
var onRenderBody = function (_a) {
var setHeadComponents = _a.setHeadComponents, setHtmlAttributes = _a.setHtmlAttributes, setBodyAttributes = _a.setBodyAttributes;
var helmet = context.helmet;
if (helmet != null) {
if (helmet) {
setHeadComponents([
helmet.base.toComponent(),
helmet.title.toComponent(),
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-react-helmet-async",
"version": "1.2.1",
"version": "1.2.2",
"description": "Use react-helmet-async with Gatsby",
"keywords": [
"gatsby",
Expand All @@ -21,12 +21,15 @@
"author": "Martin Rosenberg <Martin.B.Rosenberg@gmail.com> (https://martinbrosenberg.com)",
"main": "index.js",
"scripts": {
"prepublish": "yarn build",
"build": "tsc --build",
"clean": "rm gatsby-browser.d.ts gatsby-browser.js gatsby-ssr.d.ts gatsby-ssr.js",
"lint": "eslint src --ext ts,tsx --fix",
"test": "echo \"Error: no tests specified\" && exit 1"
},
"devDependencies": {
"@types/react": "^17",
"@types/react-dom": "^17",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"eslint": "^8.17.0",
Expand All @@ -52,5 +55,9 @@
"react": "^16.6.0 || ^17 || ^18",
"react-dom": "^16.6.0 || ^17 || ^18",
"react-helmet-async": "1.x"
},
"resolutions": {
"@types/react": "^17",
"@types/react-dom": "^17"
}
}
2 changes: 1 addition & 1 deletion src/gatsby-ssr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const onRenderBody: GatsbySSR['onRenderBody'] = ({
}: RenderBodyArgs): void => {
const { helmet } = context;

if (helmet != null) {
if (helmet) {
setHeadComponents([
helmet.base.toComponent(),
helmet.title.toComponent(),
Expand Down
15 changes: 11 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1800,10 +1800,17 @@
dependencies:
"@types/react" "*"

"@types/react@*":
version "18.0.12"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.12.tgz#cdaa209d0a542b3fcf69cf31a03976ec4cdd8840"
integrity sha512-duF1OTASSBQtcigUvhuiTB1Ya3OvSy+xORCiEf20H0P0lzx+/KeVsA99U5UjLXSbyo1DRJDlLKqTeM1ngosqtg==
"@types/react-dom@^17":
version "17.0.17"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.17.tgz#2e3743277a793a96a99f1bf87614598289da68a1"
integrity sha512-VjnqEmqGnasQKV0CWLevqMTXBYG9GbwuE6x3VetERLh0cq2LTptFE73MrQi2S7GkKXCf2GgwItB/melLnxfnsg==
dependencies:
"@types/react" "^17"

"@types/react@*", "@types/react@^17":
version "17.0.45"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.45.tgz#9b3d5b661fd26365fefef0e766a1c6c30ccf7b3f"
integrity sha512-YfhQ22Lah2e3CHPsb93tRwIGNiSwkuz1/blk4e6QrWS0jQzCSNbGLtOEYhPg02W0yGTTmpajp7dCTbBAMN3qsg==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
Expand Down

0 comments on commit 6933a35

Please sign in to comment.