Commit Graph
298 Commits
Author SHA1 Message Date
Ron BucktonandGitHub 829640b173 Merge pull request #23427 from Alorel/patch-1
Add encoding option to node.readdir
2018-02-07 15:32:26 -08:00
Ron BucktonandGitHub eaa9ff9367 Merge pull request #23411 from glmdgrielson/require-resolve
[node] require.resolve update v8.9.0
2018-02-07 14:55:12 -08:00
Denis MalinochkinandAndy a593fd2d60 refactor(node): Remove duplicate line for the «addListener» method (#23449) 2018-02-06 08:47:31 -08:00
Arturas Molcanovas 92e408b5ab Merge branch 'master' into patch-1 2018-02-05 21:18:21 +00:00
AndyandGitHub b890bf4556 Fix node tests to be compatible with --esModuleInterop (#23437) 2018-02-05 13:08:34 -08:00
Arturas Molcanovas 760d1d490d Fix path docs 2018-02-05 20:53:26 +00:00
Arturas Molcanovas d7479d6297 Use readdir types template from v9 2018-02-05 20:50:10 +00:00
Arturas Molcanovas c1e681c37b merge master 2018-02-05 20:11:57 +00:00
Arturas Molcanovas 16f4c65202 add string buffer 2018-02-05 20:00:26 +00:00
Arturas Molcanovas bc3f9a7ca7 Merge branch 'patch-1' of https://github.com/Alorel/DefinitelyTyped into patch-1 2018-02-05 19:57:16 +00:00
Arturas Molcanovas c15ee71643 Add buffer output support 2018-02-05 19:56:40 +00:00
AndyandGitHub bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
ArtandGitHub fd35f96ddd Update index.d.ts
Add definitions author tag
2018-02-05 15:46:48 +00:00
glmdgrielsonandGitHub a6a051d448 Removed whitespace
Stupid auto-indent...
2018-02-05 09:52:01 -05:00
ArtandGitHub 1e48a332ba Update index.d.ts 2018-02-05 14:31:03 +00:00
glmdgrielsonandGitHub 91fcfae67f Made paths property optional
I'm making a lot of seemingly duplicate commits here, aren't I?
2018-02-05 09:30:33 -05:00
glmdgrielsonandGitHub b29ebabcb8 Made paths property optional
Granted, I can't imagine any reason you wouldn't have it, but you don't have to!
2018-02-05 09:29:26 -05:00
glmdgrielsonandGitHub 8c8d986e3b Update require.resolve.paths type
I've also changed the version in the header, as this bit wasn't added until 8.9.x. I hope that's okay.
2018-02-05 09:16:15 -05:00
glmdgrielsonandGitHub b86955ac31 Update require.resolve.paths type
I'm not too familiar with the strict null checks, sorry.
2018-02-05 09:13:51 -05:00
glmdgrielsonandGitHub aa6b62b81f A bit of backporting
It was added in 8.9 after all...
2018-02-04 18:46:17 -05:00
glmdgrielsonandGitHub e38672cd3e Updated require.resolve
The official `require.resolve` docs say that it now accepts a second argument, an object with a paths property is an array which I think is comprised of strings.
2018-02-04 18:13:44 -05:00
FlarnaandAndy b064f807f7 [node] Add Api changes for 9.4.0 (#23039)
* [node] add writable.writableLength and readable.readableLength to stream

* [node] allow DataView and ArrayBuffer for zlib apis

* [node] add EventEmitter.rawListeners()

* [pty.js] Remove implements stream.Stream as Terminal implements only parts of it

* [node] update version to 9.4.0
2018-01-26 09:11:51 -08:00
AndyandJohn Reilly 37685e11dd Add tslint disables for no-const-enum (#23134) 2018-01-23 18:19:36 +00:00
FlarnaandWesley Wigham 2c88afc6f8 [node] sync nodejs v8 with recent changes done on latest (#22816) 2018-01-17 13:09:15 -08:00
OwnageIsMagicandAndy ea2dc4dc28 Node 9.3 (#22593)
* SignalsListener signal name

https://github.com/nodejs/node/pull/15606

* created Node 8 folder

* Create tsconfig.json

* Create tslint.json

* Create node-tests.ts

* Node 9

* update node header

* Tabs to spaces

* copy inspector.d.ts to v8 folder

* correct path mapping for v8

* disable no-declare-current-package for v8 module

* Correct version to 9.3.x
Add writableHighWaterMark/readableHighWaterMark to WriteStream/ReadStream
fixed setUncaughtExceptionCaptureCallback()
Add module.builtinModules
change os.EOL to const
add writableHighWaterMark to Duplex
writableHighWaterMark and readableHighWaterMark are readonly

* fs.realpathSync.native and fs.realpath.native

* fs.realpath.native tests
2018-01-08 07:54:44 -08:00
AndyandGitHub d28699513a node: Fix whitespace (#22694) 2018-01-05 08:18:22 -08:00
Klaus MeinhardtandMohamed Hegazy 46afc73cfb node: add module.paths (#22578) 2018-01-04 09:25:08 -08:00
Evan ShortissandMohamed Hegazy 98f1d85679 Fixed - nodejs core typing for path.resolve args (#22567)
* Fixed - nodejs core typing for path.resolve args

* fix in all versions
2018-01-03 17:03:06 -08:00
Olaf TomalkaandMohamed Hegazy abb6cbad16 Fix Node's path.format() requiring all options (#22525)
* Fix Node's path.format() requiring all options

The bug manifested during use of path.win32 and path.posix submodules.
Both functions required all of the options to exist which is not
the case as some override others.
Further research indicated that previous Node versions were also
susceptible, up to v4.

I've used the Typescript's Partial<> type which makes all properties
optional, allowing for easier maintenance and readabillity at the cost
of now requiring Typescript 2.1, which I believe is a good trade-off.

* Revert the decision to use TS 2.1 in @types/node

Updating Typescript version would require to update
all other types that rely on Node, which may be quite a lot.
Fixing a bug is not a big enough reason to add new version to all
of those packages.
2018-01-03 14:44:18 -08:00
hoo29andMohamed Hegazy 34f8553e46 Update index.d.ts (#22338)
added secureProtocol to ServerOptions
2018-01-03 13:34:09 -08:00
Mohamed HegazyandGitHub c152f305b9 Add inspectPort to ClusterSettings (#22652) 2018-01-03 12:59:29 -08:00
Daniel MilbrandtandMohamed Hegazy 0f3d1dc170 ClusterSetupMasterSettings to ClusterSettings (#22647)
According to official docs the settings for setupMaster settings are just the ClusterSettings.
There is an ClusterSettings interface already but setupMaster function parameters refered to incomplete and unnecessary ClusterSetupMasterSettings. I deleted the ClusterSetupMasterSettings interface and refer to the existing  ClusterSettings which are correct.

https://nodejs.org/docs/latest-v8.x/api/cluster.html#cluster_cluster_setupmaster_settings
2018-01-03 12:19:08 -08:00
FlarnaandAndy d9f51eae65 [node] improve typing of query.parse() (#22171)
* tabs to spaces

* [node] improve typing of query.parse()

* Update according to review:
- Better naming UrlParsedQuery => UrlWithParsedQuery, UrlStringQuery => UrlWithStringQuery
- replace Url type by UrlWithParsedQuery | UrlWithStringQuery

* Re-introduce url.Url as it is used by several other modules.
2018-01-03 11:44:10 -08:00
Arthur OzgaandGitHub b6b7d5308d Merge pull request #22077 from Zarel/writable-end
[node] Support passing callback-only in writable.end()
2017-12-19 11:23:30 -08:00
Guangcong Luo 62f093e09c Support passing function only in Node writable.end() 2017-12-14 19:22:16 -06:00
Mine StarksandGitHub dc7448628c Merge pull request #20725 from thewizarodofoz/master
fix Worker.id type
2017-12-13 14:46:37 -08:00
Mine StarksandGitHub 96f8777eb5 Merge pull request #22037 from jkomyno/master
node: added perf_hooks module definition
2017-12-13 09:50:30 -08:00
Mine StarksandGitHub fa0b616334 Merge pull request #20561 from grantila/master
[node] [crypto] Added missing crypto update types
2017-12-13 09:49:47 -08:00
Gustaf Räntilä a81ca537d5 zlib.params with mandatory callback 2017-12-13 16:47:23 +01:00
Gustaf Räntilä 4dadace68b zlib callbacks now strictly () = >void 2017-12-13 16:36:32 +01:00
Gustaf Räntilä 340885a03e Fixed zlib.flush 'kind' argument 2017-12-13 16:27:50 +01:00
Gustaf Räntilä 784a62737e Added zlib stream methods/properties 2017-12-13 13:57:49 +01:00
Gustaf Räntilä 21f749d3f3 Merge remote-tracking branch 'upstream/master' 2017-12-13 12:54:10 +01:00
Alberto SchiabelandGitHub 6b8a981058 [node.perf_hooks] changed property boolean to optional 2017-12-13 10:36:28 +01:00
jkomyno 151f13c920 [node.perf_hooks] Various fixes, added PerformanceObserver and constants 2017-12-13 00:42:34 +01:00
Mine StarksandGitHub 736ebf768c Merge pull request #22010 from GrabCAD/master
Add types for Error.prepareStackTrace()
2017-12-11 09:14:14 -08:00
Alberto SchiabelandGitHub 91496380ed Update index.d.ts 2017-12-10 17:18:30 +01:00
jkomyno 0d80be9350 node: increased target version to 8.5.x in the header 2017-12-07 21:23:30 +01:00
jkomyno 8867eb032a node: added perf_hooks module definition 2017-12-07 21:15:14 +01:00
Howard Mak 95b94efe8d Clean up comments for NodeJS.CallSite methods. Make "this" references clearer. 2017-12-07 13:46:40 -05:00