[Snyk] Upgrade @nuxt/ui from 2.21.1 to 3.0.0 #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @nuxt/ui from 2.21.1 to 3.0.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 19 versions ahead of your current version.
The recommended version was released 24 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-INFLIGHT-6095116
Release notes
Package name: @nuxt/ui
We are thrilled to introduce Nuxt UI v3, a comprehensive redesign of our UI library that delivers significant improvements in accessibility, performance, and developer experience. This major update represents over 1,500 commits of dedicated work, collaboration, and innovation from our team and the community.
Read the blog post announcement: https://nuxt.com/blog/nuxt-ui-v3
Get started with Nuxt UI v3 →
✨ Highlights
🧩 Reka UI: A New Foundation
We've transitioned from Headless UI to Reka UI as our core component foundation, bringing:
🚀 Tailwind CSS v4 Integration
Nuxt UI now leverages the latest Tailwind CSS v4, delivering:
🎨 Tailwind Variants
We've adopted Tailwind Variants to power our design system, offering:
📝 Enhanced TypeScript Integration
Nuxt UI provides significantly improved TypeScript support:
🔄 Vue Compatibility
Use Nuxt UI in any Vue project without Nuxt by adding the Vite and Vue plugins to your configuration:
Get started with Nuxt UI for Vue →
Migration from v2
We want to be transparent: migrating from Nuxt UI v2 to v3 requires significant effort. While we've maintained core concepts and components, Nuxt UI v3 has been rebuilt from the ground up to provide enhanced capabilities.
To upgrade your project:
🙏 Acknowledgements
This release represents thousands of hours of work from our team and the community. We'd like to thank everyone who contributed to making Nuxt UI v3 a reality, especially @ romhml, @ sandros94, and @ hywax for their tremendous work.
🚨 Breaking Changes
Nuxt UI v3.0.0-beta.4 requires Nuxt v3.16 to work, please upgrade your Nuxt to continue using
@ nuxt/ui
:🚀 Features
null
value in model (#3415) (cfe9b2e)🐛 Bug Fixes
useHead
in colors (5ecd227)👋 New Contributors
Full Changelog: v3.0.0-beta.3...v3.0.0-beta.4
🚀 Features
active
state (bd2d484), closes #3417loading
slot (99e531d), closes #3444🐛 Bug Fixes
required
in root props (60b7e2d)required
in multiple mode (01fa230), closes #2741👋 New Contributors
Full Changelog: v3.0.0-beta.2...v3.0.0-beta.3
🐛 Bug Fixes
Full Changelog: v3.0.0-beta.1...v3.0.0-beta.2
✨ Highlights
🚨 Breaking Changes
Tailwind CSS made some breaking changes in
4.0.8
where they don't rely on the module graph to discover classes anymore and where they remove unused CSS variables.The first issue has been fixed internally in #3373 but for the second you now need to use
theme(static)
when importingtailwindcss
: https://ui3.nuxt.dev/getting-started/theme#theme@ import "@ nuxt/ui";
@ theme static {
--color-green-50: #EFFDF5;
--color-green-100: #D9FBE8;
--color-green-200: #B3F5D1;
--color-green-300: #75EDAE;
--color-green-400: #00DC82;
--color-green-500: #00C16A;
--color-green-600: #00A155;
--color-green-700: #007F45;
--color-green-800: #016538;
--color-green-900: #0A5331;
--color-green-950: #052E16;
}
compodium
(#3380)@ romhml who initially created the Nuxt UI devtools, moved all the logic into a separate compodium module in #3380 to avoid polluting the
@ nuxt/ui
package with 7MB+ of component metas.This module now works for any component in your app, not just Nuxt UI ones which gives way more flexibility.
You can install the module in your Nuxt application with one command:
@ genu who initially created the
useModal
anduseSlideover
composables in Nuxt UI v2 made a significant refactor in #3279 which merges the two composables into a singleuseOverlay
composable. This is a big breaking change but brings lots of improvements as you can read in the PR.🚀 Features
select
event (#2822) (0668a39)🐛 Bug Fixes
$attrs
bind (#3152) (fb36df5)dvh
unit (aefa09c)$attrs
on trigger (637f5d3), closes #3339 #2897@ nuxt/ui
from vite pre-optimization (#3352) (09492f7)👋 New Contributors
Full Changelog: v3.0.0-alpha.13...v3.0.0-beta.1
✨ Highlights
🎨 Tailwind CSS classes
Thanks to #2967, you can now use classes like
text-primary dark:text-primary-400
like in Nuxt UI v2. We dynamically write into the@ theme
directive of Tailwind CSS to define the Nuxt UI design system colors (theme.colors
) as Tailwind CSS colors.🚨 Breaking Changes
add
click
toonClick
for consistencyorientation
prop🚀 Features
orientation
prop (2c192ac)variant
prop (847d4aa)external-icon
prop (5846c1e), closes #2996inset
prop (6d9b9ed), closes #2994tailwindcss
theme colors (#2967) (443a0be)pagination
(#3177) (4aa3179)title
anddescription
(abd2be1), closes #3226🐛 Bug Fixes
ModalProvider
/SlideoverProvider
insideTooltipProvider
(cd0a9d3), closes #3236UAvatar
import (49dd088), closes #3203PartialString
type onui
prop (9d29e0b), closes #3299shadow-sm
for consistency (8097fff)vue-router
in vue (f55e869), closes #3001km
(#3201) (995e07d)title
&description
accessibility (e419dcb), closes #3267 #3215collapsed
prop (07e1b4f)level
compute onvertical
orientation (c1c9da4)FocusScope
(e7e7585), closes #2657useForwardProps
(f0553eb)click
toonClick
for consistency (533e889)add
(153f341)👋 New Contributors
Full Changelog: v3.0.0-alpha.12...v3.0.0-alpha.13
🚨 Breaking Changes
color
tocolortranslator
(#3097)🚀 Features
light
variant to reverse colors (75f7064)aria-describedby
andaria-invalid
attributes (#3123) (b95b913)collapsed
prop (3fc2210)contentOrientation
prop (ac86ee0)label
type in items (27fdc8e), closes #2993🐛 Bug Fixes
@ nuxt/image
(00c5f26), closes nuxt/ui-pro#727block
prop (ba1dd13)base
layer (533ccec), closes #3075appConfig
identifier import (#3186) (cd16b95)value
object (#3104) (8f7f579)ñ
ines
(#3090) (1bf370e)horizontal
orientation only (931211a)👋 New Contributors
Full Changelog: v3.0.0-alpha.11...v3.0.0-alpha.12
🚨 Breaking Changes
prevent-close
todismissible
🚀 Features
autofocus
prop (#2942) (1b3c919)tv
customization throughapp.config
(#2938) (30ba53e)🐛 Bug Fixes
unmountOnHide
default (4344e36)$attrs
onAvatarFallback
(#2933) (7f64198)sm
size (f97d2e3)onSelect
oronClick
(#2896) (2e17fb6)checkbox
items (#2921) (4c5a4fb)eager-validation
prop behavior (#3031) (41dc11c)tag
does not changemodelValue
(#3054) (5a44394)prevent-close
todismissible
+ uniformize docs (6fb426f)arrow
styles afterreka-ui
migration (9759320)vertical
orientation (e931880)w-full
on root slot (ef7ecd2), closes #3000vertical
orientation (82d6344)resetSearchTermOnBlur
manually (#3082) (c902a40)value
type (4f05b1a)item
intitle
&description
slots (473194f), closes #2888👋 New Contributors