Permalink
Browse files

fixing deprecation of recursive use of "nextTick" to use "setImmediate"

  • Loading branch information...
1 parent b324e16 commit 734515f40a150f66002f0c29282271e2b019fc93 @mrak committed Mar 16, 2013
Showing with 6 additions and 2 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +1 −1 spec/helpers/waits-for.coffee
View
@@ -1,5 +1,9 @@
# Changelog
+## 0.1.45
+
+* fixed a bug involving recursive use of `process.nextTick`
+
## 0.1.44
* line endings are normalized to `\n` and trailing whitespace is trimmed from the end when matching request's post/file contents
View
@@ -1,7 +1,7 @@
{
"name": "stubby",
"preferGlobal": true,
- "version": "0.1.44",
+ "version": "0.1.45",
"author": {
"name": "Eric Mrak",
"email": "enmrak@gmail.com"
@@ -12,4 +12,4 @@ module.exports = waitsFor = (fn, message, range, finish, time = process.hrtime()
assert elapsed > min, "Condition succeeded before #{min}ms were up"
return finish()
- process.nextTick -> waitsFor.call @, fn, message, range, finish, time
+ setImmediate -> waitsFor.call @, fn, message, range, finish, time

0 comments on commit 734515f

Please sign in to comment.