Skip to content

Latest commit

 

History

History
641 lines (363 loc) · 33.8 KB

changelog.md

File metadata and controls

641 lines (363 loc) · 33.8 KB

esformatter-jsx - Changelog

v8.0.1

v8.0.0

v7.4.1

  • Other changes

    • Fix restoreContainers regexp - e11cdb1, wkich, 11/01/2017 03:27:07
  • Build Scripts Changes

v7.4.0

v7.3.3

  • Features
    • Add JSXAttributeQuotes option. Closes #93 - ebbbc7c, [Roy Riojas](https://github.com/Roy Riojas), 29/11/2016 21:20:27

      JSXAttributeQuotes option will now control whether or not the quotes of JSXAttributes should use single or double quotes. Leave it empty to not change the quotes being used.

v7.3.2

v7.3.0

v7.2.0

  • Build Scripts Changes

  • Other changes

    • Update README.md - d189083, [Edan Edison](https://github.com/Edan Edison), 02/11/2016 10:58:25

      Missing comma at end of line. Copying and pasting into sublime caused an error message. Simples ;)

v7.1.0

v7.0.1

v7.0.0

v6.1.2

v6.1.1

v6.1.0

v6.0.0

v5.0.6

v5.0.5

v5.0.4

v5.0.3

  • Bug Fixes

  • Other changes

    • Tried the example and forgot to put variable on new line - 5eae9bb, [Kevin Simper](https://github.com/Kevin Simper), 29/04/2016 22:50:19

    • Update with a better react component example - d97f136, [Kevin Simper](https://github.com/Kevin Simper), 29/04/2016 22:48:21

      The component is always wrapped in two parenteses and this shows a more real example on how esformatter will format things.

v5.0.2

v5.0.1

v5.0.0

  • Features

    • Add JSXExpressionsSingleLine property to control if a jsxExpression will be put into a single line or multiple lines - 7f89846, [Roy Riojas](https://github.com/Roy Riojas), 25/03/2016 20:40:47

      Closes #19, #30 and #32

  • Refactoring

v4.1.4

  • Bug Fixes

  • Other changes

    • Added tests, reversed assertion order - 20904fc, R, 09/03/2016 00:35:48

      Added tests for new functionality. Reversed mocha test assertion order so that “expected” in console aligns with “expected” files and actual in console aligns with formatted code.

  • undefined

    • Added default values for attr indentation - 0e89c2c, R, 24/02/2016 15:32:42

      Default values if no indent options specified in htmlOptions

    • attribute indentation should respect options - f498454, R, 24/02/2016 15:29:22

      Previously, the attributes would indent either with the first attribute or 2 spaces. Now, it will indent either with the first attribute or by the number of spaces defined in htmlOptions.

v4.1.3

v4.1.2

v4.1.1

v4.1.0

  • Features
    • Add option to avoid formatting of JSXExpressions. Fixes #48 - 6ce091b, royriojas, 25/12/2015 07:12:53

      This commit adds a new option formatJSXExpressions. The default value is true.

      In case you need to stop this behavior, for example when using a plugin that modify the code like the esformatter-semicolons.

      You should opt out of the formatting of the JSXExpressions to avoid potentially risky issues

      // example of the options
      {
        "jsx": {
          "formatJSX": true,
          "attrsOnSameLineAsTag": true,
          "maxAttrsOnTag": 3,
          "firstAttributeOnSameLine": true,
          "spaceInJSXExpressionContainers": " ",
          "alignWithFirstAttribute": false,
          // default is true, setting it to false JSXExpressions won't be recursively formatted
          "formatJSXExpressions": false,
          "htmlOptions": {
            "brace_style": "collapse",
            "indent_char": " ",
            "indent_size": 2,
            "max_preserve_newlines": 2,
            "preserve_newlines": true
          }
        }
      }

v4.0.6

  • Bug Fixes
    • properly format code with comments in decorators. Fix #45 - ac2dc2d, royriojas, 01/12/2015 14:39:24

v4.0.5

  • Bug Fixes

v4.0.4

v4.0.3

v4.0.2

  • Bug Fixes

v4.0.1

  • Bug Fixes
    • Properly format blocks of code containing comments at the end of a function or method body. - 1da006e, [Roy Riojas](https://github.com/Roy Riojas), 22/11/2015 16:33:23

v4.0.0

v3.0.0

  • Enhancements

    • Use babylon directly instead of babel-core Fixes #38 - b4498f3, royriojas, 15/11/2015 17:14:59
  • Bug Fixes

    • use babylon directly instead of thru babel - bb595fb, royriojas, 15/11/2015 17:14:59

v2.3.11

v2.3.10

v2.3.9

  • Bug Fixes
    • properly support export declarations, even the ones that babel allows. Fixes #34 - cc69735, royriojas, 29/10/2015 12:05:29

    • support inline decorators. Fixes #35 - 97e4a28, royriojas, 29/10/2015 11:02:51

v2.3.8

v2.3.7

v2.3.6

  • Bug Fixes
    • require acorn only if no other parser was set. Fixes #31 - 4ae4479, royriojas, 11/10/2015 12:55:10

v2.3.5

  • Bug Fixes

  • Build Scripts Changes

    • Update esformatter-ignore to latest to properly ignore lines that have no empty spaces at the beginning - e0ce5f3, royriojas, 08/10/2015 13:32:31

v2.3.4

  • Bug Fixes

v2.3.3

  • Bug Fixes
    • Issue with the parser returning negative indexes - eafe7bf, royriojas, 02/10/2015 02:13:17

v2.3.2

  • Features
    • Support SpreadProperties outside of JSX blocks. Fixes #27 - 2ad355d, royriojas, 02/10/2015 01:34:20

v2.3.1

  • Features
    • Support for decorators and class properties. Fixes #26 - 8d546ef, royriojas, 02/10/2015 01:02:16

v2.3.0

  • Features
    • support decorators and static props - e6e1dc2, royriojas, 02/10/2015 00:25:39

      Please note that static props are just ignored from beautification all together for now

      It shouldn't be difficult to format it, but for now it is just OK

v2.2.0

  • Refactoring
    • use acorn-babel for more es6, es7 features - 6043e32, royriojas, 01/10/2015 21:38:15

v2.1.4

  • Enhancements
    • properly ignore blocks with ignore block comments - b8f5c52, royriojas, 01/10/2015 12:24:18

v2.1.3

  • Enhancements
    • ignore blocks using esformatter-ignore - 460d6e8, royriojas, 01/10/2015 01:40:21

      Required because espree still does not recognize some of the new fancy syntax of ES6 and ES7 and that makes it break badly when trying to beautify new files

v2.1.2

v2.1.1

v2.1.0

  • Enhancements

v2.0.11

  • Bug Fixes
    • properly handle ObjectExpressions and ArrayExpressions inside JSXContainers - 53941aa, royriojas, 12/08/2015 02:46:59

v2.0.10

  • Bug Fixes
    • prevent other plugins from messing with the expression containers - 161de77, royriojas, 07/08/2015 13:26:51

v2.0.9

  • Bug Fixes
    • exclude identifiers from recursive formatting - db23cd4, royriojas, 07/08/2015 02:16:39

v2.0.8

  • Bug Fixes
    • properly format JSXExpression containers content. Fixes #14 - d8d21e7, royriojas, 07/08/2015 01:54:59

v2.0.7

  • Bug Fixes
    • nested JSXElements inside JSXExpressionContainers now are properly beautified - 3ef3595, royriojas, 06/08/2015 19:35:14

v2.0.6

  • Documentation
    • document new option spaceInJSXExpressionContainers - 5601b77, royriojas, 05/08/2015 03:02:19

        "spaceInJSXExpressionContainers": " " // set it to "" to remove spaces in JSXExpressionContainers

v2.0.5

  • Build Scripts Changes

  • Enhancements

    • Add option to add spaces around JSXExpressionContainers spaceInJSXExpressionContainers. Closes #11 - 2a11c8b, royriojas, 05/08/2015 02:57:19

v2.0.4

  • Bug Fixes
    • keep selfclosing char (/>) in the same of the last attribute - e066931, royriojas, 28/07/2015 19:34:19

v2.0.3

  • Bug Fixes
    • Major issue with nodes being deleted because some weird issue with rocambole. - 48a0a71, royriojas, 28/07/2015 04:56:49

      Switched back to use falafel-espree. Definitively it works better and do not destroy the code

v2.0.2

  • Build Scripts Changes
    • Fix pre-version script so it executes tests only once - 384d14e, royriojas, 28/07/2015 03:10:37

    • remove unused rocambole-token dep - 116bb31, royriojas, 28/07/2015 03:09:46

v2.0.1

v2.0.0

  • Build Scripts Changes

  • Refactoring

    • Big refactoring of the beautifier to address several bugs. Fixes #4, Fixes #9 - d1630a9, royriojas, 27/07/2015 17:57:02

v1.3.0

  • Enhancements

    • Make more predictive the parsing of jsx tags - ca7f190, royriojas, 17/06/2015 05:07:13
  • Bug Fixes

    • remove initial and final text surrounding a tag to prevent react from creating span tags - 916c0b2, royriojas, 17/06/2015 04:05:36

v1.1.1

v1.0.9

  • Features

    • Ternary operators in jsx will try to remain in the same line - eb1ee17, royriojas, 16/06/2015 06:22:31

    • adding mocha runner - 6a503cb, royriojas, 16/06/2015 04:17:22

  • Bug Fixes

    • Fix for nested jsx structures issue - f10a429, [Roy Riojas](https://github.com/Roy Riojas), 09/03/2015 15:45:51

      Fixes an issue reported under esformatter-jsx-ignore when using nested jsx blocks.

      Check the readme for details about this issue.

  • Documentation

  • Build Scripts Changes

  • Tests Related fixes

tag attributes

v1.0.1

v1.0.0