-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ext/node): add missing release
property to node's process
#18923
Conversation
Docs: https://nodejs.org/api/process.html#processrelease ```ts import process from 'node:process'; console.log(process.release); // outputs: // { // name: "deno", // sourceUrl: "https://github.com/denoland/deno/archive/refs/tags/v1.33.1.tar.gz", // headersUrl: "https://github.com/denoland/deno/archive/refs/tags/v1.33.1.tar.gz" // } ``` Signed-off-by: Yarden Shoham <git@yardenshoham.com>
I made it use |
I wonder if we should set |
@yardenshoham if it was changed to 'deno' that wouldn't address the original issue I filed which was an exisiting Guess it depends on deno's intent with the If I was a library author trying to support Deno and Node and needed conditional logic / environment specific behaviors then I'd be checking for the |
Or to put it another way. I think for |
I agree, I changed it |
@yardenshoham Can you run |
It failed on a flaky test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
Docs: https://nodejs.org/api/process.html#processrelease