vuepress / vuepress-plugin-blog

Official blog plugin for VuePress
https://vuepress-plugin-blog.billyyyyy3320.com/
MIT License
181 stars 63 forks source link

Vuepress v2 Compatibility #99

Open HoukasaurusRex opened 3 years ago

HoukasaurusRex commented 3 years ago

Feature request

Adding support for Vuepress v2 (announcement]. It's currently in alpha right now (Feb 25th, 2021).

What problem does this feature solve?

In my own project, I've seen this issue come up:

image

Which refers to this line in the themeAPI.

https://github.com/vuepress/vuepress-plugin-blog/blob/e66e9aeadd45f881b251ff7c5b6990ad4d133e99/src/node/index.ts#L9-L10

Which might be related to this change in the themeAPI? But I'm not sure.

I'm also not sure what other compatibility issues need to be addressed, so would like to see what other errors people encounter when you upgrade to vuepress v2.

What does the proposed API look like?

Hopefully just small compatibility changes without breaking v1 compatibility, or a semver major version change.

How should this be implemented in your opinion?

We can triage the breaking changes in this project and address them each in kind. Would love some input on how this should be implemented.

Are you willing to work on this yourself?

Yes, I've been a user of vuepress for quite some time and this plugin/theme and I'm very willing to commit to contributing to this feature development.

michael-k commented 3 years ago

ref vuepress/vuepress-next#54