Jsfmt Versions Save

For formatting, searching, and rewriting JavaScript.

v0.5.3

8 years ago

Bump esformatter to 0.9 (Babylon Parser) #183

v0.5.2

8 years ago
  • Update Esprima to 2.7 (#171)
  • Run jsfmt on source code (#173)
  • Run jsfmt + diff in test suite (#174)
  • Update dependencies (#176)
  • Add docs about plugin usage (#178)
  • Update esformatter (#180)

v0.5.1

8 years ago
  • Improved ES6 support.

v0.5.0

8 years ago
  • Allow overriding default plugins via .jsfmtrc config file.
  • Improved error reporting: log errors to stderr and more consistent exit status codes.
  • Better es6 support through upgraded dependencies: esformatter, esprima and escodegen.

v0.4.1

8 years ago
  • Upgrade esformatter to 0.5.0.
  • Use process.stdout.write instead of console.log to avoid outputting extra newline
  • Utilize esformatter-var-each to format vars on individual lines.

v0.4.0

9 years ago
  • Added two new command-line args for AST formatting. Note that these are experimental and may be removed.
  • Removed --config option in favor of .jsfmtrc and better docs around rc.
  • Updated esformatter and using new esformatter plugin for automatic brace insertion.
  • Updated style guide to include esformatter changes.
  • Fixes and cleanup for shebang.
  • Support for variable arguments using ES6 rest syntax.
  • General rewrite cleanup.
  • Changing exit code to -1 on missing arg failure.
  • Updates to rc and other dependencies.

v0.3.2

9 years ago
  • Adding support for UnaryExpression
  • Fixing bug where rewrite types were not being set properly

v0.3.1

9 years ago
  • Fixed bug when searching for expressions within BlockStatement or Program body
  • Added JSON support

v0.3.0

9 years ago
  • Added CONTRIBUTING
  • Added tests
  • Added Gruntfile for development
  • Added CI support
  • Added style guide
  • Added default formatting config
  • Exposed jsfmt.getConfig api method for loading jsfmt config
  • Exposed jsfmt.format(js[, options]) api method for formatting
  • Added --validate option and exposed jsfmt.validate api method
  • Pinned dependencies

v0.2.0

9 years ago
  • Add rc and --config config.json support for formatting configuration
  • Making --format the default action
  • Fix support for shebang at the top of js files, e.g. #!/usr/bin/env node
  • Fix jsfmt diff mode where whitespace was unaccounted for due to -b git diff option