Skip to content

Releases: vitaly-t/decomment

v.0.7.0

02 Jan 09:13
Compare
Choose a tag to compare

Only documentation updates.

It also sums up all the fixes applied in 0.6.x updates.

v.0.6.5

02 Jan 07:51
Compare
Choose a tag to compare

Found and fixed a special case for quotes inside text when preceded by an odd number (>1) of slashes:

  • '\\\'', '\\\\\'', '\\\\\\\'', etc...
  • "\\\"", "\\\\\"", "\\\\\\\"", etc...

Added new tests to cover such cases.

v.0.6.4

01 Jan 20:33
Compare
Choose a tag to compare

Fixing a bug for two special cases: // or /* inside regular expressions without a preceding /:

  • /[a-b//]text/
  • /[a-b/*]text/

Turns out the tests for those were present, but incorrect. Corrected the tests and fixed the bug.

v.0.6.3

01 Jan 17:38
Compare
Choose a tag to compare

Found and fixed an ugly bug for special slash cases inside text blocks:

'\''
"\"";
'\'\''
"\"\""
'\\\\\\'
"\\\\\\"
`\\\\\\`
`\``
`\"`
`\`\``
`\\`

Added new tests to cover each such case.

v.0.6.2

01 Jan 12:05
Compare
Choose a tag to compare
  • Code optimization for performance
  • Code documentation and refactoring
  • Adding more tests

v.0.6.1

01 Jan 11:30
Compare
Choose a tag to compare

Minor code refactoring + documentation updates.

v.0.6.0

01 Jan 11:03
Compare
Choose a tag to compare

This is a major update in the protocol, to support any-text comment removal as opposed to just CSS.

Documentation has been updated with the new protocol.

The default decomment can handle JSON, JavaScript or HTML automatically, as before, while the additional extensions are decomment.text and decomment.html.

v.0.5.1

31 Dec 22:07
Compare
Choose a tag to compare

Significant performance optimizations.

This library was fast, but thanks to these guys, it is now 3 times faster than before, and much simpler.

v.0.5.0

31 Dec 21:00
Compare
Choose a tag to compare

This is a major rewrite of the library, with introduction of esprima as the JavaScript parser of choice, to guarantee correct parsing for regular expressions.

  • Lots of new tests added
  • Lots of documentation updated

Now with the help of esprima, the library is 100% accurate.

Also, moved CSS processing into a sub-call of decomment.css.

v.0.4.2

29 Dec 16:52
Compare
Choose a tag to compare

This version is a temporary rollback from the previous changes, as they introduced a different problem that needs to be resolved first.