From 60e44998d262dadbd7131317d30cdc0184c716e7 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Mon, 17 Feb 2020 17:38:03 +1100 Subject: [PATCH] Removed deprecated gatsby-mdx dependency --- .changeset/shiny-trains-return.md | 5 +++ website/package.json | 1 - website/src/templates/docs.js | 2 +- website/src/templates/index.js | 2 +- website/src/templates/packages.js | 2 +- yarn.lock | 58 ++++++------------------------- 6 files changed, 18 insertions(+), 52 deletions(-) create mode 100644 .changeset/shiny-trains-return.md diff --git a/.changeset/shiny-trains-return.md b/.changeset/shiny-trains-return.md new file mode 100644 index 00000000000..e49b4e0fd8d --- /dev/null +++ b/.changeset/shiny-trains-return.md @@ -0,0 +1,5 @@ +--- +'@keystonejs/website': patch +--- + +Removed deprecated `gatsby-mdx` dependency. diff --git a/website/package.json b/website/package.json index 07e5c6dbe03..851fbc1d1be 100644 --- a/website/package.json +++ b/website/package.json @@ -30,7 +30,6 @@ "@sindresorhus/slugify": "^0.6.0", "facepaint": "^1.2.1", "gatsby": "^2.13.25", - "gatsby-mdx": "^0.6.3", "gatsby-plugin-google-analytics": "^2.1.4", "gatsby-plugin-lunr": "^1.4.0", "gatsby-plugin-manifest": "^2.2.41", diff --git a/website/src/templates/docs.js b/website/src/templates/docs.js index 0c72763aa3b..e3e5bddc832 100644 --- a/website/src/templates/docs.js +++ b/website/src/templates/docs.js @@ -3,7 +3,7 @@ import React from 'react'; // eslint-disable-line no-unused-vars import { Helmet } from 'react-helmet'; import { Link, graphql } from 'gatsby'; -import MDXRenderer from 'gatsby-mdx/mdx-renderer'; +import { MDXRenderer } from 'gatsby-plugin-mdx'; import { MDXProvider } from '@mdx-js/react'; import { jsx } from '@emotion/core'; diff --git a/website/src/templates/index.js b/website/src/templates/index.js index db6e0c292d0..553db5455ff 100644 --- a/website/src/templates/index.js +++ b/website/src/templates/index.js @@ -3,7 +3,7 @@ import React, { Fragment } from 'react'; // eslint-disable-line no-unused-vars import { Helmet } from 'react-helmet'; import { graphql } from 'gatsby'; -import MDXRenderer from 'gatsby-mdx/mdx-renderer'; +import { MDXRenderer } from 'gatsby-plugin-mdx'; import { MDXProvider } from '@mdx-js/react'; import { jsx } from '@emotion/core'; diff --git a/website/src/templates/packages.js b/website/src/templates/packages.js index 2c03fcf7814..3057274ffcf 100644 --- a/website/src/templates/packages.js +++ b/website/src/templates/packages.js @@ -3,7 +3,7 @@ import React, { Fragment } from 'react'; // eslint-disable-line no-unused-vars import { Helmet } from 'react-helmet'; import { graphql } from 'gatsby'; -import MDXRenderer from 'gatsby-mdx/mdx-renderer'; +import { MDXRenderer } from 'gatsby-plugin-mdx'; import { MDXProvider } from '@mdx-js/react'; import { jsx } from '@emotion/core'; diff --git a/yarn.lock b/yarn.lock index 0e0de719f16..2206738d8bc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -241,7 +241,7 @@ semver "^5.4.1" source-map "^0.5.0" -"@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.2.2", "@babel/core@^7.4.3", "@babel/core@^7.5.5", "@babel/core@^7.6.4", "@babel/core@^7.7.5", "@babel/core@^7.7.7": +"@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.2.2", "@babel/core@^7.5.5", "@babel/core@^7.6.4", "@babel/core@^7.7.5", "@babel/core@^7.7.7": version "7.7.7" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.7.tgz#ee155d2e12300bcc0cff6a8ad46f2af5063803e9" integrity sha512-jlSjuj/7z138NLZALxVgrx13AOtqip42ATZP7+kYl53GvDV6+4dCek1mVUo8z8c8Xnw/mx2q3d9HWh3griuesQ== @@ -776,7 +776,7 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-object-rest-spread" "^7.2.0" -"@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.3.2", "@babel/plugin-proposal-object-rest-spread@^7.4.3", "@babel/plugin-proposal-object-rest-spread@^7.5.5", "@babel/plugin-proposal-object-rest-spread@^7.6.2", "@babel/plugin-proposal-object-rest-spread@^7.7.4", "@babel/plugin-proposal-object-rest-spread@^7.7.7": +"@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.3.2", "@babel/plugin-proposal-object-rest-spread@^7.5.5", "@babel/plugin-proposal-object-rest-spread@^7.6.2", "@babel/plugin-proposal-object-rest-spread@^7.7.4", "@babel/plugin-proposal-object-rest-spread@^7.7.7": version "7.7.7" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.7.tgz#9f27075004ab99be08c5c1bd653a2985813cb370" integrity sha512-3qp9I8lelgzNedI3hrhkvhaEYree6+WHnyA/q4Dza9z7iEIs1eyhWyJnetk3jJ69RT0AT4G0UhEGwyGFJ7GUuQ== @@ -1532,7 +1532,7 @@ js-levenshtein "^1.1.3" semver "^5.5.0" -"@babel/preset-env@^7.0.0", "@babel/preset-env@^7.4.1", "@babel/preset-env@^7.4.3", "@babel/preset-env@^7.5.5", "@babel/preset-env@^7.7.6", "@babel/preset-env@^7.7.7": +"@babel/preset-env@^7.0.0", "@babel/preset-env@^7.4.1", "@babel/preset-env@^7.5.5", "@babel/preset-env@^7.7.6", "@babel/preset-env@^7.7.7": version "7.7.7" resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.7.tgz#c294167b91e53e7e36d820e943ece8d0c7fe46ac" integrity sha512-pCu0hrSSDVI7kCVUOdcMNQEbOPJ52E+LrQ14sN8uL2ALfSqePZQlKrOy+tM4uhEdYlCHi4imr8Zz2cZe9oSdIg== @@ -10478,37 +10478,6 @@ gatsby-link@^2.2.2: "@types/reach__router" "^1.0.0" prop-types "^15.6.1" -gatsby-mdx@^0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/gatsby-mdx/-/gatsby-mdx-0.6.3.tgz#bbb65c457877daee998d91e10d737762ce3ce5ef" - integrity sha512-jrSXGul8KRqTcwHdZHYl2HmRMjbgfnb0WlFEUt2r/kzeF46BvkHA0PqnWnCrTL3HBzLbY/3mX/KFbaFxlr/nYA== - dependencies: - "@babel/core" "^7.4.3" - "@babel/plugin-proposal-object-rest-spread" "^7.4.3" - "@babel/preset-env" "^7.4.3" - "@babel/preset-react" "^7.0.0" - core-js "2" - dataloader "^1.4.0" - debug "^4.0.1" - escape-string-regexp "^1.0.5" - fs-extra "^7.0.0" - gray-matter "^4.0.1" - loader-utils "^1.2.3" - lodash "^4.17.10" - mdast-util-to-string "^1.0.4" - mdast-util-toc "^3.0.0" - mime "^2.3.1" - pretty-bytes "^5.1.0" - remark "^10.0.0" - remark-retext "^3.1.2" - retext-english "^3.0.2" - slash "^2.0.0" - static-site-generator-webpack-plugin "^3.4.2" - underscore.string "^3.3.4" - unist-util-map "^1.0.4" - unist-util-remove "^1.0.1" - unist-util-visit "^1.4.0" - gatsby-page-utils@^0.0.5: version "0.0.5" resolved "https://registry.yarnpkg.com/gatsby-page-utils/-/gatsby-page-utils-0.0.5.tgz#faefc2ece9f14bfd161ddd0104d1e12b54ef7a70" @@ -11570,7 +11539,7 @@ graphql@^14.6.0: dependencies: iterall "^1.2.2" -gray-matter@^4.0.0, gray-matter@^4.0.1, gray-matter@^4.0.2: +gray-matter@^4.0.0, gray-matter@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/gray-matter/-/gray-matter-4.0.2.tgz#9aa379e3acaf421193fce7d2a28cebd4518ac454" integrity sha512-7hB/+LxrOjq/dd8APlK0r24uL/67w7SkYnfwhNFwg/VDIGWGmduTDYf3WNstLW2fbbmRwrDGCVSJ2isuf2+4Hw== @@ -15030,7 +14999,7 @@ mdast-util-to-nlcst@^3.2.0: unist-util-position "^3.0.0" vfile-location "^2.0.0" -mdast-util-to-string@^1.0.0, mdast-util-to-string@^1.0.2, mdast-util-to-string@^1.0.4, mdast-util-to-string@^1.0.5, mdast-util-to-string@^1.0.6: +mdast-util-to-string@^1.0.0, mdast-util-to-string@^1.0.2, mdast-util-to-string@^1.0.5, mdast-util-to-string@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-1.0.6.tgz#7d85421021343b33de1552fc71cb8e5b4ae7536d" integrity sha512-868pp48gUPmZIhfKrLbaDneuzGiw3OTDjHc5M1kAepR2CWBJ+HpEsm252K4aXdiP5coVZaJPOqGtVU6Po8xnXg== @@ -18654,7 +18623,7 @@ pretty-bytes@^4.0.2: resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" integrity sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk= -pretty-bytes@^5.1.0, pretty-bytes@^5.3.0: +pretty-bytes@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.3.0.tgz#f2849e27db79fb4d6cfe24764fc4134f165989f2" integrity sha512-hjGrh+P926p4R4WbaB6OckyRtO0F0/lQBiT+0gnxjV+5kjPBrfVBFCsCLbMqVQeydvIoouYTCmmEURiH3R1Bdg== @@ -20136,7 +20105,7 @@ remark-parse@^6.0.0: vfile-location "^2.0.0" xtend "^4.0.1" -remark-retext@^3.1.0, remark-retext@^3.1.2: +remark-retext@^3.1.0: version "3.1.2" resolved "https://registry.yarnpkg.com/remark-retext/-/remark-retext-3.1.2.tgz#983003d7495cf9198aa450c5ae5a7737011eec5f" integrity sha512-+48KzJdSXvsPupY5pj5AY7oBUSiDOqFPZBKebX5WemrMyIG+RImIt9hgeqelluVDd1kooHen33K/aybTPyoI9g== @@ -20481,7 +20450,7 @@ ret@~0.1.10: resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== -retext-english@^3.0.0, retext-english@^3.0.2: +retext-english@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/retext-english/-/retext-english-3.0.3.tgz#aeb044bffbea2214b959d07c1dce9799e01dcbda" integrity sha512-qltUsSjHMvCvpAm90qRvzK1DEBOnhSK3tUQk5aHFCBtiMHccp6FhlCH0mQ9vFcBf5BsG7GEBdPysTlY3g9Lchg== @@ -23105,7 +23074,7 @@ unc-path-regex@^0.1.2: resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" integrity sha1-5z3T17DXxe2G+6xrCufYxqadUPo= -underscore.string@^3.3.4, underscore.string@^3.3.5: +underscore.string@^3.3.5: version "3.3.5" resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-3.3.5.tgz#fc2ad255b8bd309e239cbc5816fd23a9b7ea4023" integrity sha512-g+dpmgn+XBneLmXXo+sGlW5xQEt4ErkS3mgeN2GFbremYeMBSJKr9Wf2KJplQVaiPY/f7FN6atosWYNm9ovrYg== @@ -23302,13 +23271,6 @@ unist-util-is@^3.0.0: resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-3.0.0.tgz#d9e84381c2468e82629e4a5be9d7d05a2dd324cd" integrity sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A== -unist-util-map@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/unist-util-map/-/unist-util-map-1.0.4.tgz#f27bb03e14e8072171379d132c96c1dfcea44574" - integrity sha512-Qv68pQz05hQbjPI+TubZQI5XII5DScRVWaKNc6+qfmHaFGxaGUbkV8i++mM2nk7XgwXE+vei99d/Q2d1tMA3EQ== - dependencies: - object-assign "^4.0.1" - unist-util-map@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/unist-util-map/-/unist-util-map-1.0.5.tgz#701069b72e1d1cc02db265502a5e82b77c2eb8b7" @@ -23335,7 +23297,7 @@ unist-util-remove-position@^1.0.0, unist-util-remove-position@^1.1.2: dependencies: unist-util-visit "^1.1.0" -unist-util-remove@^1.0.0, unist-util-remove@^1.0.1: +unist-util-remove@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/unist-util-remove/-/unist-util-remove-1.0.1.tgz#3e967d2aeb3ee9e7f0ee8354172986fba7ff33a5" integrity sha512-nL+3O0nBB2Oi8ixVzIfJQLtNOMPIFzwoAIKvhDzEL8B15Nq7EY0KBQPYULjNrEmrwYMCkWp5XGTQiAlYZAL/rw==