Rod Vagg
3ecad1d542
src: only append "-pre" to version if no tag
...
removed because nightly builds use the TAG make variable
to create a prerelease tag after the version yet `-pre` is
also appended beyond that. `-pre` is unnecessary if another
prerelease tag is being used.
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-11 22:44:27 +11:00
Rod Vagg
2a6a9bad64
doc: remove changelog.html from doc make target
...
not essential for doc build and currently broken because
tools/build_changelog.sh requires ./node.
leaving as separate make target so it can be invoked
separately in future.
PR-URL: https://github.com/iojs/io.js/pull/285
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-11 22:39:24 +11:00
Ben Noordhuis
7e648da834
test: fix bad assumption in pummel/test-vm-memleak
...
pummel/test-vm-memleak is an old test that assumes the fairly
aggressive heuristics that were common with the old collector.
The current garbage collector has a more laissez-faire attitude.
Put an upper limit on the size of the old space and update the
test's expectations.
PR-URL: https://github.com/iojs/io.js/pull/280
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-10 23:45:49 +01:00
Bert Belder
b57e9a9973
win,test: try again if file unlink fails
...
Now that parallel tests are enabled, the test runner spits out a ton of
'access denied' errors while running the tests. These happen because a
virus scanner or the indexing service temporarily open the file after it
has been updated, and the test runner tries to unlink() them at the same
time.
This patch resolves this issue by attempting to unlink the file until it
succeeds.
PR-URL: https://github.com/iojs/io.js/pull/284
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-11 01:54:35 +01:00
Vladimir Kurchatkin
7f9a6c6213
fs: use ES6 octal literals for mode
...
Update docs, comments and code to use ES6 octal literals instead of
decimal + comment.
PR-URL: https://github.com/iojs/io.js/pull/281
Reviewed-by: Bert Belder <bertbelder@gmail.com >
Reviewed-by: Colin Ihrig <cjihrig@gmail.com >
2015-01-11 00:46:23 +01:00
Fedor Indutny
0d02515d6e
zlib: do not unref() if wasn't ref()ed
...
In very unlikely case, where `deflateInit2()` may return error (right
now happening only on exhausting all memory), the `ZCtx::Error()` will
be called and will try to `Unref()` the handle. But the problem is that
this handle was never `Ref()`ed, so it will trigger an assertion error
and crash the program.
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl >
PR-URL: https://github.com/joyent/node/pull/8687
Cherry-picked-from: https://github.com/joyent/node/commit/8c868989be778246bc4b9558f087d0f93724b83d
2015-01-10 22:32:12 +01:00
Trevor Norris
4481cf7296
src: remove icu_config
...
ICU support in v0.12 generates a new icu_config.gypi. This was
accidentally committed after switching branches. The file has been removed
and added to .gitignore.
Cherry-picked-from: https://github.com/joyent/node/commit/813114dab05231b71f3cdc4f5889b9833d9a1d06
2015-01-10 22:32:12 +01:00
Fedor Indutny
e92dbf3af9
src: check if NODE_WANT_INTERNALS is defined
...
Otherwise a warning could be printed on some systems.
This fixes joyent/node#8419 .
Cherry-picked-from: https://github.com/joyent/node/commit/d87ae24dfe148e8bd524c57cfd2c9fe0d3dfce93
2015-01-10 22:32:11 +01:00
Julien Gilli
94190924bb
doc: improve dns module's documentation
...
Make the difference between dns.lookup and other functions even clearer.
PR-URL: https://github.com/joyent/node/pull/8747
Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com >
Cherry-picked-from: https://github.com/joyent/node/commit/542234ad984fd1fd90958f07f7f122530e7fb9c6
2015-01-10 22:28:50 +01:00
Julien Gilli
bfe04ed286
doc: clarify dns.lookup vs dns.resolve
...
Clarify and emphasize the differences between dns.lookup and the rest of
the functions in the dns module.
PR-URL: https://github.com/joyent/node/pull/8726
Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com >
Cherry-picked-from: https://github.com/joyent/node/commit/5ff59453a483a43f1563504989f8e2d0ec253de1
2015-01-10 22:28:48 +01:00
Julien Gilli
b91c535d86
doc: clarify url.format documentation
...
The original documentation was slightly confusing. It seemed that the
list of items described the properties of the urlObj object, while it
was actually describing the formatting process. This change makes this
clearer.
Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com >
Cherry-picked-from: https://github.com/joyent/node/commit/0603c8345b7c40f9723277d5ae1f44041627dbab
2015-01-10 22:28:34 +01:00
James M Snell
3622f0308f
doc: clarify buffer api documentation
...
Better wording for start and end parameters, also document .length
should be considered read-only.
PR-URL: https://github.com/joyent/node/pull/8910
Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com >
Cherry-picked-from: https://github.com/joyent/node/commit/102a861ec2e79ee78d8b8526fa410aac5db18753
2015-01-10 22:28:32 +01:00
James M Snell
ff350f7169
doc: clarify add/removeListener semantics
...
Clarify that adding or removing a listener is not idempotent.
PR-URL: https://github.com/joyent/node/pull/8911
Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com >
Cherry-picked-from: https://github.com/joyent/node/commit/48536394c954b2e3e41dcaee3778373ea79e2c25
2015-01-10 22:28:16 +01:00
pkcs
f1e685fdfe
doc: clearer log messages in net code samples
...
Code examples in documentation for net.createServer and
net.createConnection contained confusing log messages. This change makes
them clearer.
Signed-off-by: Julien Gilli <julien.gilli@joyent.com >
Cherry-picked-from: https://github.com/joyent/node/commit/8120015f4078e05ad350bb71b2839f1ce7bbc7f9
2015-01-10 22:24:22 +01:00
Sam Roberts
c7b333b866
doc: cover stdio option in child_process
...
- Add hyperlinks from spawn options to subsections detailing what
those options do.
- Clarify some verbiage around ChildProcess.prototype.std{in,out,err}.
- Remove second-person pronoun.
PR-URL: https://github.com/joyent/node/pull/8639
Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com >
Cherry-picked-from: https://github.com/joyent/node/commit/3a08b7c3e0bc6757e70889196
2015-01-10 22:24:13 +01:00
Sam Roberts
37569cd2b2
doc: document the fds behind stdin/out/err
...
Its common knowledge on unix, but node documentation depends on knowing
this, as it exposes both streams named after stdio, and the fd numbers,
so make this explicit.
Fixes: https://github.com/joyent/node/pull/8624
PR-URL: https://github.com/joyent/node/pull/8454
Reviewed-by: Trevor Norris <trev.norris@gmail.com >
Cherry-picked-from: https://github.com/joyent/node/commit/13a992b1c2e1d0e69567fb94bc35f978c4c37ce5
2015-01-10 22:15:51 +01:00
Eric Mill
d8d1c4c87c
doc: update openssl commands to use best practices
...
This updates key size to 2048 and default hash function to sha256.
Reviewed-by: Fedor Indutny <fedor@indutny.com >
PR-URL: https://github.com/joyent/node/pull/8690
Cherry-picked-from: https://github.com/joyent/node/commit/88bd95cfef5973de0027b8eb5210e5e97252c7e2
2015-01-10 22:15:49 +01:00
Calvin Metcalf
43226dd40e
doc: add note about key derivation
...
adds a note to the crypto docs passing along
the advice that openssl gives about what
key derivation function they recommend.
PR-URL: https://github.com/joyent/node/pull/8580
Reviewed-by: Fedor Indutny <fedor@indutny.com >
Cherry-picked-from: https://github.com/joyent/node/commit/7dbc024c8573670170d4f561c01ae892d06399db
2015-01-10 22:15:48 +01:00
Calvin Metcalf
90f07a7b3e
doc: document _transform callback takes 2 args
...
Expands the paragraph in the transform stream
implementation docs about the callback that is passed
to the _transform method to include details about how
two arguments may be passed, error and data. A code
example is also included.
Reviewed-by: Fedor Indutny <fedor@indutny.com >
Cherry-picked-from: https://github.com/joyent/node/commit/c8e0bdd7cf628ee2f3f79e5538132467bbc50b4a
2015-01-10 22:15:46 +01:00
Bert Belder
76ae73324e
doc: add changelog notes for some node v0.10 releases
2015-01-10 22:15:45 +01:00
Ben Noordhuis
0526d834f9
Revert "dgram: implicit binds should be exclusive"
...
This reverts commit a32b92dbcf .
Reverted for breaking the parallel/test-cluster-dgram-2 test on all
platforms.
PR-URL: https://github.com/iojs/io.js/pull/279
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-01-10 16:34:18 +01:00
Sam Roberts
a32b92dbcf
dgram: implicit binds should be exclusive
...
Server sockets should be shared by default, and client sockets should be
exclusive by default. For net/TCP, this is how it is, for dgram/UDP, its
a little less clear what a client socket is, but a socket that is
auto-bound during a dgram.send() is not usefully shared among cluster
workers, any more than an outgoing TCP connection would be usefully
shared.
Since implicit binds become exclusive, implicit/client dgram sockets can
now be used with cluster on Windows. Before, neither explicit nor
implicitly bound sockets could be used, causing dgram to be completely
unsupported with cluster on Windows. After this change, they become half
supported.
PR-URL: https://github.com/joyent/node/pull/8643
Reviewed-by: Bert Belder <bertbelder@gmail.com >
2015-01-10 04:50:50 +01:00
Sam Roberts
092c224e08
cluster: cluster.disconnect() should check status
...
Workers that are already disconnected but not yet exited should not be
disconnected, trying to do so raises exceptions.
PR-URL: https://github.com/joyent/node/pull/8642
Reviewed-by: Bert Belder <bertbelder@gmail.com >
2015-01-10 04:50:40 +01:00
Sam Roberts
14310e681e
cluster: don't assume all workers bind same ports
...
For shared handles that do not get connection close messages (UDP/dgram
is the only example of this), cluster must not assume that a port
listened on by one worker is listened on by all workers.
PR-URL: https://github.com/joyent/node/pull/8642
Reviewed-by: Bert Belder <bertbelder@gmail.com >
2015-01-10 04:50:29 +01:00
Bert Belder
a80b9777f2
deps: don't build minizip into zlib
...
It's an optional extension that node/iojs doesn't use.
PR-URL: https://github.com/iojs/io.js/pull/276
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-10 02:38:18 +01:00
Bert Belder
ad37509c0b
deps: don't set zlib's product_name
...
PR-URL: https://github.com/iojs/io.js/pull/276
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-10 02:38:18 +01:00
Ben Noordhuis
59ad4b0432
deps: fix zlib -Wimplicit-function-declaration
...
Build the bundled zlib with -DZ_HAVE_UNISTD_H to make the definition of
close(), read() and other unistd.h functions available to gzread.c and
gzwrite.c. It's kind of silly that we have to jump through hoops here
because we never call any of the functions that do I/O directly, but at
least it squelches the -Wimplicit-function-declaration warnings.
PR-URL: https://github.com/iojs/io.js/pull/273
Reviewed-by: Bert Belder <bertbelder@gmail.com >
2015-01-10 02:38:17 +01:00
Chris Dickinson
12912c6b30
tools: enable ctrl-c for parallel tests
...
use a threading.Event instead of a boolean attribute.
PR-URL: https://github.com/iojs/io.js/pull/277
Fixes: https://github.com/iojs/io.js/issues/260
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-09 15:23:19 -08:00
Ben Noordhuis
4e58211bb7
src: disable harmony object literals
...
Per the discussion in https://github.com/iojs/io.js/pull/272 , upstream
V8 has disabled Harmony object literals for the time being. Do the
same for feature parity.
PR-URL: https://github.com/iojs/io.js/pull/272
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Domenic Denicola <domenic@domenicdenicola.com >
2015-01-09 20:57:25 +01:00
Ben Noordhuis
a2751e3e1e
src: disable harmony classes
...
The V8 development branch has unshipped ES6 classes pending resolution
of a number of inheritance edge cases. Disable classes in io.js for
the sake of feature parity.
See https://github.com/iojs/io.js/issues/251 for background and
discussion.
PR-URL: https://github.com/iojs/io.js/pull/272
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Domenic Denicola <domenic@domenicdenicola.com >
2015-01-09 20:56:32 +01:00
Chris Dickinson
bc629c0c4f
src: zlib: revert concatenated-stream changes
...
Revert "src: fix windows build error" and "zlib: support
concatenated gzip files".
This reverts commits be413ac732
and 1183ba47df .
Treating subsequent bytes as a concatenated zlib stream
breaks npm install.
Conflicts:
test/parallel/test-zlib-from-multiple-gzip-with-garbage.js
test/parallel/test-zlib-from-multiple-gzip.js
test/parallel/test-zlib-from-multiple-huge-gzip.js
Fixes: https://github.com/joyent/node/issues/8962
PR-URL: https://github.com/iojs/io.js/pull/240
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-09 11:09:08 -08:00
Vladimir Kurchatkin
9f45799dd2
build: fix process.platform
...
e1fe270 introduces the NODE_PLATFORM macro which had to be redefined in
node.gyp for `process.platform` to return expected values.
PR-URL: https://github.com/iojs/io.js/pull/271
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-09 19:52:51 +01:00
Caitlin Potter
be2404e0d3
core: throw TypeError if chdir() args are wrong
...
PR-URL: https://github.com/iojs/io.js/pull/274
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-09 18:36:15 +01:00
Shigeki Ohtsu
b8891d6599
doc: update the zlib license after upgrading
...
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-08 23:59:54 +01:00
Shigeki Ohtsu
6f532e5da1
deps: update zlib.gyp for zlib 1.2.8
...
This adds the new gzip source files to the zlib.gyp The changes are
derived from third_party/zlib/zlib.gyp in the Chromium repository.
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-08 23:59:53 +01:00
Shigeki Ohtsu
50f12f6c8a
deps: upgrade zlib to 1.2.8
...
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-08 23:59:53 +01:00
Forrest L Norvell
e79ccee168
npm: upgrade to v2.1.18
...
PR-URL: https://github.com/iojs/io.js/pull/266
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-08 23:49:03 +01:00
Bert Belder
156cd82ef4
win,nodevars: run iojs.exe to get node version
...
PR-URL: https://github.com/iojs/io.js/pull/263
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-08 23:32:18 +01:00
Bert Belder
0430215dea
win,msi: rename node.exe to iojs.exe
...
This change is strictly limited to the name of the binary. The shortcut
name, install folder, docs website links etc. are all unchanged.
PR-URL: https://github.com/iojs/io.js/pull/263
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-08 23:32:18 +01:00
Bert Belder
92c5d32d73
win,build: rename node.exe to iojs.exe
...
* Sign iojs.exe
* Run license2rtf.js through iojs
PR-URL: https://github.com/iojs/io.js/pull/263
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-08 23:32:17 +01:00
Bert Belder
facc0565ca
win: regenerate perfctr provider files
...
PR-URL: https://github.com/iojs/io.js/pull/263
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-08 23:32:17 +01:00
Bert Belder
eab60039b1
win,tracing: node -> iojs in perfctr/etw manifests
...
PR-URL: https://github.com/iojs/io.js/pull/263
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-08 23:32:16 +01:00
Bert Belder
889f4023aa
win,src: node -> iojs in executable manifest
...
PR-URL: https://github.com/iojs/io.js/pull/263
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-08 23:32:15 +01:00
Bert Belder
2e40ae6736
win,build: remove upload target from vcbuild.bat
...
PR-URL: https://github.com/iojs/io.js/pull/263
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-08 23:32:15 +01:00
Ben Noordhuis
72f1b348b0
install: install iojs -> node compat symlink
...
Install a symlink for compatibility with scripts that expect a binary
called `node` or have a /path/to/node shebang. Only done on UNIX
platforms because symlinks on Windows require elevated privileges.
PR-URL: https://github.com/iojs/io.js/pull/262
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-08 23:21:23 +01:00
Ben Noordhuis
f17f473af5
build: rename binary from node to iojs
...
* rename the build targets
* update the test runner to use `out/{Debug,Release}/iojs`
* update the installer to install the iojs binary
* update one test that explicitly checks for the binary name
PR-URL: https://github.com/iojs/io.js/pull/262
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-08 23:21:20 +01:00
Ben Noordhuis
3e7a25dd95
test: remove --use-http1 test runner flag
...
The flag was used for a short while during the v0.5 development cycle,
four years ago. Remove it, it's long overdue.
PR-URL: https://github.com/iojs/io.js/pull/262
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-08 23:21:18 +01:00
Ben Noordhuis
57a2cab769
doc: update v8 options in man page
...
Update the outdated list of V8 options in the man page.
PR-URL: https://github.com/iojs/io.js/pull/262
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-08 23:21:16 +01:00
Ben Noordhuis
62bd7110d2
doc: s/node/iojs/ in iojs.1
...
The binary is about to be renamed from `node` to `iojs`; preemptively
update the man page.
PR-URL: https://github.com/iojs/io.js/pull/262
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-08 23:21:14 +01:00
Ben Noordhuis
3f8b76ebd5
doc: rename node.1 -> iojs.1
...
PR-URL: https://github.com/iojs/io.js/pull/262
Reviewed-By: Bert Belder <bertbelder@gmail.com >
2015-01-08 23:21:12 +01:00