Ryan Dahl
6de2173d7c
Add options to process.watchFile()
15 years ago
Ryan Dahl
8d2f9e83a4
Add process.watchFile() process.unwatchFile()
This is an interface to libev's ev_stat watcher.
15 years ago
Felix Geisendörfer
2b252acea4
Implement process "uncaughtException" event
This event can be used to overwrite the default exception mechanism which
reports the exception and kills the node process.
See google group post:
http://groups.google.com/group/nodejs/browse_thread/thread/9721dc3a2638446f
15 years ago
fwg
bd6c08a984
Add EventEmitter.removeListener
15 years ago
Felix Geisendörfer
bb8f0725da
Bugfix, Promise.timeout() blocked the event loop
Promise.timeout() was blocking the event loop from shutting down while it
was waiting for an internal timer to fire. This timer is now cleared when
it is no longer needed, causing the event loop to shut down as fast as
possible.
15 years ago
Felix Geisendörfer
1026ffea40
Proper deprecation message for process.inherits
15 years ago
Ryan Dahl
42dd629c16
deprecation error for process.inherits()
15 years ago
Ryan Dahl
1020efb6f7
Create require.main, remove process.cat()
15 years ago
Ryan Dahl
43121c15be
API: rename process.inherits to sys.inherits
15 years ago
Ryan Dahl
d737a060c8
Combine all compiled javascript files into src/node.js
15 years ago
Ryan Dahl
c6bd0e56cb
Fix regexp in file extension checking
15 years ago
Felix Geisendörfer
43d651daef
The return of relative module loading
15 years ago
Felix Geisendörfer
7069bee982
The return of absolute Module loading
15 years ago
Felix Geisendörfer
8fd472b9a1
The return of remote module loading
15 years ago
Ryan Dahl
9bd2717e74
require.paths aliased as process.path
15 years ago
Ryan Dahl
f230e45183
Update deprecation errors.
15 years ago
Ryan Dahl
9a7321ebb0
Don't call process.exit() on missing module.
Just raise exception naturally.
15 years ago
Ryan Dahl
f683867b98
module.name renamed to module.id for commonjs compat
15 years ago
Ryan Dahl
7a2e784ad7
Module refactor - almost CommonJS compatible now
API change summary:
* require("/sys.js") becomes require("sys")
* require("circle.js") becomes require("./circle")
* process.path.join() becomes require("path").join()
15 years ago
Ryan Dahl
ad0a4cefb8
Namespace EVERYTHING under process; introduce GLOBAL
http://groups.google.com/group/nodejs/browse_thread/thread/1034fd2ad2cd93e8
15 years ago
Ryan Dahl
04e53cab90
Rename node.libraryPaths to require.paths
to be more inline with CommonJS.
15 years ago
Brandon Beacher
334d56d2be
Added external interface for signal handlers.
Also process.pid and node.kill().
15 years ago
Ryan Dahl
2b8ab7e24f
utils.js links to sys.js instead of other way around
15 years ago
Felix Geisendörfer
0329468e73
Fix for confusing deprecation message
15 years ago
Ryan Dahl
6325878d43
Raise helpful error when include() is called.
15 years ago
Ryan Dahl
1f31a7dbfe
Upgrade v8 to 1.3.14
15 years ago
Ryan Dahl
82465fc4b1
Do not use /bin/sh to create child processes.
Instead directly call execvp(). This change is needed for the
soon-to-be-added signal handlers because the /bin/sh parent process does not
pass all signals to it's children, particularly SIGUSR1 on Linux.
The parameters of createChildProcess had to be changed slightly.
utils.exec() also has a changed implementation. A bug involving quoted
arguments was knowingly introduced into utils.exec(). Will fix later.
15 years ago
Ryan Dahl
d67288b643
Add __module to reference current node.Module object.
15 years ago
Ryan Dahl
78f8b6771c
Add require.async().
15 years ago
Ryan Dahl
d703813c27
Remove target argument from node.Module#newChild.
15 years ago
Ryan Dahl
a0c464638c
Remove old references to node.loadingModules
15 years ago
Ryan Dahl
8185e1fd25
Remove include() add node.mixin()
include() should not be used by libraries because it will pollute the global
namespace. To discourage this behavior and bring Node more in-line with
the current CommonJS module system, include() is removed.
Small scripts like unit tests often times do want to pollute the global
namespace for ease. To avoid the boiler plate code of
var x = require("/x.js");
var foo = x.foo;
var bar = x.bar;
The function node.mixin() is stolen from jQuery's jQuery.extend. So that it
can be written:
node.mixin(require("/x.js"));
Reference:
http://docs.jquery.com/Utilities/jQuery.extend
http://groups.google.com/group/nodejs/browse_thread/thread/f9ac83e5c11e7e87
15 years ago
Ryan Dahl
6f17ca51c3
Install wafadmin into $PREFIX/lib/node/wafadmin
This is in preparation for a special node_waf script for building external
modules.
Also change system library path to $PREFIX/lib/node/libraries
15 years ago
Ryan Dahl
a8c0211e73
Bugfix: require() and include() should work in callbacks.
Removing requireAsync and includeAsync from global scope for now as a
temporary fix. Reported by Yuffster.
15 years ago
Ryan Dahl
835554c92b
Error message on bad module load.
15 years ago
Ryan Dahl
23c7f472d0
API: Move node.exit() to process.exit().
15 years ago
Ryan Dahl
459d644a5a
Don't delete timer object on clearTimeout.
I've heard delete is inefficient in v8. Better to let the garbage collector
take care of it naturally.
15 years ago
Ryan Dahl
095470854b
Move tcp library to /tcp.js
15 years ago
Ryan Dahl
f6657c3c9d
Move http library to /http.js
15 years ago
Ryan Dahl
7abad8b7b3
API: Move node.puts(), node.exec() and others to /utils.js
15 years ago
Ryan Dahl
7ddf1f569a
Improve error message for requiring system modules.
15 years ago
Ryan Dahl
c8b143bf30
Absolute path names for require() refer to node.libraryPaths
16 years ago
Ryan Dahl
9db2e5f375
Default to utf8 encoding for node.fs.cat()
16 years ago
Ryan Dahl
083d150bc4
Add node.exec()
16 years ago
Ryan
dbe116ddfe
API: Change arguments of emit(), emitSuccess(), emitError()
Instead of
myemitter.emit("event", [arg1, arg2, arg3]);
the API is now
myemitter.emit("event", arg1, arg2, arg3);
This change saves the creation of an extra array object for each event.
The implementation is also slightly more simple.
16 years ago
Ryan
063890b8da
Internally use full paths when loading modules.
This completes shebang support begun in
6acac912dd
.
16 years ago
Ryan
1a2696f10a
Almost completely remove onExit and onLoad.
They were deprecated in 723c7d9f7c
and
31265be4a6
.
Still retaining error message.
16 years ago
Ryan
0407145c11
Exit the process on module load error. (temporary)
16 years ago
Ryan
78bb53b009
Set module.loaded=true for dll modules.
16 years ago
Ryan
a97dce7523
Build static executable.
- Fix a few errors with node.dlopen()
- Report errors to stderr (this should probably be a separate commit, but
whatever)
16 years ago