From cbcaa52f88cb702a3712c2b4c19b02225f975ea9 Mon Sep 17 00:00:00 2001 From: Sergio Moreno Date: Thu, 4 Nov 2021 17:12:20 +0100 Subject: [PATCH] fix(cli): update notifier should be shown if current is less than latest (#5798) --- packages/docusaurus/bin/beforeCli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/bin/beforeCli.js b/packages/docusaurus/bin/beforeCli.js index 7daa30b817..91a265a4c3 100644 --- a/packages/docusaurus/bin/beforeCli.js +++ b/packages/docusaurus/bin/beforeCli.js @@ -67,7 +67,7 @@ function ignoreUpdate(update) { if ( notifier.config && notifier.update && - notifier.update.current !== notifier.update.latest + semver.lt(notifier.update.current, notifier.update.latest) ) { // Because notifier clears cached data after reading it, leading to notifier not consistently displaying the update // See https://github.com/yeoman/update-notifier/issues/209