Releases: vuejs/vue-eslint-parser
Releases · vuejs/vue-eslint-parser
v6.0.2
v6.0.1
v6.0.0
This release supported the new syntax in Vue.js 2.6 🎉
- The shorthand of
v-bind
directive with.prop
modifier. (actually, this is experimental and behind flag in Vue.js 2.6) - New
v-slot
directive and that shorthand. (https://vuejs.org/v2/api/#v-slot) - New dynamic arguments. (https://vuejs.org/v2/guide/syntax.html#Dynamic-Arguments)
Breaking changes
This release contains a drastic change about VDirectiveKey
AST node because now the directive key have gotten to be able to have JavaScript expression.
export interface VDirectiveKey extends HasLocation, HasParent {
type: "VDirectiveKey"
parent: VAttribute
- name: string
- argument: string | null
- modifiers: string[]
- shorthand: boolean
+ name: VIdentifier
+ argument: VExpressionContainer | VIdentifier | null
+ modifiers: VIdentifier[]
}
- It changed the members
name
,argument
, andmodifiers
to AST nodes from strings. Especially,argument
will be aVExpressionContainer
node if the directive has dynamic argument syntax. - It removed
shorthand
member. To check wheather the directive key is a shorthand or not, usename.rawName
member.:foo
...directiveKey.name.rawName
is":"
(anddirectiveKey.name.name
is"bind"
)..foo
...directiveKey.name.rawName
is"."
(anddirectiveKey.name.name
is"bind"
anddirectiveKey.modifiers
includes the identifier node of"prop"
).@foo
...directiveKey.name.rawName
is"@"
(anddirectiveKey.name.name
is"on"
).#foo
...directiveKey.name.rawName
is"#"
(anddirectiveKey.name.name
is"slot"
).
Commits
v5.0.0
💥 Breaking changes
- 7113191 changed the AST of
slot-scope
attributes for vuejs/eslint-plugin-vue#722.
🐛 Bug fixes
- e44fc8b fixed crash on invalid filters (#37).
- 4840849 fixed wrong errors on function expressions in
v-on
directives (vuejs/eslint-plugin-vue#716). - 31425ae fixed a bug that the parser creates expression nodes in
v-pre
elements (vuejs/eslint-plugin-vue#733).
v4.0.3
v4.0.2
v4.0.1
v4.0.0
💥 Breaking changes
- 1fe4127 changed the AST for Vue.js filters syntax. It was
BinaryExpression
nodes before, but it'sVFilterSequenceExpression
nodes now.
This change fixes the issue vuejs/eslint-plugin-vue#687.