Skip to content

Releases: HaxeCheckstyle/haxe-formatter

haxe-formatter v1.10.1

12 Apr 21:45
Compare
Choose a tag to compare
  • Fixed broken indentation after case with OpOr pattern, fixes #576 (#581)
  • Fixed missing linebreak between metadata and doc comment, fixes #578 (#581)
  • Fixed indentation in anon function body, fixes #577 (#581)
  • Changed default wrapping location of casePattern to afterLast, fixes #579 (#581)

haxe-formatter v1.10.0

11 Apr 21:35
6d311ce
Compare
Choose a tag to compare
  • Added lineEnds.anonFunctionCurly, fixes #538 (#549)
  • Added detection for and skipping files with merge conflicts, fixes #558 (#559)
  • Added case pattern wrapping with wrapping.casePattern, fixes #359 (#566)
  • Added support for var @:meta name (#568)
  • Added new wrapping rule condition type exceedsMaxLineLength, fixes #572 (#573 + #574)
  • Fixed indentation of wrapped callbacks, fixes #470, #476, #540, #546 (#548)
  • Fixed indentation of array literals in calls, fixes #376 (#548)
  • Fixed indentation of array literals in assignments, fixes #512 (#548)
  • Fixed indentation of object literals, fixes #490 (#548)
  • Fixed handling of unary OpSub, fixes #547 (#548)
  • Fixed expressionIf detection in switch, fixes #552 (#553)
  • Fixed keep wrapping with multiline strings, fixes #561 (#564)
  • Fixed whitespace of block comment in array literals, fixes #441 (#564)
  • Fixed whitespace of conditionalised case (#564)
  • Fixed conditionalised class declaration with constraints, fixes #431 (#564)
  • Fixed conditionalised function type typedef, fixes #531 (#564)
  • Fixed arrow function in map literal, fixes #426 (#564)
  • Fixed whitespace in single argument arrow function, fixes #562 (#564)
  • Fixed whitespace of final in interfaces, fixes #563 (#564)
  • Fixed newline after macro class, fixes #565 (#566)
  • Fixed indentation of if-expression with metadata, fixes #567 (#568)
  • Fixed wrapping of object literals with OpBoolOr/OpBooland, fixes #569 (#570)
  • Fixed handling of parens in @:default(1) (#570)
  • Fixed range format when endpos is inside token, fixes vshaxe/vshaxe#425 (#570)
  • Changed keep-like behaviour of sameLine.expressionIf with same, fixes #304 (#548 + #550)

haxe-formatter v1.9.2

19 Dec 10:19
69d5c0c
Compare
Choose a tag to compare
  • Added unittests for empty lines (#535)
  • Fixed range format issues with multiline tokens (#532 + #533)
  • Fixed extra indentation for parens after =, fixes #534 (#535)
  • Fixed method chain with comments detection and wrapping (#536)
  • Fixed whitespace before metadata (#537)
  • Fixed whitespace after else with ifPolicy, fixes #543 (#544)
  • Fixed emptyline afterReturn when return is body of function (#544)
  • Refactored build system to use lix (#537 + #539)

haxe-formatter v1.9.1

12 Sep 10:15
Compare
Choose a tag to compare

haxe-formatter v1.9.0

10 Sep 12:25
Compare
Choose a tag to compare
  • Added fixedZeroIncrease and fixedZeroIncreaseBlocks policies to indentation.conditionalPolicy (#514)
  • Added alignedNestedIncrease policies to indentation.conditionalPolicy, fixes #519 (#520)
  • Added range to format API (#524)
  • Fixed missing space when returning an arrow function, fixes #513 (#514)
  • Fixed conditionals in return types, fixes #446 (#515)
  • Fixed null pointer issues in MarkWhitespace (#521)
  • Fixed path handling in Hashlink 1.1 (#521)
  • Fixed postfix exclamation mark, fixes #516 (#527)

haxe-formatter v1.8.1

27 Jun 22:43
Compare
Choose a tag to compare
  • Fixed debug info in command line version
  • Fixed total runtime calculation

haxe-formatter v1.8.0

13 Jun 20:14
a495380
Compare
Choose a tag to compare
  • Added sameLine.returnBodySingleLine, fixes #303 (#483)
  • Added emptyLines.*.existingBetweenFields, fixes #455 (#484)
  • Added printing config filename in verbose mode, fixes #460 (#493)
  • Added indentation.indentCaseLabels, fixes #478 (#502)
  • Added sameLine.untypedBody, fixes #362 (#506)
  • Fixed same line handling of if-else with try catch body, fixes #360 (#483)
  • Fixed line end handling of structure type as type parameter, fixes #475 (#486)
  • Fixed wrapping function parameters with comments, fixes #472 (#487)
  • Fixed line break right before, fixes #311 (#456)
  • Fixed wrapping of array comprehension, fixes #357 + #366 (#491)
  • Fixed type hint detection for enums and overload metas, fixes #488 (#491)
  • Fixed comments in OpAdd chains and case, fixes #396 + #477 (#492)
  • Fixed wrapping of call, fixes #386 (#492)
  • Fixed nested method chain handling, fixes #496 (#497)
  • Fixed nested inline array comprehension, fixes #498 (#501)
  • Fixed incorrect comment closing, fixes #500 (#501)
  • Fixed imports with conditionals, fixes #504 (#505)
  • Fixed line break in type parameters, fixes #494 (#507)
  • Changed sameLine.returnBody to only apply to multiline or loop/switch/try/if expressions, fixes #303 (#483)

haxe-formatter v1.7.1

31 May 22:08
509160e
Compare
Choose a tag to compare
  • Fixed indentation of nested object literals (#479)
  • Fixed array wrapping in call parameters, fixes #466 (#479)
  • Fixed conditional using dot ident without parens, fixes #480 (#481)

haxe-formatter v1.7.0

16 May 23:49
65af3ef
Compare
Choose a tag to compare
  • Added wrapping.multiVar, fixes #355, fixes #430 (#422 + #434)
  • Added emptylines.afterFieldsWithDocComments, fixes #385, fixes #432 (#425 + #434)
  • Added lineEnds.anonTypeCurly, lineEnds.blockCurly, lineEnds.objectLiteralCurly, lineEnds.typedefCurly, fixes #346 (#427 + #434 + #456)
  • Added wrapping.arrayMatrixWrap for array matrix wrapping with column alignment, fixes #433 (#442)
  • Added Java compilation and tests on TravisCI (#456)
  • Added browser JS compilation, fixes #449 (#456)
  • Added cache for close tokens ], ) and } (#461)
  • Added indentation.indentComplexValueExpressions, fixes #468 (#469)
  • Fixed missing empty lines in classes with conditionals, fixes #419 (#422)
  • Fixed wrapping of concatenated strings (#422
  • Fixed ECheckType detection with cast, fixes #374 (#422)
  • Fixed same line handling of cases with object pattern, fixes #306 (#422)
  • Fixed ETypeCheck with conditional, fixes #395 (#422)
  • Fixed wrong OpBool indentation in nested switch/case, fixes #423 (#424)
  • Fixed afterFieldsWithDocComments with conditionals, fixes #428
  • Fixed default wrapping stopping after first line break (#436)
  • Fixed wrapping in field access, fixes #314 (#442)
  • Fixed object literal detection when using expression level entry point, fixes #450 (#451)
  • Fixed null check for indentation on expression level entry points (#453)
  • Fixed length check in removeBOM (#453)
  • Fixed semicolon after #end, fixes #429 (#456)
  • Fixed comments in array and matrix wrapping, fixes #443 + #444 (#456)
  • Fixed eof handling in stdin mode when running on Windows, fixes #418 (#457)
  • Fixed indentation of if / else in complex var assignments, fixes #334 (#458)
  • Fixed ECheckType in if body, fixes #354 (#459)
  • Fixed whitespace between IntInterval and POpen (#462)
  • Fixed incorrect function header wrapping, fixes #439 (#463)
  • Fixed incorrect wrapping of multiline strings, fixes #438 (#463)
  • Fixed indentation of if in value place, fixes #464 #465 (#467)
  • Changed default value for excludes to include node_modules (#420)
  • Changed debug code to produce less unneccessary code in non debug mode (#417)
  • Refactored wrapping to use an ordered list (#436)
  • Refactored array wrapping (#442)
  • Updated testcases for #305 (#422)
  • Removed compiletime library, fixes #390 (#467)

haxe-formatter v1.6.0

22 Mar 13:18
7b8e876
Compare
Choose a tag to compare
  • Added --stdin CLI switch to allow reading code from stdin and printing formatted code to stdout, fixes #411 (#412 + #413)
  • Fixed specifiying an entry point for tokentree, fixes #393 (#403 + #404)
  • Fixed whitespace for conditionals in function arguments with question mark, fixes #397 (#405)
  • Fixed unary OpSub in arrays (#405)
  • Fixed whitespace for else body with ECheckType, fixes #361 (#405)
  • Fixed indentation after block breaking conditional, fixes #290 (#406 + #408)
  • Fixed sameline format of anon types with wrapping set to keep, fixes #301 (#412)
  • Changed default value for excludes to include .git folders (#399)
  • Changed using comma as an indicator for simple wrapping (#403)
  • Changed formatter api calls, fixes #393 (#403)
  • Changed command line help text, fixes #400 (#402)
  • Replaced custom schema generator with json2objects (#398)