All Versions
34
Latest Version
Avg Release Cycle
86 days
Latest Release
588 days ago

Changelog History
Page 3

  • v0.6.0 Changes

    March 26, 2015
    • add support for the pipe option on the config file, allowing user to pipe other CLI tools. closes #168
    • add support for ES6 classes. closes #286
    • add support for ES6 default params. closes #285
    • add support for ES6 arrow functions. closes #255
    • change comment indentation behavior to match next/prev code block based on context. fixes #209. fixes #270.
    • extract helpers from lib/indent.js into rocambole-indent. closes #277
    • fixes SwitchCase indentation range. closes #290
    • ignore shebang by default. closes #284
    • add setting to limit line breaks and white spaces around BreakKeyword. fixes #213
    • limit spaces before function name. closes #283
    • make sure plugins.setOptions is called before plugins.stringBefore. fixes #288
    • replace lib/lineBreak.js with rocambole-linebreak. closes #279
    • replace lib/whiteSpace.js with rocambole-whitespace. closes #278
    • support in place edits. fixes #275
    • use locally installed esformatter version if available. closes #190
  • v0.5.1 Changes

    March 17, 2015
    • make it work with [email protected] AST!
    • ConditionalExpression: indent even if consequent is on the same line as the test
    • Fix indent for logical expression as argument of return statement
    • Fix indent for multi-var declaration with logical expression
    • ForStatement improvements
    • IfStatement: Fix multi-line test with comments
    • ObjectExpression: Indent multi-line binary and logical expression values
    • Update jQuery preset to fix single-line object expression spacing
    • Update jQuery preset to make use of new IIFE settings
    • fix DoWhileStatement indent. closes #256
    • improve CallExpression hook to handle a few edge cases and add option to limit br/ws around opening/closing parentheses. closes #267
    • improve getter/setter behavior on ObjectExpression. fixes #265
    • indent NewExpression arguments. fixes #254
    • make sure we don't loop over same CatchClause twice. fixes #264
  • v0.5.0 Changes

    February 26, 2015
    • add support for br/ws around IIFEOpeningParentheses and IIFEClosingParentheses and keep spaces around CallExpression to avoid conflicts. closes #223. closes #250.
    • don't remove line breaks before FunctionExpression by default and handle an edge case for array indentation if it is a chained member expression argument. fixes #202
    • drop ArgumentList exceptions (used previously by jQuery preset)
    • fix FunctionExpression: Handle two special cases for TopLevelFunctionBlock
    • fix SwitchCase indent if missing semicolon after break. fixes #225
    • fix array indentation for cases where closing bracket is on the same line. simplify ObjectExpression indentation logic while also fixing how it works inside arrays. fixes #224. fixes #239.
    • fix indent edges for chained MemberExpression. fixes #240
    • improve IfStatement.test indentation. closes #222
    • indent BinaryExpression & LogicalExpression if inside VariableDeclaration, CallExpression or AssignmentExpression. fixes #212
    • indent support for ParameterList and enable it by default. closes #231
    • make sure plugins are loaded/registered before plugins.stringBefore is called and expose unregisterAll. fixes #245. closes #246.
    • only indent if there is a line break before/between arguments. fixes #238
    • support getters/setters in ObjectExpression
    • update jQuery preset to use CatchParameterList whiteSpace setting
    • update jQuery preset to tolerate single line objects
    • update rocambole to v0.5 and change the BinaryExpression test to match [email protected] behavior (no EmptyStatement between ExpressionStatements). see #192
  • v0.4.3 Changes

    October 13, 2014
    • fix error related to multiple plugin.register calls. (#218)
  • v0.4.2 Changes

    September 08, 2014
    • fix else if consequent with no braces. closes #196
    • fix indent of nested if braces before comments. closes #197
    • fix CatchClause indent and add settings for FinallyKeyword and TryKeyword. closes #203
    • indent LogicalExpression if it's the VariableDeclaration.init.
  • v0.4.1 Changes

    July 09, 2014
    • fix comma and white spaces around object property values (#191).
    • fix ObjectExpression indent edges (#193).
  • v0.4.0 Changes

    July 06, 2014
    • add transformBefore hook for plugins and transformAfter to keep API consistent. closes #187
    • add option to add/remove trailing empty lines in the file (EOF). closes #111.
    • add options to control line breaks inside ArrayExpressions. closes #129
    • add support for multiple indent levels (closes #179, closes #106).
    • add double indent for IfStatementConditional on the jQuery preset (closes #150)
    • add support for line breaks before/after PropertyName and PropertyValue (closes #184)
    • support plugins option on the CLI. closes #182
    • fix MemberExpression indent behavior. (meta bug #181)
    • fix indent end edge for FunctionExpression inside MemberExpression. closes #152
    • change indent rules for AssignmentExpression and ConditionalExpression to match jQuery preset needs. closes #149
    • convert comma-first objects to comma-last (closes #175)
    • improve CatchClause and TryStatement line break and white space handling. closes #128
    • improve ReturnStatement and CallExpression indent behavior.
    • rename ChainedMemberExpression to MemberExpression on the config file.
  • v0.3.2 Changes

    June 23, 2014
    • fix issue with sparse arrays. see millermedeiros/rocambole#15
    • fix Params comma handling and update rocambole to 0.3.4 to fix BlockComment. closes #139
    • fix indent for objects inside arrays. closes #142
    • fix white space inside expression statement with parens. closes #155
    • change IfStatement indent edges to avoid indenting comments that are just before } else. closes #123
    • fix comments inside ObjectExpression. closes #166
  • v0.3.1 Changes

    June 23, 2014
    • avoid merging undefined config on esformatter.rc.
    • make sure esformatter.rc doesn't load config file if user provides a 'preset' or if 'root == true' to match CLI behavior.
  • v0.3.0 Changes

    June 20, 2014
    • expose ALL the things!! exposed a few methods related to line break, white space and indentation; also flattened the directory structure to make it easier for plugin authors to reuse esformatter internal methods when needed.