Skip to content

Releases: ezhlobo/pug-uses-variables

v3.0.1

18 Jun 11:50
Compare
Choose a tag to compare

Fixed

  • Make sure we compute the location of variable correctly (#44)

v3.0.0

10 Feb 08:45
Compare
Choose a tag to compare

Breaking changes

It now relies on babel v7.

Fixed

  • We add the object used in spreading attributes to output.

    Example:

    div(...props.property)

    It will add props to output.

v2.0.2

16 Apr 10:37
Compare
Choose a tag to compare

Fixed

  • Fixed using object in attribute values. Following code does not throw error anymore.

    Component(
      iam-object={ one: 'first', two: 'second' }
    )

v2.0.1

08 Apr 18:41
Compare
Choose a tag to compare

Fixed

  • Fixed build script and publish files with correct names

v2.0.0

08 Apr 18:16
Compare
Choose a tag to compare

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.

v1.0.0

15 Dec 17:44
Compare
Choose a tag to compare

First stable version which covers most of use-cases in the real react-project.