Skip to content

Latest commit

 

History

History
242 lines (136 loc) · 8.1 KB

CHANGES.md

File metadata and controls

242 lines (136 loc) · 8.1 KB

3.13.1 - 2020-09-08

  • update the .version property to return the correct version

3.13.0 - 2020-09-06

  • add support for comment characters other than semicolon - Issue #11
  • first release from @oakmac fork
  • apply standardjs linter to the codebase (ie: this release has a large code diff, but minimal logic change from 3.12.0)

3.12.0 - 2018-01-04

  • make Smart Mode work better when inputting multiple changes. See #181

3.11.0 - 2017-08-25

  • fix: parenTrails now include those which may appear at the beginning of a line
  • fix: parens now correctly assigns relocated leading close-parens to their paren trail
  • enhancement: smart mode with forceBalance off will remove unmatched close-parens in a leading paren trail ( see #163)

3.10.0 - 2017-08-07

  • add: return parens (full paren tree) if returnParens is enabled
  • change: move leading-close paren fix from Indent Mode to Smart Mode
  • change: throw leading close-paren error in Indent Mode if and it cannot be removed safely and forceBalance is off
  • revert: do not fix indentation in Smart Mode after cursor leaves end of Paren Trail (from #147)
    • this was causing bad pasting behavior since a line with extra parens would dedent subsequent lines
  • change: smart mode will allow selected lines to be indented in isolation (by running Indent Mode when selectionStartLine is passed in)
    • this helps with correcting pastes without influence indentation around it
    • thanks to @SevereOverfl0w!

3.9.0 - 2017-07-26

  • add: return tabStops in Paren Mode (see #156)
  • add: return argX for Tab Stops (see #157)
  • add: new option selectionStartLine so Tab Stops can use the top of the selection instead of the cursor line

3.8.0 - 2017-07-24

  • fix: don't accumulate extra indentation when changes indents multiple lines (see #154)

3.7.0 - 2017-07-24

  • add: return non-empty parenTrails so editors can dim/mark them (see Paren Trails)

3.6.0 - 2017-07-22

  • add: fix indentation in Smart Mode after cursor leaves the end of a Paren Trail (see #147)

3.5.0 - 2017-07-21

  • add: fix indentation in Smart Mode after cursor leaves a holding area, preventing unintended line adoption (see #143)

3.4.1 - 2017-07-20

  • refactor: remove discardStack since parenTrail.openers is same thing

3.4.0 - 2017-07-20

3.3.0 - 2017-07-19

  • add: create smartMode to hold new smart features and to preserve original indentMode
  • add: prevent sibling adoption when dedenting expressions, until cursor is moved to different line or to the right of the open-paren. (see #143)

3.2.0 - 2017-07-16

  • change: remove cursorX, cursorLine, and tabStops from result if null or empty
  • add: new parseOutput function in test API

3.1.1 - 2017-07-12

  • fix botched 3.1.0

3.1.0 - 2017-07-12

  • enhancement: publish separate test API

3.0.1 - 2017-07-11

  • fix: make deleted unbalanced parens influence shifted expressions (when forceBalance is true)

3.0.0 - 2017-07-10

  • enhancement: replace cursorDx with changes option (republishing 2.6.0 as major version bump)

2.6.1 - 2017-07-10

  • republishing 2.5.2 since 2.6.0 was a breaking change that should be published as 3.0.0

2.6.0 - 2017-07-10

  • enhancement: replace cursorDx with changes option

2.5.2 - 2017-07-10

  • fix: comment lines are shifted when indented inside shifted collections (see end of this section)

2.5.1 - 2017-07-09

  • fix: dedenting an open-paren with cursorDx in Indent Mode will properly adopt new child lines

2.5.0 - 2017-07-08

  • experiment: allow forceBalance option in Indent Mode to restore v1's aggressive balancing

2.4.0 - 2017-07-07

  • experiment: allow cursorDx option in Indent Mode to prevent switching to Paren Mode for most cases (see #84)

2.3.1 - 2017-06-30

  • fix: prevent testParenMode and testIndentMode from failing when partialResult is enabled and cursor line never reached

2.3.0 - 2017-06-30

  • enhancement: partialResult option allows partially processed text/cursor to be returned on error #124

2.2.1 - 2017-06-19

  • fix: don't allow unmatched close-parens to be held by the cursor in the paren trail

2.2.0 - 2017-06-18

  • enhancement: when unmatched-close-paren error, return error.extra for open-paren location

2.1.0 - 2017-06-16

  • fix: error locations reported in input coords, not output coords
  • fix: throw error when unmatched close-paren found in Paren Mode
  • fix: don't let Indent Mode crash when processing text without code
  • fix: when leading close-parens found in Indent Mode, exit to Paren Mode to prevent strange behavior #126
  • change: remove previewCursorScope option since it interfered with #126
  • enhancement: allow test-case annotations in input/output using testIndentMode/testParenMode

2.0.0 - 2016-11-12

  • do not remove unmatched close parens indiscriminately (see relevant docs)

1.8.2 - 2016-09-07

  • fix missing semicolons to prevent closure minification errors (see #120)

1.8.1 - 2016-04-21

  • correctly handle lines ending in unclosed string (see #112)

1.8.0 - 2016-04-05

  • return new tabStops property (see #110)

1.7.1 - 2016-04-02

  • allow escaped close-parens

1.7.0 - 2016-03-06

  • Indent Mode has new previewCursorScope option

1.6.1 - 2016-02-18

  • fix cursor position bug (see comment)

1.6.0 - 2016-02-18

  • return cursor position (see #96)

1.5.3 - 2016-02-03

  • performance improvements (thanks @oakmac)

1.5.2 - 2016-02-02

  • performance improvements (thanks @oakmac)

1.5.1 - 2016-01-22

  • fudged the 1.5.0 npm release (this fixes it)

1.5.0 - 2016-01-22

  • allow insertion of spaces in the cursor line's paren trail in Paren Mode

1.4.0 - 2016-01-06

  • modes return new key changedLines
  • modes return new key error
  • performance improvements

1.3.0 - 2015-12-31

  • add compatibility for CRLF line endings

1.2.0 - 2015-12-25

  • performance improvements (thanks @oakmac)

1.1.0 - 2015-12-23

  • remove result key from returned result (internal only)

1.0.0 - 2015-12-23

  • port to native JS implementation (~20x faster, ~25 lines/ms)
  • remove indentModeChange

0.2.3 - 2015-12-03

  • fudged the 0.2.2 npm release (this fixes it)

0.2.2 - 2015-12-03

  • do not treat commas as indentation whitespace (see #61)

0.2.1 - 2015-11-24

  • publish JavaScript API to npm

0.2.0 - 2015-11-21

0.1.0 - 2015-11-20

initial version