Skip to content

v2.0.0

Choose a tag to compare

@ezhlobo ezhlobo released this 08 Apr 18:16
· 23 commits to master since this release

Breaking changes

New API for returned variables. Now it returns variables and their SourceLocation.

New response

[{
  value: 'I am a string (variable name)',
  loc: {
    start: {
      line: 1,
      column: 10
    },
    end: {
      line: 1,
      column: 39
    }
  }
}]

Previous

[
  'I am a string (variable name)'
]

How to convert new syntax to previous one

Now only getting extended variables is possible, so you have to iterate through them and extract value field. See appropriate section in README.

Development

  • Added build phase (with babel), so now we use modern syntax.
  • Added types with Flowtype.
  • Made dependencies up-to-date.