Skip to content

Releases: vuejs/vue-eslint-parser

v6.0.2

10 Feb 08:07
v6.0.2
47c0c1a
Compare
Choose a tag to compare

🐛 Bug fixes

  • ba72875 fixed a bug that references in dynamic argument is not resolved.

v6.0.1

09 Feb 17:13
v6.0.1
fb08ee1
Compare
Choose a tag to compare

🐛 Bug fixes

  • 7a1bffd fixed the wrong location of auto-generated .prop modifiers.

v6.0.0

07 Feb 22:34
v6.0.0
28729dd
Compare
Choose a tag to compare

This release supported the new syntax in Vue.js 2.6 🎉

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, and modifiers to AST nodes from strings. Especially, argument will be a VExpressionContainer node if the directive has dynamic argument syntax.
  • It removed shorthand member. To check wheather the directive key is a shorthand or not, use name.rawName member.
    • :foo ... directiveKey.name.rawName is ":" (and directiveKey.name.name is "bind").
    • .foo ... directiveKey.name.rawName is "." (and directiveKey.name.name is "bind" and directiveKey.modifiers includes the identifier node of "prop").
    • @foo ... directiveKey.name.rawName is "@" (and directiveKey.name.name is "on").
    • #foo ... directiveKey.name.rawName is "#" (and directiveKey.name.name is "slot").

Commits

v5.0.0

05 Jan 06:53
09b4d1e
Compare
Choose a tag to compare

💥 Breaking changes

🐛 Bug fixes

v4.0.3

05 Dec 19:01
v4.0.3
b599764
Compare
Choose a tag to compare

🐛 Bug fixes

  • 309cf52 fixed a bug that it had constructed VFilterSequenceExpression nodes on the places filters are disallowed.

v4.0.2

01 Dec 10:44
v4.0.2
0248739
Compare
Choose a tag to compare

🐛 Bug fixes

  • 595b9ae fixed the bug that new nodes for Vue.js filters syntax can have wrong end location if there is a line break after a filter name.

v4.0.1

01 Dec 09:38
v4.0.1
a6135f8
Compare
Choose a tag to compare

🐛 Bug fixes

  • 41cf264 fixed wrong locations of new nodes for Vue.js filters syntax.

v4.0.0

01 Dec 08:58
v4.0.0
4cea141
Compare
Choose a tag to compare

💥 Breaking changes

v3.3.0

24 Nov 06:51
v3.3.0
59d52ed
Compare
Choose a tag to compare

✨ Enhancements

  • 04bf33b made the parser throwing syntax errors on illegal slot-scope attributes.

v3.2.2

26 Jul 13:16
v3.2.2
da877ec
Compare
Choose a tag to compare

Chore

  • 4045239 separated a dynamic require() expression to two in order to make Webpack recognizable that it's depending on espree.