Commit Graph

581 Commits

Author SHA1 Message Date
Andy
1aad431d7d node: Set "lib" to "es5" (#15093) 2017-03-09 21:25:49 -08:00
Matt Behrens
743e9958ff net.Server is missing listening boolean (#15087)
cf. https://nodejs.org/api/net.html#net_server_listening
2017-03-09 21:25:01 -08:00
Mine Starks
bb284cc360 Merge pull request #15056 from 3n-mb/patch-2
Fix for issue 14997 in DefinitelyTyped
2017-03-08 15:30:40 -08:00
Mine Starks
f9115ebc7e Merge pull request #14543 from Flarna/node_urlUrl
[node] Add url.URL and url.URLSearchParams introduced in NodeJs 7.5.0
2017-03-08 14:09:53 -08:00
Mine Starks
09bcde011c Merge pull request #15013 from jtut1731/master
Node: Fixes for TLSSocket
2017-03-08 14:09:31 -08:00
3n-mb
de7a4e38a0 Fix for issue 14967 in DefinitelyTyped
This fixes (issue 14967 in DefinitelyTyped)[https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14967]
Making this via "Propose file change", not forked repo, like I did with PR #15043. That one fails ci, this one shouldn't.
2017-03-07 18:41:03 -05:00
3n-mb
fec2c4d121 Fix for issue 14997 in DefinitelyTyped
Making this via proposed change, not forked repo, like I did with PR #15044. That one fails ci.
2017-03-07 18:34:05 -05:00
Joe Tuttle
09a2b06ef7 Node: Fixes for TLSSocket 2017-03-06 11:02:34 -05:00
Flarna
353676b35a add url.toJSON() and URLSearchParams.sort() added in NodeJS 7.7.0 2017-03-01 10:32:18 +01:00
Flarna
287db19b16 node: Add url.URL and url.URLSearchParams introduced in NodeJs 7.5.0 2017-02-10 12:47:24 +01:00
Peter Burns
a8364e31a3 NodeJS v4 typings should not depend on dom lib. (#14343) 2017-02-09 10:27:24 -08:00
Arthur Ozga
4c8b1a98ab Merge pull request #14278 from rdepena/patch-1
Added context object to REPLServer for @types/node
2017-02-07 14:18:06 -08:00
Bowden Kelly
f83b6fc499 Merge pull request #13836 from hinell/master
[node],[mongodb] Readable stream interface, Closes #13782, Closes #13678
2017-02-03 18:03:07 -08:00
Ricardo De Peña
12aebc4dab Update index.d.ts
added missing `context` prop.

ref: https://nodejs.org/dist/latest-v6.x/docs/api/repl.html#repl_global_and_local_scope
2017-01-26 16:25:02 -05:00
zigomir
ba1f4665fa Allow cursorTo to preserve the column. 2017-01-25 11:12:26 -08:00
a8775
35c3b91e09 detailing declaration for dgram socket.close () 2017-01-24 14:48:02 +01:00
Steve Ognibene
2bde4f64d0 Revise node.js definition to respond to feedback on PR #13877 2017-01-23 12:39:51 -05:00
Linda_pp
5b9724a373 node: strict platform value (#14134)
* node: strict platform value

From: https://nodejs.org/api/os.html#os_os_platform

> Currently possible values are:
>
> - 'aix'
> - 'darwin'
> - 'freebsd'
> - 'linux'
> - 'openbsd'
> - 'sunos'
> - 'win32'
>
> Equivalent to process.platform.

* node: add missing 'android' to platforms

* node: improve platform strings also in v7
2017-01-22 21:11:34 -08:00
Rafael Kr
3357f1a623 [node] zlib: move constants into zlib.constants (#13945)
* [node] zlib: move constants into zlib.constants

* add flush property to ZlibOptions
declare constants as namespace
2017-01-21 14:55:02 -08:00
Hinell
406893715e [bufferstream] upd, upstream fix 2017-01-19 13:37:46 +03:00
Andy
ae4fe7b6de Use "lib" in tsconfigs instead of "target". (#13968)
* Use "lib" in tsconfigs instead of "target".

Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.

* Update new-package and readme

* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Hinell
8e90ecb177 Upstream repo SYNCHRONISATION 2017-01-13 01:09:19 +03:00
Hinell
b29bba7975 [node] Rolled back node stream.readable.pipe() method according to official API
Read here:
https://github.com/nodejs/node/blob/master/lib/_stream_readable.js#L612
2017-01-12 02:54:04 +03:00
Andy
10d46fc5fe Fix tsconfig for node v6 (#13924) 2017-01-10 18:06:03 -08:00
Rogier Schouten
8928fc6a3d Node: add timeout member to http.RequestOptions interface (#13865)
* Start typings for Node 7

* Add timeout member to RequestOptions.
2017-01-10 15:30:17 -08:00
Steve Ognibene
4e40336845 Remove const enum label from node (now works with --isolatedModules) 2017-01-09 13:36:08 -05:00
hinell
9d254fa5f5 Merge branch 'master' into master 2017-01-08 02:58:12 +03:00
Hinell
03e2e599c5 node/node-test.ts Console testing update, mongodb reconciliation with node api 2017-01-08 02:33:25 +03:00
Hinell
41da5eb070 Fixed @node/node interface according to official API. Resolving #13782
Changed api: stream.Readable,
Renamed: NodeJS.Console to NodeJS.ConsoleConstructor
Reconciled all consequent interfaces, like writeStream etc.
2017-01-08 01:30:51 +03:00
Hinell
6c25f377ff Fixed @node/node interface accroding to official NodeJS API. Closing #13782 2017-01-07 23:13:39 +03:00
Hinell
16b909b10f Node api fix according to official API 2017-01-07 02:54:53 +03:00
Andy
2f71174636 Restructure to support old versions (#13811)
* Restructure to support old versions

* Fix tests
2017-01-06 12:36:57 -08:00
Pat
48fb075ada Add isPaused to NodeJS.ReadableStream (#13785) 2017-01-06 06:37:13 -08:00
Andy
bc1da27217 node: path.join arguments must be strings (#13715) 2017-01-04 12:57:51 -08:00
a8775
18e96e67d7 add HeapInfo interface to v8 module (#13677)
* add HeapInfo interface to v8 module

Documentation:
https://nodejs.org/dist/latest-v7.x/docs/api/v8.html#v8_v8_getheapstatistics

Changes:
- add HeapInfo interface to the v8 module, add missing fields: malloced_memory, peak_malloced_memory, does_zap_garbage
- change return type for the method: v8.getHeapStatistics()

* change does_zap_garbage type to be 0|1

* add const enum DoesZapCodeSpaceFlag type
2017-01-03 10:21:31 -08:00
Andy
e2988a134e Merge pull request #13605 from jefff/fix-dgram-socket-message-event
In node, fix dgram.Socket message event
2016-12-29 12:18:58 -05:00
Jefff Nelson
f2c1afd1c8 Fix dgram.Socket message event 2016-12-29 01:50:02 -06:00
Andy Hanson
2e869dbdc0 Merge branch 'types-2.0' into merge_28dec 2016-12-28 12:38:06 -08:00
Horiuchi_H
81629d091f Merge pull request #13358 from a8775/master
add process.cpuUsage() method
2016-12-27 18:41:33 +09:00
Ian Copp
94c44cad2e Fix dgram.Socket#ref and #unref (#13242)
These two methods both return the socket, than being void.
2016-12-25 04:54:35 +09:00
Andy Hanson
4156318481 Move "_debugger" types into "node" 2016-12-20 08:01:59 -08:00
Andy
a4bd9fa3c1 Add "noImplicitThis" to all tsconfig.json (#13446)
* Add "noImplicitThis" to all tsconfig.json

* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
a8775
3f5f706484 Typings of the cpuUaage() and definition for CpuUsage interface.
Typings of the cpuUsage() method and definition of the CpuUsage interface by analogy to memoryUsage().
2016-12-19 09:52:33 +01:00
a8775
64be0771d9 add process.cpuUsage() method 2016-12-15 13:53:14 +01:00
Nathan Shively-Sanders
6f031ede9f Merge pull request #12828 from xiemaisi/node-event-module
Improve model of Node.js `events` module.
2016-12-12 08:32:45 -08:00
Max Schaefer
2f6ac1cf94 Improve model of Node.js events module.
The module directly exports the `EventEmitter` class, so `typeof require("events") === 'function'`.

This is modelled in the same way as for modules `assert` and `stream` using an auxiliary `internal` class.
2016-12-02 16:24:01 +00:00
Paul van Brenk
40e416a33c Merge master into typings-2.0 2016-11-29 16:51:33 -08:00
Paul van Brenk
b878e08fa3 Merge pull request #12488 from Flarna/node_add_process_mainmodule
Add process.mainModule, improve NodeModule
2016-11-29 13:50:26 -08:00
Nathan Shively-Sanders
a526a1512e Merge pull request #12804 from iainmcgin/tlsfix2
Add callback parameter to tls.Server.close
2016-11-23 14:42:58 -08:00
Nathan Shively-Sanders
66925b58c0 Merge pull request #12721 from maghis/zlib-result-types
node: Zlib result types
2016-11-23 10:27:10 -08:00