Skip to content

Latest commit

 

History

History
583 lines (372 loc) · 32.7 KB

CHANGELOG.md

File metadata and controls

583 lines (372 loc) · 32.7 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.7.6 - 2024-10-18

Changed

1.7.5 - 2024-09-26

Changed

1.7.4 - 2024-07-24

Changed

1.7.3 - 2024-06-03

Changed

1.7.2 - 2024-05-16

Changed

1.7.1 - 2024-03-27

Changed

1.7.0 - 2024-03-07

Added

  • insertSpaceAfterConditionalCompileSymbol property, fix conditional compile formatting (#87)

Changed

1.6.41 - 2024-02-29

Changed

1.6.40 - 2024-01-30

Changed

1.6.39 - 2024-01-25

Changed

1.6.38 - 2024-01-16

Changed

1.6.37 - 2024-01-08

Changed

1.6.36 - 2023-12-07

Changed

1.6.35 - 2023-11-08

Changed

1.6.34 - 2023-10-06

Changed

1.6.33 - 2023-09-28

Added

  • Sort imports (#75)

Changed

1.6.32 - 2023-09-11

Changed

1.6.31 - 2023-07-24

Changed

1.6.30 - 2023-07-05

Changed

1.6.29 - 2023-05-17

Changed

1.6.28 - 2023-05-10

Changed

1.6.27 - 2023-04-28

Changed

1.6.26 - 2023-04-18

Changed

1.6.25 - 2023-04-14

Changed

1.6.24 - 2023-03-17

Changed

Fixed

  • indent format issue related to optional chaining array access (#71)

1.6.23 - 2023-01-12

Changed

1.6.22 - 2022-12-15

Changed

  • Bump qs from 6.5.2 to 6.5.3 (#64)

1.6.21 - 2022-12-15

Changed

Fixed

  • indentation related to continue for and continue while (#65)

1.6.20 - 2022-12-08

Changed

1.6.19 - 2022-10-28

Changed

1.6.18 - 2022-10-20

Changed

1.6.17 - 2022-10-03

Changed

1.6.16 - 2022-09-02

Changed

  • Split formatter into separate processors (#57)
  • Break process into smaller functions (#59)
  • Rename all Formatter process methods to format (#60)

Fixed

  • mod keywordCase formatting (#62)
  • Parse all code as brighterscript to improve formatting context (#61)
  • upgrade to [email protected]. Notable changes since 0.56.0:
    • Allow mod as an aa prop, aa member identifier kinds forced to Identifier (brighterscript#684)

1.6.15 - 2022-08-24

Changed

1.6.14 - 2022-08-12

Changed

1.6.13 - 2022-07-16

Changed

1.6.12 - 2022-04-13

Changed

1.6.11 - 2022-04-07

Changed

1.6.10 - 2022-03-17

Changed

1.6.9 - 2022-02-24

Changed

1.6.8 - 2022-02-11

Changed

Fixed

  • properly indent enums and enum members

1.6.7 - 2022-02-01

Fixed

  • ensures that removeWhitespace function looks at all tokens to the right (#49)

1.6.6 - 2022-01-28

Changed

Fixed

  • properly formats an interface that includes subs and functions (#46)
  • better support for appropriate whitespace between minus and numbers/identifiers (#47)

1.6.5 - 2022-01-14

Changed

Fixed

  • interface indentation (#45)

1.6.4 - 2022-01-05

Changed

Fixed

  • formatting issue with ternary operator and square brace in the consequent (#44)

1.6.3 - 2021-10-27

Changed

1.6.2 - 2021-09-17

Changed

1.6.1 - 2021-06-21

Changed

Fixed

  • several npm security vulnerabilities

1.6.0 - 2020-11-25

Added

  • formatting support for try/catch/throw/end try

Changed

1.5.5 - 2020-10-28

Added

  • formatting support for BrighterScript annotations

Changed

  • updated to [email protected]
  • use BrighterScript's AST walking functionality for improved performance

1.5.4 - 2020-07-29

Fixed

  • bug that was not including bsconfig.schema.json in the npm package when published (because it was not included in the files array in package.json).

1.5.3 - 2020-07-19

Added

  • bsfmt.schema.json file in the package for use in tooling.

1.5.2 - 2020-07-19

Added

  • export Runner from index.ts directly to simplify API usage.

1.5.1 - 2020-07-19

Added

  • public method Runner#getBsfmtOptions which allows external api consumers to use the standard file loading logic.
  • cli option to disable bsfmt.json loading.
  • cli option to provide custom bsfmt.json path.

Changed

  • removed method Runner#loadOptionsFromFile introduced in v1.5.0 in favor of getBsfmtOptions. Although this is technically a breaking change, it is very unlikely that anyone is actively calling that new method.

1.5.0 - 2020-07-18

Added

  • command line interface (CLI) to support running the formatter against projects from a terminal.
  • support for loading config options from a bsfmt.json file found in the same working directory.

1.4.0 - 2020-05-29

Added

  • new method to generate source maps during format.
  • new option insertSpaceBetweenAssociativeArrayLiteralKeyAndColon which will ensure exactly 1 or 0 spaces between an associative array key and its trailing colon. (#17)

Fixed

  • bugs related to formatting single-line if statements (#13)

1.3.0 - 2020-05-21

Added

  • new option formatMultiLineObjectsAndArrays which inserts newlines and indents multi-line objects and arrays

1.2.0 - 2020-05-20

Added

  • new option insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces which...does what it says. (#16

Changed

  • TypeScript transpile now targets ES2017, so this library now requires a minimum of NodeJS version 8.

Fixed

  • incorrect indent when using class, endclass, namespace, endnamespace as an object property (#18)

1.1.8 - 2020-05-11

Fixed

  • bug that would incorrectly add spacing between a negative sign and a number if it's the first entry in an array (#14)
  • bug that would incorrectly add spacing to the left of a negative sign if preceeded by a left curly bracket or left paren.
  • Prevent indent after lines with indexed getter function call (i.e. someObj[someKey]()) (#15)

1.1.7 - 2020-05-11

Changed

1.1.6 - 2020-05-04

Fixed

  • issue where object properties named next would incorrectly cause a de-indent (#12)

1.1.5 - 2020-05-01

Added

  • new formatting option typeCaseOverride which works just like keywordCaseOverride but only for type tokens.

Fixed

  • conditional compile keywordCaseOverride and typeCaseOverride characters now support using the literal tokens #if, #else, etc...

1.1.4 - 2020-05-01

Fixed

  • incorrect indent of upper-case two-word conditional compile blocks #ELSE IF and #END IF.

Changed

1.1.3 - 2020-05-01

Fixed

  • Unwanted spacing between a negative sign and a number whenever preceeded by a comma (#8)
  • Remove whitespace preceeding a comma within a statement (#5)
  • Remove leading whitespace around ++ and -- (#10)
  • bug when providing null to keywordCaseOverride would case crash
  • Fix bug with titleCase not being properly handled.
  • Only indent once for left square bracket and left square curly brace on the same line (#6)

1.1.2 - 2020-04-29

Changed

1.1.1 - 2020-04-27

Fixed

  • bug that was losing an indent level when indenting foreach statements

1.1.0 - 2020-04-23

Added

  • indent support for class and namespace
  • keyword case support for class, namespace, and import keywords

Changed

1.0.2 - 2019-09-18

Changed

Fixed

  • bug that was de-indending lines after lines ending with end (like someting.end\nif)

1.0.1 - 2019-09-17

Fixed

  • bug where empty lines are padded with indent spaces #1

1.0.0 - 2019-09-17

Added

  • initial project release

Changed