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 — repl: convert to ES2015 class by avivkeller · Pull Request #54838 · nodejs/node Conversation
Member
This PR modifies the REPL to use an ES5 class. It will (hopefully) be one of many in series to refactor the REPL's code, as IMO it is currently hard to read as is. My plan is to first convert the REPL to ECMAScript classes, and then move away from using the the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #54838 +/- ## ======================================== Coverage 87.61% 87.62% ======================================== Files 650 651 +1 Lines 182945 183326 +381 Branches 35394 35445 +51 ======================================== + Hits 160282 160632 +350 - Misses 15918 15953 +35 + Partials 6745 6741 -4
|
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.
I'm not against this change but I think we need to take it through a deprecation cycle first given the breaking change.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Typo in the commit title |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
doc deprecation needs to be followed by a runtime deprecation (emit a warning) which is semver major. The runtime deprecation needs to land before refactoring and removing the constructor without |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@redyetidev We might want to consider landing this (possibly temporarily) with a solution similar to what some of the test-runner reporters implemented to solve this semver-major issue: Lines 34 to 42 in a65105e
Lines 52 to 60 in a65105e
This would potentially allow landing this PR without needing to wait for the entire deprecation cycle to complete, and handle the deprecation separately |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The issue with that is: const reporters = require("node:test/reporters"); (new reporters.spec()) instanceof reporters.spec // false Sidenote: This is blocked by #54869 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing until the runtime deprecation is done (which won't be for a while) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.