Matteo Collina

Results 2637 comments of Matteo Collina

My goal for this hook is to reach a state where the following user experience is possible: ```bash $ node script.ts Typescript support is missing, install it with: npm i...

> The user experience of ts-node is literally ts-node script.ts. I'm not sure how we would get a helpful prompt like that even with this proposal, unless we hard-code something...

I think we need a solution that would work for both cjs and esm. I'm not sure if we could do that without stopping the event loop.

> Might be some confusion here between "hooks installer" and "loader hooks," since the former will probably execute within the main thread, and the latter will probably move off-thread. Aggreed!...

I didn't know about the failing tests, but there are fundamental event-loop differences between ESM and commonjs. Checkout https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/. In event loop lingo, ESM starts with a loop that's already...

In addition to what @aduh95 said, moving to ESM entry point will completely change the diagnostics use case and force _everybody_ to use some level of experimental hook or loader....

There will user-facing breaking changes to most users of async_hooks.

All the APM product category for Node.js is based on async_hooks.

We are lacking quite a few user friendly explanations of async_hooks. When async_hooks are active, every asynchronous activity in Node.js has an id and a _parent_ id. In other terms,...