[Snyk] Upgrade @nuxt/ui from 2.17.0 to 4.2.1 #318
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.17.0 to 4.2.1.
ℹ️ 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 61 versions ahead of your current version.
The recommended version was released 21 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-VITE-9512410
SNYK-JS-VITE-9653016
SNYK-JS-CROSSSPAWN-8303230
SNYK-JS-GLOB-14040952
SNYK-JS-NODEFORGE-14125745
SNYK-JS-NUXT-9486043
SNYK-JS-UNDICI-8641354
SNYK-JS-BABELHELPERS-9397697
SNYK-JS-VITE-13644406
SNYK-JS-VITE-8023174
SNYK-JS-VITE-8648411
SNYK-JS-VITE-9576207
SNYK-JS-VITE-9685035
SNYK-JS-VITE-9919777
SNYK-JS-INFLIGHT-6095116
SNYK-JS-JSYAML-13961110
SNYK-JS-KOA-10944994
SNYK-JS-MICROMATCH-6838728
SNYK-JS-NANOID-8492085
SNYK-JS-NANOID-8492085
SNYK-JS-NODEFORGE-14125097
SNYK-JS-NUXTDEVTOOLS-13849298
SNYK-JS-NUXTVITEBUILDER-8663232
SNYK-JS-PARSEGITCONFIG-9403763
SNYK-JS-PATHTOREGEXP-7925106
SNYK-JS-ROLLUP-8073097
SNYK-JS-VITE-8022916
SNYK-JS-BRACEEXPANSION-9789073
SNYK-JS-BRACEEXPANSION-9789073
SNYK-JS-DEVALUE-12205530
SNYK-JS-KOA-8720152
SNYK-JS-KOA-9679272
SNYK-JS-NODEFORGE-14114940
SNYK-JS-NUXT-12878602
SNYK-JS-SEND-7926862
SNYK-JS-SERVESTATIC-7926865
SNYK-JS-SIRV-12558119
SNYK-JS-UNDICI-10176064
SNYK-JS-VITE-12558116
Release notes
Package name: @nuxt/ui
🐛 Bug Fixes
stopandreloademits (#5400) 736a547nametype (#5498) b654a77#app(#5491) da8daaa#build/ui.cssalias (#5499) d9aadc7New Contributors
Full Changelog: v4.2.0...v4.2.1
✨ Highlights
📅 New InputDate & InputTime components
Two new components are now available to handle date and time inputs: InputDate (#5387) and InputTime (#5302).
const date = ref(new CalendarDate(2022, 2, 3))
const time = ref(new Time(12, 30, 0))
</script>
<template>
<UInputDate v-model="date" />
<UInputTime v-model="time" />
</template>
🎨 Tailwind CSS prefix
You can now use Tailwind CSS's
prefixoption (#5341) to prefix all utilities generated by Nuxt UI and avoid conflicts with your own styles or other libraries.🚨 Breaking Changes
Exposed refs now consistently return the HTML element directly instead of the component instance. This affects
InputMenu,InputNumber,InputTags,Select, andSelectMenu.+ inputMenu.value.inputRef // HTML element directly
</script>
There was an issue with how composables were exported, you no longer need the
.jsextension:The Vite plugin now properly generates theme files as real files instead of incorrectly shipping them inside
.nuxt/on NPM. This ensures the#build/ui.cssimport and custom theme configuration work correctly.When using the Vite plugin, update your
tsconfig.node.jsonalias:{ "compilerOptions": { "paths": { "#build/ui": [ - "./node_modules/@ nuxt/ui/.nuxt/ui" + "./node_modules/.nuxt-ui/ui" ] } } }🚀 Features
data-slotattributes (#5447) (dd81d46)previewprop (#5443) (2af82e7)scrollableprop (#5306) (240897e)theme.prefixoption (#5341) (7fca5d7)estimateSizeas function (ebc8568)🐛 Bug Fixes
leadingslot (#5405) (b61127a)disabledprop (a8f2156), closes #5300locale/dirprops proxy (#5432) (a6efa7a)nestedprop type handling and simplify logic (#5360) (8d5c26f)modelModifiersgeneric (#5361) (5c347af)vue-routerandinertia(637ef58)experimental.componentDetection(5a5ac45)experimental.componentDetection(9872740), closes #5389modelValue/defaultValuein vertical orientation (cffaaaa), closes #5392inline-blockclass to icon (#5317) (fc36f69)update:modelValueemit type (#5349) (4cb0638)thbased on column meta (#5418) (620defa)import.meta.env.SSRto supportvite-ssg(#5347) (8f38c04)🌐 Locales
👋 New Contributors
Full Changelog: v4.1.0...v4.2.0
✨ Highlights
📦 New Empty Component
A new Empty component is now available to display empty states when there's no content to show (#5200).
⚡️ Component Virtualization
Use the
virtualizeprop to enable virtualization for large datasets on CommandPalette, InputMenu, SelectMenu, Table and Tree components (#5162).🎯 Experimental Component Detection
Enable the new
experimental.componentDetectionoption in yournuxt.config.tsto automatically detect which components are actually used and only generate the necessary CSS for those components including their dependencies (#5222).🚨 Breaking Changes
children-iconprop to usetrailing-iconin input (#4397) (edda8a6)The
trailing-iconprop is now used for the Input, and a newchildren-iconprop has been added to customize the icon for child items:The
@ selectevent now passes arguments in a consistent order:(event, row)instead of(row, event):🚀 Features
variantprop (#5138) (bb4f42c)children-iconprop to usetrailing-iconin input (#4397) (edda8a6)uiin slot props where used (#5207) (63c0a5f)descriptionin items (#5193) (70cf05f)increment/decrementas booleans (#4805) (1858908)experimental.componentDetectionoption (#5222) (f80474c)closemethod in slots (#5176) (53c6508)zoomtransition (#4998) (d502c30)$elfor drag and drop example (#5239) (fcf6117)maxglobal configuration (#5068) (e4c6113)🐛 Bug Fixes
imageprop (9632f99), closes #5276activein items (cc8cbf3), closes #4771should-auto-scroll(#5252) (db73765)uiprop type (#5234) (240bc1a)presentationrole (70aaf4a), closes #4945uiprop in prose proxy components (#5205) (d1afe90)divinstead ofmain(2a09ac0), closes #4955uppercaseclass (#5238) (4095c9a)$elinstead ofrootRef(c019f8f), closes #5230 #5162🌐 Locales
👋 New Contributors