Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: augment vue rather than @vue/runtime-core #357

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

danielroe
Copy link
Contributor

For a while, in the Vue ecosystem we've been augmenting @vue/runtime-core to add custom properties and more to vue. However, this inadvertently breaks the types for projects that augment vue - which is (now?) the officially recommended in the docs way to augment these interfaces (for example, ComponentCustomProperties, GlobalComponents and so on).

This means all libraries must update their code (or it will break the types of the libraries that augment vue instead).

Here's an example of how the augmented types end up broken.

This PR is a small effort to ensure the ecosystem is consistent. For context, you can see that vue-router has moved to do this, as well as Nuxt.

@yikoyu yikoyu merged commit b58b2a0 into yikoyu:master Aug 22, 2024
1 check passed
yikoyu pushed a commit that referenced this pull request Aug 22, 2024
## [2.5.4](v2.5.3...v2.5.4) (2024-08-22)

### Bug Fixes

* augment `vue` rather than `@vue/runtime-core` ([#357](#357)) ([b58b2a0](b58b2a0))
@yikoyu
Copy link
Owner

yikoyu commented Aug 22, 2024

🎉 This issue has been resolved in version 2.5.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants