Skip to content

Releases: rdio/jsfmt

v0.5.3

03 Feb 20:42
Compare
Choose a tag to compare

Bump esformatter to 0.9 (Babylon Parser) #183

v0.5.2

31 Oct 22:30
Compare
Choose a tag to compare
  • 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

30 Sep 17:14
Compare
Choose a tag to compare
  • Improved ES6 support.

v0.5.0

30 Sep 17:07
Compare
Choose a tag to compare
  • 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

30 Sep 17:07
Compare
Choose a tag to compare
  • 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

17 Sep 21:16
Compare
Choose a tag to compare
  • 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

17 Jun 17:57
Compare
Choose a tag to compare
  • Adding support for UnaryExpression
  • Fixing bug where rewrite types were not being set properly

v0.3.1

11 Jun 21:17
Compare
Choose a tag to compare
  • Fixed bug when searching for expressions within BlockStatement or Program body
  • Added JSON support

v0.3.0

11 Jun 21:17
Compare
Choose a tag to compare
  • 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

03 Jun 18:27
Compare
Choose a tag to compare
  • 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