node
node copied to clipboard
Node.js JavaScript runtime ✨🐢🚀✨
Enforce stream invariant. No new errors can occur after `.destroy(err)`
### Version 18 vs 20 ### Platform macos ### Subsystem _No response_ ### What steps will reproduce the bug? On Node 18, I get this a lot (with no errors...
Refs #55310 This PR fixes AssertionError reporting when [`cause`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) is present.
### Version 22.9.0 ### Platform ```text Linux my-server 6.10.11-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.10.11-1 (2024-09-22) x86_64 GNU/Linux ``` ### Subsystem http2 ### What steps will reproduce the bug? server.mjs: ```js...
Refs: https://github.com/nodejs/node/issues/55446
We documentation-only deprecated URL.parse on v18, almost 2 years ago. Without a runtime deprecation people will continue to use it and be exposed to security flaws. This is a nudge...
### What is the problem this feature will solve? I would like to cleanly shut down a running http2 server that has existing client connections. In http.Server, the closeAllConnections method...
This PR introduces a new api in `node:module`. Fixes: https://github.com/nodejs/node/issues/54300
Another PR is updated V8 to 13.0, so I compiled a list of deprecations from that version onward. While they don't need to be fixed immediately, it's important to know...
We should use `v8::String::ValueView` instead. Refs: https://github.com/nodejs/node/blob/e4f61de14f8cfb83f1ce0ad1597b86278cd5f5f1/deps/v8/include/v8-primitive.h#L549-L553 /cc @anonrig