Releases: aMarCruz/rollup-plugin-cleanup
Releases · aMarCruz/rollup-plugin-cleanup
v3.2.1
v3.1.1
v3.1.0
[3.1.0] - 2018-12-27
Bye, acorn.
Although acorn is an excellent parser, its use in rollup-plugin-cleanup had caused several issues.
v3.1 removes this dependency and now is completely based on js-cleanup, which does not depend on acorn or another similar parser, with the advantage of a relative independency of the version and "dialect" of JavaScript and a little more efficiency, for being a specialized tool.
While js-cleanup is in its first version, I do not expect it to present major problems (the algorithm and the JS rules used for the replacement are fairly simple).
Added
compactComment
option to control the compaction of multiline comments, useful to preserve the format of JSDoc blocks.- The
flow
filter for Facebook Flow comments and directives. - The
ts
filter for MS TypeScript directives. - TypeScript definitions.
- Link to kofi.
Changed
- The options
ecmaVersion
,sourceType
, andacornOptions
are ignored, acorn was removed in this version. - The
normalizeEols
option is deprecated in favor oflineEndings
, which have the same behavior. - The
some
filter no longer includes@cc_on
, but adds comments that begin with'!'
. - The
jscs
filter is deprecated, jscs no longer exists. - Updated AppVeyor and Travis settings.
- Updated format of the Changelog.
- Updated devDependencies.
- Replaced Jest with mocha, due to issues with coverage.
Fixed
- Closes #13, acorn was removed in this version.
- Coverage generation and badge.
Removed
- Dependency on Jest, due to incompatibilities.
- Dependency on the acorn parser.
v3.0.0
- Add an example of using Acorn plugin the README.
- New option
acornOptions
, for advanced usage.
This is an optional, plain JS object with additional settings passed to the Acorn parser. Properties of this object are merged with, and take precedence over, the existingecmaVersion
andsourceType
options. - The mimimum node version is now 6.14, for compatibility with ESLint 5.
- Updated devDependencies.
v2.0.1
v2.0.0
- Requires node v4.2 or later.
- Emission of source map honors the Rollup
sourceMap
orsourcemap
(lowercased) options. - Generated errors are displayed through the standard Rollup's
error
method. - Fixed tests to match rollup v0.48.x parameters and async operation.
- Now the plugin operation is async and returns a Promise.
- Using facebook jest for tests.
v1.0.1
- New filter
"ts3s"
to preserve TypeScript Triple-Slash Directives (See NOTE) - Closes #5 : cleanup didn't generate a sourcemap for the transformation.
- Some refactorization to speed up some operations.
- Updated devDependencies.
NOTE:
TypeScript source must be already compiled to JavaScript.
v1.0.0
- Improved regex to detect empty lines.
- Fixed minor bug not processing the input when there's no empty spaces or lines to remove.
- Fixed tests to match rollup v0.40.x output.
- Changed default Acorn
ecmaVersion
from 6 to 7 to allow parsing ES2017 (See rollup#492). - Updated devDependencies.
- 100% test coverage.
v0.1.4
v0.1.3
- The string passed to the comment filters now includes a character preceding the content,
"/"
for one-line comments, and"*"
for multiline comments. - Adds note to the README about usage as post-processor - See issue #1
- Now, the default for
extensions
is"*"
. Because rollup is a JavaScript bundler and cleanup is a JavaScript post-processor, it should work with any file handled by rollup.