From 375fc8a9ca018e0b479747874b58445067a0a952 Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Wed, 16 Nov 2022 21:03:53 -0800 Subject: [PATCH] upgrade gatsby --- gatsby-node.ts | 17 +- package.json | 29 +- src/components/Nav.tsx | 2 +- src/gatsby-types.d.ts | 2742 +++++++ src/pages/asdf-resume.mdx | 10 - src/pages/index.tsx | 98 +- src/pages/photogallery.tsx | 58 +- src/utils.ts | 2 +- yarn-error.log | 14299 +++++++++++++++++++++++++++++++++++ yarn.lock | 10221 +++++++++++++------------ 10 files changed, 22219 insertions(+), 5259 deletions(-) delete mode 100644 src/pages/asdf-resume.mdx create mode 100644 yarn-error.log diff --git a/gatsby-node.ts b/gatsby-node.ts index 754570d..277d547 100644 --- a/gatsby-node.ts +++ b/gatsby-node.ts @@ -132,7 +132,22 @@ function transformMetaToNodeData( return { dateTaken: metaData.DateTimeOriginal, meta: { - ...metaData, + Make: metaData.Make, + Model: metaData.Model, + ExposureTime: metaData.ExposureTime, + FNumber: metaData.FNumber, + ISO: metaData.ISO, + DateTimeOriginal: metaData.DateTimeOriginal, + CreateDate: metaData.CreateDate, + ShutterSpeedValue: metaData.ShutterSpeedValue, + ApertureValue: metaData.ApertureValue, + FocalLength: metaData.FocalLength, + LensModel: metaData.LensModel, + ObjectName: metaData.ObjectName, + Caption: metaData.Caption, + City: metaData.City, + State: metaData.State, + Rating: metaData.Rating, Keywords, }, vibrant, diff --git a/package.json b/package.json index f68c3ff..6455219 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "pretty": "prettier --write ." }, "resolutions": { - "@types/react": "^17.0.38" + "@types/react": "^17.0.38", + "xstate": "4.9.1" }, "dependencies": { "@adobe/react-spectrum": "^3.19.0", @@ -42,28 +43,28 @@ "eslint-webpack-plugin": "^2.5.4", "exifr": "^7.1.3", "fast-exif": "^1.0.1", - "gatsby": "^4.24.4", - "gatsby-plugin-eslint": "^3.0.0", - "gatsby-plugin-image": "^2.24.0", - "gatsby-plugin-manifest": "^4.24.0", - "gatsby-plugin-mdx": "^2.7.1", - "gatsby-plugin-postcss": "^5.24.0", + "gatsby": "^5.0.1", + "gatsby-plugin-eslint": "^4.0.3", + "gatsby-plugin-image": "^3.0.0", + "gatsby-plugin-manifest": "^5.0.0", + "gatsby-plugin-mdx": "^5.0.0", + "gatsby-plugin-postcss": "^6.0.0", "gatsby-plugin-preval": "^1.0.0", - "gatsby-plugin-react-helmet": "^5.17.0", - "gatsby-plugin-robots-txt": "^1.6.2", - "gatsby-plugin-sharp": "^4.24.0", - "gatsby-source-filesystem": "^4.24.0", - "gatsby-transformer-sharp": "^4.24.0", + "gatsby-plugin-react-helmet": "^6.0.0", + "gatsby-plugin-robots-txt": "^1.8.0", + "gatsby-plugin-sharp": "^5.0.0", + "gatsby-source-filesystem": "^5.0.0", + "gatsby-transformer-sharp": "^5.0.0", "kebab-case": "^1.0.1", "node-iptc": "^1.0.5", "node-vibrant": "3.1.6", "postcss": "^8.4.18", "postcss-nested": "^6.0.0", "ramda": "^0.27.1", - "react": "^17.0.1", + "react": "^18.2.0", "react-cool-dimensions": "^2.0.7", "react-div-100vh": "^0.7.0", - "react-dom": "^17.0.1", + "react-dom": "^18.2.0", "react-helmet": "^6.1.0", "sass": "^1.34.0", "tailwindcss": "^3.2.0", diff --git a/src/components/Nav.tsx b/src/components/Nav.tsx index 7a147f9..177fed4 100644 --- a/src/components/Nav.tsx +++ b/src/components/Nav.tsx @@ -11,7 +11,7 @@ const navClasses = const ExternalLinks = ({ isVertical }: { isVertical: boolean }) => (