Releases: matijaoe/vue-ecosystem-snippets
Releases · matijaoe/vue-ecosystem-snippets
v0.8.0
Features
- Define composable using current filename -
vcomposable:file
/vdcf
- Define pinia stores using current filename
- Define props without typescript -
vprops:js
- Add
vim
alt forvimport
- Add
vtemplate
andvcomponent
alts - Add template
emit()
snippet -vemit
- Add snippets for common event listeners -
von:event
/voe
,von:click
/voc
,von:input
/voi
,von:update
,von:change
,von:blur
,von:focus
,von:submit
- Add snippet for
v-bind="[$props, $attrs]"
-vbind:full
- Add snippet for non-bind attribute in template -
va
- Add
vclass:list
snippet - Add snippet for i18n translation in template -
vvt
(vue variable translation) - Add
vtif
andvdif
snippets for template and div withv-if
- Add Vueuse
vRefAutoReset
- Add VueUse
vwatchImmediate
- Add alts for
vuse:toggle
variants -vut
&vutt
- Add snippet for vueuse import -
vuse:import
/vuim
Changes
- Completely remove Reactivity Transform snippets
- Remove assignment for
vunred
,vreadonnly
,vtoRef
,vtoRefs
- Rename
vemits:ts
tovemits:old
- Rename
vemits:new
tovemits
- Rename
vemits
tovemits:alt
- Remove 2nd argument from
vemit
snippet - Remove default value from
vinject:ts
- Rename
velif
toveif
- Rename previous
vemit
tovemit:pass
- Remove list from
vclass
snippet - Rename class with list to
vclass:list
/vca
- Rename text interpolation snippet from
vti
tovv
(vue variable)
Merges
Full Changelog: v0.6.0...v0.8.0
v0.7.0
Features
- Add new Vue
watch
snippets -vwatch:immediate
,vwatch:deep
- Add upcoming (Vue 3.3.0-alpha9)
defineModel
macro snippet -vmodel
- Add unreleased (Vue 3.3.0)
defineEmits
macro snippet -vemits:new
- Add VueUse
useVModels
snippet -vuse:vmodels
- Add
vbind:props
andvbind:attrs
Vue tempate snippets
Changes
- Set postcss as default language in style blocks, downgrade
lang="css"
to an additional option - Update Vue template
vb
bind snippet (:prop="prop"
) - Update Vue Macros
defineModel
to newdefineModels
implementation -vdefineModels
- Remove
acceptHMRUpdate
from pinia snippets - Update various vmodel script implementations, rename existing
vmodel
tovmodel:manual
- Remove boilerplate from
useVModel
- Update and rename Vue provide and inject snippets
Fixes
- Fix usage of
style
instead oflang
option in Vue style block snippets
Documentation
- Remove mention of reactivity transform
Merge
- Release v0.7.0 by @mat2ja in #21
Full Changelog: v0.6.0...v0.7.0
v0.6.0
Features
- Add
Vue Macros
snippets - Add
useLink
anddefineRouter
snippets forvue-router
- Add better
:to
property handling onNuxtLink
andRouterLink
Changes
- 🗑️ Remove all
reactivity transform
alt prefixes - 🗑️ Remove non-essential
reactivity transform
snippets - 💥 Change alt prefixes for typed
ref
, typedcomputed
&reactive
- 💥 Change prefix for props with defaults
- Move
vue-router
script out of Vue snippets - Remove indentation from style blocks
Fixes
- Fix pinia not being applied in javascript
- Fix broken snippets
Documentation
- Show 2 instead of 1 placeholder option
- Change section ordering
- Add Vue Macros mention
Merge
- Release v0.6.0 by @mat2ja in #19
Full Changelog: v0.5.6...v0.6.0
v0.5.6
v0.5.5
v0.5.4
What's Changed
Features
- Add style tag with
less
option (thanks to @tjx666 🙌🏻 #12) - Add
vstyle:lang
snippet - Add
less
tovstyle:lang
language options - Add
vcgs
alias for computed with get/set
Changes
- Change default
vstyle
snippet to represent scoped style with no language option - Change tabstop ordering for
use composable
snippets (composable param is on the last tab stop)
Fix
- Fix broken
vname
template snippet
Merge
- Release v0.5.4 by @mat2ja in #13
Full Changelog: v0.5.3...v0.5.4
v0.5.3
What's Changed
Features
- Auto-capitalize Pinia store and Vue composable names
- Add
isDefined
and 2useToggle
snippets for VueUse - Add
vuf
alt prefix forvuse:fetch
- Add
vus
alt prefix forvuseStore
- Add an additional end tabstop to nfetch and nasyncdata snippets
- Add
nfetch:post
Changes
- Replace some prefixes with
-
to use:
(vmodel:number
etc.) - Remove dummy data from
pstore:options
snippet
Fixes
- Fix wrongly ordered tabstops
Merge
- Release v0.5.3 by @mat2ja in #10
Full Changelog: v0.5.2...v0.5.3
v0.5.2
What's Changed
Features
- Add 10 new
Vue Router template
snippets - Add
Transition
elements andSuspense
snippets - Add
Vue template
class and style bindings snippets - Add
if
,else
andelif
alt prefixes forVue template
Changes
- Change prefix for
$computed
- Change prefix casing for PascalCase components whose full name is part of the prefix (
vtransition
→vTransition
)
Documentation
- Remove
work in progress
- Define html syntax highlighting for
Nuxt template
- Fix preview for
$$()
Merge
- Release v0.5.2 by @mat2ja in #9
Full Changelog: v0.5.1...v0.5.2
v0.5.1
What's Changed
Features
- Add 15 new
Nuxt 3 template
snippets - Update VueUse
useFetch
snippet
Fixes
- Fix several broken Vue snippets (primarily lifecycle hooks)
- Fix VueUse
get
&set
snippets - Fix duplicate Nuxt Script table in documentation
Merge
- Add Nuxt template snippets by @mat2ja in #8
Full Changelog: v0.5.0...v0.5.1