Comparing version 2.1.6 to 2.2.0
## History | ||
- v2.2.0 December 15, 2012 | ||
- We now ignore common ignore patterns by default | ||
- `ignorePatterns` configuration option renamed to `ignoreCommonPatterns` | ||
- Added new `ignoreCustomPatterns` configuration option | ||
- Updated dependencies | ||
- [bal-util](https://github.com/balupton/bal-util) from 1.13.x to 1.15.x | ||
- Closes [issue #22](https://github.com/bevry/watchr/issues/22) and [issue #21](https://github.com/bevry/watchr/issues/21) | ||
- Thanks [Andrew Petersen](https://github.com/kirbysayshi), [Sascha Depold](https://github.com/sdepold), [Raynos](https://github.com/Raynos), and [Prajwalit](https://github.com/prajwalit) for your help! | ||
- v2.1.6 November 6, 2012 | ||
@@ -4,0 +13,0 @@ - Added missing `bin` configuration |
@@ -50,3 +50,3 @@ // Generated by CoffeeScript 1.4.0 | ||
function _Class(config, next) { | ||
var applyStat, listener, watcher, _base, _base1, _base2, _base3, _i, _len, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, | ||
var applyStat, listener, watcher, _base, _base1, _base2, _base3, _base4, _i, _len, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, | ||
_this = this; | ||
@@ -68,11 +68,14 @@ _ref = balUtil.extractOptsAndCallback(config, next), config = _ref[0], next = _ref[1]; | ||
} | ||
if ((_ref2 = (_base1 = this.config).ignorePatterns) == null) { | ||
_base1.ignorePatterns = false; | ||
if ((_ref2 = (_base1 = this.config).ignoreCommonPatterns) == null) { | ||
_base1.ignoreCommonPatterns = true; | ||
} | ||
if ((_ref3 = (_base2 = this.config).interval) == null) { | ||
_base2.interval = 100; | ||
if ((_ref3 = (_base2 = this.config).ignoreCustomPatterns) == null) { | ||
_base2.ignoreCustomPatterns = null; | ||
} | ||
if ((_ref4 = (_base3 = this.config).persistent) == null) { | ||
_base3.persistent = true; | ||
if ((_ref4 = (_base3 = this.config).interval) == null) { | ||
_base3.interval = 100; | ||
} | ||
if ((_ref5 = (_base4 = this.config).persistent) == null) { | ||
_base4.persistent = true; | ||
} | ||
if (config.listener) { | ||
@@ -82,5 +85,5 @@ this.listen(config.listener); | ||
if (config.listeners) { | ||
_ref5 = config.listeners; | ||
for (_i = 0, _len = _ref5.length; _i < _len; _i++) { | ||
listener = _ref5[_i]; | ||
_ref6 = config.listeners; | ||
for (_i = 0, _len = _ref6.length; _i < _len; _i++) { | ||
listener = _ref6[_i]; | ||
this.listen(listener); | ||
@@ -279,3 +282,4 @@ } | ||
ignoreHiddenFiles: config.ignoreHiddenFiles, | ||
ignorePatterns: config.ignorePatterns, | ||
ignoreCommonPatterns: config.ignoreCommonPatterns, | ||
ignoreCustomPatterns: config.ignoreCustomPatterns, | ||
next: function(err, watcher) { | ||
@@ -310,3 +314,4 @@ if (err) { | ||
ignoreHiddenFiles: config.ignoreHiddenFiles, | ||
ignorePatterns: config.ignorePatterns, | ||
ignoreCommonPatterns: config.ignoreCommonPatterns, | ||
ignoreCustomPatterns: config.ignoreCustomPatterns, | ||
recurse: false, | ||
@@ -313,0 +318,0 @@ next: function(err) { |
{ | ||
"name": "watchr", | ||
"version": "2.1.6", | ||
"version": "2.2.0", | ||
"description": "Better file system watching for Node.js", | ||
@@ -33,3 +33,3 @@ "homepage": "https://github.com/bevry/watchr", | ||
"dependencies": { | ||
"bal-util": "1.13.x" | ||
"bal-util": "1.15.x" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
@@ -14,3 +14,4 @@ ## Watchr; better file system watching for Node.js | ||
- `ignoreHiddenFiles` (optional, defaults to `false`) whether or not to ignored files which filename starts with a `.` | ||
- `ignorePatterns` (optional, defaults to `false`) whether or not to ignore common undesirable file patterns (e.g. `.svn`, `.git`, `.DS_Store`, `thumbs.db`, etc) | ||
- `ignoreCommonPatterns` (optional, defaults to `true`) whether or not to ignore common undesirable file patterns (e.g. `.svn`, `.git`, `.DS_Store`, `thumbs.db`, etc) | ||
- `ignoreCustomPatterns` (optional, defaults to `null`) any custom ignore patterns that you would also like to ignore along with the common patterns | ||
- `interval` (optional, defaults to `100`) for systems that poll to detect file changes, how often should it poll in millseconds | ||
@@ -17,0 +18,0 @@ - `persistent` (optional, defaults to `true`) whether or not we should keep the node process alive for as long as files are still being watched |
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
22322
418
65
+ Addedbal-util@1.15.4(transitive)
- Removedbal-util@1.13.13(transitive)
Updatedbal-util@1.15.x