Commit Graph

276 Commits

Author SHA1 Message Date
Andy
37685e11dd Add tslint disables for no-const-enum (#23134) 2018-01-23 18:19:36 +00:00
Flarna
2c88afc6f8 [node] sync nodejs v8 with recent changes done on latest (#22816) 2018-01-17 13:09:15 -08:00
OwnageIsMagic
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
Andy
d28699513a
node: Fix whitespace (#22694) 2018-01-05 08:18:22 -08:00
Klaus Meinhardt
46afc73cfb node: add module.paths (#22578) 2018-01-04 09:25:08 -08:00
Evan Shortiss
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 Tomalka
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
hoo29
34f8553e46 Update index.d.ts (#22338)
added secureProtocol to ServerOptions
2018-01-03 13:34:09 -08:00
Mohamed Hegazy
c152f305b9
Add inspectPort to ClusterSettings (#22652) 2018-01-03 12:59:29 -08:00
Daniel Milbrandt
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
Flarna
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 Ozga
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 Starks
dc7448628c
Merge pull request #20725 from thewizarodofoz/master
fix Worker.id type
2017-12-13 14:46:37 -08:00
Mine Starks
96f8777eb5
Merge pull request #22037 from jkomyno/master
node: added perf_hooks module definition
2017-12-13 09:50:30 -08:00
Mine Starks
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 Schiabel
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 Starks
736ebf768c
Merge pull request #22010 from GrabCAD/master
Add types for Error.prepareStackTrace()
2017-12-11 09:14:14 -08:00
Alberto Schiabel
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
Howard Mak
4d1ff2f02e PR feedback: Tighten signatures for CallSite methods 2017-12-07 13:20:39 -05:00
Howard Mak
4950326dd4 PR feedback: Add test for tighter CallSite signatures 2017-12-07 12:56:37 -05:00
Bowden Kelly
f076ad2c79
Merge pull request #21994 from ctaggart/rm-node-_debugger
remove removed legacy Node _debugger API
2017-12-06 15:56:55 -08:00
Bowden Kelly
4dd2928253
Merge pull request #21937 from ariaviran/node4_buffer_alloc
[node] Add Buffer.alloc methods to node v4
2017-12-06 10:58:53 -08:00
Bowden Kelly
ee2ab184c3
Merge pull request #20720 from OliverJAsh/patch-14
Node: remove redundant widen of query type to any + tidy up
2017-12-06 10:58:18 -08:00
Bowden Kelly
8f912d207d
Merge pull request #21764 from ctaggart/http2-constants
node export http2 constants in standard way
2017-12-06 10:57:43 -08:00
Cameron Taggart
2871b1c240 remove removed legacy Node _debugger API 2017-12-05 21:06:38 -03:00
Howard Mak
a30bc16f3c Tighten signature for CallSite.getTypeName() 2017-12-05 14:54:29 -05:00
Howard Mak
75dabcb90f Fix some CallSite properties to be functions not boolean values 2017-12-05 14:43:26 -05:00
Howard Mak
658b8af522 Rename NodeJS.StackFrame -> CallSite to match documentation 2017-12-05 14:33:37 -05:00
Hannes Magnusson
1e269d56b3 Fix providing TLS options through AgentOptions 2017-12-05 10:47:12 -08:00
Oliver Joseph Ash
6ad156cd17 Node: use bracket notation for index signature lookup for TS 2.1
Support for index signature properties via dot notation was only added in TS 2.2 https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in-TypeScript#dotted-property-for-types-with-string-index-signatures
2017-12-05 12:24:06 +00:00
Oliver Joseph Ash
63cf621848 Merge branch 'master' into patch-14 2017-12-05 12:12:23 +00:00
Ari Aviran
2b4eb32abf
Reverting tslint changes 2017-12-05 08:40:44 +02:00
Ari Aviran
1e7042bf39
Merge remote-tracking branch 'first/master' into node4_buffer_alloc 2017-12-05 08:38:46 +02:00
Howard Mak
e0ba98cf88 Add signature for Error.prepareStackTrace() as per https://github.com/v8/v8/wiki/Stack%20Trace%20API 2017-12-05 00:24:40 -05:00
Hannes Magnusson
a385b18cd6 Export nodejs native tls.checkServerIdentity function 2017-12-04 12:18:51 -08:00
Hannes Magnusson
d251c643c3 Fix lint error: 'tslint:disable' is forbidden 2017-12-04 07:38:30 -08:00
Ari Aviran
dccfda5de4
[node] Add Buffer.alloc methods to node v4
Add `Buffer.alloc`, `Buffer.allocUnsafe` and `Buffer.allocUnsafeSlow`
class methods that were backported to node v4 (starting with v4.5).

In addition add tests to all node versions for these class methods and
fix tslint configuration to pass the tests
2017-12-04 12:02:43 +02:00
Cameron Taggart
a59ba0346c export http2 constants in standard way 2017-11-26 22:25:40 -03:00
Piotr Roszatycki
e36486c4e8 padLeft/padRight are defined in es2017.string lib already 2017-11-21 11:23:55 +01:00
Piotr Roszatycki
ff4b1f0af7 String object has additional ES2017 and ESNEXT methods 2017-11-17 13:51:19 +01:00