Skip to content
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

feat: deprecate Deno.{stdin,stdout,stderr}.rid #22073

Merged
merged 5 commits into from
Jan 24, 2024

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Jan 24, 2024

For removal in Deno v2. There are two issues:

  1. Any script being run causes the output of warnOnDeprecatedApi() to be printed, even when none of the rid properties are called.
  2. .rid of these classes is used in multiple tests. I'm not sure how to account for that. I thought of having STDIN_RID, and friends, constants, whose values can be shared between the tests and the classes themselves. Should we go with that or do something else?

@bartlomieju bartlomieju added this to the 1.40 milestone Jan 24, 2024
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

.rid of these classes is used in multiple tests. I'm not sure how to account for that. I thought of having STDIN_RID, and friends, constants, whose values can be shared between the tests and the classes themselves. Should we go with that or do something else?

Let's address this in a followup

@bartlomieju bartlomieju merged commit 300eeb3 into denoland:main Jan 24, 2024
14 checks passed
@iuioiua iuioiua deleted the deprecate-stdstreams-rid branch January 24, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants