22455 Commits

Author SHA1 Message Date
unknown d265d0d241 fix(router): prevent componentless routes from being detached (#44240)
Currently, when deactivating a route, the detach method of the RouteReuseStrategy is always called
even when we are dealing with a componentless route. If when using a custom strategy we attempt to
detach a componentless route, an exception is thrown causing the navigation to break.
This change prevents this from happening, by not triggering the detach of the route reuse strategy.

Fixes #44239

PR Close #44240
2021-11-23 17:12:28 +00:00
Ramesh Thiruchelvam 1beda660f1 refactor(core): clean up isDevMode for tree-shaking (#44210)
Removing the usage of isDevMode with ngDevMode flag. This will make the
dev-mode code tree-shakable from the production builds.

PR Close #44210
2021-11-23 17:11:59 +00:00
Renovate Bot b8bee24dfd build: update dependency source-map-support to v0.5.21 (#44225)
PR Close #44225
2021-11-23 17:10:59 +00:00
Renovate Bot 0c1a1421e1 build: update angular (#44241)
PR Close #44241
2021-11-23 17:10:24 +00:00
George Kalpakas 28d7e64222 build(docs-infra): upgrade cli command docs sources to 1390fc8c9 (#44251)
Updating [angular#13.0.x](https://github.com/angular/angular/tree/13.0.x) from
[cli-builds#13.0.x](https://github.com/angular/cli-builds/tree/13.0.x).

##
Relevant changes in
[commit range](https://github.com/angular/cli-builds/compare/afd86f0cd...1390fc8c9):

**Modified**
- help/new.json

PR Close #44251
2021-11-23 17:09:23 +00:00
Renovate Bot d9c99f7d44 build: update dependency @angular-eslint/eslint-plugin-template to v13 (#44224)
PR Close #44224
2021-11-22 20:18:00 +00:00
Pete Bacon Darwin 6f5c0c1515 fix(ngcc): ensure that ngcc does not write a lock-file into node_modules package directories (#44228)
When executing, ngcc writes a lock-file that is used to coordinate multiple concurrent instances of ngcc.
Previously, this file was written at `node_modules/@angular/compiler-cli/ngcc`, or similar depending upon the bundling of the package.
But this causes problems for setups where `node_modules` package directories are expected to be read-only.
Now, the lock-file is written as `.ngcc_lock_file` into the top of the `node_modules`, which is an acceptable place to store transient files.

This change should help to unblock use of tools like pnpm and lerna, which can use symlinks to readonly package directories.

PR Close #44228
2021-11-22 17:55:13 +00:00
George Kalpakas 67aa0c12c1 refactor(elements): remove unneeded Custom Elements polyfill from docs examples (#44214) (#44233)
In PR #43975, the `Angular Elements` guide was updated to remove
mentions of the Custom Elements-related polyfills, since they are no
longer necessary in v13+ (due to all CLI projects being ES2015+ and all
supported browsers natively supporting Custom Elements).

This commit updates the related docs example boilerplate to not include
the unneeded `@webcomponents/custom-elements` polyfill.

PR Close #44214

PR Close #44233
2021-11-22 17:37:01 +00:00
George Kalpakas 70cfbcc116 docs(docs-infra): remove obsolete mention of skipping HTTPS-related audits (#44214) (#44233)
Since commit 6e40551394, the
`audit-web-app` script no longer needs to skip HTTPS-related audits.
Update the docs comment to reflect that.

PR Close #44214

PR Close #44233
2021-11-22 17:37:01 +00:00
Renovate Bot a643649ae8 build: update dependency @angular-eslint/eslint-plugin to v13 (#44223)
PR Close #44223
2021-11-22 17:36:00 +00:00
David Shevitz 76adfc03d0 docs: add two new overview pages: developer-guide-overview and understanding-angular-overview (#44091)
PR Close #44091
2021-11-20 00:12:10 +00:00
Doug Parker 3289aae620 refactor(bazel): always add strictTemplates option to tsconfig.json (#43674)
`strictTemplates` was only conditionally added to the `tsconfig.json` file to avoid breaking the angular/components repo (see https://github.com/angular/angular/pull/43582#issuecomment-928567758). Components has been updated in https://github.com/angular/components/pull/23677, so this condition is no longer necessary and `strictTemplates` can always be included in `tsconfig.json` without breakage.

PR Close #43674
2021-11-19 22:28:03 +00:00
Douglas Parker d09857f9cc docs: add dynamic import() ES module change to v13 release notes (#44181)
Closes angular/angular-cli#22159.

See: https://github.com/angular/angular-cli/issues/22159#issuecomment-969251924

PR Close #44181
2021-11-19 22:27:40 +00:00
Renovate Bot 6e351ed753 build: update angular (#44221)
PR Close #44221
2021-11-19 19:44:55 +00:00
dario-piotrowicz 69f25bd687 fix(docs-infra): remove negative margin (#44126)
remove the top padding for the homepage article, instead of
having that top padding and moving the element up via a
negative bottom margin in the intro section

note: the result is identical except for when the article's media query
is applied, the difference is barely noticeable anyways

PR Close #44126
2021-11-19 19:32:29 +00:00
dario-piotrowicz 541a87d489 fix(docs-infra): fix aio homepage breaking on certain widths (#44126)
the aio homepage has a fixed width for its hero content,
that is not handling well certain window widths, fix that by removing
the fixed width and tweaking related media queries

PR Close #44126
2021-11-19 19:32:29 +00:00
Kristiyan Kostadinov 305b76b45f fix(compiler-cli): interpret string concat calls (#44167)
These changes add support for interpreting `String.prototype.concat` calls. We need to support it, because in TypeScript 4.5 string template expressions are transpiled to `concat` calls, rather than string concatenations. See https://github.com/microsoft/TypeScript/pull/45304.

PR Close #44167
2021-11-19 19:30:59 +00:00
Kristiyan Kostadinov 0abc006c1b refactor(core): clean up leftover isDevMode usages (#44208)
Removes a couple of leftover calls to `isDevMode`.

PR Close #44208
2021-11-19 19:30:20 +00:00
JoostK bcd3b4959b fix(core): support cyclic metadata in TestBed overrides (#44215)
The TestBed APIs to override metadata would crash when the metadata
contained objects with cyclic references. Metadata overrides use the
JSON serialized representation of a value to compare objects, which
throws an error if the value has cyclic references. This commit avoids
the error by replacing multiple occurrences of the same object using
a unique string representation for the object.

Fixes #43948

PR Close #44215
2021-11-19 19:27:08 +00:00
Renovate Bot 2c9940c249 build: update dependency @angular-eslint/builder to v13 (#44222)
PR Close #44222
2021-11-19 18:43:59 +00:00
Renovate Bot dbe4a36716 build: update dependency @angular-eslint/template-parser to v13 (#44226)
PR Close #44226
2021-11-19 18:43:11 +00:00
dario-piotrowicz 427822e6c3 refactor(animations): improve some animations comments (#44203)
Fix various typos and also improve sentences (by making them more clear
or grammatically correct) present in comments inside the animations package

PR Close #44203
2021-11-18 21:12:54 +00:00
Dylan Hunn 16d026e499 ci: add dylhunn to review groups for forms. (#44204)
This is needed so I can review forms PRs that affect public API.

PR Close #44204
2021-11-18 10:24:30 -08:00
Ravi Chandra b61c2bec01 docs: remove tslint references from file structure document (guide/file-structure) (#44202)
remove tslint references from the file structure documentation as angular cli no more generates tslint configuration files by default

Fixes #44163

PR Close #44202
2021-11-18 10:21:32 -08:00
Renovate Bot eedb88b48c build: update dependency lighthouse to v9 (#44184)
PR Close #44184
2021-11-18 10:20:39 -08:00
Paul Gschwendtner 210a646ae3 build: update extract js module output target to reflect latest API changes (#44145)
The API of the `extract_js_module_output` rule has changed with the
latest build of the shared dev-infra package. This commit adds the
missing attributes to the targets using this rule, avoiding the
CI failures as these attributes are mandatory.

Note: For NPM packages the linker mappings are not relevant, neither
do we want to include sources from the external NPM packages inside
those.

PR Close #44145
2021-11-18 10:17:16 -08:00
Renovate Bot 76f390be95 build: update angular (#44145)
PR Close #44145
2021-11-18 10:17:16 -08:00
Andrew Kushnir 96fedd249e fix(forms): make the FormControlStatus available as a public API (#44183)
This commit makes the `FormControlStatus` symbol available as a public API. The symbol itself
was intended to become a part of the public API, but due to the missing re-export, the symbol
remains private.

Fixes #44176.

PR Close #44183
2021-11-17 10:37:28 -08:00
Andrew Kushnir 150a0b71e8 refactor(forms): inherit ngOnChanges hooks from the base class (#43945)
This commit updates the code of the min/max and minlength/maxlength validator directives to inherit `ngOnChanges` hooks from the base class (the `AbstractValidatorDirective` one), rather than implementing the hooks on the child classes. This was needed to avoid issues with hooks inheritance in ViewEngine, but since it's deprecated, the code can be cleaned up.

PR Close #43945
2021-11-17 10:36:40 -08:00
Alan Agius 9ab19756cc ci: remove cla/google from required statues (#44197)
The CLA tools no longer report statuses as it is being run as Github actions.

PR Close #44197
2021-11-17 10:35:11 -08:00
Marc Redemske 516570c29c docs: remove redudant word in goldens/README.md (#44192)
PR Close #44192
2021-11-17 10:34:09 -08:00
profanis fa46db8f43 docs: add profanis to GDE resources (#44147)
PR Close #44147
2021-11-17 10:32:26 -08:00
Andrew Kushnir c25927da25 release: cut the v13.0.2 release (#44199) 13.0.2 2021-11-17 09:35:20 -08:00
fusho-takahashi 158ad09945 docs: Adding type annotation to ngOnInit() to make it consistent with the class structure produced by the CLI (#43579)
PR Close #43579
2021-11-16 14:09:52 -08:00
Armen Vardanyan f218644784 docs: add armen vardanyan to GDE resources (#43919)
PR Close #43919
2021-11-16 14:09:01 -08:00
Joey Perrott 89678d1b18 build: update to latest commit for feature-request github action (#44191)
Updating as this fixes a permissions error.

PR Close #44191
2021-11-16 14:08:24 -08:00
Andrew Kushnir dcf035223f ci: update pullapprove.yml (#44193)
This commit updates the PullApprove config, since Zach is currently focused on improving Components.

PR Close #44193
2021-11-16 14:07:19 -08:00
Paul Gschwendtner 00a16e432a refactor(elements): remove non-existent schematic collection breaking with ng add (#44187)
Removes a non-existent schematic collection wired up for
`@angular/elements` that has been removed
with: https://github.com/angular/angular/commit/619b7cc3857b34598a0036f8ebf9bc2eb27f5507.

Fixes #44160.

PR Close #44187
2021-11-16 12:03:42 -08:00
Dylan Hunn fe4845b055 ci: add dylhunn to review groups for size, piblic api, minimum, and circular (#44190)
This is needed so I can review forms PRs that affect public API.

PR Close #44190
2021-11-16 12:02:15 -08:00
dario-piotrowicz aa98cf17fe docs(animations): improve wording for animation example (#44168)
improve the wording of the text explaining an animation
code snippet as that can be misinterpreted

resolves #43952

PR Close #44168
2021-11-16 09:45:14 -08:00
Ramesh Thiruchelvam 83d22847ee test: type spy objects in test example (#44170)
Example for test doesn't use typing for Jasmine Spy objects. Updated 
them with `SpyObj<T>` typing as in the Angular Documentation.

See https://angular.io/guide/testing-services

PR Close #44170
2021-11-16 09:38:43 -08:00
Martin von Gagern 1d14800ab9 refactor(router): add type annotation for UrlSegment.parameterMap (#44175)
Having the type specified explicitly makes the API reference more readable.
PR Close #44175
2021-11-16 09:36:18 -08:00
Joey Perrott 7115e838fa ci: remove cla: yes from required labels (#44179)
Remove `cla: yes` from the require labels for merging as the CLACheck
tool no longer relies on labels.

Enforcement of the CLA being signed is still enforced by the status check
which is visible both in Github as well as checked by merge tooling.

PR Close #44179
2021-11-15 11:21:56 -08:00
Pete Bacon Darwin 40a2dad031 build: add instructions for getting Angular version for bug report (#44159)
The template asked for the Angular version but did not say how to get it.
Closes #44158

PR Close #44159
2021-11-15 11:21:06 -08:00
Joey Perrott 1f9ec1c14d build: update to yarn v1.22.17 (#44150)
Update to the latest version of yarn, 1.22.17.

PR Close #44150
2021-11-15 11:19:07 -08:00
Andrew Scott 539d720fcd release: cut the v13.0.1 release (#44139) 13.0.1 2021-11-10 15:41:43 -08:00
Joey Perrott ca0873fca9 build: update to latest @angular/dev-infra-private to address issues related to verifying environment (#44138)
Update to the latest package which properly checks if the running version of ng-dev is the version
described in yarn lock.

PR Close #44138
2021-11-10 23:40:09 +00:00
Joey Perrott 1ace7d4f38 refactor: add space to satisfy formatting (#44134)
Add return space to satisfy formatting for the file.

PR Close #44134
2021-11-10 23:33:11 +00:00
Paul Gschwendtner 9c47b77b05 build: sync all lock file and package.json updates from next with patch (#44134)
With the goal of avoiding more conflicts with build changes that should
go into both patch + next in general, this commit brings the lock files
+ `package.json` files from patch branch to the equivalent contents of
the next branch, except for the actual `version` field.

PR Close #44134
2021-11-10 23:33:11 +00:00
dario-piotrowicz e4475e66f9 refactor(core): move outdated comment to view.ts (#44099)
remove the comment suggesting to use a const enum for ViewEncapsulation in
the renderer3/definitions.ts file and add a similar comment in the
view.ts file in which the enum is defined

Note: the new comment does not contain the suggestion of changing `None`
to `0` as it is unclear what benefits that would bring (for more info
see: https://github.com/angular/angular/pull/44099#discussion_r744157686)

PR Close #44099
2021-11-10 20:42:20 +00:00