Skip to content

Update#1

Merged
ParallelKim merged 15 commits intoParallelKim:mainfrom
angular:main
Mar 21, 2025
Merged

Update#1
ParallelKim merged 15 commits intoParallelKim:mainfrom
angular:main

Conversation

@ParallelKim
Copy link
Copy Markdown
Owner

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

alan-agius4 and others added 15 commits March 20, 2025 11:54
See associated pull request for more information.

PR Close #60466
…0481)

Enables strict templates and type checking of host bindings against our own code.

PR Close #60481
Fixes type checking issues in the dev tools that weren't showing up, because we had `strictTemplates` turned off.

PR Close #60481
Fixes type issues in the host bindings of `NgOptimizedImage`.

PR Close #60481
Fixes some type issues that are being flagged now that we have type checking of host bindings.

PR Close #60481
Resolves typing issues inside host binding in adev.

PR Close #60481
Fixes some type checking issues in our own testing code that weren't showing up, because `strictTemplates` was turned off.

PR Close #60481
See associated pull request for more information.

Closes #60474 as a pr takeover

PR Close #60485
Since tests run faster than the build, executing them first allows for quicker failure detection, improving efficiency.

PR Close #60485
…ckage (#60487)

When we switch to relative imports, shared `.d.ts` chunks can be
generated.

We need to also pull these into our mock virtual FS testing
environments. Notably this does not cause a test slow-down because we
are talking about very few extra `.d.ts` chunk files. In our experiments
before, with no dts bundling, we saw test time increase from e.g.
20seconds to 100seconds. The 20s are still the same locally!

In addition, since code for definitions can now reside in shared `.d.ts`
chunks, the language service tests need to be adjusted in cases where
they assert for code definition locations in `@angular/core`. A new
helper prepares for more code to be moved into arbitrary `.d.ts` files;
we should simply assert the definition comes out of
`node_modules/@angular/core`.

PR Close #60487
This omits including any init_ symbols in the symbol tests that were unnecessary and causing friction.

PR Close #60493
…rted (#60489)

This commit adds a new integration test which will help ensure that all
exported `@NgModule`'s of framework packages can be imported by users
without any errors.

This test is generally useful, but with our upcoming changes with
relative imports, this is a good safety-net. Relative imports could
break re-exported NgModules inside NgModule's. For more details, see:
angular/components#30667

Notably we don't expect any issues for framework package as re-exporting
`@NgModule`'s inside `@NgModule`'s is seemingly a rather rare pattern for
APF libraries (confirmed by Material only having like 4-5 instances).

PR Close #60489
…formBrowser` providers (#60480)

Previously, `platformBrowserTesting` did not include any `platformBrowser` providers, causing an inconsistency with `platformBrowserDynamicTesting`.

This update resolves the issue by restructuring platform inheritance to ensure proper provider inclusion:

- `platformCore → platformBrowser → platformBrowserTesting`
- `platformBrowser → platformBrowserDynamic → platformBrowserDynamicTesting`

Now, `platformBrowserTesting` correctly inherits from `platformBrowser`, aligning with the expected behavior.

PR Close #60480
See associated pull request for more information.

PR Close #60490
@ParallelKim ParallelKim merged commit 4929876 into ParallelKim:main Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants