26076 Commits

Author SHA1 Message Date
Andrew Kushnir e3a8a5cc42 release: cut the v15.1.1 release 15.1.1 2023-01-18 10:11:30 -08:00
Paul Gschwendtner 0f8a4f97d6 test: update size golden to reflect Angular cross dependency updates (#48747)
The `main` bundle size has increased, as well as the CSS styles from
Angular Material. Only the `main` bundle exceeded the golden, but
we update all other entries to make future updates easier and to prevent
gradually getting closer and closer to the threshold.

Investigating/comparing the `main` bundles before and after the update
did not unveil any significant changes, except for thousands of
different identifiers, with different length due to mangling. That
seems to be the only reason for having exceeded the threshold.

Very likely there were more size-affecting changes over time. Also
for example the downleveling of class fields for Safari v15 support.
See: https://github.com/angular/angular-cli/issues/24355#issuecomment-1333477033

PR Close #48747
2023-01-17 10:46:45 -08:00
Angular Robot e611a22294 build: update cross-repo angular dependencies (#48747)
See associated pull request for more information.

PR Close #48747
2023-01-17 10:46:45 -08:00
Andrew Scott 6686eacb90 docs: Fix example in breaking changes to apply to correct sentence (#48758)
The "for example..." was supposed to apply to the production code, not the test code sentence.

fixes #48744

PR Close #48758
2023-01-17 09:21:50 -08:00
Angular Robot dc1972c822 build: update eslint dependencies to v5.48.2 (#48756)
See associated pull request for more information.

PR Close #48756
2023-01-17 09:17:04 -08:00
Angular Robot ec5aae467c build: update all non-major dependencies (#48755)
See associated pull request for more information.

PR Close #48755
2023-01-17 09:16:20 -08:00
Kristiyan Kostadinov 0eec71f806 test: remove usages of deprecated runSchematicAsync function (#48745)
Removes our usages of `runSchematicAsync` since it is deprecated.

PR Close #48745
2023-01-17 09:13:39 -08:00
Kristiyan Kostadinov a386496cbf build: update Angular packages to 15.1.0 stable (#48745)
Bumps up the Angular package dependencies to 15.1.0 stable.

PR Close #48745
2023-01-17 09:13:39 -08:00
Pawel Kozlowski 032b2bd689 perf(common): avoid excessive DOM mutation in NgClass (#48433)
This commit represents rewrite of the NgClass directive to address
severe performance problem (excessive DOM mutation). The modified
algorithm removes all the known performance clifs and has number of
desirable properties:
- it is shorter and (arguably) easier to follow;
- drops usage of existing differs thus limiting dependencies on other
part of the code without increasing size of the directive;
- doesn't degrade any other performance metrics.

Fixes #25518

PR Close #48433
2023-01-13 10:38:54 -08:00
Pawel Kozlowski 3f440d979e refactor(common): remove unnecessary curly brackets (#48433)
Remove unnecessary curly brackets in tests.

PR Close #48433
2023-01-13 10:38:54 -08:00
Angular Robot 22d099a41e docs: update Angular CLI help [15.1.x] (#48733)
Updated Angular CLI help contents.

PR Close #48733
2023-01-13 10:38:09 -08:00
ced 99c55c4345 refactor(router): remove unused parameter in navigation internal function (#48724)
The internal `cancelNavigationTransition` required an unused `router` parameter.

PR Close #48724
2023-01-13 10:37:25 -08:00
Angular Robot 2f332cdc6c build: update actions/cache digest to 58c146c (#48564)
See associated pull request for more information.

PR Close #48564
2023-01-13 10:35:51 -08:00
Angular Robot 112941d693 build: update dependency @rollup/plugin-commonjs to v24 (#48530)
See associated pull request for more information.

PR Close #48530
2023-01-13 10:35:19 -08:00
Angular Robot 0f7cb3b271 build: update scorecard action dependencies (#48465)
See associated pull request for more information.

PR Close #48465
2023-01-13 10:34:47 -08:00
Angular Robot 35b2c82d18 build: update actions/checkout digest to ac59398 (#48460)
See associated pull request for more information.

PR Close #48460
2023-01-13 10:33:48 -08:00
Angular Robot cec9365604 build: update io_bazel_rules_sass digest to 57ade09 (#48407)
See associated pull request for more information.

PR Close #48407
2023-01-13 10:32:35 -08:00
Paul Gschwendtner 5978eedec0 build: update tslint esm-cjs interop settings (#48732)
The TSLint rule for ESM/CJS interop was apparently not working
for a short period of time due to diverging TypeScript versions.

The rule is updated to not disallow `cluster` anymore. The
types for cluster do no allow for e.g. `cluster.Worker` if cluster
refers to the default import. The whole lint rule is not strictly
needed anymore since we build & test with ESM in this repo now!

PR Close #48732
2023-01-13 14:37:13 +00:00
Paul Gschwendtner 4e2bf140e8 build: update ng-dev and account for stamping changes (#48732)
* updates ng-dev and build-tooling since the previous SHAs are
no longer existent after the CircleCI incident snapshot build removal.
* accounts for the new stamping variables.

PR Close #48732
2023-01-13 14:37:13 +00:00
Alex Rickabaugh dd54f6bd96 fix(core): makeEnvironmentProviders should accept EnvironmentProviders (#48720)
`makeEnvironmentProviders` constructs the wrapped `EnvironmentProviders`
type, which can only be used in environment injectors (not element
injectors). It makes sense that `makeEnvironmentProviders` should be able
to accept existing `EnvironmentProviders`-wrapped providers, since it will
be providing the same guarantee, but the current types do not allow this.

This commit fixes the typings to allow nesting `EnvironmentProviders` and
adds a test to verify that it will work.

PR Close #48720
2023-01-12 13:48:00 -08:00
Konstantin Kharitonov 68ce4f6ab4 fix(common): Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48489)
```ts
@NgModule({
  imports: [RouterModule.forRoot([{path: '/enigma', component: EnigmaComponent}])],
  providers: [{provide: APP_BASE_HREF, useValue: '/en'}]
})
export class AppModule {}
```

Navigating to `/enigma` will redirect to `/en/igma` not to `/en/enigma` as it expects

Fixes: #45744

PR Close #48489
2023-01-12 11:45:32 -08:00
Paul Gschwendtner 20a1b43e52 ci: include branch name in update CLI help PRs (#48716)
This should make it easier to distinguish between PRs
as currently they same equivalent but actually target
different branches.

PR Close #48716
2023-01-12 11:44:51 -08:00
Bob Watson 30ee969a76 docs: add first-app-lesson-13 example (#48512)
PR Close #48512
2023-01-12 11:44:09 -08:00
Bob Watson 686a4077c3 docs: add first-app-lesson-12 example (#48512)
PR Close #48512
2023-01-12 11:44:09 -08:00
Bob Watson 952d3b74f5 docs: add first-app-lesson-11 example (#48512)
PR Close #48512
2023-01-12 11:44:09 -08:00
Bob Watson d3223010b0 docs: add first-app-lesson-10 example (#48512)
PR Close #48512
2023-01-12 11:44:09 -08:00
Bob Watson 8daf9c8406 docs: add first-app-lesson-09 example (#48512)
PR Close #48512
2023-01-12 11:44:08 -08:00
Bob Watson 866ccd62a6 docs: add first-app-lesson-08 example (#48512)
PR Close #48512
2023-01-12 11:44:08 -08:00
Bob Watson 079b1d3e17 docs: add first-app-lesson-07 example (#48512)
PR Close #48512
2023-01-12 11:44:08 -08:00
Bob Watson ef61bc4355 docs: add first-app-lesson-06 example (#48512)
PR Close #48512
2023-01-12 11:44:08 -08:00
Bob Watson 905993fe31 docs: add first-app-lesson-05 example (#48512)
PR Close #48512
2023-01-12 11:44:08 -08:00
Bob Watson 42fdaab971 docs: add first-app-lesson-04 example (#48512)
PR Close #48512
2023-01-12 11:44:08 -08:00
Bob Watson e51df686a5 docs: add first-app-lesson-03 example (#48512)
PR Close #48512
2023-01-12 11:44:08 -08:00
Bob Watson c771469684 docs: add first-app-lesson-02 example (#48512)
PR Close #48512
2023-01-12 11:44:08 -08:00
Bob Watson 696bffd159 docs: add first-app-lesson-01 example (#48512)
PR Close #48512
2023-01-12 11:44:07 -08:00
Matthieu Riegler cc392e532b refactor(forms): replace type any for the providers (#48647)
The providers for the directives in forms can be typed as Provider. Also the export is not required.

PR Close #48647
2023-01-11 15:01:57 -08:00
Angular Robot ea5bbd3fce docs: update Angular CLI help (#48703)
Updated Angular CLI help contents.

Closes #48700

PR Close #48703
2023-01-11 14:59:48 -08:00
Andrew Scott 262b985401 docs: Add heading to the router writable properties deprecation (#48684)
The deprecation note is missing a header. This commit adds one.

PR Close #48684
2023-01-11 14:59:04 -08:00
mgechev 497329522e docs: add angular devsat q1 2023 (#48683)
PR Close #48683
2023-01-11 14:58:36 -08:00
Jens fcbd12f2b3 docs: Add support for previous Chrome release (#48669)
Previous Chrome stable version should also be supported
PR Close #48669
2023-01-11 14:57:45 -08:00
Matthieu Riegler 8157ae45d4 docs: remove unused style guides. (#48587)
PR Close #48587
2023-01-11 14:57:09 -08:00
Bob Watson d8d29a541a docs: minor copy edit to suggestion (#48484)
PR Close #48484
2023-01-11 14:56:32 -08:00
Bob Watson 7d65c8cb35 docs: minor copy edit to suggestion (#48484)
PR Close #48484
2023-01-11 14:56:32 -08:00
Bob Watson 11c6659ae0 docs: minor copy edit to suggestion (#48484)
PR Close #48484
2023-01-11 14:56:31 -08:00
Bob Watson c05aa940d5 docs: minor copy edit to suggestion (#48484)
PR Close #48484
2023-01-11 14:56:31 -08:00
Aristeidis Bampakos 0c779d098e docs: review router guards section in router guide (#48484)
PR Close #48484
2023-01-11 14:56:31 -08:00
dario-piotrowicz c1f88824b7 refactor(compiler): refactor the shadow css specs (#48443)
apply different quality of life improvements to the shadow
css unit tests:

- refactor the tests so that they are nicely divided in multiple files
   in a logical manner instead of having most of them all in a single big file

- remove the css normalization logic inconsistently used throughout  the tests, which
  causes tests to be inconsistent and it also introduced unintuitive checks

- provide a shared shim utility function (instead of re-defining it
  multiple times)

- add a `toEqualCss` matcher that can be used in the tests in order to
  match css strings without caring about spacing and indentation

PR Close #48443
2023-01-11 14:55:52 -08:00
Angular Robot 6d83493096 build: update dependency puppeteer-core to v19 (#48183)
See associated pull request for more information.

PR Close #48183
2023-01-11 14:55:18 -08:00
ノウラ a853f32496 docs: highlight scripts in markdown (#47778)
This PR highlights all lines of code/cmds/error messages by specifying the use language

PR Close #47778
2023-01-11 14:54:45 -08:00
Vladyslav Slipchenko 84f1648053 docs(docs-infra): fix wording inconsistency of the i18n common prepare section references (#47582)
PR Close #47582
2023-01-11 14:54:08 -08:00