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(nuxt): only augment vue, not sub-packages #28542

Merged
merged 10 commits into from
Aug 16, 2024
Merged

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Aug 14, 2024

🔗 Linked issue

resolves #28561

📚 Description

This removes augmentations of @vue/runtime-core in favour of only augmenting vue, which should fix issues when other packages (like vue-router) are only augmenting vue (release notes).

This may cause issues until the ecosystem moves away from other augments.

Copy link

stackblitz bot commented Aug 14, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions bot added the 3.x label Aug 14, 2024
@danielroe
Copy link
Member Author

/trigger release

@danielroe danielroe marked this pull request as ready for review August 16, 2024 08:45
@danielroe danielroe merged commit 4972da0 into main Aug 16, 2024
39 checks passed
@danielroe danielroe deleted the fix/type-augments branch August 16, 2024 08:45
This was referenced Aug 16, 2024
@BobbieGoede
Copy link
Member

So just to be sure, we're sticking with augmenting vue? It will take some time for modules to change augments, as long as any of these augment runtime-core it will cause Nuxt's types to break (the module types will work instead).

There may be a way for users to still have working types while modules are catching up, see https://stackblitz.com/edit/github-dz3tm4-brftas?file=pages%2Findex.vue,nuxt.config.ts,shim.d.ts. Maybe this causes other issues, I haven't tested it thoroughly 🤷‍♂️

Roman3349 added a commit to Roman3349/vue3-toastify that referenced this pull request Aug 22, 2024
miguelrk added a commit to miguelrk/vue-to-print that referenced this pull request Aug 22, 2024
This removes augmentations of `@vue/runtime-core` in favour of only augmenting vue, which should fix issues when other packages (like `vue-router`) are only augmenting `vue` (see nuxt/nuxt#28542)
n0099 added a commit to n0099/open-tbm that referenced this pull request Aug 23, 2024
n0099 added a commit to n0099/open-tbm that referenced this pull request Aug 25, 2024
…t/nuxt#28446

* fix class `ms-1` only occurs on not-2th username @ `<PostBadgeThreadAuthorAndLatestReplier>`
- prop `expandRowByClick` of `<ATable>` @ <PostRendererTable>`

* widden the type of param `name` of `routeNameWithCursor()` and guard it against `assertRouteNameIsStr()` to be like `routeNameWithoutCursor()`
* only return the modified route name and param `cursor` without any parts like `query` or other params from param `route` @ `getNextCursorRoute()`
@ router.ts

* fix regression of 0917db2 as `defineOgImageComponent()` now seem being able to `unref()` internally: nuxt-modules/og-image#190 @ post/seo/index.ts
@ utils
@ fe
tsukumijima added a commit to Aivis-Project/AIVM-Generator that referenced this pull request Aug 29, 2024
"@vue/runtime-core" ではなく "vue" の型を拡張しないとすべての型が壊れてしまう
ref: nuxt/nuxt#28542
tsukumijima added a commit to tsukumijima/NX-Jikkyo that referenced this pull request Aug 29, 2024
"@vue/runtime-core" ではなく "vue" の型を拡張しないとすべての型が壊れてしまう
ref: nuxt/nuxt#28542
tsukumijima added a commit to tsukumijima/KonomiTV that referenced this pull request Aug 29, 2024
"@vue/runtime-core" ではなく "vue" の型を拡張しないとすべての型が壊れてしまう
ref: nuxt/nuxt#28542
ascott18 added a commit to IntelliTect/Coalesce that referenced this pull request Sep 5, 2024
tsukumijima added a commit to Aivis-Project/AivisSpeech that referenced this pull request Sep 27, 2024
Vue Router 4.4.1 以降で declare module "vue" を使うように変更されたことで、他の GlobalComponents を拡張するライブラリがインストールされている場合にそれらが全て壊れる問題がコミュニティ全体で発生している
VOICEVOX 同様にこのリポジトリでは依存関係を固定しているが、npm upgrade で今までバージョンが固定されていなかった Vue Router だけ更新されてしまうと Quasar の型がぶっ壊れるので、当面の間 4.4.0 以下に留まる
(要は Vue Router 4.4.1 以降に更新するなら、それに対応した Vue エコシステムに全てエイヤで更新する必要がある)
ref: nuxt/nuxt#28542
chatondearu added a commit to chatondearu/apollo that referenced this pull request Oct 17, 2024
This PR removes augmentations of `@vue/runtime-core` in favour of only augmenting `vue` (the new recommendation), which should fix issues when other packages are only augmenting vue (see nuxt/nuxt#28542).
blalan05 pushed a commit to vuetifyjs/vuetify that referenced this pull request Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants