Hi all, not sure if a bug or a feature but your latest release seems to drop support for node.js 0.12.9. It was working fine until yesterday but now we get:
nothing/to/see/here/node_modules/browser-sync/node_modules/portscanner/node_modules/is-number-like/lib/index.js:2
const isNumber = require('lodash.isfinite')
^^^^^
SyntaxError: Use of const in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/nothing/to/see/here/node_modules/browser-sync/node_modules/portscanner/lib/portscanner.js:4:20)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
Perhaps you want to check your semver, or perhaps this was intentional (as LTS support has ended). We've had to downgrade until we can upgrade our nodejs.
_Please provide necessary steps for reproduction of this issue, or better the
reduced test case (without any external dependencies)_.
@shakyShane thanks for looking into this. I noticed the same issue starting today when we deploy.
What caused this on: https://github.com/vigour-io/is-number-like/issues/3 (in case you haven't had time to look into this).
I am also getting this error, it looks like portscanner was updated to 2.1.1 which now includes in-number-like and thats breaking things.
There is a pull request on is-number-like which fixes root cause of the issue.
https://github.com/vigour-io/is-number-like/pull/7
One of the authors of is-number-like said that he will merge the pull request in a couple of hours
@marioagarcia thanks, let's wait till that happens.
I'm eager to fix this, but out of interest, what is keeping you all on < node 4?
There will come a time very soon when more and more libraries/tools will stop supporting 0.10 & 0.12, so I would suggest updating as soon as possible :)
@shakyShane Mainly constrained by operations backlog though there are definitely some dependency issues w/ 4.x.x in one or two projects that are currently on 0.12.x. Upgrading is definitely on the radar since LTS/maintenance ends this month.
I merged it sorry for the pkg -- been so long since io.js we sort of forgot about older versions :/
thanks @jimdebeer @shakyShane and all browser-sync folks; we the users really appreciate your work!
More than welcome. We do open source to help, that's all that matters.
now the fix is out, there's nothing I can do from a Browsersync point of view, better to just re-install and you'll get the upstream fixes (as port-scanner is using ^ dep guard)
Thanks for the speedy response @jimdebeer
Most helpful comment
There is a pull request on is-number-like which fixes root cause of the issue.
https://github.com/vigour-io/is-number-like/pull/7