vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.51k stars 4.76k forks source link

迁移@vuepress/client到vuepress/client导致三方插件未适配新版本的全部无法使用 #3201

Closed OrageKK closed 7 months ago

OrageKK commented 7 months ago

Bug report

Steps to reproduce

我的blog引入了vuepress-plugin-oh-my-live2d插件,它已经有些日子不更新了,但之前还一直能用

What is expected?

版本升级应该尽量向前兼容,让一些无人维护的插件还能继续使用

What is actually happening?

import { ClientConfig } from '@vuepress/client';
export * from '@vuepress/client';

/**
 * A helper function to help you define vuepress client config file
 */
declare const defineClientConfig: (clientConfig?: ClientConfig) => ClientConfig;

export { defineClientConfig };

在之前的版本中,我不确定是哪个版本开始的变更,defineClientConfig是从@vuepress/client导出的 现版本是从vuepress/client导出的 以前的插件中的代码仍在使用@vuepress/client,但是新版的@vuepress/client已经没有了defineClientConfig的导出

Other relevant information