substack/watchify — pull request #86 by Raynos (2014-08-31 21:53:05+00:00)
Title: Expose pending flag.

There is a 600ms delay between a save and the bundle being upto date.

If I refresh my browser within that 600ms window I will get a stale bundle and this can lead to confusion.

Ideally I want my "smart" static browserify http server to check for `isPending()` and refuse to send the javascript file until an `"update"` event has fired.

This means it will slow down serving the javascript file by upto 600 milliseconds but the file will never be stale.

For my use case being able to ensure that I never sent stale files to a browser is important.