Skip to content

Releases: HaxeCheckstyle/haxe-formatter

haxe-formatter v1.3.0

05 Dec 17:16
043e1d5
Compare
Choose a tag to compare
  • Breaking Change replaced whitespace.openingParenPolicy and whitespace.closingParenPolicy settings with whitespace.parenConfig #282
  • Breaking Change replaced whitespace.openingBracePolicy whitespace.closingBracePolicy, whitespace.objectOpeningBracePolicy and whitespace.objectClosingBracePolicy settings with whitespace.bracesConfig #282
  • Added check to prevent tokentree parser issues from deleting code #281
  • Fixed properties in anon types #276
  • Fixed empty lines between single line types with meta #277
  • Refactored whitespace handling (space + newline) #278
  • Refactored coverage report generation #279
  • Removed superfluous wrapping settings #280

haxe-formatter v1.2.0

12 Nov 12:34
288a385
Compare
Choose a tag to compare
  • Breakin Change replaced emptyLines.beforeUsing and emptyLines.afterImportsUsing settings with emptyLines.importAndUsing #267
  • Added wrapping.opBoolChain for wrapping || and && chains #248
  • Added line count statistic for CLI #249
  • Added alignedDecrease option for indentation.conditionalPolicy, fixes #252 (#253)
  • Added indentation.indentObjectLiteral to control indent of object literals, fixes #258 (#266)
  • Added sameLine.returnBody option, fixes #257 (#266)
  • Added emptyLines.importAndUsing for more control over empty lines between imports #267 + #268
  • Added emptyLines.beforePackage to add empty lines before package declaration #267
  • Added emptyLines.betweenSingleLineTypes for empty lines between single line types, fixes #255 (#269)
  • Fixed wrapping of function calls, fixes #169 (#248)
  • Fixed conditional handling in multi-line object literals, fixes #182 and #211 (#248)
  • Fixed indentation and wrapping of OpBool chain, fixes #187 (#248)
  • Fixed sameline options for sameLine.caseBody and sameLine.expressionCase #250
  • Fixed conditional indentation with indentation.conditionalPolicy set to alignedIncrease #253
  • Fixed truncation of interface conditionals extends, fixes #259 (#260)
  • Fixed multiline string interpolation, fixes #261, fixes #203 (#264 + #265)
  • Fixed send error messages to stderr, fixes #262 (#265)
  • Fixed metadata whitespace, fixes #263 (#265)
  • Fixed indentation of wrapped anon function, fixes #256 (#266)
  • Fixed empty lines of doc comments inside conditionals, fixes #188 (#270)
  • Fixed sameLine.expression* handling of Binop and Arrow, fixes #271 + #272 (#274)
  • Fixed type hints for arrow function parameters in calls, fixes #273 (#274)
  • Changed sameLine.expressionCase to keep #250
  • Refactored call and parameter wrapping #247
  • Refactored method chain wrapping #247

haxe-formatter v1.1.2

17 Oct 21:09
19f2f3b
Compare
Choose a tag to compare
  • Added indentation support for Binop(OpAssignOp(_)) #245
  • Fixed endless loop during wrapping of #if (macro) #245

haxe-formatter v1.1.1

13 Oct 22:03
f4699a7
Compare
Choose a tag to compare
  • Added support for key-value iterators, fixes #232 (#233)
  • Added wrapping.anonFunctionSignature
  • Fixed version number reported on CLI #233
  • Fixed handling of macro blocks, fixes #215 #233
  • Fixed unstable formatting after typedefs without semicolon, fixes #216 #233
  • Fixed CLI version checks for existence of run.js before invoking node #234
  • Fixed keep option of sameLine.ifElse, fixes #235 (#236)
  • Fixed wrapping in middle of function call, fixes #180 (#239)
  • Fixed wrapping function signature with long type hint, fixes #189 (#239)
  • Fixed indentation with comment line, fixes #237 (#239)
  • Fixed wrapping option keep, fixes #238 (#239)
  • Fixed handling of metadata parameter, fixes #241 (#242)
  • Changed default rules for function signature, see #232 (#233)
  • Refactored marker classes to use a common base class #239
  • Refactored whitespace policy add/remove handling #243
  • Refactored indentation logic #243
  • Removed whitespace change around comments during line end marking #243

haxe-formatter v1.1.0

03 Sep 23:07
Compare
Choose a tag to compare
  • Breakin Change added a default wrap type for wrapping rules #230
  • Added Keep to SameLinePolicy #226
  • Added emptyLines.classEmptyLines.endType to output empty lines before end of classes #227
  • Added emptyLines.abstractEmptyLines.endType to output empty lines before end of abstracts #227
  • Added emptyLines.enumAbstractEmptyLines.endType to output empty lines before end of enum abstracts #227
  • Added emptyLines.externClassEmptyLines.endType to output empty lines before end of extern classes #227
  • Added emptyLines.interfaceEmptyLines.endType to output empty lines before end of interfaces #227
  • Added emptyLines.enumEmptyLines.endType to output empty lines before end of enums #227
  • Added emptyLines.typedefEmptyLines.endType to output empty lines before end of typedefs #227
  • Added indentation.trailingWhitespace to output trailing whitespace in empty lines #227
  • Added --default-config CLI option to generate a default "hxformat.json" #227
  • Added wrapping.methodChaining to handle wrapping of method chains #229
  • Changed whitespace.closingBracePolicy to after #227
  • Changed whitespace.typeExtensionPolicy to after #227
  • Changed whitespace.semicolonPolicy to onlyAfter #227
  • Fixed indentation of else with object literal body, fixes #220 (#224)
  • Fixed indentation of prefix unary, fixes #221 (#224)
  • Fixed whitespace after macro reification, fixes #218 + #219 (#225)
  • Fixed type check on numbers, fixes #217 (#225)
  • Refactored Space and Newline handling of MarkWhitespace #227

haxe-formatter v1.0.0

21 Aug 08:27
Compare
Choose a tag to compare
  • initial release