prettydiff

Beautifier and language aware code comparison tool for many languages. It also minifies and a few other things.

OTHER License

Downloads
28.4K
Stars
1.7K
Committers
11
prettydiff - v2.1.5

Published by prettydiff about 8 years ago

v2.1.5

Defect resolutions

  • Fixed #346 - Fixed CSS defect where selector :first-child becomes selector:first-child

Enhancement

  • #202, #344 - Adding support for TypeScript, TSX, Java, and C# languages with unit tests
prettydiff - v2.1.4

Published by prettydiff about 8 years ago

v2.1.4

  • bug fixes
prettydiff - v2.1.3

Published by prettydiff about 8 years ago

v2.1.3

Defect resolutions

  • Fixed #338 - Now provided proper support for SCSS maps
  • Fixed #340 - Fixed a collision with Twig and Liquid template syntaxes

Enhancements

  • #334 - Completely refactored management of options in a separate an universal entity
prettydiff - v2.1.1

Published by prettydiff about 8 years ago

v2.1.1

Defect resolutions

  • Fixed #330 - Corrupted markup parsing when encountering style properties parsed as JavaScript regex
  • Fixed #331 - Empty lines scrubbed from CSS prior to @media declarations
  • Fixed #332 - Broken code on an edge case with diff option diffspaceignore
  • Fixed #333 - summaryonly diff option was broken

Enhancements

  • #334 - Advanced markup attribute parsing so that attributes can contain child tags with quoted attributes identical to the quotes encapsulating this child tag without collision and without regression

New Options

  • endcomma - Prior existing option endcomma converted from boolean to string to add value multiline so that terminal commas are only added to arrays and objects spanning multiple lines. issue #335
  • brace_style - Adds a new option similar to JSBeautify's brace_style option. issue #326
prettydiff - v2.1.0

Published by prettydiff over 8 years ago

v2.1.0

Defect resolutions

  • Fixed #289 - Minor enhancement to the fuzzy string comparison of the diff library.
  • Fixed #321 - Several edge case markup parsing defects
  • Fixed #324 - JSX parsing defect related to XML tags inside JS arrays

New Options

  • apacheVelocity - Supplies support Apache Velocity with a variety of delimiters. issue #280
  • qml - Adds support for QML language using the JavaScript parser. issue #278
prettydiff - Stronger parser support, especially for React JSX

Published by prettydiff over 8 years ago

Closes these issues:

  • #262 - This one adds substantially greater depth to the parsers' direct output.
  • #311 - Adds an option, jekyll, to support YAML Jekyll HTML template comments ---.
  • #312 - Adds an option, functionname, to supply a space after a function's name.
  • #317 - Defect, the JavaScript keyword export was not properly supported resulting in a semicolon being injected into the object body.
  • #318 - An enhancement to autocorrect for markup tags that contain an extra brace at the front or back. This minor enhancement also exposed a defect in support of << and <<< delimited tags.
prettydiff - v2.0.1

Published by prettydiff over 8 years ago

v2.0.1

Defect resolutions

  • Fixed a defect in the markup parser regarding properly parsing JavaScript and CSS comments
  • Fixed a JSScope defect when functions are incomplete
  • Fixed issue #290

New Options

  • formatArray - Determines whether JavaScript array indexes should always indented, remain on a single line, or left to the default formatting. issue #276
  • formatObject - Determines whether JavaScript object properties should always indented, remain on a single line, or left to the default formatting. issue #277
prettydiff - Pretty Diff v2.0.0 Published

Published by prettydiff over 8 years ago

Pretty Diff

v2.0.0

Breaking changes

  • Updated mode "parse" to output an object with two keys: definition and data. The definition property stores a text description of each data type supplied in the data property. The data property stores the parsed data.
  • Added mode "analysis" to generate reports of code evaluation. The program now outputs only the desired data instead of an array of desired data plus a report.
  • Due to the other changes the Node.js only option report is removed.
  • There is no longer a global.report property to store extra information. This is replaced with global.meta which stores parse errors, execution duration, number of differences, input size, output size, and can be extended to store additional metadata into the future.
  • Pretty Diff will no longer publish to NPM. - https://github.com/prettydiff/prettydiff/issues/291

New Options

  • nodeasync. Asynchronous bulk operations like reading from a directory produces cross-talk when assigning meta data to a global object. The desired goal of version 2 is to have the prettydiff function return a single string and meta data to a global object. In this case, for reliability, the prettydiff function will return an array of [data, meta] where data is the desired string output and meta is the metadata object similar to Pretty Diff version 1.
  • nodeerror. Sometimes it is desirable and informative to log parse errors to the console. Such a feature can become excessive noise and break unit tests though.
  • parseRecord. If false the output of mode "parse" is a collection of parallel data types. If the option is true the output is a sequential array where each index is a child array of data respective to a given parsed token.
  • parseSpace. Determines whether white space content tokens should exist in the parse tree output of the parse mode.

Minor fixes:

  • Enabling accessibility analysis and reporting in the new "analysis" mode.
  • Fixed some missing semicolon insertion during JavaScript parsing.
  • Fixed a curly brace insertion bug in JavaScript do/while loops.
  • Fixes a javascript defect in generated diff report HTML files.
  • Fixes a defect in "varword: list" where comments precede the reference.
  • Option varword now accounts for var, let, and const
  • Expands JavaScript conversion of operators ++ and -- under the correct option.
  • Fixes #294
  • Fixes #293
  • Modified markup </li> insertion logic
  • Updated test runner file system simulation to work correctly on Windows.