Releases: lydell/elm-watch
Releases · lydell/elm-watch
1.1.0-beta.5
- Added: You can now set the
ELM_WATCH_EXIT_ON_STDIN_END
environment variable (to any value) to have elm-watch end when stdin ends. This is useful to Phoenix users. - Fixed: Regressions from earlier betas where elm-watch wouldn’t exit in certain cases.
- Added: elm-watch now prints a message while it is shutting down, asking you to press ctrl+c (again) to close it more forcefully. Usually you won’t see it, but if you do it helps.
- Improved: Don’t expand the browser UI when a page reload is needed. That was pretty distracting.
1.1.0-beta.4
- Changed: The WebSocket URL now uses
/elm-watch
as path, which helps people running elm-watch behind a proxy and need to do path matching to route to elm-watch and other origins.
1.1.0-beta.3
- Improved: Documentation links now go to https://lydell.github.io/elm-watch/ instead of to the readme.
1.1.0-beta.2
- Fixed:
../
in"source-directories"
in elm.json is now supported. Previously, elm-watch would never react to changes to files above elm.json.
1.1.0-beta.1
Note: If you use elm-watch together with run-pty, make sure to update run-pty to 4.0.2 or later!
- Added: An opt-in error overlay in the browser, with clickable error locations. When elm-watch’s browser UI shows “🚨 Compilation error”, click the UI to expand it and then click the “Show errors” button. That opens an overlay which shows the compilation errors. The overlay is visible until you close it again, or until you fix all errors. elm-watch remembers your choice to show errors in the browser per target, and opens the overlay again when there are new errors if you had previously opted to show it. Cool detail: The overlay uses the color theme from your terminal if possible! (That’s why run-pty needs to be updated – to support extracting the colors.)
- Added: Buttons for moving the browser UI to another corner. If you’ve ever felt that the elm-watch browser UI was in the way, you can now move it to another corner. The position is remembered per target across page reloads.
- Added: Support for running elm-watch in a Web Worker. Web Workers have no DOM, so you won’t get elm-watch’s browser UI. Instead, elm-watch gives you updates through browser console logs.
- Added: Better support for HTTPS.
- Fixed: Catch syntax errors when hot reloading.
- Fixed: On the iPhone, if the phone locks while elm-watch is waiting for compilation to finish, the elm-watch browser UI used to be stuck in the “⏳ Waiting for compilation” state. Now, the browser UI should always update when coming back to the page.
- Fixed: Various edge cases around “elm.json related errors”.
- Improved: If you accidentally run your dev server with HTTP caching, elm-watch no longer gets stuck in a reload loop and instead shows you a helpful error message.
- Fixed: If you rename a target after you have opened it in the browser, elm-watch no longer gets stuck in a weird state. elm-watch used to just complain about target names not matching up, and the only way to fix it was to remove the output JavaScript file. Now the error message tells you to reload the page, and once you do it starts working again with the new target name.
- Improved: Elm can crash while printing JSON. If you run into such an Elm bug, elm-watch output is now easier to understand: It mentions that “Elm crashed” and shows Elm’s crash message, rather than text about the JSON unexpectedly being cut off.
- Improved: The error message for when window.Elm is undefined.
Install the latest beta:
npm install elm-watch@beta
Or install this version specifically:
npm install [email protected]
Install latest run-pty (if you use it):
npm install run-pty@latest
1.0.2
1.0.1
1.0.0
🎉 elm-watch is now out of beta!
- Fixed: elm-watch now reconnects the Web Socket properly on iOS after locking the device for a while, or switching to the home screen or another app for a while. Previously, it sometimes looked as if elm-watch was connected, but you never got any hot reloading and switching compilation mode did not work.
1.0.0-beta.15
- Added: An animation indicating that there are compilation errors, as well as one indicating that a successful hot reload went through.
1.0.0-beta.14
- Improved: elm-watch now detects Windows Terminal and gives fancier output there. Previously, it treated all terminals on Windows as if they were as bad as elm.exe.
- Improved: The CSS of the browser UI. If you move the browser UI using CSS to a top corner, it now looks better (no missing borders). It even detects that you’re on the top half of the screen and expands the UI downwards instead of upwards!