[Snyk] Upgrade @nuxt/ui from 2.22.1 to 3.2.0 #187
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.22.1 to 3.2.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 26 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
✨ Highlights
🚨 Breaking Changes
unmount
function (#4051)🚀 Features
chip
prop (#4224) (03ac395)children
in items (#4226) (59c26ec)actions
slot (#4358) (8156971)close
method in slots (#4219) (5835eb5)autofocus
(1a4de49), closes #4324body-top
/body-bottom
slots (#4354) (595fc64)🐛 Bug Fixes
md
size on buttons (#4357) (be41aed)meta_-
shortcut (#4321) (4e7c1c9)transform
prop (#4188) (37abcc6)empty
size (ba3c6e8), closes #4377close:prevent
oncloseAutoFocus
(150b334)max-height
inhorizontal
orientation (62bc7b2), closes #4208size
(#4350) (4dd56c8)tr
as separator (#4083) (edca3bc)unmount
function (#4051) (546df57)defaultOpen
is set (#4308) (66355ba)open
(#4269) (bf56e15)🌐 Locales
👋 New Contributors
Full Changelog: v3.1.3...v3.2.0
🚨 Breaking Changes
collapsible
fieldIn previous patch, we introduced a new
collapsible
field initems
to display children incollapsed
state as well as making the parent element respect its link attributes. However, it didn't feel right so we removed it in favor of 1e2a10b, 9cf9f25 and f2682fd.type: 'trigger'
.collapsed
, you can use thepopover
/tooltip
props or item fields:🚀 Features
after:enter
event (#4187) (d9e9fea)tooltip
andpopover
props (f2682fd), closes #4186trigger
type in items (9cf9f25)vertical
orientation with Accordion instead of Collapsible (1e2a10b), closes #4072 #3911anchor
slot (#4119) (473513c)🐛 Bug Fixes
table
borders in RTL mode (#4192) (43d281f)presentation
role to viewport (2ba94db)loading
icon (#4163) (fe4e1f8)tooltip
when collapsed (44f536f)collapsible
field (3c78e2f)old-neutral
color as static (#4193) (dae9f0b)🌐 Locales
👋 New Contributors
Full Changelog: v3.1.2...v3.1.3
🚀 Features
square
prop (#4008) (894e8a6)table
variant (#3997) (1b6ab27)ui
field in items (#4060) (b9adc83)increment-disabled
/decrement-disabled
props (#4141) (c7fba2e)collapsible
field in items (2be60cd), closes #3353 #3911tooltip
in items (46c2987), closes #4050tooltip
around thumbs (d140acc), closes #1469progress
prop to hide progress bar (#4125) (92632e9)🐛 Bug Fixes
z-index
on focused element (204953b)neutral
color (7d51a9e), closes #4084 #3629variant
(f2fd778), closes #3998UCheckbox
import (7551a85), closes #4090class
should have priority overui
prop (e6e510b)div
forerror
andhelp
slots (459a041)useAppConfig
reactive (12303a8)@ nuxt/fonts
with default weights (276268d)value
field (#4105) (09b4699)div
tag fortitle
&description
(a57844e), closes #4096focus:outline-none
withlink
variant (999a0f8)base
slot override (c63d2f3)useAppConfig
reactive (869c070), closes #3952🌐 Locales
👋 New Contributors
Full Changelog: v3.1.1...v3.1.2
🚀 Features
closeAll
method (#3984) (ac4c194)isOpen
method to check overlay state (#4041) (a4f3f6d)🐛 Bug Fixes
place-items-center
to grid row (#4034) (8dfdd63)meta
toctrl
convert on non macos platforms (f3b8b17), closes #3869 #3318nuxt-nightly
(#3996) (bc0a296)sm:w-auto
from content slot (aebf0b3), closes #3987value
field type (#3995) (195773e)border-bg
/divide-bg
utilities (82b5f32)ring-offset-*
utilities (#3992) (e5df026)ui
object (591d59f), closes #3579@ theme inline
to properly reference css variables (6131871), closes #4018👋 New Contributors
Full Changelog: v3.1.0...v3.1.1
✨ Highlights
🎨 Improved Utility Classes
We've enhanced the utility class system to make it more intuitive and easier to use. While CSS variables provided flexibility, writing classes like
text-(--ui-text-muted)
proved cumbersome. We've introduced three major improvements:+ <div class="text-primary">
- <div class="bg-(--ui-error)">
+ <div class="bg-error">
+ <div class="text-muted">
- <div class="border-(--ui-border)">
+ <div class="border-default">
- <div class="bg-(--ui-bg-elevated)/50">
+ <div class="bg-elevated/50">
rounded-*
utilities to use our--ui-radius
CSS variable, making it easier to maintain consistent border radius across your application: https://ui.nuxt.com/getting-started/theme#radius+ <div class="rounded-sm">
- <div class="rounded-[calc(var(--ui-radius)*1.5)]">
+ <div class="rounded-md">
- <div class="rounded-[calc(var(--ui-radius)*2)]">
+ <div class="rounded-lg">
🧩 New Components and Features
import type { CheckboxGroupItem, CheckboxGroupValue } from '@ nuxt/ui'
const items = ref<CheckboxGroupItem[]>(['System', 'Light', 'Dark'])
const value = ref<CheckboxGroupValue[]>(['System'])
</script>
<template>
<UCheckboxGroup v-model="value" :items="items" />
</template>
card
andtable
variants for more flexible layouts: https://ui.nuxt.com/components/radio-group#variantimport type { RadioGroupItem, RadioGroupValue } from '@ nuxt/ui'
const items = ref<RadioGroupItem[]>(['System', 'Light', 'Dark'])
const value = ref<RadioGroupValue>('System')
</script>
<template>
<URadioGroup v-model="value" variant="table" :items="items" />
</template>
🌉 Inertia.js Integration
The Vue version now includes built-in support for Inertia.js. Enable it with the
inertia: true
option in yourvite.config.ts
:import vue from '@ vitejs/plugin-vue'
import ui from '@ nuxt/ui/vite'
export default defineConfig(<span class="pl-ko...
Summary by Sourcery
Build: