summaryrefslogtreecommitdiff
path: root/typings
Commit message (Collapse)AuthorAgeFilesLines
* url: use ada::url_aggregator for parsing urlsYagiz Nizipli2023-04-051-0/+12
| | | | | | PR-URL: https://github.com/nodejs/node/pull/47339 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
* crypto: remove obsolete SSL_OP_* constantsTobias Nießen2023-03-211-16/+0
| | | | | | | | | | | | | | | | | | | None of these constants have any effect in recent OpenSSL versions, not even in Node.js release lines that still use OpenSSL 1.1.1. It is likely rare that these options are still used (intentionally), and removing them is unlikely to break any existing applications. These constants can only be passed to the secureOptions option of tls.createSecureContext() and related APIs, and a value of undefined will be ignored. Similarly, if a bitwise combination of multiple options is used, undefined constants will not change the behavior because (a | undefined | b) === (a | b) for (small) integers a and b. Refs: https://github.com/nodejs/node/pull/46954 Refs: https://github.com/nodejs/node/pull/47066 PR-URL: https://github.com/nodejs/node/pull/47073 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
* crypto: remove ALPN_ENABLEDTobias Nießen2023-03-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | This constant was likely introduced for feature detection, but it has been pointless for a long time. 1. I am not aware of any possible Node.js build configuration (on any recent/supported release line) that would have crypto.constants but not crypto.constants.ALPN_ENABLED. 2. There is no evidence of this constant being used for feature detection in the ecosystem. In fact, both internal and external type definitions for crypto.constants simply assume that the constant exists. 3. There is no good reason for any modern TLS stack to not support ALPN. It looks like ALPN might have been optional in much earlier versions of OpenSSL, but all recent versions of OpenSSL unconditionally support ALPN as far as I can tell. Refs: https://github.com/nodejs/node/pull/46956 PR-URL: https://github.com/nodejs/node/pull/47028 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
* typings: improve `primordials` typingsAntoine du Hamel2023-03-081-0/+3
| | | | | PR-URL: https://github.com/nodejs/node/pull/46970 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
* crypto: refactor ArrayBuffer to bigint conversion utilsAntoine du Hamel2022-11-271-0/+2
| | | | | | PR-URL: https://github.com/nodejs/node/pull/45567 Refs: https://github.com/nodejs/performance/issues/16 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* src: remove unused `contextify_global_private_symbol`Daeyeon Jeong2022-10-241-7/+6
| | | | | | | | | | | | | | | `contextify_global_private_symbol` is no longer used. It was used to hold a new context's global object, but the approach has been changed to hold a ContextifyContext wrapper using `contextify_context_private_symbol`. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com> PR-URL: https://github.com/nodejs/node/pull/45128 Refs: https://github.com/nodejs/node/pull/44796 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
* src: optimize ALPN callbackBen Noordhuis2022-10-191-1/+0
| | | | | | | | | | | | | It doesn't make sense from a performance perspective to retain an arraybuffer with the ALPN byte string and look it up as a property on the JS context object for every TLS handshake. Store the byte string in the C++ TLSWrap object instead. That's both a lot faster and a lot simpler. PR-URL: https://github.com/nodejs/node/pull/44875 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
* src: use a typed array internally for process._exitingDarshan Sen2022-07-311-0/+1
| | | | | | | | | | | | | | This would prevent manual writes to the _exiting JS property on the process object by passing the data directly via a typed array for performance. This change partially addresses this TODO: https://github.com/nodejs/node/blob/3d575a4f1bd197c3ce669758a2a3c763462a883a/src/api/hooks.cc#L68-L71 Signed-off-by: Darshan Sen <raisinten@gmail.com> PR-URL: https://github.com/nodejs/node/pull/43883 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
* async_hooks: remove destroyed symbol on PromisesGerhard Stöbich2022-03-211-1/+1
| | | | | | | | Promises are never destroyed manually therefore it's not needed to attach an object to track if destroy hook was called already. PR-URL: https://github.com/nodejs/node/pull/42402 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
* typings: add types for symbol and accessor properties on `primordials`ExE Boss2021-12-311-52/+117
| | | | PR-URL: https://github.com/nodejs/node/pull/40992 Reviewed-By: James M Snell <jasnell@gmail.com>
* typings: add more bindings typingsMestery2021-10-313-24/+173
| | | | | | PR-URL: https://github.com/nodejs/node/pull/40415 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
* typings: improve internal bindings typingsMestery2021-10-2811-442/+501
| | | | | | PR-URL: https://github.com/nodejs/node/pull/40411 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* typings: separate `internalBinding` typingsMestery2021-10-205-42/+42
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/40409 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
* typings: define types for os bindingMichaël Zasso2021-10-101-0/+21
| | | | | | | | | PR-URL: https://github.com/nodejs/node/pull/40222 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
* typings: add missing types to options and util bindingsMichaël Zasso2021-10-102-0/+2
| | | | | | | | | PR-URL: https://github.com/nodejs/node/pull/40222 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
* typings: define types for timers bindingMichaël Zasso2021-10-101-0/+8
| | | | | | | | | PR-URL: https://github.com/nodejs/node/pull/40222 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
* typings: fix declaration of primordialsMichaël Zasso2021-10-101-1/+5
| | | | | | | | | | PR-URL: https://github.com/nodejs/node/pull/40222 Fixes: https://github.com/nodejs/node/issues/40144 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
* typings: define types for symbols bindingMichaël Zasso2021-09-261-0/+3
| | | | | PR-URL: https://github.com/nodejs/node/pull/40143 Reviewed-By: James M Snell <jasnell@gmail.com>
* typings: define types for worker and messaging bindingsMichaël Zasso2021-09-262-0/+64
| | | | | PR-URL: https://github.com/nodejs/node/pull/40143 Reviewed-By: James M Snell <jasnell@gmail.com>
* stream: implement WHATWG streamsJames M Snell2021-06-301-5/+8
| | | | | | | | | | Experimental implementation of the WHATWG streams standard. Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/39062 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
* typings: add types for "http_parser" and "options" bindingsMichaël Zasso2021-04-182-0/+76
| | | | | | PR-URL: https://github.com/nodejs/node/pull/38239 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniele Belardi <dwon.dnl@gmail.com>
* typings: add types for internalBinding('serdes')Michaël Zasso2021-04-181-0/+34
| | | | | | PR-URL: https://github.com/nodejs/node/pull/38204 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* typings: add types for internalBinding('util')Michaël Zasso2021-04-141-0/+47
| | | | | | PR-URL: https://github.com/nodejs/node/pull/38200 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
* typings: add types for internalBinding('fs')Michaël Zasso2021-04-141-0/+258
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/38198 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
* lib: add tsconfig for code completionsBradley Farias2021-04-082-0/+967
PR-URL: https://github.com/nodejs/node/pull/38042 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>