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 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
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