Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-312015-05-31 io.js v2.2.0 Releasev2.2.0Rod Vagg
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.
2015-05-30test: check error type from net.Server.listen()Rich Trott
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>
2015-05-30src: fix module search path for preload modulesAli Ijaz Sheikh
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>
2015-05-30win,node-gyp: enable delay-load hook by defaultBert Belder
The delay-load hook allows node.exe/iojs.exe to be renamed. See efadffe for more background. This commit is a combined squash of the following previous patches: ba93c583bca993be9d16d9a1819ecdb23697b73a, 3bda6cbfa4a9bb073790d53bc14e85b6e575bbe5, 0d6d3dda95e3fff30996c224197fac88fba85b5b. PR-URL: https://github.com/nodejs/io.js/pull/1763 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-05-30deps: make node-gyp work with io.jscjihrig
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>
2015-05-30deps: upgrade npm to 2.11.0Forrest L Norvell
PR-URL: https://github.com/iojs/io.js/pull/1829 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-05-30src: remove old codeBrendan Ashworth
The Socket writable only change was added and implemented in the constructor around 5885f464f0ad372efa7e, but this was never removed. The libev counter issue is no longer prudent; the test remains in test/sequential/test-regress-GH-1726. PR-URL: https://github.com/nodejs/io.js/pull/1819 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-05-30tools: pass constant to logger instead of stringJohan Bergström
On a few of our installations (namely CentOS), passing 'INFO' resulted in a silent loglevel. Use a logging constant instead. Fixes: https://github.com/nodejs/build/issues/104 PR-URL: https://github.com/nodejs/io.js/pull/1842 Reviewed-By: Rod Vagg <rod@vagg.org>
2015-05-29http: flush stored headerVladimir Kurchatkin
`flushHeaders` should work for header written with `writeHead`. PR-URL: https://github.com/nodejs/io.js/pull/1695 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-05-28test: add heap profiler add-on regression testBen Noordhuis
Add a regression test for https://github.com/nodejs/io.js/pull/1827. PR-URL: https://github.com/nodejs/io.js/pull/1828 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-05-28Revert "core: set PROVIDER type as Persistent class id"Ben Noordhuis
This reverts commit 3c44100558b4e9e48e0e711e38acc91e0f870a9f. Reverted for breaking node-heapdump[0]. AsyncWrap assigns a class id but does not set a v8::RetainedObjectInfo provider callback with v8::HeapProfiler::SetWrapperClassInfoProvider(). The result is a null pointer dereference when taking a heap snapshot. It can probably be solved by setting a generic provider callback inside the AsyncWrap constructor but that may have performance ramifications that need to be investigated first. I move to revert it for now. [0] https://github.com/bnoordhuis/node-heapdump PR-URL: https://github.com/nodejs/io.js/pull/1827 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-05-28child_process: expose ChildProcess constructorEvan Lucas
Creates two new internal modules (child_process and socket_list) for better readability. Exposes the ChildProcess constructor from the child_process module so one can now `require(‘child_process’).ChildProcess` Fixes: https://github.com/nodejs/io.js/issues/1751 PR-URL: https://github.com/nodejs/io.js/pull/1760 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
2015-05-28tools: add objectLiteralShorthandProperties to .eslintrcEvan Lucas
Required to make linting pass for using object literal shorthand properties. PR-URL: https://github.com/nodejs/io.js/pull/1760 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
2015-05-27doc: `fs.*File()` also accept encoding stringsRich Trott
Fixes: https://github.com/nodejs/io.js/issues/1797 PR-URL: https://github.com/nodejs/io.js/pull/1806 Reviewed-By: fishrock123@rocketmail.com
2015-05-27lib: speed up require(), phase 2Ben Noordhuis
Replace calls to fs.readFileSync() with an internal variant that does not create Error objects on failure and is a bit speedier in general. A secondary benefit is that it improves start-up times in the debugger because it no longer emits thousands of exception debug events. On a medium-sized application[0], this commit and its predecessor reduce start-up times from about 1.5s to 0.5s and reduce the number of start-up exceptions from ~6100 to 32, half of them internal to the application. [0] https://github.com/strongloop/loopback-sample-app PR-URL: https://github.com/nodejs/io.js/pull/1801 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-05-27lib: speed up require(), phase 1Ben Noordhuis
Replace calls to fs.statSync() with an internal variant that does not create Error or Stat objects that put strain on the garbage collector. A secondary benefit is that it improves start-up times in the debugger because it no longer emits thousands of exception debug events. PR-URL: https://github.com/nodejs/io.js/pull/1801 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-05-26doc: add documentation for AtExit hookSteve Sharp
Fixes: https://github.com/nodejs/io.js/issues/999 PR-URL: https://github.com/nodejs/io.js/pull/1014 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-05-26test: don't lint autogenerated test/addons/doc-*/Ben Noordhuis
The JS source files in test/addons/doc-*/ are scraped from the reference documentation in doc/api and need not conform to the style guide. PR-URL: https://github.com/nodejs/io.js/pull/1793 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-05-26test: remove stray copyright noticesBen Noordhuis
Commit 3e1b1dd ("Remove excessive copyright/license boilerplate") left in a few lines of boilerplate here and there. This commit removes them. PR-URL: https://github.com/nodejs/io.js/pull/1793 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-05-26test: fix deprecation warning in addons testBen Noordhuis
The non-isolate version of node::FatalException() is deprecated, switch to the version that takes an isolate as its first argument. PR-URL: https://github.com/nodejs/io.js/pull/1793 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-05-26src: fix deferred events not working with -eBen Noordhuis
Defer evaluation of the script for a tick. This is a workaround for events not firing when evaluating scripts on the command line with -e. Fixes: https://github.com/nodejs/io.js/issues/1600 PR-URL: https://github.com/nodejs/io.js/pull/1793 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-05-26doc: clarify stability of fs.watch and relativesRich Trott
Fixes: https://github.com/nodejs/io.js/issues/1754 PR-URL: https://github.com/nodejs/io.js/pull/1775 Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-05-25lib: simplify nextTick() usageBrian White
This commit removes unnecessary nextTick() closures and adds some shared nextTick() callbacks for better re-use. PR-URL: https://github.com/nodejs/io.js/pull/1612 Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
2015-05-25doc: state url decoding behaviorJosh Gummersall
Explicitly states the fact that no decoding is performed on the url path or pathname or the query string by default in the URL module. Fixes: https://github.com/nodejs/io.js/issues/1538 PR-URL: https://github.com/nodejs/io.js/pull/1731 Reviewed-By: Roman Reiss <me@silverwind.io>
2015-05-25http: simplify code and remove unused propertiesBrian White
PR-URL: https://github.com/nodejs/io.js/pull/1572 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-05-24doc: remove bad semver-major entry from CHANGELOGRod Vagg
PR-URL: https://github.com/nodejs/io.js/pull/1782 Reviewed-By: Roman Reiss <me@silverwind.io>
2015-05-24doc: fix changelog s/2.0.3/2.1.0Rod Vagg
2015-05-24Working on v2.1.1Rod Vagg
2015-05-242015-05-24 io.js v2.1.0 Releasev2.1.0Rod Vagg
PR-URL: https://github.com/nodejs/io.js/pull/1777 Notable Changes: * crypto: Diffie-Hellman key exchange (DHE) parameters ('dhparams') must now be 1024 bits or longer or an error will be thrown. A warning will also be printed to the console if you supply less than 2048 bits. See https://weakdh.org/ for further context on this security concern. (Shigeki Ohtsu) #1739. * node: A new --trace-sync-io command line flag will print a warning and a stack trace whenever a synchronous API is used. This can be used to track down synchronous calls that may be slowing down an application. (Trevor Norris) #1707. * node: To allow for chaining of methods, the setTimeout(), setKeepAlive(), setNoDelay(), ref() and unref() methods used in 'net', 'dgram', 'http', 'https' and 'tls' now return the current instance instead of undefined (Roman Reiss & Evan Lucas) #1699 #1768 #1779. * npm: Upgraded to v2.10.1, release notes can be found in https://github.com/npm/npm/releases/tag/v2.10.1 and https://github.com/npm/npm/releases/tag/v2.10.0. * util: A significant speed-up (in the order of 35%) for the common-case of a single string argument to util.format(), used by console.log() (Сковорода Никита Андреевич) #1749.
2015-05-24win,node-gyp: enable delay-load hook by defaultBert Belder
The delay-load hook allows node.exe/iojs.exe to be renamed. See efadffe for more background. This commit is a combined squash of the following previous patches: ba93c583bca993be9d16d9a1819ecdb23697b73a, 3bda6cbfa4a9bb073790d53bc14e85b6e575bbe5, 0d6d3dda95e3fff30996c224197fac88fba85b5b. PR-URL: https://github.com/nodejs/io.js/pull/1763 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-05-24deps: make node-gyp work with io.jscjihrig
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>
2015-05-24deps: upgrade to npm 2.10.1Rebecca Turner
PR-URL: https://github.com/nodejs/io.js/pull/1763 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-05-24doc: update AUTHORS listRod Vagg
Update AUTHORS list using tools/update-authors.sh PR-URL: https://github.com/nodejs/io.js/pull/1776 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-05-23net: return this from setNoDelay and setKeepAliveRoman Reiss
Modifies the Socket.setNoDelay and Socket.setKeepAlive methods to return the socket instance instead of undefined, to allow for chaining. PR-URL: https://github.com/nodejs/io.js/pull/1779 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2015-05-23net,dgram: return this from ref and unref methodsRoman Reiss
Modifies the following methods to return the instance instead of undefined, to allow for chaining these methods: - net.Server.ref - net.Server.unref - net.Socket.ref - net.Socket.unref - dgram.Socket.ref - dgram.Socket.unref PR-URL: https://github.com/nodejs/io.js/pull/1768 Reviewed-By: Evan Lucas <evanlucas@me.com>
2015-05-23buffer: optimize Buffer.byteLengthBrendan Ashworth
Buffer.byteLength is important for speed because it is called whenever a new Buffer is created from a string. This commit optimizes Buffer.byteLength execution by: - moving base64 length calculation into JS-land, which is now much faster - remove redundant code and streamline the UTF8 length calculation It also adds a benchmark and better tests. PR-URL: https://github.com/nodejs/io.js/pull/1713 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-05-22tls: emit errors happening before handshake finishMalte-Thorben Bruns
This fixes a race condition introduced in 80342f6. `socket.destroy(err)` only emits the passed error when `socket._writableState.errorEmitted === false`, `ssl.onerror` sets `errorEmitted = true` just before calling `socket.destroy()`. See: https://github.com/nodejs/io.js/issues/1119 See: https://github.com/nodejs/io.js/issues/1711 PR-URL: https://github.com/nodejs/io.js/pull/1769 Reviewed-By: Fedor Indutny <fedor@indutny.com>
2015-05-22doc: fix typo in CONTRIBUTING.mdRich Trott
PR-URL: https://github.com/nodejs/io.js/pull/1755 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-05-22doc: path is ignored in url.formatMaurice Butler
Made it obvious that path is ignored in url.format PR-URL: https://github.com/nodejs/io.js/pull/1753
2015-05-22tls: use `.destroy(err)` instead of destroy+emitFedor Indutny
Emit errors using `.destroy(err)` instead of `.destroy()` and `.emit('error', err)`. Otherwise `close` event is emitted with the `error` argument set to `false`, even if the connection was torn down because of the error. See: https://github.com/nodejs/io.js/issues/1119 PR-URL: https://github.com/nodejs/io.js/pull/1711 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
2015-05-21build: refactor pkg-config for shared librariesJohan Bergström
Improve detection and usage of pkg-config. This simplifies the setup of all our shared libraries. If pkg-config is installed on the host and `--shared` flags are passed by the user, we try to get defaults from pkg-config instead of using the default provided by configure. PR-URL: https://github.com/nodejs/io.js/pull/1603 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-05-21util: speed up common case of formatting stringСковорода Никита Андреевич
PR-URL: https://github.com/nodejs/io.js/pull/1749 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-05-20tls: make server not use DHE in less than 1024bitsShigeki Ohtsu
DHE key lengths less than 1024bits is already weaken as pointed out in https://weakdh.org/ . 1024bits will not be safe in near future. We will extend this up to 2048bits somedays later. PR-URL: https://github.com/nodejs/io.js/pull/1739 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor@indutny.com>
2015-05-20doc: fix spelling in CHANGELOGFelipe Batista
Reviewed-By: Roman Reiss <me@silverwind.io>
2015-05-20doc: add notes to child_process.fork() and .exec()Rich Trott
Adds notes about the difference to their POSIX counterparts. PR-URL: https://github.com/nodejs/io.js/pull/1718 Fixes: https://github.com/nodejs/io.js/issues/224 Reviewed-By: Roman Reiss <me@silverwind.io>
2015-05-20test: fix jslint errorMichaël Zasso
PR-URL: https://github.com/nodejs/io.js/pull/1743 Fixes: https://github.com/nodejs/io.js/issues/1742 Reviewed-By: Roman Reiss <me@silverwind.io>
2015-05-20test: fix test-sync-io-optionSantiago Gimeno
Wait for all the data to be available in stderr before checking its contents. In FreeBSD this was failing because stderr data was being emitted in multiple chunks. 4 WARNINGS are printed instead of 2 for each sync call inside readFileSync. require('fs') does not print any trace. PR-URL: https://github.com/nodejs/io.js/pull/1734 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-05-19test: enable linting for testsRoman Reiss
Enable linting for the test directory. A number of changes was made so all tests conform the current rules used by lib and src directories. The only exception for tests is that unreachable (dead) code is allowed. test-fs-non-number-arguments-throw had to be excluded from the changes because of a weird issue on Windows CI. PR-URL: https://github.com/nodejs/io.js/pull/1721 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-05-19net: persist net.Socket options before connectEvan Lucas
Remembers net.Socket options called before connect and retroactively applies them after the handle has been created. This change makes the following function calls more user-friendly: - setKeepAlive() - setNoDelay() - ref() - unref() Related: https://github.com/joyent/node/issues/7077 and https://github.com/joyent/node/issues/8572 Fixes: https://github.com/joyent/node/issues/7077 Fixes: https://github.com/joyent/node/issues/8572 PR-URL: https://github.com/nodejs/io.js/pull/1518 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Roman Reiss <me@silverwind.io>
2015-05-19core: set PROVIDER type as Persistent class idTrevor Norris
Pass along the PROVIDER type, that is already passed to AsyncWrap, along to BaseObject to set the handle_'s class id. This will allow all Persistents to be transversed and uniquely identified by what type they are using APIs such as v8::PersistentHandleVisitor. PR-URL: https://github.com/nodejs/io.js/pull/1730 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>