-
Notifications
You must be signed in to change notification settings - Fork 622
Move Terminal
from node-core-library to the terminal package.
#3176
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D4N14L
approved these changes
Jan 20, 2022
rush-plugins/rush-azure-storage-build-cache-plugin/src/AzureStorageBuildCacheProvider.ts
Outdated
Show resolved
Hide resolved
5b73b44
to
6d80a9f
Compare
dmichon-msft
approved these changes
Jan 25, 2022
ba1c9a1
to
5b2f93a
Compare
d3e2173
to
510f117
Compare
octogonz
reviewed
Oct 10, 2023
octogonz
reviewed
Oct 10, 2023
octogonz
reviewed
Oct 10, 2023
octogonz
reviewed
Oct 10, 2023
octogonz
reviewed
Oct 10, 2023
octogonz
reviewed
Oct 10, 2023
octogonz
reviewed
Oct 10, 2023
9765708
to
cac3003
Compare
a3a6cdf
to
4e3e60c
Compare
f759bba
to
8b9710e
Compare
8b9710e
to
81f4887
Compare
octogonz
reviewed
Feb 17, 2024
octogonz
approved these changes
Feb 17, 2024
octogonz
reviewed
Feb 17, 2024
octogonz
reviewed
Feb 17, 2024
cfaad75
to
3707ab0
Compare
This was referenced Feb 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This change moves
Terminal
and related APIs from@rushstack/node-core-library
to@rushstack/terminal
and changes the way colors are generated. Instead ofColors.colorName
returning a structure describing how to generate the color, it will now simply return a string with the ASCII color codes.Details
This is a breaking change to the
Terminal
API. Support is included for the oldIColorableSequence
objects, but this is not included in the types.Part of #3147
Specific API changes:
Terminal
,ITerminal
,ITerminalProvider
, and the terminal provider implementations were removed from@rushstack/node-core-library
and moved to@rushstack/terminal
with API changesColors
andIColorableSequence
were removed from@rushstack/node-core-library
; instead use the newColorize
API from@rushstack/terminal
ITerminalWritableOptions
from@rushstack/terminal
was renamed toITerminalStreamWritableOptions
TerminalWritable
was removed from@rushstack/node-core-library
; instead use the newTerminalStreamWritable
API from@rushstack/terminal
How it was tested
Tests were moved and expanded, projects in the repo were updated to use the new APIs.