-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Rename ReferenceFlag
to ReferenceFlags
(plural)
#4991
Comments
When you make this change, could you add a re-export of |
Good idea. How do I mark the export as deprecated? (not done that before) Ditto for the |
Actually, on 2nd thoughts, I'm not sure we should get into deprecation for such a simple change. Oxc is not at v1.0.0 yet, and we're making breaking changes all the time. This change is extremely minor compared to most of them, and if we leave an extra What do you think? |
If it's not too much effort, deprecating for a single release could be worth it. It is definitely appreciated when upgrades do not break your code without warning :) If you think we won't remember to clean it up, then adding a deprecation is not worth it. After all, like you said, it is a very small change. |
Personally, my view is that it's not worth it. I do understand that breaking changes are always painful, but we are nowhere near a stable API for But also: If we also exported |
All the other semantic flags have plural names -
ScopeFlags
,SymbolFlags
,NodeFlags
.ReferenceFlag
is the outlier.Rename:
ReferenceFlag
toReferenceFlags
.Reference::flag
field toflags
.Reference::flag
method toflags
.Reference::flag_mut
method toflags_mut
.flag
toflags
.Only reason I'm opening an issue for this rather than just submitting a PR is it'd cause merge conflicts with PR stack #4973, so will wait for that to get merged first.
The text was updated successfully, but these errors were encountered: