diff --git a/gridsome.config.js b/gridsome.config.js index 41feba1d4..a807988ca 100644 --- a/gridsome.config.js +++ b/gridsome.config.js @@ -18,7 +18,7 @@ module.exports = { if (isServer) { config.externals(nodeExternals({ - whitelist: [ + allowlist: [ /\.css$/, /\?vue&type=style/, /vue-instantsearch/, diff --git a/gridsome.server.js b/gridsome.server.js index 9425cca37..0a75050ef 100644 --- a/gridsome.server.js +++ b/gridsome.server.js @@ -28,7 +28,7 @@ module.exports = function (api) { // contributors const authorsPath = path.join(__dirname, 'contributors/contributors.yaml') const authorsRaw = await fs.readFile(authorsPath, 'utf8') - const authorsJson = yaml.safeLoad(authorsRaw) + const authorsJson = yaml.load(authorsRaw) const authors = addCollection('Contributor') authorsJson.forEach(({ id, name: title, ...fields }) => { @@ -45,7 +45,7 @@ module.exports = function (api) { // Starters const startersPath = path.join(__dirname, 'starters/starters.yaml') const startersRaw = await fs.readFile(startersPath, 'utf8') - const startersJson = yaml.safeLoad(startersRaw) + const startersJson = yaml.load(startersRaw) const starters = addCollection('Starter') // Connect author field to Contributors & Platforms @@ -65,7 +65,7 @@ module.exports = function (api) { // Platforms const platformsPath = path.join(__dirname, 'platforms/platforms.yaml') const platformsRaw = await fs.readFile(platformsPath, 'utf8') - const platformsJson = yaml.safeLoad(platformsRaw) + const platformsJson = yaml.load(platformsRaw) const platforms = addCollection('Platform') // Connect author field to Contributors diff --git a/package.json b/package.json index b1475f64a..663d2f394 100644 --- a/package.json +++ b/package.json @@ -10,33 +10,33 @@ "markdown:fix": "markdownlint '**/*.md' --ignore node_modules --fix" }, "dependencies": { - "@gridsome/plugin-google-analytics": "^0.1.0", - "algoliasearch": "^3.32.0", - "clipboard-copy": "^3.0.0", - "docsearch.js": "^2.6.2", - "gridsome": "^0.7.0", - "marked": "^0.7.0", - "typography": "^0.16.18", - "vue-instantsearch": "^2.0.0", - "vue-lazy-hydration": "^1.0.0-beta.7", + "@gridsome/plugin-google-analytics": "^0.1.2", + "algoliasearch": "^4.8.5", + "clipboard-copy": "^4.0.1", + "docsearch.js": "^2.6.3", + "gridsome": "^0.7.23", + "marked": "^2.0.0", + "typography": "^0.16.19", + "vue-instantsearch": "^3.4.3", + "vue-lazy-hydration": "2.0.0-beta.4", "vue-popover": "^1.6.2", - "vue-scrollto": "^2.13.0" + "vue-scrollto": "^2.20.0" }, "devDependencies": { "@gridsome/plugin-critical": "^0.2.0", - "@gridsome/remark-prismjs": "^0.4.0", - "@gridsome/source-filesystem": "^0.6.0", - "@gridsome/transformer-remark": "^0.6.2", - "@gridsome/vue-remark": "^0.2.4", - "execa": "^4.0.2", - "fs-extra": "^9.0.1", - "js-yaml": "^3.14.0", - "markdownlint-cli": "0.23.2", - "node-sass": "^4.14.1", - "raw-loader": "^4.0.1", - "sass-loader": "^7.1.0", + "@gridsome/remark-prismjs": "^0.5.0", + "@gridsome/source-filesystem": "^0.6.2", + "@gridsome/transformer-remark": "^0.6.4", + "@gridsome/vue-remark": "^0.2.6", + "execa": "^5.0.0", + "fs-extra": "^9.1.0", + "js-yaml": "^4.0.0", + "markdownlint-cli": "0.26.0", + "node-sass": "^5.0.0", + "raw-loader": "^4.0.2", + "sass-loader": "^10.1.1", "svg-to-vue-component": "^0.3.8", - "webpack-node-externals": "^1.7.2" + "webpack-node-externals": "^2.5.2" }, "engines": { "node": ">=14" diff --git a/src/layouts/partials/Header.vue b/src/layouts/partials/Header.vue index 21108199d..97318f12d 100644 --- a/src/layouts/partials/Header.vue +++ b/src/layouts/partials/Header.vue @@ -89,7 +89,6 @@ import ToggleTheme from '@/components/ToggleTheme.vue' import GithubLogo from '@/assets/images/github-logo.svg' import TwitterLogo from '@/assets/images/twitter-logo.svg' import DiscordLogo from '@/assets/images/discord-logo.svg' -import LazyHydrate from 'vue-lazy-hydration' export default { components: { @@ -99,8 +98,7 @@ export default { ToggleTheme, DiscordLogo, SearchForm, - Nav, - LazyHydrate + Nav } } diff --git a/src/templates/Plugin.vue b/src/templates/Plugin.vue index 83ba3e216..ac72092a8 100644 --- a/src/templates/Plugin.vue +++ b/src/templates/Plugin.vue @@ -1,7 +1,7 @@