Skip to content

refactor: use ArrayBufferLike.byteLength for schematic dry run event content - #34642

Merged
dgp1130 merged 2 commits into
angular:mainfrom
alan-agius4:refactor/schematic-event-bytelength
Nov 3, 2026
Merged

dgp1130 merged 2 commits into
angular:mainfrom
alan-agius4:refactor/schematic-event-bytelength

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Resolve TypeScript 5.9 TODO comments by using event.content.byteLength directly on ArrayBufferLike instead of casting through unknown to Buffer.

…ent content

Use event.content.byteLength instead of casting ArrayBufferLike to Buffer to access length.
…gth for dry run event content

Use event.content.byteLength instead of casting ArrayBufferLike to Buffer to access length.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies the logging of file size during schematic updates and creations by replacing the cast to Buffer and .length access with direct usage of the byteLength property on event.content. This change also removes the temporary TypeScript 5.9 workarounds and associated TODO comments. There are no review comments to address, and the changes look clean and appropriate.

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Nov 3, 2026
@alan-agius4
alan-agius4 requested a review from dgp1130 November 3, 2026 08:53
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer and removed area: @angular-devkit/schematics-cli labels Nov 3, 2026
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 3, 2026
@dgp1130
dgp1130 merged commit a103f87 into angular:main Nov 3, 2026
44 checks passed
@dgp1130

dgp1130 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4
alan-agius4 deleted the refactor/schematic-event-bytelength branch November 3, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants