Commit Graph
67 Commits
Author SHA1 Message Date
Johan Levin fdc6bde01e Add cidr property to NetworkInterfaceBase interface 2018-08-24 09:14:35 +03:00
Jonathan StewmonandAndy ae9730b579 callback err should be optional in promisify signatures without a result (#28307) 2018-08-23 16:36:13 -07:00
Kelvin JinandAndy 9b5c17209f [node] bump inspector types (#28039) 2018-08-23 16:04:06 -07:00
ikokostyaandAndy bd0f04155c [node] Add dns.Resolver declaration (#28102)
* [node] Add dns.Resolver declaration

* Add test cases

* Improve test cases
2018-08-14 08:08:48 -07:00
ikokostyaandAndy b3387d6338 [node] Update declarations for dns.resolveAny (#27950)
* [node] Update declarations for dns.resolveAny

* Fix dns.resolve test

* Add CNAME record type

* Use @deprecated tag for AnyRecordWithTtl interface
2018-08-10 15:39:39 -07:00
Eugene Y. Q. ShenandAndy f9dcdecd8b [node]: Update assert.fail parameters (#27622)
[assert.fail](https://nodejs.org/api/assert.html#assert_assert_fail_message)
has an optional `message` parameter that can be either a `string` or `Error`.
2018-08-06 09:28:50 -07:00
Louis-Dominique DubeauandSheetal Nandi e425a450ce node: add the 3rd parameter to URLSearchParams.forEach (#27732)
The documentation for [URLSearchParams.forEach][1] shows that the
callback function will be called with 3 parameters. This has been true
since Node 6. This commit adds a definition for the 3rd parameter to
the definition files for Node 6, 7, 8, 9 and 10.

[1]: https://nodejs.org/api/url.html#url_urlsearchparams_foreach_fn_thisarg
2018-07-31 15:43:02 -07:00
Brian CrowellandAndy 21077b2657 [node]: Make stream destroy method signatures match (#27608)
* [node]: Make stream destroy method signatures match

The "destroy" option when creating streams has the same signature as the
_destroy method on the stream: a function accepting an optional error and a
callback which also takes an optional error.

* Fix tests affected by the change in stream definitions
2018-07-27 10:52:13 -07:00
Akihiko OdakiandMohamed Hegazy 8691cd12f7 Add missing maxFreeSockets property of Agent class in node (#27014) 2018-07-05 12:51:29 -07:00
Andrew Makarov be6409bb59 Update tests 2018-06-10 23:08:28 +03:00
Andrew Makarov 9b615f3a76 Add dns.lookupService method 2018-06-09 23:09:07 +03:00
Armando AguirreandGitHub 80123afd0d Merge pull request #25975 from KSXGitHub/symlink-type-union
Set type of symlink parameter `type` to a union of `"file" | "dir" | "junction" | undefined | null`
2018-06-06 13:18:17 -07:00
Benjamin LichtmanandGitHub 6e60ac624c Merge pull request #26089 from Flarna/node_readlineopts
[node] add some ReadLineOptions parameters
2018-05-31 10:02:02 -07:00
Oliver Joseph Ash 10b90e8003 Node: remove myself as author 2018-05-30 09:34:15 +01:00
Gerhard Stoebich bd8e2a3d3f [node] add some ReadLineOptions parameters 2018-05-28 21:41:40 +02:00
khai96_ 80987f1428 Set type of symlink parameter 'type' to a union 2018-05-24 00:41:03 +07:00
Ron BucktonandGitHub 7a9adc604a Merge pull request #25831 from ionut-botizan/master
[node] Add debugPort to the Process interface
2018-05-18 13:51:10 -07:00
Ionut Botizan 1b2f3e2ba1 [node] Add debugPort to the Process interface
https://nodejs.org/api/process.html#process_process_debugport
2018-05-17 09:24:41 +03:00
Oliver Joseph Ash 7da1141f4e Node: add undefined to ParsedUrlQuery index signature 2018-05-16 13:13:56 +01:00
islishude c31b37eb16 fix: fix typos 2018-05-14 21:00:14 +08:00
Bryan HughesandAndy 8cd6bba3b3 Updated Node.js dgram.send() signature with recent changes in Node.js API (#25664)
* Updated “send” signature with recent changse

* Fixed some other issues with send() signature and added Node 10
2018-05-10 15:40:37 -07:00
Margaret NolanandSheetal Nandi c9d2d02185 Add 'external' to node v6, v7, v8, v9, and v10 MemoryUsage interface (#25580) 2018-05-07 12:37:08 -07:00
Jérémie AstoriandAndy dd0d4ad0c4 Type spawn's args as a ReadonlyArray of string (#25487)
At the moment, this snippet:

```ts
const spawnArgs: ReadonlyArray<string> = ['foo', 'bar'];
spawn('foobar', spawnArgs);
```

fails with:

```
Argument of type 'ReadonlyArray<string>' is not assignable to parameter of type 'string[] | undefined'.
  Type 'ReadonlyArray<string>' is not assignable to type 'string[]'.
```

Looking at https://github.com/nodejs/node/blob/master/lib/child_process.js#L514-L535 and https://github.com/nodejs/node/blob/master/lib/internal/child_process.js#L286, it _looks_ like there is no mutation of the array. I am no expert so I'd be happy to be proven wrong, I just couldn't find sufficient evidence that a `ReadonlyArray` wouldn't be fine.
This is not a breaking change because passing a `string[]` is still valid.
2018-05-03 08:57:27 -07:00
Brian CrowellandAndy edd9c31ed8 [node] Allow object-mode write and writev in WritableOptions (#25263)
Writable's write function accepts chunks of type any to permit object-mode
usage. The implementations you can provide to Writable's constructor should
do the same.
2018-04-30 09:14:16 -07:00
Shude LiandWesley Wigham a39131b390 feat(node-v8): add TextDecoder and TextEncoder for util module (#25221)
* feat(node-v8): add `TextDecoder` and `TextEncoder` for `util` module

* fix(node-v8): change  constructor's first param name

* style(node-v8): styling `TextDecoder`

* refact(node-v8): using class instead interface+var

* test(node-v8): add tests for util.TextDecoder and util.TextEncoder

* fix(node-v8): fix param type of TextDecoder.decode
2018-04-24 16:09:44 -07:00
Bruno ScheuflerandAndy aa93526d48 Node: Added missing windowsHide properties to SpawnOptions (revision) (#25122)
* Added missing windowsHide properties to SpawnOptions of child_process module

* Retrigger CI
2018-04-19 08:45:08 -07:00
Alexander TandMohamed Hegazy dcf3384ac2 Microsoft/TypeScript#23155 - Type error in Buffer.from() (#24966) 2018-04-13 08:50:15 -07:00
Gerhard StöbichandMohamed Hegazy a9ae33a9f6 [node] Sync v8 and v9 (#24852)
* [node] Sync v8 and v9

* sync vm test added in v8 only
2018-04-10 12:19:17 -07:00
Mohsen AzimiandMohamed Hegazy 5193c7c6ed Add string option for vm.runIn*Context methods in Node.js typing (#24798)
* Add string option for vm.runIn*Context methods

* Add test

* lint
2018-04-10 10:15:37 -07:00
KhảiandMohamed Hegazy 52670470e3 Change type of path.sep and path.delimiter in @types/node (#24833)
* Update type of path.sep and path.delimiter

* Change `path.sep` to `'\\' | '/'`
* Change `path.delimiter` to  `';' | ':'`

* Update index.d.ts

* Change types of path.sep and path.delimiter in types/node/{v8,v6}

* Change types of path.sep and path.delimiter in types/node/v7
2018-04-09 13:52:55 -07:00
Shude LiandMohamed Hegazy 92801a99e3 node@8: fix return type of Cipher. setAAD() and Cipher. setAutoPadding() (#24801)
* fix: fix return type of Cipher. setAAD() and Cipher. setAutoPadding()

* node@8: fix return types of Decipher.setAAD() and Decipher.setAutoPadding()

* fix: fix return types of Decipher.setAuthTag()
2018-04-09 10:45:10 -07:00
emzeroit d518f489e7 Merge https://github.com/DefinitelyTyped/DefinitelyTyped 2018-04-06 15:12:31 -03:00
emzeroit c974fcb070 [@types/node] Added authorization property to IncomingHttpHeaders. 2018-04-06 14:32:25 -03:00
Blair Zajac 4bcf0f6866 node: assert.fail() has never return type. 2018-03-30 23:47:08 -07:00
ikokostya 5a64d54d73 @types/node: Add url.domainToASCII, url.domainToUnicode 2018-03-27 17:54:26 +03:00
Mine StarksandGitHub 166b1e778a Merge pull request #24440 from frankschulz/master
Fix https.globalAgent.options in node package
2018-03-21 09:42:33 -07:00
Mine StarksandGitHub 6f1d8d7096 Merge pull request #24422 from kjin/node-ah-9.6
[node] Bump async_hooks definitions to v8.10/v9.6
2018-03-21 09:30:34 -07:00
Mine StarksandGitHub 8995fea587 Merge pull request #24072 from n-e/master
Fix: node: util/promisify: Allow null as the first argument for the callback
2018-03-21 09:03:54 -07:00
Frank Schulz a36a10b2bf Add tests 2018-03-21 12:53:58 +01:00
Frank Schulz 2b5cfcfb05 Fix https type 2018-03-21 12:37:33 +01:00
Kelvin Jin ef646be4a4 [node] Bump async_hooks definitions to v8.10/v9.6 2018-03-20 17:15:48 -07:00
Armando AguirreandGitHub 567545aec8 Merge pull request #23665 from vidartf/node-child
node: Add child_process options for Windows
2018-03-07 12:29:10 -08:00
Vidar Tonaas Fauske 063b3d77a8 node: Add windowsHide opt to v8 docs also 2018-03-07 16:35:42 +01:00
StevenandAndy 1700ece8de Add TlsSocket.getProtocol() to node (#24116) 2018-03-06 14:26:07 -08:00
Nicolas Even 9d5ace7819 Fix: node: util/promisify: Allow null as the first argument for the callback 2018-03-04 18:58:21 +01:00
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Daniel RosenwasserandGitHub 27e260259e Merge pull request #23615 from hoo29/master
[node] undo TlsOptions name change
2018-02-13 12:13:32 -08:00
Huw McNamara d3045c2a59 undid TlsOptions name change node v8 2018-02-13 18:45:46 +00:00
Daniel RosenwasserandGitHub 86e2bc1cf0 Merge pull request #23486 from mentos1386/mentos1386-node-tty-class-fix
[NodeJS] TTY ReadStream Interface to Class fix
2018-02-13 10:31:42 -08:00
Daniel RosenwasserandGitHub 45e71c9c2b Merge pull request #23393 from hoo29/master
[node] tidied up and de-duplicated tls related options
2018-02-10 10:34:57 -08:00