From 80c1fb56cb24b7e8415c203336709604e5e321b6 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 1 Jul 2026 15:47:25 +0800 Subject: [PATCH] Add deprecation warning --- scripts/events/lib/config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/events/lib/config.js b/scripts/events/lib/config.js index 8161c38..5527726 100644 --- a/scripts/events/lib/config.js +++ b/scripts/events/lib/config.js @@ -10,7 +10,7 @@ module.exports = hexo => { hexo.log.warn('Documentation: https://theme-next.js.org/docs/getting-started/configuration.html'); } - const { cache, language_switcher, leancloud_visitors } = hexo.theme.config; + const { cache, changyan, growingio_analytics, language_switcher, leancloud_visitors } = hexo.theme.config; const warning = function(...args) { hexo.log.warn(`Since ${args[0]} is turned on, the ${args[1]} is disabled to avoid potential hazards.`); }; @@ -23,6 +23,12 @@ module.exports = hexo => { warning('caching', '`relative_link` option in Hexo `_config.yml`'); hexo.config.relative_link = false; } + if (changyan?.enable) { + hexo.log.warn('changyan is deprecated. Please migrate to another comment system.'); + } + if (growingio_analytics) { + hexo.log.warn('growingio_analytics is deprecated. Please migrate to another analytics provider.'); + } if (leancloud_visitors?.enable) { hexo.log.warn('LeanCloud will stop public services on 2027-01-12. Please migrate your data as soon as possible.'); hexo.log.warn('Announcement: https://docs.leancloud.app/sdk/announcements/sunset-announcement/');