Comparing version 0.5.0 to 0.5.1
@@ -19,2 +19,8 @@ /* | ||
// shim setImmediate for node v0.8 | ||
var setImmediate = require('timers').setImmediate; | ||
if (typeof setImmediate !== 'function') { | ||
setImmediate = process.nextTick; | ||
} | ||
// globals | ||
@@ -340,5 +346,8 @@ var delay = 10; | ||
if (curWatched.length < 1) { | ||
self.emit('ready', self); | ||
if (done) { done.call(self, null, self); } | ||
self.emit('nomatch'); | ||
// Defer to emitting to give a chance to attach event handlers. | ||
setImmediate(function () { | ||
self.emit('ready', self); | ||
if (done) { done.call(self, null, self); } | ||
self.emit('nomatch'); | ||
}); | ||
return; | ||
@@ -345,0 +354,0 @@ } |
{ | ||
"name": "gaze", | ||
"description": "A globbing fs.watch wrapper built from the best parts of other fine watch libs.", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"homepage": "https://github.com/shama/gaze", | ||
@@ -38,3 +38,5 @@ "author": { | ||
"grunt-benchmark": "~0.2.0", | ||
"grunt-cli": "~0.1.13" | ||
"grunt-cli": "~0.1.13", | ||
"async": "~0.2.10", | ||
"rimraf": "~2.2.6" | ||
}, | ||
@@ -41,0 +43,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
# gaze [![Build Status](https://secure.travis-ci.org/shama/gaze.png?branch=master)](http://travis-ci.org/shama/gaze) | ||
# gaze [![Build Status](https://travis-ci.org/shama/gaze.png?branch=master)](https://travis-ci.org/shama/gaze) | ||
@@ -156,2 +156,3 @@ A globbing fs.watch wrapper built from the best parts of other fine watch libs. | ||
## Release History | ||
* 0.5.1 - Use setImmediate (process.nextTick for node v0.8) to defer ready/nomatch events (@amasad). | ||
* 0.5.0 - Process is now kept alive while watching files. Emits a nomatch event when no files are matching. | ||
@@ -158,0 +159,0 @@ * 0.4.3 - Track file additions in newly created folders (@brett-shwom). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23172
445
181
0
7