Skip to content

Releases: kmagiera/babel-watch

v7.8.1

06 Jul 17:43
Compare
Choose a tag to compare
Uncategorized
  • #147 Fix parse freesing on ignored files, catch and rethrow exception…

v7.8.0

29 Jun 13:49
Compare
Choose a tag to compare
Uncategorized
  • Fix: Add error forwarding from babel to stderr (#143)
  • refactor(compile): use async fns (#143)
  • feat(actions): add lint and changelog

Add --config-file option

13 Jul 14:12
Compare
Choose a tag to compare

Small release to add the --config-file option. #124

Fix regression in `--extensions`

05 Mar 20:58
Compare
Choose a tag to compare

This release fixes #122, which was caused by an unintended regression in --extensions. Babel's default extensions are always included. We may change this behavior in a major version bump but the behavior in v7 should not change.

`--watch` fix and BABEL_WATCH_NODE_OPTIONS

05 Feb 20:10
Compare
Choose a tag to compare

This release fixes two issues:

  • #98: There wasn't a good way to reliably pass NODE_OPTIONS to the child. If you use NODE_OPTIONS, it will apply both to the babel-watch parent instance and to the child (your code), causing issues with options like --inspect. Therefore, I have added BABEL_WATCH_NODE_OPTIONS, which will be ignored by the parent and passed on to the child like you'd expect. In 99.9% of cases, this is what you want.
  • #120: It appears the --watch option (i.e. babel-watch --watch interfaces/ app.js) didn't actually do anything very useful. It would add the folder to be watched by chokidar, but because it wasn't required by the application, babel-watch would simply execute no action on a modification. This is not intended so that logic has been removed, and you can now watch arbitrary folders and restart on them.
    • Just be sure to add to --extensions if the files you're watching don't end in .js.
    • If you need to exclude a path, use --exclude. Be careful not to use --ignore, which is instead passed to babel. In a later release I will rename this because it's confusing.
    • See the README for all options.

NPM package bugfix

05 Feb 20:04
Compare
Choose a tag to compare

An unexpected file made it into the package. This release removes it which greatly decreases the size of the unpacked module.

7.3.0: Features!

05 Jan 22:49
Compare
Choose a tag to compare

A few new features in this release:

  • Added --before-restart option. Use to synchronously execute a script between restarts (#79, #80, #102,#108). For example:
    • babel-watch --before-restart="yarn lint" app.js
  • Added colors to output (and --no-colors option)
    • This changes the default RESTARTING message in favor of something a little less obnoxious. It also prints the files that caused the restart. You can still change it using --message.
  • Added --restart-command, so you can change the default rs<enter> to manually restart. If you set --restart-command=false, the stdin handler is turned off entirely, which is desirable for certain interactive applications. (#35)
  • Added sourcemaps when --debug/--debug-brk/--inspect/--inspect-brk are present. (#62, #118)
    • Added --no-debug-source-maps to disable this behavior, which can be useful if you want to debug the raw transpiled output.

7.2.0: New quality-of-life features!

05 Jan 17:57
Compare
Choose a tag to compare

Changes:

  • Fix broken --ignore option, introduced in babel 7 upgrade. (#106, #112)
  • Add --clear-console option (#115)
  • Add debug module. Run with env DEBUG="babel-watch:*" babel-watch [file] to see debug output, including compiled files, ignored files, and init options.
  • Updated README and help messaging.

7.1.0: Long-awaited Bugfixes

05 Jan 16:10
Compare
Choose a tag to compare

We finally have publish access again, and have updated babel-watch!

See the release diff for the exact changes.

Highlights:

  • Fix an infinite loop bug when the pipe is closed (#85, #46, #32).
    • If you're using babel-watch and have seen a node process stick at 100% cpu from time to time, this is now fixed if you update!
  • Updated Chokidar from v1 to v3, which improves performance & atomic writes handling (#97, #101, #104, #105)
  • Debounce app restart to prevent missing cache deletions (#99)
  • Fix a crash on improper use of Buffer.from() (#100)

Thanks @kmagiera for getting publish access into the hands of the community so we can fix these bugs.

7.0: Babel 7 Support

05 Jan 16:12
6900a30
Compare
Choose a tag to compare
  • Update version number to 7.x to imply Babel 7 support (#95)
  • Add --inspect-brk and allow adding host:port to mirror node options
  • Fix various deprecations