Commit Graph
147 Commits
Author SHA1 Message Date
Gerhard StöbichandAndy 2bb44da669 [node] introduce TypedArray (#27387) 2018-07-24 10:08:06 -07:00
Daniel RosenwasserandGitHub bd2b1d6be9 Merge pull request #26678 from DefinitelyTyped/strictAssert
Added 'strict' to the 'assert' module.
2018-07-05 15:59:21 -07:00
Jeff JacobsonandMohamed Hegazy 8d0b168575 [node] Added missing COPYFILE_* constants (#27036)
fixes #26534
2018-07-05 12:50:34 -07:00
Gerhard Stoebich 382f56c51d [node] add crypto.scrypt and crypto.scryptSync 2018-06-26 18:04:09 +02:00
ZaneHannanAUandGitHub 36a8cba524 [@types/node] Add tests for extended InspectOptions 2018-06-23 10:06:59 +10:00
ZaneHannanAUandGitHub 11dac82bbe rewrite tests to pass linter
```

ERROR: 1175:53  whitespace                  missing whitespace
ERROR: 1189:1   no-consecutive-blank-lines  Consecutive blank lines are forbidden
ERROR: 1203:60  semicolon                   Missing semicolon
ERROR: 1204:58  semicolon                   Missing semicolon
ERROR: 1205:52  semicolon                   Missing semicolon
ERROR: 1206:74  semicolon                   Missing semicolon
ERROR: 1245:13  expect                      TypeScript@next compile error: 
Cannot redeclare block-scoped variable 'arr'.
ERROR: 1255:13  expect                      TypeScript@next compile error: 
Cannot redeclare block-scoped variable 'arr'.
```
2018-06-20 20:37:03 +10:00
ZaneHannanAUandGitHub 1408e34280 Fix more tests 2018-06-20 20:04:39 +10:00
ZaneHannanAUandGitHub da64ac90bb fix excess whitespace, fix new DataView 2018-06-20 19:03:33 +10:00
ZaneHannanAUandGitHub f08ee82ae4 Merge branch 'master' into ZaneHannanAU-patch-1 2018-06-20 17:25:10 +10:00
Daniel Rosenwasser 35b9eb2800 Added 'strict' to the 'assert' module. 2018-06-19 13:23:39 -07:00
ZaneHannanAUandGitHub bbab2bd291 Update crypto tests to use different ArrayBuffer types. 2018-06-19 16:12:45 +10:00
Nathan Shively-SandersandGitHub ba6955eb3f Merge pull request #26613 from ZaneHannanAU/patch-2
Missing definition for `dns.resolveAny` and `dns.resolve(domain, 'ANY')` in `@types/node`
2018-06-18 15:13:59 -07:00
ZaneHannanAUandGitHub 169b206383 ... fix spelling mistake 2018-06-18 11:48:35 +10:00
ZaneHannanAUandGitHub 7521d75c2a Fix references, add AnyTxtRecord 2018-06-18 10:52:32 +10:00
ZaneHannanAUandGitHub 6edbf642ee Add test for resolve(hostname, "ANY")
Test for `resolveAny` not added as other tests for the same haven't been added.
2018-06-18 10:34:39 +10:00
islishude 9e33d7d953 fix(node): fix ECDH.converKey() 2018-06-17 10:58:28 +08:00
Mine StarksandGitHub 6397998e23 Merge pull request #26512 from Flarna/node_correct_http2_status
[node] Correct type of incoming http2 ':status' header
2018-06-13 09:31:01 -07:00
Gerhard Stoebich 4b2b0cf993 [node] Correct type of incoming http2 ':status' header 2018-06-13 13:06:55 +02: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
Jinwoo Lee 85d3c44357 node: add argv0 as one of options for spawn and spawnSync
It is documented for `spawn` in
https://nodejs.org/dist/latest-v10.x/docs/api/child_process.html#child_process_child_process_spawn_command_args_options

It's not documented for `spawnSync`, but since `spawnSync` uses the same
function (normalizeSpawnArguments) for normalizing the options, it
should be there too:
https://github.com/nodejs/node/blob/master/lib/child_process.js#L545
2018-06-04 09:33:44 -07:00
Gerhard Stoebich f3d61f1802 [node] Argument code in Http2Stream.close() is optional 2018-05-24 13:59:22 +02:00
Ron BucktonandGitHub 00bedbf8df Merge pull request #25742 from isLishude/node-util-feat
feat(node9&10): add `TextDecoder` and `TextEncoder` for `util` module
2018-05-14 13:45:51 -07:00
Ron BucktonandGitHub fd5e39c746 Merge pull request #25613 from Flarna/node_v10_updates
[node] Add some NodeJS 10 changes
2018-05-14 10:59:26 -07:00
islishude 58379cb180 feat(node9&10): add TextDecoder and TextEncoder for util module 2018-05-13 19:13:40 +08:00
Nico JansenandSheetal Nandi db27d0733d fix(node): add support for Buffer.from(uint8Array) (#25630)
* fix(Node buffer): add support for `from(buffer)`

* refactor(Node buffer): consolidate overloads of `Buffer.from`
2018-05-09 15:11:52 -07:00
James BromwellandSheetal Nandi ba59e57720 node, ws: address() method on Server and related classes can return a string (#25597)
* node: ClearTextStream hasn't existed for 3 years

* node: move AddressInfo to net module; address() can return string

* ws: Server.address() can return string (same as net.Server.address etc)

* Fix some tests that assumed Server.address returns AddressInfo
Amending commit message to re-trigger Travis build.
2018-05-08 10:23:49 -07:00
Gerhard Stoebich fdb0cdc4ad [node] Add some NodeJS 10 changes 2018-05-08 15:55:39 +02:00
Blair ZajacandMohamed Hegazy d010c2aeab node: add util.isDeepStrictEqual() for v9 and v10. (#25408) 2018-04-30 16:27:34 -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
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
Frank Schulz a36a10b2bf Add tests 2018-03-21 12:53:58 +01:00
Kelvin Jin ef646be4a4 [node] Bump async_hooks definitions to v8.10/v9.6 2018-03-20 17:15:48 -07:00
Vidar Tonaas Fauske 3f9d7f0bca node: Add test for windowsHide option
Test for commit 685800783a
2018-02-15 13:08:20 +01:00
Daniel RosenwasserandGitHub 4219597f8d Merge pull request #23330 from kjin/http2-9.4
[node] Update http2 definitions for 9.4
2018-02-13 10:34:47 -08:00
Kelvin Jin a25c336a59 [node] Update http2 definitions for 9.4 2018-02-12 16:54:37 -05:00
FlarnaandAndy 97e17866e8 [node] Improve return type of fs.readdir() and fs.readdirsync() (#23440)
* [node] Improve return type of fs.readdir() and fs.readdirsync()

* additionally update v6
2018-02-08 07:33:55 -08:00
AndyandGitHub b890bf4556 Fix node tests to be compatible with --esModuleInterop (#23437) 2018-02-05 13:08:34 -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
Klaus MeinhardtandMohamed Hegazy 46afc73cfb node: add module.paths (#22578) 2018-01-04 09:25:08 -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
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
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ä 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
jkomyno 151f13c920 [node.perf_hooks] Various fixes, added PerformanceObserver and constants 2017-12-13 00:42:34 +01:00