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

chore: add deprecation notices to FsFile methods #21701

Closed
wants to merge 2 commits into from

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Dec 26, 2023

No description provided.

@@ -2275,6 +2275,9 @@ declare namespace Deno {
* file.close();
* ```
*
* @deprecated Use {@linkcode FsFile.writable} instead.
* {@linkcode FsFile.write} will be removed in v2.0.0.
*
Copy link
Member

@dsherret dsherret Dec 26, 2023

Choose a reason for hiding this comment

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

Where's the issue about these being deprecated? Closest I can find is #9795, but that doesn't seem to be about removing the methods on here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Removing those types seems ok, but removing these runtime functions is going too far, IMO. These functions are useful and easy to use. Removing them is going to break a lot of code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm okay with whatever we go with. I just thought this might've been missed with the previous PR. For context, this PR originated from denoland/std#4021 (comment).

@iuioiua
Copy link
Contributor Author

iuioiua commented Dec 27, 2023

Closing as there are no plans to deprecate these methods.

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