Commit Graph

577 Commits

Author SHA1 Message Date
Kristiyan Kostadinov a2e4ee0cb3 feat(compiler): add diagnostic for unused standalone imports (#57605)
Adds a new diagnostic that will report cases where a declaration is in the `imports` array, but isn't being used anywhere. The diagnostic is reported as a warning by default and can be controlled using the following option in the tsconfig:

```
{
  "angularCompilerOptions": {
    "extendedDiagnostics": {
      "checks": {
        "unusedStandaloneImports": "suppress"
      }
    }
  }
}
```

**Note:** I'll look into a codefix for the language service in a follow-up.

Fixes #46766.

PR Close #57605
2024-09-03 14:30:56 -07:00
Ilia Brahinets 9e83ca8bc6 docs: Fix 'EnvironmentInjector' description (#57582)
PR Close #57582
2024-09-03 08:50:04 -07:00
Angular Robot fc1734441b build: update dependency diff to v6 (#57631)
See associated pull request for more information.

PR Close #57631
2024-09-03 07:49:04 -07:00
Alfredo González 7defbb1642 docs(upgrade): change example wording on Input tutorial (#57625)
PR Close #57625
2024-09-03 07:48:15 -07:00
Matthieu Riegler a84cecfc99 docs(docs-infra): add support for extends/implements on API entries (#57588)
PR Close #57588
2024-09-03 07:47:25 -07:00
Matthieu Riegler 3bafda20c3 docs(docs-infra): fix navigation between API pages (#57492)
PR Close #57492
2024-08-30 11:12:25 -07:00
Matthieu Riegler b031b640b9 docs(docs-infra): Add set of unit tests to the API markdown parsing (#57492)
PR Close #57492
2024-08-30 11:12:25 -07:00
Matthieu Riegler b96e75b89a docs(docs-infra): Improve styling around API pages (#57492)
PR Close #57492
2024-08-30 11:12:25 -07:00
Matthieu Riegler 55387c5b56 docs(docs-infra): Improve support for deprecated methods (#57492)
PR Close #57492
2024-08-30 11:12:25 -07:00
Matthieu Riegler 5e42769ee9 docs: ensure the all _ are replaced by slash for API entry urls. (#57600)
fixes #57599

PR Close #57600
2024-08-30 07:39:36 -07:00
David Valentine 1d79cbde3b docs: update common-router-tasks to include sample dynamic fragment (#57590)
Remove specific reference to "Tour of Heroes" tutorial and add sample route for use in the example for reference.

Co-authored-by: Andrew Scott <atscott01@gmail.com>

PR Close #57590
2024-08-29 15:20:05 -07:00
Matthieu Riegler 466e21399f docs: api sub-entries should have / in urls. (#57593)
`@angular/animations/browser` => `api/animations/browser/xyz`

PR Close #57593
2024-08-29 15:18:59 -07:00
Matthieu Riegler b226dab0f6 docs: revert changes on API entries urls (#57589)
The name `angular_` shouldn't be included in the URL.

fixes #57587

PR Close #57589
2024-08-29 14:25:26 -07:00
Matthieu Riegler 01030d58a7 docs(docs-infra): Add support for cross-links on API pages (#57346)
PR Close #57346
2024-08-29 13:39:58 -07:00
Matthieu Riegler 6c2beba63d docs(docs-infra): Add dev-mode only mention for core/global (#57365)
PR Close #57365
2024-08-29 10:17:35 -07:00
Angular Robot 48beea1073 build: update all non-major dependencies (#57541)
See associated pull request for more information.

PR Close #57541
2024-08-29 07:45:53 -07:00
Romain fcdba99ea4 docs(docs-infra): fix small mistake in inject-function.md (#57517)
PR Close #57517
2024-08-29 07:44:28 -07:00
Matthieu Riegler e404f88092 docs(docs-infra): show usageNotes only for methods. (#57343)
Prior to this change, function and methods showed their usage notes which resulted in duplicate displays for functions.

Fixes #57339

PR Close #57343
2024-08-29 07:39:50 -07:00
Alan Agius d5cc9d5d71 feat(bazel): remove unused ESM2022 from APF (#57559)
We have removed the `esm2022` directory from the generated package, as it was unused and contributed 7.7 MB to `@angular/core`. The `ng_package` rule still passes `esm2022` to the packager to perform `analyzeFileAndEnsureNoCrossImports`.

A moment of reflection:
You've always been there, full of potential, yet never called upon. Now, we bid you farewell.

PR Close #57559
2024-08-28 08:45:38 -07:00
Ben Hong 055e0d9835 docs: update template in-depth guide (#57475)
PR Close #57475
2024-08-28 08:44:31 -07:00
Andrew Scott 90b5fef9dc fix(docs-infra): Fix scrolling in application (#57554)
Since the change to the after render hooks, the "this" context must be
correct for the destroy to work.

fixes #57552

PR Close #57554
2024-08-27 13:32:13 -07:00
Joey Perrott 5ba8ea8725 build: update to latest version of @angular/build-tooling (#57551)
Update to the latest version of @angular/build-tooling

PR Close #57551
2024-08-27 13:31:14 -07:00
Angular Robot 5fed53a57a build: update dependency jsdom to v25 (#57514)
See associated pull request for more information.

PR Close #57514
2024-08-27 13:17:38 -07:00
Alex Castle 50f08e6c4b feat(common): automatically use sizes auto in NgOptimizedImage (#57479)
Prepend 'auto' to value of the `sizes` prop generated by NgOptimizedImage, when image has a responsive srcset and is lazy-loaded.

PR Close #57479
2024-08-27 13:14:48 -07:00
Michael van der Luit 564a8d5871 docs(docs-infra): Add query as an url query param to the api reference (#57062)
add an url query param to perform a search on api references directly via the url

PR Close #57062
2024-08-27 12:58:00 -07:00
realstealthninja 969dadc8e2 docs: fix typo in recommendations.ts (#57521)
PR Close #57521
2024-08-26 09:17:44 -07:00
Angular Robot 6307f976d2 docs: update Angular CLI help [main] (#57508)
Updated Angular CLI help contents.

PR Close #57508
2024-08-26 09:14:17 -07:00
Matthieu Riegler 34ce46f7dc docs: fix formating in class-binding (#57447)
fixes #57430

PR Close #57447
2024-08-26 09:12:54 -07:00
Bjarki c9d90786d0 fix(upgrade): Address Trusted Types violations in @angular/upgrade (#57454)
Angular applications that are AngularJS hybrids are currently unable to
adopt Trusted Types due to violations eminating from an innerHTML
assignment in the @angular/upgrade package. This commit allows
developers of such applications to optionally ignore this class of
violations by configuring the Trusted Types header to allow the new
angular#unsafe-upgrade policy.

Note that the policy is explicitly labeled as unsafe as it does not in
any way mitigate the security risk of using AngularJS in an Angular
application, but does unblock Trusted Types adoption enabling XSS
protection for other parts of the application.

The implementation follows the approach taken in @angular/core;
see packages/core/src/util/security.

PR Close #57454
2024-08-26 09:04:47 -07:00
Angular Robot 17f7b258dd build: update dependency mermaid to v11 (#57497)
See associated pull request for more information.

PR Close #57497
2024-08-23 12:59:56 -07:00
Peter 2a07a7f6fc docs: fix typo of ChangeDetectionStrategy in the zoneless guide (#57482)
PR Close #57482
2024-08-23 12:59:09 -07:00
Santosh 57202c4899 docs: add test for i18n code block and fix rendering (#57210)
PR Close #57210
2024-08-23 12:57:15 -07:00
Otmane ed920c39c5 docs: fix indentation of file tree in app-shell (#57436)
This commit adds indentations to the file tree section in `app-shell.md`, it makes the tree easier to read. The indentation is now two spaces instead of no spaces.

PR Close #57436
2024-08-22 09:11:49 -07:00
Paweł Kubiak 38fec144dc docs(docs-infra): add top level banner component (#57458)
docs(docs-infra): add top level banner component

- create top level banner component
- write unit tests
- close banner and keep state in the local storage
- fix: support screens of tablets and phones

PR Close #57458
2024-08-22 09:06:46 -07:00
Matthieu Riegler 9867ac1ee9 docs: new date for v19 (#57461)
PR Close #57461
2024-08-22 09:04:41 -07:00
Matthieu Riegler cb3128d925 docs(docs-infra): fix regressions around members & deprecations (#57465)
This commit fixes regressions introduced by #57255

PR Close #57465
2024-08-21 11:26:26 -07:00
steciuk 45343f711b docs: remove extra space in DI example code (#57472)
PR Close #57472
2024-08-21 11:25:53 -07:00
Angular Robot 2af89449f9 build: update dependency algoliasearch to v5 (#57397)
See associated pull request for more information.

Closes #57387 as a pr takeover

PR Close #57397
2024-08-20 13:17:59 -07:00
Angular Robot 3afce0f8c2 build: update dependency ngx-progressbar to v12 (#57452)
See associated pull request for more information.

Closes #57443 as a pr takeover

PR Close #57452
2024-08-19 22:43:48 -07:00
Matthieu Riegler f47901ae2e docs(docs-infra): Fix heading parsing (#57386)
fixes #57384

PR Close #57386
2024-08-19 09:24:07 -07:00
Matthieu Riegler eb215ad231 docs(docs-infra): remove remaining ngZone (#57229)
PR Close #57229
2024-08-19 09:22:01 -07:00
Matthieu Riegler b87bbf6c95 docs(docs-infra): Add tests for marked rendering (#57344)
On top of #57338, to make sure we prevent similar regressions on marked rendering.

PR Close #57344
2024-08-19 09:21:16 -07:00
Andrew Kushnir dc075a2fc6 docs: add eager to lazy route migration (#57421)
PR Close #57421
2024-08-19 09:19:42 -07:00
Andrew Kushnir c967ccbaf3 docs: cleanup existing migration docs for consistency (#57421)
PR Close #57421
2024-08-19 09:19:42 -07:00
Andrew Kushnir 123a60d426 docs: drop references to removed typed-forms migration (#57421)
PR Close #57421
2024-08-19 09:19:42 -07:00
Andrew Kushnir c5c540d056 docs: drop references to removed module-with-providers migration (#57421)
PR Close #57421
2024-08-19 09:19:42 -07:00
Joey Perrott 7ee9e7f386 fix(docs-infra): leverage http_server rule from @angular/build-tooling for adev local serving (#57427)
Use the http_server rule to serve adev locally to allow for slightly faster rebuilds and livereload on changes

PR Close #57427
2024-08-19 09:18:47 -07:00
David LJ 0de267d7eb docs: update version table for 18.2 (#57414)
PR Close #57414
2024-08-15 15:50:53 -04:00
Erik Wegner 751880a16a docs(common): fix example code (#57406)
Fix example code for interceptor.

PR Close #57406
2024-08-15 10:46:03 -04:00
Jeremy Elbourn 736c67bc15 docs: add small clarification to ng-content (#57408)
This expands the recommendation to avoid conditionally showing `<ng-content>` with additional context

PR Close #57408
2024-08-15 10:45:16 -04:00