-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
lib: make event static properties non writable and configurable #50425
lib: make event static properties non writable and configurable #50425
Conversation
making |
I've run the linter and fixed the errors, and also changed up stuff a bit. Please review @KhafraDev |
@BenzeneAlcohol Can you please fix the issue on the first commit? https://github.com/nodejs/node/actions/runs/6690083519/job/18190085079?pr=50425 But thanks for the PR, looks great! |
da98db5
to
e90fbb1
Compare
Done, thank you! :) |
The test for some reason runs on the old commit message? |
Any changes I have to further make? |
You can squash everything, or you can rebase, but you need to change the commit message, both should work. |
e90fbb1
to
53502c7
Compare
Squashed into one commit. |
Ok, I have a very noob question. But I do some small changes, and every time do I have to make the detailed commit message? Because sometimes the change I do is like removing a few lines (like I removed a few console lines) but then the commit message should contain details about the actual change in case it gets merged. So do I just wait for approval, then rebase all changes to 1 commit message? And have normal commit messages, 1 liners till that one final rebased single commit. |
From what I know, only the first message will be used to create the commit description, so it's fine you keep the first commit with the message and then create other commits for minor fixes. About all commits, I will later add a flag to squash everything, so all the commits will be released as just one commit. |
I believe only the first commit must be detailed, because they typically get squashed automatically when merged. Personally, I use |
Got it, thanks! |
Alrighty! |
Does that failed pipeline for 4 checks indicate any changes I have to do or are they some flaky tests? |
Its not because of your changes. |
1923af3
to
b8cb3cc
Compare
Done |
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
Is this semver-major or do we consider it a bug fix? |
I think it is a bug fix since people are not supposed to change/modify these properties. But if we want to be cautious, a semver-minor can be applied. Maybe run CITMG too? |
definitely a bug fix, I wouldn't consider it a major change. If someone relied on changing these properties, they were relying on a bug. |
Agreed. Does it need semver-minor? |
Does this need anything else before merging? |
@KhafraDev and @H4ad any blockers stopping this from merge? |
Landed in b4850f2 |
IMO No. It's already landed |
The idl definition for Event makes the properties constant this means that they shouldn't be configurable and writable. However, they were, and this commit fixes that. Fixes: #50417 PR-URL: #50425 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
The idl definition for Event makes the properties constant this means that they shouldn't be configurable and writable. However, they were, and this commit fixes that. Fixes: #50417 PR-URL: #50425 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
The idl definition for Event makes the properties constant this means that they shouldn't be configurable and writable. However, they were, and this commit fixes that. Fixes: #50417 PR-URL: #50425 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
The idl definition for Event makes the properties constants, this means that they shouldn't be configurable. However, they were, and this commit fixes that.
Fixes: #50417