From 5acecf2caefbf16c3dcb887f630b5763061a680d Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 16 Nov 2023 13:20:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Improved=20GScan=20perform?= =?UTF-8?q?ance=20for=20themes=20with=20many=20partials?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs https://github.com/TryGhost/DevOps/issues/3 refs https://github.com/TryGhost/gscan/commit/b6d8e0192a0c7d845493c6c14a433874f891abcd - see referenced commit for full context but this should improve the theme check time for themes with a large number of files and partials - locally, checking a particularly heavy theme goes from 5s to 1.7s with this commit, and the improvement is larger on slower machines --- ghost/core/package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ghost/core/package.json b/ghost/core/package.json index e0fe39d895..71bf5c0462 100644 --- a/ghost/core/package.json +++ b/ghost/core/package.json @@ -187,7 +187,7 @@ "ghost-storage-base": "1.0.0", "glob": "8.1.0", "got": "11.8.6", - "gscan": "4.41.0", + "gscan": "4.42.0", "human-number": "2.0.4", "image-size": "1.0.2", "intl": "1.2.5", diff --git a/yarn.lock b/yarn.lock index 6aee4af271..ecae319312 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7973,7 +7973,7 @@ "@tryghost/mongo-knex@^0.9.0": version "0.9.0" - resolved "https://registry.yarnpkg.com/@tryghost/mongo-knex/-/mongo-knex-0.9.0.tgz#34463ceaa23b8e5e4c7ff859d9d5cc8f300ceade" + resolved "https://registry.npmjs.org/@tryghost/mongo-knex/-/mongo-knex-0.9.0.tgz#34463ceaa23b8e5e4c7ff859d9d5cc8f300ceade" integrity sha512-1dksBf+nVyfVRssFC3/Tn1KqMhKfLhsjCnxnLv8vW5ZxSw39U6Kyp97u4BWithx31M/g3Q8nfCVg8hIgYVyt7w== dependencies: debug "^4.3.3" @@ -18951,10 +18951,10 @@ growly@^1.3.0: resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" integrity sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw== -gscan@4.41.0: - version "4.41.0" - resolved "https://registry.yarnpkg.com/gscan/-/gscan-4.41.0.tgz#1949a8e296995ee1ddc89e092eeda57414ffbad6" - integrity sha512-Pd2q+k82quw3VSk9U7u0FsElyThFV8/3NedDOvimMYZqFuugLfafczGt8A9wZA3XcqWr8YtI3G0MHLnb7LLSRA== +gscan@4.42.0: + version "4.42.0" + resolved "https://registry.npmjs.org/gscan/-/gscan-4.42.0.tgz#f25208327642680a5210094af20c1f1c6b5251df" + integrity sha512-LDNksyNY4Pb3Hc3OC56Zu3uNDODmcJSP2Rtzc1UVZ3/SWLoqcIU9+nyzHNy3uCdbIGg3HK0Ho2D89jiumWD0LA== dependencies: "@sentry/node" "^7.73.0" "@tryghost/config" "^0.2.18"