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 — doc,test: deprecate `util.TextDecoder` and `util.TextEncoder` by LiviaMedeiros · Pull Request #67461 · nodejs/node Conversation
Member
The globals were added back in
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
LiviaMedeiros
force-pushed
the
util-deprecate-textcoder
branch
from
299944b to
2799562
Compare
LiviaMedeiros
force-pushed
the
util-deprecate-textcoder
branch
from
2799562 to
b3e0814
Compare
avivkeller
approved these changes
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67461 +/- ## ========================================== - Coverage 90.66% 90.66% -0.01% ========================================== Files 799 799 Lines 280245 280245 Branches 54115 54112 -3 ========================================== - Hits 254093 254091 -2 - Misses 16276 16282 +6 + Partials 9876 9872 -4 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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 wonder if stability Legacy would not be more appropriate, given that maintenance burden for this alias is virtually null, so it wouldn't really make sense to break it for the ecosystem. I guess we can always start with doc-deprecation, IMO runtime deprecation would only make sense if we cannot detect ecosystem use.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Is this a practice we want to commit to? TextEncoder is far from unique in this regard ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yep, fully agreed.
It should be weighted individually for each global (for example, some might be easier/harder to runtime deprecate, in case of |
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.
b3e0814 to
c127f2e
Compare
Signed-off-by: LiviaMedeiros <[email protected]>
…:util` Signed-off-by: LiviaMedeiros <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]>
c127f2e to
b2df4d7
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The
notable-change
Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Commit Queue failedThe pull request was removed from the Commit Queue and labeled
commit-queue-failed
Full Commit Queue output |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
There was an error while loading. Please reload this page.
|
Landed in 2feb5c8...ab476ec |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: #67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: #67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: #67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: #67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: #67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: #67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Notable changes: doc: * swap `util.TextDecoder` and `util.TextEncoder` with globals (LiviaMedeiros) #67461 * use global `TextDecoder` and `TextEncoder` instead of `util` (LiviaMedeiros) #67461 * deprecate `util.TextDecoder` and `util.TextEncoder` (LiviaMedeiros) #67461 http2: * (SEMVER-MINOR) add missing setHeaders (jakecastelli) #67597 * (SEMVER-MINOR) add callback to informational header methods (Yuya Inoue) #67470 lib: * (SEMVER-MINOR) graduate the --process-timeout option (James M Snell) #67506 module: * remove async module customization hooks (Geoffrey Booth) #67090 os: * (SEMVER-MINOR) expose `guessFileDescriptorType` (Vlad Frangu) #58060 sqlite: * mark as stable (Christian Aurich Zanettini Martins) #67654 src: * (SEMVER-MINOR) restore tty state on exit only if changed (Matteo Collina) #66753 test: * update Intl tests for CLDR 49 (Renegade334) #66992 * remove unnecessary imports for `TextDecoder` and `TextEncoder` (LiviaMedeiros) #67461 tls: * (SEMVER-MINOR) docs-deprecate TLS renegotiation, add allowRenegotiation opt-in (Tim Perry) #67532 PR-URL: #67757
Notable changes: doc: * deprecate `util.TextDecoder` and `util.TextEncoder` (LiviaMedeiros) #67461 http2: * (SEMVER-MINOR) add missing setHeaders (jakecastelli) #67597 * (SEMVER-MINOR) add callback to informational header methods (Yuya Inoue) #67470 lib: * (SEMVER-MINOR) graduate the `--process-timeout` option (James M Snell) #67506 module: * remove async module customization hooks (Geoffrey Booth) #67090 os: * (SEMVER-MINOR) expose `guessFileDescriptorType` (Vlad Frangu) #58060 sqlite: * mark as stable (Christian Aurich Zanettini Martins) #67654 src: * (SEMVER-MINOR) restore tty state on exit only if changed (Matteo Collina) #66753 tls: * (SEMVER-MINOR) docs-deprecate TLS renegotiation, add allowRenegotiation opt-in (Tim Perry) #67532 PR-URL: #67757
Notable changes: doc: * deprecate `util.TextDecoder` and `util.TextEncoder` (LiviaMedeiros) #67461 http2: * (SEMVER-MINOR) add writeProcessing to compat response (Yuya Inoue) #67728 * (SEMVER-MINOR) add missing setHeaders (jakecastelli) #67597 * (SEMVER-MINOR) add callback to informational header methods (Yuya Inoue) #67470 lib: * (SEMVER-MINOR) graduate the --process-timeout option (James M Snell) #67506 os: * (SEMVER-MINOR) expose `guessFileDescriptorType` (Vlad Frangu) #58060 sqlite: * (SEMVER-MINOR) throw ERR_NO_SQLITE without SQLite support (Christian Aurich Zanettini Martins) #67727 * (SEMVER-MINOR) add statement.columnCount getter (Guilherme Araújo) #67658 * mark as stable (Christian Aurich Zanettini Martins) #67654 src: * (SEMVER-MINOR) expand --process-timeout output to include workers (James M Snell) #67712 * (SEMVER-MINOR) restore tty state on exit only if changed (Matteo Collina) #66753 tls: * (SEMVER-MINOR) docs-deprecate TLS renegotiation, add allowRenegotiation opt-in (Tim Perry) #67532 PR-URL: #67757
Notable changes: doc: * deprecate `util.TextDecoder` and `util.TextEncoder` (LiviaMedeiros) #67461 http2: * (SEMVER-MINOR) add writeProcessing to compat response (Yuya Inoue) #67728 * (SEMVER-MINOR) add missing setHeaders (jakecastelli) #67597 * (SEMVER-MINOR) add callback to informational header methods (Yuya Inoue) #67470 lib: * (SEMVER-MINOR) graduate the --process-timeout option (James M Snell) #67506 os: * (SEMVER-MINOR) expose `guessFileDescriptorType` (Vlad Frangu) #58060 sqlite: * (SEMVER-MINOR) throw ERR_NO_SQLITE without SQLite support (Christian Aurich Zanettini Martins) #67727 * (SEMVER-MINOR) add statement.columnCount getter (Guilherme Araújo) #67658 * mark as stable (Christian Aurich Zanettini Martins) #67654 src: * (SEMVER-MINOR) expand --process-timeout output to include workers (James M Snell) #67712 * (SEMVER-MINOR) restore tty state on exit only if changed (Matteo Collina) #66753 tls: * (SEMVER-MINOR) docs-deprecate TLS renegotiation, add allowRenegotiation opt-in (Tim Perry) #67532 PR-URL: #67757
|
Does this mean we are going to remove url, urlsearchparams and urlpattern as well? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I think, removal should happen if maintenance burden, bug, or performance impact outweights userland breakage. Moving API to doc-deprecated or legacy state doesn't break userland, and i can't find any reason for these globals to be imported from Node.js-specific modules, as long as they are standardized and available as global in all supported release lines. I've tried to weight other globals in #67461 (comment). Specifically for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: LiviaMedeiros <[email protected]> PR-URL: nodejs#67461 Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Notable changes: doc: * deprecate `util.TextDecoder` and `util.TextEncoder` (LiviaMedeiros) nodejs#67461 http2: * (SEMVER-MINOR) add writeProcessing to compat response (Yuya Inoue) nodejs#67728 * (SEMVER-MINOR) add missing setHeaders (jakecastelli) nodejs#67597 * (SEMVER-MINOR) add callback to informational header methods (Yuya Inoue) nodejs#67470 lib: * (SEMVER-MINOR) graduate the --process-timeout option (James M Snell) nodejs#67506 os: * (SEMVER-MINOR) expose `guessFileDescriptorType` (Vlad Frangu) nodejs#58060 sqlite: * (SEMVER-MINOR) throw ERR_NO_SQLITE without SQLite support (Christian Aurich Zanettini Martins) nodejs#67727 * (SEMVER-MINOR) add statement.columnCount getter (Guilherme Araújo) nodejs#67658 * mark as stable (Christian Aurich Zanettini Martins) nodejs#67654 src: * (SEMVER-MINOR) expand --process-timeout output to include workers (James M Snell) nodejs#67712 * (SEMVER-MINOR) restore tty state on exit only if changed (Matteo Collina) nodejs#66753 tls: * (SEMVER-MINOR) docs-deprecate TLS renegotiation, add allowRenegotiation opt-in (Tim Perry) nodejs#67532 PR-URL: nodejs#67757
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.