| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I am fine with this, but I checked the "spec" and it says nothing regarding the output. Its even worse, LOL See |
Sorry, something went wrong.
Yeah. The WHATWG, is not suppose mention the standards in very detail. They have the links to MDN. |
Sorry, something went wrong.
|
Yes and the mdn does not state that the entries are left aligned but just contains a screenshot. |
Sorry, something went wrong.
|
What was the original reason for centering it in Node.js? Is there a git blame? |
Sorry, something went wrong.
|
I have the feeling this might break some stuff based on snapshots/benchmarks |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM this aligns with browser behavior for a primarily browser-compat-reasons API.
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Sorry, something went wrong.
|
It hasn't released yet. Thanks for catching up @marco-ippolito. Update: Wait, if this is now following the SPEC I wonder if this should be considered semver-major. |
Sorry, something went wrong.
|
The spec doesn't say anything about alignment, technically Node.js was spec-compliant before and after this PR landed. What changes is now Node.js output is closer to what browsers DevTools output. But anyway, I don't really how this change could break anyone, AFAICT the change is only visual. |
Sorry, something went wrong.
Output changes are considered semver-major. Marco tagged it because we've just mentioned it during the collab summit. |
Sorry, something went wrong.
There is no SPEC, now it just has the same behavior of browser |
Sorry, something went wrong.
I don’t think that’s true, for example changing an error message technically changes the output, yet we don’t consider it semver-major. Also the output of console.table is not observable from JavaScript without watching directly the stdout. |
Sorry, something went wrong.
We do consider error message changes as semver-major or at least, we should. |
Sorry, something went wrong.
|
@RafaelGSS that's not what we say in our documentation: Lines 285 to 289 in 7c1b1f4 We also recommend testing only the error code, not the message: node/doc/contributing/writing-tests.md Lines 315 to 325 in 260092e AFAICT, it's always been the case that we have been treating error message update as semver-patch, and recommend users to use the code property to detect errors. Anyway, to come back to this PR, I really think this is not semver-major, but it's not a hill I'll die on. |
Sorry, something went wrong.
|
Oh, I haven't seen or I don't remember these sections, thanks for pointing that out. If we have a doc or a precedence, I won't object to it. @marco-ippolito I will remove the label. In case you strong believe it should be semver-major, ping me. |
Sorry, something went wrong.
|
FWIW a resource I found in a quick search #3374. UPDATE: It was discussed when error.code didn't exist at the time (that is what I understood from this discussion: https://github.com/nodejs/node/pull/4664/files#diff-bbed55d3167db7c16baf3ee2c51acb1b09f7740ab1399ab015226c3df488753aR46). So it's not a fair discussion. |
Sorry, something went wrong.
|
The reason why we have this entire error.code system (and a former strategic initiative involving years of work assigning these codes) was to prevent having to treat error.message changes as server major. Only errors that are known to have their messages captured in the user land (mostly system errors) can still get the semver major treatment but otherwise error message changes are considered semver patch. |
Sorry, something went wrong.
|
I believe @mcollina mentioned output changes in console were semver major. |
Sorry, something went wrong.
|
output changes can breaking. Maybe let's await backporting to LTS for a bit? |
Sorry, something went wrong.
|
This should likely not have been backported to v20, it broke our tests. |
Sorry, something went wrong.
Can we clearly add to the documentation that console output changes should be semver major? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes: #50117
MDN: https://developer.mozilla.org/en-US/docs/Web/API/console/table