platform/upstream/nodejs.git
9 years agodoc: add ChALkeR as collaborator
Сковорода Никита Андреевич [Tue, 9 Jun 2015 20:50:02 +0000 (23:50 +0300)]
doc: add ChALkeR as collaborator

Using the non-transliterated name as requested.

The transliteration is "Nikita Skovoroda" (first and last name),
if anyone will want to organize non-ASCII names.

PR-URL: https://github.com/nodejs/io.js/pull/1927
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agodoc: remove irrelevant SEMVER-MINOR & MAJOR
Rod Vagg [Sat, 13 Jun 2015 05:41:05 +0000 (15:41 +1000)]
doc: remove irrelevant SEMVER-MINOR & MAJOR

9 years agoWorking on v2.3.1
Rod Vagg [Sat, 13 Jun 2015 04:14:45 +0000 (14:14 +1000)]
Working on v2.3.1

9 years ago2015-06-13 io.js v2.3.0 Release v2.3.0
Rod Vagg [Sat, 13 Jun 2015 04:09:33 +0000 (14:09 +1000)]
2015-06-13 io.js v2.3.0 Release

Notable Changes:

* libuv: Upgraded to 1.6.0 and 1.6.1, see full ChangeLog for details.
  (Saúl Ibarra Corretgé) #1905 #1889. Highlights include:
  - Fix TTY becoming blocked on OS X
  - Fix UDP send callbacks to not to be synchronous
  - Add uv_os_homedir() (exposed as os.homedir(), see below)
* npm: See full release notes for details. (Kat Marchán) #1899. Highlight:
  - Use GIT_SSH_COMMAND (available as of Git 2.3)
* openssl:
  - Upgrade to 1.0.2b and 1.0.2c, introduces DHE man-in-the-middle protection
    (Logjam) and fixes malformed ECParameters causing infinite loop
    (CVE-2015-1788). See the security advisory for full details.
    (Shigeki Ohtsu) #1950 #1958
  - Support FIPS mode of OpenSSL, see README for instructions.
    (Fedor Indutny) #1890
* os: Add os.homedir() method. (Colin Ihrig) #1791
* smalloc: Deprecate whole module. (Vladimir Kurchatkin) #1822
* Add new collaborators:
  - Alex Kocharin (@rlidwka)
  - Christopher Monsanto (@monsanto)
  - Ali Ijaz Sheikh (@ofrobots)
  - Oleg Elifantiev (@Olegas)
  - Domenic Denicola (@domenic)
  - Rich Trott (@Trott)

9 years ago2015-06-12 io.js v2.3.0 Release
Rod Vagg [Fri, 12 Jun 2015 05:01:26 +0000 (15:01 +1000)]
2015-06-12 io.js v2.3.0 Release

9 years agotest: add test for failed save in REPL
Rich Trott [Thu, 28 May 2015 02:20:28 +0000 (19:20 -0700)]
test: add test for failed save in REPL

PR-URL: https://github.com/nodejs/io.js/pull/1818
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agodoc: add Trott as collaborator
Rich Trott [Fri, 12 Jun 2015 22:49:58 +0000 (15:49 -0700)]
doc: add Trott as collaborator

PR-URL: https://github.com/nodejs/io.js/pull/1962
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agoRevert "readline: allow tabs in input"
Jeremiah Senkpiel [Fri, 12 Jun 2015 21:21:50 +0000 (14:21 -0700)]
Revert "readline: allow tabs in input"

This reverts commit 4b3d493c4b5996d00dc6eac3a7600b124ed4c5b7.

PR-URL: https://github.com/nodejs/io.js/pull/1961
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
9 years agonode: mark promises as handled as soon as possible
Vladimir Kurchatkin [Thu, 11 Jun 2015 20:08:17 +0000 (23:08 +0300)]
node: mark promises as handled as soon as possible

Fixes: https://github.com/nodejs/io.js/issues/1912
PR-URL: https://github.com/nodejs/io.js/pull/1952
Reviewed-By: Domenic Denicola <d@domenic.me>
Reviewed-By: Petka Antonov <petka_antonov@hotmail.com>
9 years agotest: fix cluster-worker-wait-server-close races
Sam Roberts [Thu, 11 Jun 2015 21:43:09 +0000 (14:43 -0700)]
test: fix cluster-worker-wait-server-close races

Wait for data to arrive from worker before doing a disconnect. Without
this, whether the disconnect arrives at the worker before the master
accepts and forwards the connection descriptor to the worker is a race.

Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: https://github.com/nodejs/io.js/pull/1953
Fixes: https://github.com/nodejs/io.js/issues/1933
Fixes: https://github.com/nodejs/io.js/pull/1400

9 years agodeps: update UPGRADING.md doc to openssl-1.0.2c
Shigeki Ohtsu [Thu, 11 Jun 2015 16:04:52 +0000 (01:04 +0900)]
deps: update UPGRADING.md doc to openssl-1.0.2c

PR-URL: https://github.com/nodejs/io.js/pull/1958
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years agodeps: replace all headers in openssl
Shigeki Ohtsu [Fri, 12 Jun 2015 16:12:57 +0000 (01:12 +0900)]
deps: replace all headers in openssl

Change all openssl/include/openssl/*.h to include resolved symbolic
links and openssl/crypto/opensslconf.h to refer config/opensslconf.h

PR-URL: https://github.com/nodejs/io.js/pull/1958
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years agodeps: add -no_rand_screen to openssl s_client
Shigeki Ohtsu [Wed, 27 May 2015 01:33:38 +0000 (10:33 +0900)]
deps: add -no_rand_screen to openssl s_client

In openssl s_client on Windows, RAND_screen() is invoked to initialize
random state but it takes several seconds in each connection.
This added -no_rand_screen to openssl s_client on Windows to skip
RAND_screen() and gets a better performance in the unit test of
test-tls-server-verify.
Do not enable this except to use in the unit test.

Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agoopenssl: fix keypress requirement in apps on win32
Shigeki Ohtsu [Tue, 17 Feb 2015 02:30:28 +0000 (11:30 +0900)]
openssl: fix keypress requirement in apps on win32

Reapply b910613792dac946b295855963869933a9089044 .

Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: fix asm build error of openssl in x86_win32
Shigeki Ohtsu [Fri, 13 Feb 2015 09:33:59 +0000 (18:33 +0900)]
deps: fix asm build error of openssl in x86_win32

See
https://mta.openssl.org/pipermail/openssl-dev/2015-February/000651.html

iojs needs to stop using masm and move to nasm or yasm on Win32.

Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: fix openssl assembly error on ia32 win32
Fedor Indutny [Wed, 8 Jan 2014 19:05:01 +0000 (23:05 +0400)]
deps: fix openssl assembly error on ia32 win32

`x86masm.pl` was mistakenly using .486 instruction set, why `cpuid` (and
perhaps others) are requiring .686 .

Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
9 years agodeps: upgrade openssl sources to 1.0.2c
Shigeki Ohtsu [Fri, 12 Jun 2015 15:56:07 +0000 (00:56 +0900)]
deps: upgrade openssl sources to 1.0.2c

This just replaces all sources of openssl-1.0.2c.tar.gz
into deps/openssl/openssl

PR-URL: https://github.com/nodejs/io.js/pull/1958
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years agodeps: update asm files for openssl-1.0.2b
Shigeki Ohtsu [Thu, 11 Jun 2015 15:09:20 +0000 (00:09 +0900)]
deps: update asm files for openssl-1.0.2b

asm files are generated as
  - In `deps/openssl/asm/`, make with CC=gcc and ASM=nasm
  - In `deps/openssl/asm_obsolute/`, make with no envs for compilers

Fixes: https://github.com/nodejs/io.js/issues/1921
PR-URL: https://github.com/nodejs/io.js/pull/1950
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: replace all headers in openssl
Shigeki Ohtsu [Thu, 11 Jun 2015 15:07:42 +0000 (00:07 +0900)]
deps: replace all headers in openssl

Change all openssl/include/openssl/*.h to include resolved symbolic
links and openssl/crypto/opensslconf.h to refer config/opensslconf.h

Fixes: https://github.com/nodejs/io.js/issues/1921
PR-URL: https://github.com/nodejs/io.js/pull/1950
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: add -no_rand_screen to openssl s_client
Shigeki Ohtsu [Wed, 27 May 2015 01:33:38 +0000 (10:33 +0900)]
deps: add -no_rand_screen to openssl s_client

In openssl s_client on Windows, RAND_screen() is invoked to initialize
random state but it takes several seconds in each connection.
This added -no_rand_screen to openssl s_client on Windows to skip
RAND_screen() and gets a better performance in the unit test of
test-tls-server-verify.
Do not enable this except to use in the unit test.

Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agoopenssl: fix keypress requirement in apps on win32
Shigeki Ohtsu [Tue, 17 Feb 2015 02:30:28 +0000 (11:30 +0900)]
openssl: fix keypress requirement in apps on win32

Reapply b910613792dac946b295855963869933a9089044 .

Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: fix asm build error of openssl in x86_win32
Shigeki Ohtsu [Fri, 13 Feb 2015 09:33:59 +0000 (18:33 +0900)]
deps: fix asm build error of openssl in x86_win32

See
https://mta.openssl.org/pipermail/openssl-dev/2015-February/000651.html

iojs needs to stop using masm and move to nasm or yasm on Win32.

Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: fix openssl assembly error on ia32 win32
Fedor Indutny [Wed, 8 Jan 2014 19:05:01 +0000 (23:05 +0400)]
deps: fix openssl assembly error on ia32 win32

`x86masm.pl` was mistakenly using .486 instruction set, why `cpuid` (and
perhaps others) are requiring .686 .

Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
9 years agodeps: upgrade openssl sources to 1.0.2b
Shigeki Ohtsu [Thu, 11 Jun 2015 15:00:05 +0000 (00:00 +0900)]
deps: upgrade openssl sources to 1.0.2b

This just replaces all sources of openssl-1.0.2b.tar.gz
into deps/openssl/openssl

Fixes: https://github.com/nodejs/io.js/issues/1921
PR-URL: https://github.com/nodejs/io.js/pull/1950
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotest: create temp dir in common.js
Rich Trott [Wed, 3 Jun 2015 03:44:03 +0000 (20:44 -0700)]
test: create temp dir in common.js

Move creation of temporary directories for tests
out of the Python harness and into common.js. This
allows all tests to be run reliably outside of the
Python wrapper.

PR-URL: https://github.com/nodejs/io.js/pull/1877
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 years agotools: enable/add additional eslint rules
Roman Reiss [Thu, 11 Jun 2015 17:08:25 +0000 (19:08 +0200)]
tools: enable/add additional eslint rules

Enables the following rules:

- no-undef: Valuable rule to error on usage of undefined variables
- require-buffer: Custom rule that forbids usage of the global Buffer
  inside lib/ because of REPL issues.

PR-URL: https://github.com/nodejs/io.js/pull/1794
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agolib: don't use global Buffer
Roman Reiss [Fri, 29 May 2015 17:35:43 +0000 (19:35 +0200)]
lib: don't use global Buffer

Port of https://github.com/joyent/node/pull/8603

The race condition present in the original PR didn't occur, so no
workaround was needed.

PR-URL: https://github.com/nodejs/io.js/pull/1794
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agotest: fix undeclared variable access
Roman Reiss [Fri, 29 May 2015 17:28:01 +0000 (19:28 +0200)]
test: fix undeclared variable access

Fixes all cases of undeclared variable access as uncovered by the
no-undef rule of eslint.

PR-URL: https://github.com/nodejs/io.js/pull/1794
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agotls: fix references to undefined `cb`
Fedor Indutny [Thu, 11 Jun 2015 16:45:57 +0000 (18:45 +0200)]
tls: fix references to undefined `cb`

5795e835a1021abdf803e1460501487adbac8d7c introduced unintentional
copy-paste bug. `cb` is not actually present in those functions and
should not be called, the socket should be destroy instead.

PR-URL: https://github.com/nodejs/io.js/pull/1951
Reviewed-By: Roman Reiss <me@silverwind.io>
9 years agocrypto: support FIPS mode of OpenSSL
Fedor Indutny [Mon, 1 Jun 2015 21:49:43 +0000 (23:49 +0200)]
crypto: support FIPS mode of OpenSSL

Support building and running with FIPS-compliant OpenSSL. The process is
following:

1. Download and verify `openssl-fips-x.x.x.tar.gz` from
   https://www.openssl.org/source/
2. Extract source to `openssl-fips` folder
3. ``cd openssl-fips && ./config fipscanisterbuild --prefix=`pwd`/out``
   (NOTE: On OS X, you may want to run
    ``./Configure darwin64-x86_64-cc --prefix=`pwd`/out`` if you are going to
    build x64-mode io.js)
4. `make -j && make install`
5. Get into io.js checkout folder
6. `./configure --openssl-fips=/path/to/openssl-fips/out`
7. Build io.js with `make -j`
8. Verify with `node -p "process.versions.openssl"` (`1.0.2a-fips`)

Fix: https://github.com/joyent/node/issues/25463
PR-URL: https://github.com/nodejs/io.js/pull/1890
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
9 years agofs: make SyncWriteStream non-enumerable
Sakthipriyan Vairamani [Wed, 3 Jun 2015 14:57:44 +0000 (20:27 +0530)]
fs: make SyncWriteStream non-enumerable

Make SyncWriteStream non-enumerable since it's only for internal use.

PR-URL: https://github.com/nodejs/io.js/pull/1870
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agofs: minor refactoring
Sakthipriyan Vairamani [Tue, 2 Jun 2015 22:11:04 +0000 (03:41 +0530)]
fs: minor refactoring

1. Remove a few unnecessary variables to reduce LoC.

2. Remove redundant `var` definitions of variables in same function.

3. Refactor variables which are defined inside a block and used outside
as well.

4. Refactor effect-less code.

5. In `rethrow` function, instead of assigning to `err` and throwing
`err` directly throw `backtrace` object.

6. Reassign a defined parameter while also mentioning arguments in the
body is one of the optimization killers. So, changing `callback` to
`callback_` and declaring a new variable called `callback` in the body.

PR-URL: https://github.com/nodejs/io.js/pull/1870
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agofs: remove inStatWatchers and use Map for lookup
Sakthipriyan Vairamani [Tue, 2 Jun 2015 17:02:15 +0000 (22:32 +0530)]
fs: remove inStatWatchers and use Map for lookup

Remove `inStatWatchers` function and make `statWatchers` a `Map`.

PR-URL: https://github.com/nodejs/io.js/pull/1870
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agofs: removing unnecessary nullCheckCallNT
Sakthipriyan Vairamani [Tue, 2 Jun 2015 15:15:21 +0000 (20:45 +0530)]
fs: removing unnecessary nullCheckCallNT

`nullCheckCallNT()` function is not necessary, as we can directly pass
`callback` and `er` to `process.nextTick()`.

PR-URL: https://github.com/nodejs/io.js/pull/1870
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agofs: improve error message descriptions
Sakthipriyan Vairamani [Tue, 2 Jun 2015 15:13:46 +0000 (20:43 +0530)]
fs: improve error message descriptions

1. Change "Bad arguments" error messages to a more helpful message
"options should either be an object or a string".

2. Make braces consistent.

3. Return meaningful error message from fs_event_wrap's
FSEvent's Start function.

PR-URL: https://github.com/nodejs/io.js/pull/1870
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agodoc: add domenic as collaborator
Domenic Denicola [Wed, 10 Jun 2015 20:20:17 +0000 (16:20 -0400)]
doc: add domenic as collaborator

PR-URL: https://github.com/nodejs/io.js/pull/1942
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodoc: add Olegas as collaborator
Oleg Elifantiev [Tue, 9 Jun 2015 21:21:48 +0000 (00:21 +0300)]
doc: add Olegas as collaborator

PR-URL: https://github.com/nodejs/io.js/pull/1930
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Christian Tellnes <christian@tellnes.no>
9 years agowin,node-gyp: enable delay-load hook by default
Bert Belder [Wed, 15 Apr 2015 20:58:50 +0000 (13:58 -0700)]
win,node-gyp: enable delay-load hook by default

The delay-load hook allows node.exe/iojs.exe to be renamed. See efadffe
for more background.

PR-URL: https://github.com/iojs/io.js/pull/1433
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: make node-gyp work with io.js
cjihrig [Fri, 27 Feb 2015 18:40:58 +0000 (13:40 -0500)]
deps: make node-gyp work with io.js

Every npm version bump requires a few patches to be floated on
node-gyp for io.js compatibility. These patches are found in
03d199276e21c1fa08d8df14eeb654c90cc5aa20,
5de334c23096492014a097ff487f07ad8eaee6d2, and
da730c76e98fb9fd18dac445dafbbec74d79f802. This commit squashes
them into a single commit.

PR-URL: https://github.com/iojs/io.js/pull/990
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: upgrade to npm 2.11.1
Kat Marchán [Fri, 5 Jun 2015 02:04:48 +0000 (19:04 -0700)]
deps: upgrade to npm 2.11.1

PR-URL: https://github.com/nodejs/io.js/pull/1899
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Forrest L Norvell <forrest@npmjs.com>
9 years agodoc: add ofrobots as collaborator
Ali Ijaz Sheikh [Tue, 9 Jun 2015 22:32:46 +0000 (15:32 -0700)]
doc: add ofrobots as collaborator

PR-URL: nodejs#1928
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 years agodoc: add monsanto as collaborator
Christopher Monsanto [Tue, 9 Jun 2015 21:44:42 +0000 (17:44 -0400)]
doc: add monsanto as collaborator

PR-URL: https://github.com/nodejs/io.js/pull/1932
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
9 years agodoc: add rlidwka as collaborator
Alex Kocharin [Tue, 9 Jun 2015 21:09:42 +0000 (00:09 +0300)]
doc: add rlidwka as collaborator

PR-URL: https://github.com/nodejs/io.js/pull/1929
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 years agodoc: add references to crypto.getCurves()
Roman Reiss [Mon, 8 Jun 2015 20:24:03 +0000 (22:24 +0200)]
doc: add references to crypto.getCurves()

This adds references to the newly available crypto.getCurves method
where appropriate.

PR-URL: https://github.com/nodejs/io.js/pull/1918
Reviewed-By: Brian White <mscdex@mscdex.net>
9 years agocluster: wait on servers closing before disconnect
Oleg Elifantiev [Tue, 2 Jun 2015 20:23:31 +0000 (23:23 +0300)]
cluster: wait on servers closing before disconnect

Before this, cluster behaves not the way it is documented.  When
disconnect is triggered, worker must wait for every server is closed
before doing disconnect actually.

Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: https://github.com/nodejs/io.js/pull/1400
Fixes: https://github.com/nodejs/io.js/issues/1305

9 years agotest: remove TODO comment
Rich Trott [Tue, 2 Jun 2015 05:34:20 +0000 (22:34 -0700)]
test: remove TODO comment

The comment suggests adding randomness to the test suite.

PR-URL: https://github.com/nodejs/io.js/pull/1820
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
9 years agocrypto: add getCurves() to get supported ECs
Brian White [Mon, 8 Jun 2015 16:26:16 +0000 (12:26 -0400)]
crypto: add getCurves() to get supported ECs

PR-URL: https://github.com/nodejs/io.js/pull/1914
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodoc: remove comma splice
Rich Trott [Thu, 4 Jun 2015 20:26:36 +0000 (13:26 -0700)]
doc: remove comma splice

Remove comma splice. Edit for clarity and concision.

PR-URL: https://github.com/nodejs/io.js/pull/1900
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agodoc: add note about available ECC curves
Ryan Petschek [Sun, 7 Jun 2015 17:00:16 +0000 (13:00 -0400)]
doc: add note about available ECC curves

Added instructions on how to get the elliptic curves supported by the
OpenSSL installation in the crypto.createECDH() constructor. Also made
a few minor grammar fixes within the same paragraph.

PR-URL: https://github.com/nodejs/io.js/pull/1913
Reviewed-By: Roman Reiss <me@silverwind.io>
9 years agoreadline: allow tabs in input
Rich Trott [Thu, 21 May 2015 04:17:10 +0000 (21:17 -0700)]
readline: allow tabs in input

If tab completion is not being used, allow user to enter tab
characters.

PR-URL: https://github.com/nodejs/io.js/pull/1761
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
9 years agoos: add homedir()
cjihrig [Mon, 25 May 2015 15:01:42 +0000 (11:01 -0400)]
os: add homedir()

os.homedir() calls libuv's uv_os_homedir() to retrieve the current
user's home directory.

PR-URL: https://github.com/nodejs/io.js/pull/1791
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agogitignore: don't ignore the debug npm module
Kat Marchán [Fri, 5 Jun 2015 22:57:07 +0000 (15:57 -0700)]
gitignore: don't ignore the debug npm module

On case insensitive platforms, the rule was catching the debug module
under npm and eslint.

See: https://github.com/nodejs/io.js/pull/1899#issuecomment-109475863
PR-URL: https://github.com/nodejs/io.js/pull/1908
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 years agodeps: update libuv to version 1.6.1
Saúl Ibarra Corretgé [Fri, 5 Jun 2015 17:47:33 +0000 (19:47 +0200)]
deps: update libuv to version 1.6.1

PR-URL: https://github.com/nodejs/io.js/pull/1905
Refs: https://github.com/nodejs/io.js/pull/1791
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 years agofs: use `kMaxLength` from binding
Vladimir Kurchatkin [Fri, 5 Jun 2015 07:37:11 +0000 (10:37 +0300)]
fs: use `kMaxLength` from binding

This allows `graceful-fs` to evaluate `fs` source
without access to internals.

This is a temporary workaround that makes npm work.

See: https://github.com/isaacs/node-graceful-fs/issues/41
Fixes: https://github.com/nodejs/io.js/issues/1898
PR-URL: https://github.com/nodejs/io.js/pull/1903
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodebugger: improve ESRCH error message
Jackson Tian [Mon, 1 Jun 2015 14:12:25 +0000 (22:12 +0800)]
debugger: improve ESRCH error message

When using `iojs debug -p <pid>` with an invalid pid, the debugger
printed an internal error message because it wasn't smart enough
to figure out that the target process didn't exist.  Now it is.

PR-URL: https://github.com/nodejs/io.js/pull/1863
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
9 years agofs: Add string encoding option for Stream method
Yosuke Furukawa [Mon, 13 Apr 2015 17:46:52 +0000 (02:46 +0900)]
fs: Add string encoding option for Stream method

Add string encoding option for fs.createReadStream and
fs.createWriteStream. and check argument type more strictly

PR-URL: https://github.com/nodejs/io.js/pull/1845
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 years agotls_wrap: invoke queued callbacks in DestroySSL
Fedor Indutny [Tue, 19 May 2015 11:18:42 +0000 (13:18 +0200)]
tls_wrap: invoke queued callbacks in DestroySSL

PR-URL: https://github.com/nodejs/io.js/pull/1702
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agotls: prevent use-after-free
Fedor Indutny [Mon, 18 May 2015 18:24:19 +0000 (20:24 +0200)]
tls: prevent use-after-free

* Destroy `SSL*` and friends on a next tick to make sure that we are not
  doing it in one of the OpenSSL callbacks
* Add more checks to the C++ methods that might be invoked during
  destructor's pending queue cleanup

Fix: https://github.com/joyent/node/issues/8780
Fix: https://github.com/iojs/io.js/issues/1696
PR-URL: https://github.com/nodejs/io.js/pull/1702
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agotls: emit errors on close whilst async action
Fedor Indutny [Thu, 14 May 2015 08:38:18 +0000 (10:38 +0200)]
tls: emit errors on close whilst async action

When loading session, OCSP response, SNI, always check that the
`self._handle` is present. If it is not - the socket was closed - and we
should emit the error instead of throwing an uncaught exception.

Fix: https://github.com/joyent/node/issues/8780
Fix: https://github.com/iojs/io.js/issues/1696
PR-URL: https://github.com/nodejs/io.js/pull/1702
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agosmalloc: deprecate whole module
Vladimir Kurchatkin [Thu, 28 May 2015 14:20:57 +0000 (17:20 +0300)]
smalloc: deprecate whole module

It makes no sense to allow people use constants from
`smalloc`, since it will be removed completely eventually.

PR-URL: https://github.com/nodejs/io.js/pull/1822
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agoutil: introduce `printDeprecationMessage` function
Vladimir Kurchatkin [Thu, 28 May 2015 14:01:56 +0000 (17:01 +0300)]
util: introduce `printDeprecationMessage` function

`printDeprecationMessage` is used to deprecate modules
and execution branches.

PR-URL: https://github.com/nodejs/io.js/pull/1822
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotest: remove TODO
Rich Trott [Wed, 3 Jun 2015 01:02:48 +0000 (18:02 -0700)]
test: remove TODO

It's not clear what additional tests are wanted.
The current malformed URL test seems adequate.

PR-URL: https://github.com/nodejs/io.js/pull/1875
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
9 years agodgram: partially revert 18d457b
Saúl Ibarra Corretgé [Wed, 27 May 2015 07:43:02 +0000 (09:43 +0200)]
dgram: partially revert 18d457b

Revert "dgram: call send callback asynchronously" partially, since the
fix is now done in libuv.

Refs: https://github.com/nodejs/io.js/pull/1313
Refs: https://github.com/libuv/libuv/pull/371
PR-URL: https://github.com/nodejs/io.js/pull/1889
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 years agodeps: update libuv to version 1.6.0
Saúl Ibarra Corretgé [Wed, 3 Jun 2015 19:18:55 +0000 (21:18 +0200)]
deps: update libuv to version 1.6.0

Fixes: https://github.com/joyent/node/issues/9310
PR-URL: https://github.com/nodejs/io.js/pull/1889
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 years agotest: fix broken FreeBSD test
Santiago Gimeno [Wed, 3 Jun 2015 07:13:56 +0000 (09:13 +0200)]
test: fix broken FreeBSD test

Fixes net-server-max-connections-close-makes-more-available
Handles connection 'error' event so the test ends.

PR-URL: https://github.com/nodejs/io.js/pull/1881
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
9 years agotest: fix test-sync-io-option
Evan Lucas [Fri, 29 May 2015 20:08:16 +0000 (15:08 -0500)]
test: fix test-sync-io-option

This test was failing occasionally both locally and on CI. Switched
from using spawn to execFile for a more reliable test.

Fixes: https://github.com/nodejs/io.js/issues/1837
PR-URL: https://github.com/nodejs/io.js/pull/1840
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agotest: add -no_rand_screen for tls-server-verify
Shigeki Ohtsu [Wed, 27 May 2015 01:41:43 +0000 (10:41 +0900)]
test: add -no_rand_screen for tls-server-verify

This improves the performance of openssl s_client on Windows and
gains several seconds to finish test-tls-server-verify.

Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: add -no_rand_screen to openssl s_client
Shigeki Ohtsu [Wed, 27 May 2015 01:33:38 +0000 (10:33 +0900)]
deps: add -no_rand_screen to openssl s_client

In openssl s_client on Windows, RAND_screen() is invoked to initialize
random state but it takes several seconds in each connection.
This added -no_rand_screen to openssl s_client on Windows to skip
RAND_screen() and gets a better performance in the unit test of
test-tls-server-verify.
Do not enable this except to use in the unit test.

Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotest: kill child in tls-server-verify for speed up
Shigeki Ohtsu [Wed, 27 May 2015 01:16:51 +0000 (10:16 +0900)]
test: kill child in tls-server-verify for speed up

For better performance of the test, the parent kills child processes
so as not to wait them to be ended.

Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotest: improve console output of tls-server-verify
João Reis [Fri, 22 May 2015 13:43:16 +0000 (14:43 +0100)]
test: improve console output of tls-server-verify

When running in parallel, it is not easy to identify what server and
client failed when the test fails. This adds identifiers to all lines
of console output.

Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotest: run tls-server-verify servers in parallel
João Reis [Fri, 22 May 2015 13:28:11 +0000 (14:28 +0100)]
test: run tls-server-verify servers in parallel

Different servers must use different ports. Since we can count only on
common.PORT and common.PORT+1, run only 2 servers in parallel.

Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotest: running tls-server-verify clients in parallel
João Reis [Fri, 22 May 2015 13:16:07 +0000 (14:16 +0100)]
test: running tls-server-verify clients in parallel

OpenSSL s_client introduces some delay on Windows. With all clients
running sequentially, this delay is big enough to break CI. This fix runs
the clients in parallel (unless the test includes renegotiation),
reducing the total run time.

Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotest: remove hardwired references to 'iojs'
Rod Vagg [Wed, 3 Jun 2015 11:37:25 +0000 (21:37 +1000)]
test: remove hardwired references to 'iojs'

PR-URL: https://github.com/nodejs/io.js/pull/1882
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Roman Reiss <me@silverwind.io>
9 years agotest: more test coverage for maxConnections
Rich Trott [Sat, 30 May 2015 14:49:56 +0000 (07:49 -0700)]
test: more test coverage for maxConnections

If the server is not accepting connections because maxConnections
is exceeded, the server should start accepting connections again
when a connection closes.

PR-URL: https://github.com/nodejs/io.js/pull/1855
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
9 years agosrc: hide InitializeICUDirectory symbol
Ben Noordhuis [Wed, 27 May 2015 19:25:04 +0000 (21:25 +0200)]
src: hide InitializeICUDirectory symbol

Exporting it seems like an oversight.  It's not safe to call once
V8 is running so there doesn't seem to be a point in exporting it
to add-ons.  Un-export it.

PR-URL: https://github.com/nodejs/io.js/pull/1815
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 years agofs: set encoding on fs.createWriteStream
Yosuke Furukawa [Sat, 30 May 2015 17:12:07 +0000 (02:12 +0900)]
fs: set encoding on fs.createWriteStream

Enable encoding option on fs.createWriteStream.

PR-URL: https://github.com/nodejs/io.js/pull/1844
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 years agocrypto: update root certificates
Ben Noordhuis [Thu, 28 May 2015 12:11:20 +0000 (14:11 +0200)]
crypto: update root certificates

Update the list of root certificates in src/node_root_certs.h with
tools/mk-ca-bundle.pl.

PR-URL: https://github.com/nodejs/io.js/pull/1833
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
9 years agotools: update certdata.txt
Ben Noordhuis [Thu, 28 May 2015 12:08:45 +0000 (14:08 +0200)]
tools: update certdata.txt

This is the latest certdata.txt from [0], last updated on 2015-04-20.

[0] https://hg.mozilla.org/mozilla-central/raw-file/aa275ad846f1/security/nss/lib/ckfw/builtins/certdata.txt

PR-URL: https://github.com/nodejs/io.js/pull/1833
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
9 years agotools: customize mk-ca-bundle.pl
Ben Noordhuis [Wed, 25 Mar 2015 12:57:22 +0000 (13:57 +0100)]
tools: customize mk-ca-bundle.pl

Remove unneeded functionality and tweak the generated output so we
can #include it in C++ source code.

This commit essentially reapplies the changes from commit e159073
("tools: customize mk-ca-bundle.pl") to the updated script.

PR-URL: https://github.com/nodejs/io.js/pull/1833
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
9 years agotools: update mk-ca-bundle.pl to HEAD of upstream
Ben Noordhuis [Wed, 25 Mar 2015 12:31:13 +0000 (13:31 +0100)]
tools: update mk-ca-bundle.pl to HEAD of upstream

PR-URL: https://github.com/nodejs/io.js/pull/1833
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
9 years agotest: fix test-child-process-stdout-flush-exit
Santiago Gimeno [Tue, 2 Jun 2015 08:39:55 +0000 (10:39 +0200)]
test: fix test-child-process-stdout-flush-exit

Make sure all the stdout data is available before
performing the assertions.

Fixes: https://github.com/nodejs/io.js/issues/944
PR-URL: https://github.com/nodejs/io.js/pull/1868
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 years agotest: loosen condition to detect infinite loop
Yosuke Furukawa [Mon, 1 Jun 2015 04:19:23 +0000 (13:19 +0900)]
test: loosen condition to detect infinite loop

PR-URL: https://github.com/nodejs/io.js/pull/1857
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 years agodoc: fix http.IncomingMessage.socket documentation
Сковорода Никита Андреевич [Mon, 1 Jun 2015 20:54:27 +0000 (23:54 +0300)]
doc: fix http.IncomingMessage.socket documentation

Remove the reference to net.Socket.verifyPeer().
That was removed in ea540c9 and was missed in the 032f80e.

Refer to the net.Socket instance by the .socket property.
This avoids unneeded confusion.
'.socket' is the variant that is used internally.

Add a markdown link to net.Socket.getPeerCertificate().

PR-URL: https://github.com/nodejs/io.js/pull/1867
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotest: remove smalloc add-on test
Ben Noordhuis [Fri, 29 May 2015 12:34:35 +0000 (14:34 +0200)]
test: remove smalloc add-on test

The smalloc module is about to be deprecated and removed.  Remove the
add-on test now so it's not forgotten about in the upcoming purge.

PR-URL: https://github.com/nodejs/io.js/pull/1835
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agotest: remove unneeded comment task
Rich Trott [Mon, 1 Jun 2015 04:34:04 +0000 (21:34 -0700)]
test: remove unneeded comment task

PR-URL: https://github.com/nodejs/io.js/pull/1858
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 years agodocs: add return value for sync fs functions
Tyler Anton [Sun, 8 Mar 2015 02:52:18 +0000 (21:52 -0500)]
docs: add return value for sync fs functions

Clarify that synchronous functions in fs with no return value return
undefined.

Specify that fs.openSync() returns an integer and fs.existsSync()
returns true or false.

Fixes: https://github.com/joyent/node/issues/9313

PR: https://github.com/joyent/node/pull/9359
Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
PORT-FROM: joyent/node @ 51fe319faf4399fd027f8b32d1c425200b911e44
PR-URL: https://github.com/nodejs/io.js/pull/1770
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Conflicts:
doc/api/fs.markdown

9 years agodocs: delete unused/duplicate css files
Robert Kowalski [Wed, 7 Jan 2015 21:51:15 +0000 (22:51 +0100)]
docs: delete unused/duplicate css files

 - `sh.css` already exists in `api_assets`
 - `sh_vim-dark.css` is unused, but used in the repo `node-website`
        now

Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Signed-off-by: Julien Gilli <julien.gilli@joyent.com>
PORT-FROM: joyent/node @ 0c50195071a57bc40df82c8f57d341a435ff1eb6
PR-URL: https://github.com/nodejs/io.js/pull/1770
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 years agoRevert "src: add getopt option parser"
Evan Lucas [Mon, 1 Jun 2015 14:15:10 +0000 (09:15 -0500)]
Revert "src: add getopt option parser"

This reverts commit c0e7bf2d8ceb65ad3840bc4ebf3cbd9fef8e8c14.

There are a few edge cases that can cause a crash
and need to be properly handled.

PR-URL: https://github.com/nodejs/io.js/pull/1862
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agosrc: add getopt option parser
Evan Lucas [Tue, 19 May 2015 18:12:26 +0000 (13:12 -0500)]
src: add getopt option parser

Options have been moved into the NodeOptions class.
A new global, node_options now exists and is used
to access the options after the command line arguments
have been parsed.

PR-URL: https://github.com/nodejs/io.js/pull/1804
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodoc: adjust changelog to clarify `client` revert
Rod Vagg [Mon, 1 Jun 2015 05:47:12 +0000 (15:47 +1000)]
doc: adjust changelog to clarify `client` revert

PR-URL: https://github.com/nodejs/io.js/pull/1859
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
9 years agotools: Fix copying contents of deps/npm
thefourtheye [Sun, 31 May 2015 17:18:18 +0000 (22:48 +0530)]
tools: Fix copying contents of deps/npm

This fixes a platform inconsistency between BSD and GNU `cp` where
`deps/npm` would be copied into a subdirectory of `test-npm` on Linux,
but not on OS X.

PR-URL: https://github.com/nodejs/io.js/pull/1853
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
9 years agoWorking on v2.2.2
Rod Vagg [Mon, 1 Jun 2015 04:08:27 +0000 (14:08 +1000)]
Working on v2.2.2

9 years ago2015-06-01 io.js v2.2.1 Release v2.2.1
Rod Vagg [Mon, 1 Jun 2015 03:21:15 +0000 (13:21 +1000)]
2015-06-01 io.js v2.2.1 Release

PR-URL: https://github.com/nodejs/io.js/pull/1856

Notable Changes:

* http: reverts the removal of an undocumented `client` property on client
  connections, this property is being used in the wild, most notably by
  https://github.com/request/request which is used by npm.
  (Michaël Zasso) [#1852](nodejs#1852).

9 years agobuild: avoid passing empty strings to build flags
Johan Bergström [Mon, 25 May 2015 03:10:14 +0000 (13:10 +1000)]
build: avoid passing empty strings to build flags

While checking the return values from icu-i18n, we didn't
validate the content before passing it to the build system.

Also make cflags parsing more robust by avoiding empty strings.

Fixes: https://github.com/nodejs/io.js/issues/1787
PR-URL: https://github.com/nodejs/io.js/pull/1789
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agohttp: revert deprecation of client property
Michaël Zasso [Sun, 31 May 2015 11:25:27 +0000 (13:25 +0200)]
http: revert deprecation of client property

The improper deprecation of the property broke a feature in the
request module used by the bundled npm. This reverts the deprecation
part of this change.

PR-URL: https://github.com/nodejs/io.js/pull/1852
Fixes: https://github.com/nodejs/io.js/issues/1850
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Roman Reiss <me@silverwind.io>
9 years agodoc: put SEMVER-MINOR on pre-load module fix 2.2.0
Rod Vagg [Sun, 31 May 2015 06:04:57 +0000 (16:04 +1000)]
doc: put SEMVER-MINOR on pre-load module fix 2.2.0

9 years agoWorking on v2.2.1
Rod Vagg [Sun, 31 May 2015 06:03:28 +0000 (16:03 +1000)]
Working on v2.2.1

9 years ago2015-05-31 io.js v2.2.0 Release v2.2.0
Rod Vagg [Sun, 31 May 2015 05:23:39 +0000 (15:23 +1000)]
2015-05-31 io.js v2.2.0 Release

PR-URL: https://github.com/nodejs/io.js/pull/1808

Notable Changes:

* node: Speed-up require() by replacing usage of fs.statSync() and
  fs.readFileSync() with internal variants that are faster for this use-case
  and do not create as many objects for the garbage collector to clean up.
  The primary two benefits are: significant increase in application start-up
  time on typical applications and better start-up time for the debugger by
  eliminating almost all of the thousands of exception events.
  (Ben Noordhuis) #1801.
* node: Resolution of pre-load modules (-r or --require) now follows the
  standard require() rules rather than just resolving paths, so you can now
  pre-load modules in node_modules. (Ali Ijaz Sheikh) #1812.
* npm: Upgraded npm to v2.11.0. New hooks for preversion, version, and
  postversion lifecycle events, some SPDX-related license changes and license
  file inclusions. See the release notes for full details.

9 years agotest: check error type from net.Server.listen()
Rich Trott [Thu, 28 May 2015 05:46:12 +0000 (22:46 -0700)]
test: check error type from net.Server.listen()

This change eliminates an unnecessary setTimeout() in the test.

PR-URL: https://github.com/nodejs/io.js/pull/1821
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
9 years agosrc: fix module search path for preload modules
Ali Ijaz Sheikh [Wed, 27 May 2015 17:11:30 +0000 (10:11 -0700)]
src: fix module search path for preload modules

When the preload module is not a abs/relative path, we should use
the standard search mechanism of looking into the node_modules folders
outwards. The current working directory is deemed to be the 'requiring
module', i.e. parent. The search path starts from cwd outwards.

Fixes: https://github.com/nodejs/io.js/issues/1803
PR-URL: https://github.com/nodejs/io.js/pull/1812
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>