Skip to content

build: update to TypeScript 5.9 beta #30740

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
merged 1 commit into from
Jul 21, 2025
Merged

Conversation

crisbeto
Copy link
Member

Updates the repo to the TypeScript 5.9 beta and widens the peer dependency ranges.

@crisbeto crisbeto added the target: minor This PR is targeted for the next minor release label Jul 18, 2025
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Jul 18, 2025
@crisbeto crisbeto force-pushed the ts-5.9-beta branch 8 times, most recently from cf0806c to a3cf5b4 Compare July 18, 2025 12:46
@@ -149,12 +149,12 @@ describeBuilder(buildApplication, APPLICATION_BUILDER_INFO, (harness) => {
[
async () => {
// Add invalid block syntax
await harness.appendToFile('src/app/app.component.html', '@one');
await harness.appendToFile('src/app/app.component.html', '@if-one');
Copy link
Member Author

Choose a reason for hiding this comment

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

I had to change this test, because in the latest version Angular is a bit more permissive about parsing unsupported blocks.

@crisbeto crisbeto added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 18, 2025
@crisbeto crisbeto marked this pull request as ready for review July 18, 2025 13:03
@@ -38,11 +38,15 @@ export function subscribeToWorkflow(
);
break;
case 'update':
logs.push(`${colors.cyan('UPDATE')} ${eventPath} (${event.content.length} bytes)`);
logs.push(
`${colors.cyan('UPDATE')} ${eventPath} (${(event.content as unknown as Buffer).length} bytes)`,
Copy link
Member

Choose a reason for hiding this comment

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

This does not seem ideal from a type safety perspective.
Is there some information/context on the changes needed here?

Copy link
Member Author

Choose a reason for hiding this comment

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

So as far as I could tell, the types didn't really change but TS is being better at enforcing them. I did start to update the types, but it ended up spanning a ton of files so decided to keep the change simple for now.

Copy link
Member

Choose a reason for hiding this comment

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

Ok. makes sense.
Can you add some TODOs in there so we can clean this up later on?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, I've added TODOs on all those as unknown as cases.

Updates the repo to the TypeScript 5.9 beta and widens the peer dependency ranges.
@crisbeto crisbeto 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 Jul 20, 2025
@alan-agius4 alan-agius4 merged commit 7560097 into angular:main Jul 21, 2025
31 checks passed
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: build & ci Related the build and CI infrastructure of the project target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants