Skip to content

refactor(@angular/cli): replace experimental workspace API with stable API#18535

Merged
alan-agius4 merged 1 commit into
angular:masterfrom
clydin:cli-config-workspace
Aug 17, 2020
Merged

refactor(@angular/cli): replace experimental workspace API with stable API#18535
alan-agius4 merged 1 commit into
angular:masterfrom
clydin:cli-config-workspace

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Aug 14, 2020

This change removes one of the last usages of the experimental workspace API.

@clydin clydin added the target: major This PR is targeted for the next major release label Aug 14, 2020
@clydin clydin force-pushed the cli-config-workspace branch 2 times, most recently from d7e7f97 to 7c3a775 Compare August 14, 2020 23:37
…e API

This change removes one of the last usages of the experimental workspace API.
@clydin clydin force-pushed the cli-config-workspace branch from 7c3a775 to 6a1fedd Compare August 15, 2020 02:52
@clydin clydin requested a review from alan-agius4 August 15, 2020 11:49
// Remove BOM
start = 3;
}
const content = data.toString('utf-8', start);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe data.toString('utf-8').replace(/^\uFEFF/, '') to remove the BOM?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Less efficient especially for large files due to the need to allocate two strings plus the regex cost.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough

Copy link
Copy Markdown
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Aug 17, 2020
@alan-agius4 alan-agius4 merged commit 97637ab into angular:master Aug 17, 2020
@clydin clydin deleted the cli-config-workspace branch August 17, 2020 16:08
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants