GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — lib: align console.table row to the left by MrJithil · Pull Request #50135 · nodejs/node Conversation
|
|
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.
There was an error while loading. Please reload this page.
Yeah. The WHATWG, is not suppose mention the standards in very detail. They have the links to MDN. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yes and the mdn does not state that the entries are left aligned but just contains a screenshot. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
What was the original reason for centering it in Node.js? Is there a git blame? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
6bbf779 to
2684d81
Compare
|
I have the feeling this might break some stuff based on snapshots/benchmarks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM this aligns with browser behavior for a primarily browser-compat-reasons API.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
2684d81 to
92ad82b
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in 14af167 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Output changes are considered |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There is no SPEC, now it just has the same behavior of browser |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We do consider error message changes as |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@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 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.
There was an error while loading. Please reload this page.
|
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
FWIW a resource I found in a quick search #3374. UPDATE: It was discussed when |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
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.
There was an error while loading. Please reload this page.
|
I believe @mcollina mentioned output changes in console were semver major. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
output changes can breaking. Maybe let's await backporting to LTS for a bit? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
PR-URL: #50135 Fixes: #50117 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
PR-URL: #50553 Refs: #50135 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
PR-URL: #50553 Refs: #50135 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
PR-URL: #50135 Fixes: #50117 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
PR-URL: #50553 Refs: #50135 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
|
This should likely not have been backported to v20, it broke our tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Can we clearly add to the documentation that console output changes should be semver major? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The Console class's renderRow split the leftover width across both sides of the cell, which centers it. That is Node's behavior up to v20.10 and v21.1. Node has padded only on the right since v20.11.0 and v21.2.0 (nodejs/node#50135), and Bun reports a newer Node version than that. Every other part of the output (box frame, column widths, quoting) already matched, so a byte comparison of Console#table output against Node differed in the padding alone.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
console.table text alignment always centered
There was an error while loading. Please reload this page.