22373 Commits

Author SHA1 Message Date
Joe Martin (Crowdstaffing) 8566b78191 docs: update link (#44017)
Update link to match heading.

PR Close #44017
2021-11-08 17:00:18 +00:00
George Kalpakas f3d9e117d2 build(docs-infra): update Angular CLI/framework/Material to final v13 RCs in docs examples (#44030)
This commit updates the docs examples to the latest prerelease versions
of Angular CLI, framework and CDK/Material.

It also updates the apps to more closely align with new apps CLI apps.
See also the [diff][1] between a basic v13.0.0-rc.0 CLI app and a
v13.0.0-rc.2 one.

[1]: cexbrayat/angular-cli-diff@13.0.0-rc.0...13.0.0-rc.2

PR Close #44030
2021-11-08 16:59:47 +00:00
Paul Gschwendtner 06b2023e13 test: update size goldens for AIO after updating to final v13 RCs (#44030)
Updates the size goldens for AIO to reflect the new measurements
after the v13 update to the latest release-candidates. i.e.

* rc.3 of Angular framework
* rc.2 of Angular CDK/Material
* rc.3 of Angular CLI.

Co-authored-by: George Kalpakas <kalpakas.g@gmail.com>

PR Close #44030
2021-11-08 16:59:47 +00:00
Paul Gschwendtner f477d0cc55 build(docs-infra): update AIO to angular framework/components/cli final RCs (#44030)
Updates AIO to the latest v13 release-candidate version of all
Angular-owned packages, such as Angular CDK and Angular Material.

Applies changes needed for the v13 CLI as performed by the CLI
through `ng update`:

https://github.com/angular/angular-cli/tree/7ff8c5350ea2e49574dd659adae02215957d2685/packages/schematics/angular/migrations/update-13.

Additionally, the web components polyfill has been removed as all browsers
supported by Angular seem to support custom elements v1 natively, according to:

* https://caniuse.com/custom-elementsv1
* https://www.webcomponents.org/ (scroll down to browser support)

Co-authored-by: George Kalpakas <kalpakas.g@gmail.com>

PR Close #44030
2021-11-08 16:59:47 +00:00
Renovate Bot 12769e3583 build: update angular (#44030)
Update all `@angular/*` and `@schematics/*` root dependencies to latest
versions.

PR Close #44030
2021-11-08 16:59:47 +00:00
Roman Frołow 6a36483858 docs(forms): fix typo in toInteger() function (#44075)
PR Close #44075
2021-11-08 16:59:08 +00:00
Joey Perrott 5b1938c50f refactor(core): correct typing when getting the Nearest LContainer (#44087)
Updating the casted typings of `getNearestLContainer` to ensure that typescript properly
returns the LContainer | null type.

PR Close #44087
2021-11-05 21:31:50 +00:00
Joey Perrott bc6f0a0611 refactor(core): correct typing checks when registering destroy hooks (#44087)
Making the typing filtering more explicit allows typescript to properly recognize the presence of the
`prototype` property on the provider within the `registerDestroyHooksIfSupported` method.

PR Close #44087
2021-11-05 21:31:50 +00:00
Joey Perrott c96ba23dc5 refactor(core): remove truthy check for classes getter (#44087)
Remove the truthy check for the classes getter as both paths from the check assume className was not
undefined.  This allows for typescript to properly determine the type of `className` in the falsy path
from the truthy check.

PR Close #44087
2021-11-05 21:31:50 +00:00
iRealNirmal 210f7e5d2c refactor(forms): update minlength/maxlength to inherit abstractValidator (#43998)
Modified minlength and maxlength validator to inherit abstractValidator

For every validator type different PR will be raised as discussed in #42378.

Closes #42267

PR Close #43998
2021-11-05 20:09:53 +00:00
Joey Perrott 8f840c357c ci: update mobile browsers tested via browser stack to correctly test supported browsers (#44083)
Update to running tests against latest ios and android emulators.

PR Close #44083
2021-11-05 19:55:42 +00:00
Joey Perrott e0420d382a docs: remove reference of testing against BrowserStack (#44083)
Remove BrowserStack from statement about CI tests using the service as Angular now only uses Saucelabs for
our platform specific browser testing.

PR Close #44083
2021-11-05 19:55:42 +00:00
Joey Perrott 4562a03f6c docs: update listed supported browsers to accurately reflect support browsers (#44083)
Update documentation to note 2 most recent major versions of Android browser support
rather than explictly listing browsers.

PR Close #44083
2021-11-05 19:55:42 +00:00
A. Singh 58f453da15 docs: improve documentation (#44031)
PR Close #44031
2021-11-05 16:23:50 +00:00
Paul Gschwendtner e0c25f836b build: add angular v12 packages to renovate ignore list (#44054)
The Angular v12 alias packages should not be accidentally updated to
v13 by Renovate. These packages are still used by tests for e.g. Ngcc
and should continue to provide the APF v12 View Engine output.

PR Close #44054
2021-11-05 16:22:54 +00:00
Paul Gschwendtner 4ccb768fc7 ci: do not capture nested bazel integration test workspace within Bazel (#44061)
The `integration/bazel` folder cannot be excluded within the
`.bazelignore` file. This is necessary so that the integration test
rule can glob for all files within the integration test.

The downside is that the `integration/bazel/<..>` folder is being
discovered by the `//...` target query, causing Starlark files to
be interpreted/validated. e.g.

https://app.circleci.com/pipelines/github/angular/angular/39255/workflows/c6c448ed-9a44-49b3-a0c2-2c7328ce2855/jobs/1079169

Previously such errors did not appear because no Starlark `.bzl` files
within the test imported other files using the `//` absolute resolution.

Explicitly excluding the nested packages using the `--deleted_packages`
option is the most idiomatic way of achieving this currently (similarly
done by `rules_nodejs`). More information on why this is so verbose
currently:

https://github.com/bazelbuild/bazel/issues/12034

PR Close #44061
2021-11-05 16:22:18 +00:00
Paul Gschwendtner fba7bc0243 refactor(bazel): fix typo in packager action file comments (#44061)
Fixes two typoes in the packager logic.

PR Close #44061
2021-11-05 16:22:18 +00:00
Paul Gschwendtner bfc8bdb9c8 test: re-enable bazel integration test with APF v13 (#44061)
Re-enables the Bazel integration test that we have disabled
as part of the APF v13 changes. Since there are no UMD files
anymore, the Karma tests no longer worked. Similarly, the Angular
linker had to run for building the production bundle.

PR Close #44061
2021-11-05 16:22:18 +00:00
Aristeidis Bampakos 33e51716dc docs: update install guide for angular elements (#44077)
Co-Authored-By: George Kalpakas <kalpakas.g@gmail.com>

PR Close #44077
2021-11-05 16:21:58 +00:00
Alan Agius 68cc2e240b docs: update Definition of Terms in APF guide (#44060)
Several improvements to the Definition of Terms of terms section in the APF guide.

PR Close #44060
2021-11-04 18:59:14 +00:00
Alan Agius 86980aaaac docs: unlink async keyword in APF guide (#44060)
Currently, `async` keywords in the APF guide incorrectly links to https://angular.io/api/common/AsyncPipe

PR Close #44060
2021-11-04 18:59:14 +00:00
Alan Agius 980b173e35 docs: update apf guide files layouts table (#44060)
With this change we improve the file layout structure table and align it with other similar tables example: https://angular.io/guide/file-structure

PR Close #44060
2021-11-04 18:59:14 +00:00
Paul Gschwendtner 00420fa295 test: re-enable platform-server integration test (#44055)
Re-enables the platform-server integration test that we had
to disable when we landed the APF v13 changes.

We can re-enable it by setting up the `fullySpecified` option
similar to how the CLI does it.

PR Close #44055
2021-11-04 18:57:22 +00:00
mgechev 5377cad88e docs: update roadmap update date (#44036)
PR Close #44036
2021-11-04 18:56:14 +00:00
Alan Agius cbe3086e5c build(docs-infra): configure region parser to allow .mjs (#44027)
This commit updates the necessary config settings to allow `.mjs` files to be able to be parsed by the region parser. We configure the parser to use `inline-c-only` so that comments are generated in like the below

```
// #docregion
```

rather than

```
/* #docregion */
```

PR Close #44027
2021-11-04 18:55:52 +00:00
Alan Agius 007a616a9e docs: improve consuming partial-Ivy code outside the Angular CLI (#44027)
With this change we add an example of how to consume the linker plugin and also clean up the parts of this section.

Closes #44026

PR Close #44027
2021-11-04 18:55:52 +00:00
mgechev 42034bc95f docs: update the survey expiry date (#44021)
PR Close #44021
2021-11-04 18:55:24 +00:00
Paul Gschwendtner 739cb1dd60 test: update ng-update integration test to test v13 migrations (#44016)
Updates the `ng-update` migration integration test to run against
v13 migrations. We have removed all older migrations so this integration
test needs to be updated.

PR Close #44016
2021-11-04 18:54:55 +00:00
Paul Gschwendtner dfa92f3ab6 test: re-enable ng-update migration integration test (#44016)
Re-enables the ng-update migration integration test as all the ESM/CJS
interop changes have landed in the `@angular/core` schematics folder.

PR Close #44016
2021-11-04 18:54:55 +00:00
Paul Gschwendtner 7d12e7b537 test: wire up ng-add-localize CLI project as integration test to run within Bazel (#44016)
Wires up the `ng-add-localize` minimal CLI project to run as integration
test within Bazel.

PR Close #44016
2021-11-04 18:54:55 +00:00
Paul Gschwendtner 6797431680 refactor(localize): ensure schematic code runs as commonjs (#44016)
The schematic code in `@angular/localize` is currently still emitted
as CommonJS, while the rest of `@angular/localize` is strict ESM (which
is also denoted through `type: module` in the package.json file).

The schematic code is currently imported as CJS from the CLI so it
is not a problem right now. Still, it is safer to ensure the code
for schematics is properly picked up as CJS through a local
`package.json` file resetting `type: module` to `type: commonjs`.

PR Close #44016
2021-11-04 18:54:55 +00:00
Paul Gschwendtner 2c777b9bef test: setup minimal CLI project for ng-add localize integration test (#44016)
Sets up a minimal CLI project for testing that `ng add @angular/localize`
works as expected. Schematic sub-packages are prone to CJS/ESM issues
due the overall framework packages being denoted as strict ESM.

This may not be an issue in the concrete scenario of `@angular/localize`
right now, but it is still good to have an integration test similar to
the tests we have for `@angular/core` schematics.

PR Close #44016
2021-11-04 18:54:55 +00:00
Renovate Bot c809e4b763 build: update dependency tsec to v0.1.10 (#43899) (#44010)
Updates the tsec dependency to v0.1.10 so that the Tsec
Windows support PR can land.

PR Close #43899

PR Close #44010
2021-11-04 18:54:21 +00:00
Joel Lefkowitz 5be8bd40b5 docs: amend inaccurate immutability definition (#43951) (#43951)
PR Close #43951

PR Close #43951
2021-11-04 18:53:18 +00:00
Joey Perrott 80310b012a refactor(core): set up structure for google3 usage of migration schematics (#43980)
Set up exporting the migration rules from the google3 directly from the internal
@angular/migrations package.  This package is an internal only package to be
exposed for loading TSLint rules.

PR Close #43980
2021-11-04 11:23:12 -07:00
Joey Perrott ef15db0e80 docs: add blog post link to CHANGELOG (#44050)
PR Close #44050
2021-11-03 17:26:22 -07:00
Andrew Kushnir 07440752b3 docs: update CHANGELOG with deprecations (#44035)
This commit adds deprecation messages from the commits in the `.next` and `.rc` releases.

PR Close #44035
2021-11-03 17:03:34 -07:00
Joey Perrott 9741473f04 ci: update aio payloads size (#44046)
Update the payloads size for aio tracking.

PR Close #44046
2021-11-03 16:37:11 -07:00
Joey Perrott ea77439d25 fix(docs-infra): remove tilda from scss imports in aio (#44046)
Remove tilda usages.

PR Close #44046
2021-11-03 16:37:11 -07:00
Alex Rickabaugh 35e3809d09 build(docs-infra): update to 13.0.0 (#44046)
This commit updates AIO to use the published 13.0.0 packages, as the final
step after the release.

PR Close #44046
2021-11-03 16:37:10 -07:00
Joey Perrott 1e11648102 build: update lock files (#44046)
Update the lock files and add --frozen-lockfile flag to the aio presetup command.

PR Close #44046
2021-11-03 16:37:10 -07:00
Pete Bacon Darwin b361242a13 build(docs-infra): target webcontainers for stackblitz "live-example" links (#44041)
This commit changes the Stackblitz live examples to create "webcontainer" projects on Stackblitz.
This approach supports the new Angular v13 packaging formats but webcontainers are not supported on some browers. So this is a temporary solution.

PR Close #44041
2021-11-03 16:19:56 -07:00
Alex Rickabaugh 167e2a8bb8 release: cut the v13.0.0 release (#44032)
PR Close #44032
13.0.0
2021-11-03 10:51:28 -07:00
Paul Gschwendtner b6f2a55147 fix(migrations): prevent migrations from updating external templates multiple times (#44013)
The `NgComponentTemplateVisitor` helper was always referring back to the original source file on disk
rather than the virtual file in the migration. This meant that some template migrations could attempt
to modify the template multiple times resulting in invalid output.

As an example the `migration-v13-router-link-empty-expression` migrates the following template:

```
<div [routerLink]></div>
```

to

```
<div [routerLink]="[]"></div>
```

But if the template was referenced multiple times in the program, such as when the component was
referenced in the source and test entry-points, the migration would result in things like:

```
<div [routerLink]="[]"="[]"></div>
```

Fixes #44005.

PR Close #44013
2021-11-03 09:38:44 -07:00
Pete Bacon Darwin 95a68c5dc3 fix(migrations): account for CRLF characters in template migrations (#44013)
Previously, when parsing code for templates to migrate, CRLF characters were converted to just LF.
This meant that the source-spans being used to overwrite the template strings in the original source code were out of sync with the positions identified in the parsed templates.

This commit fixes this by parsing the raw text of the template taken from the source code instead of processed string contents.

Fixes #44005

PR Close #44013
2021-11-03 09:38:44 -07:00
Pete Bacon Darwin 59f12c30cc ci: re-enable the schematics tests (#44013)
These tests had been disabled when we initially disabled ViewEngine.
The tests appear to run fine despite this, so we can re-enable them.

PR Close #44013
2021-11-03 09:38:44 -07:00
Alex Rickabaugh d24cbcea70 release: cut the v13.0.0-rc.3 release (#44011)
PR Close #44011
13.0.0-rc.3
2021-11-01 18:50:22 -07:00
Alex Rickabaugh 4fd388b084 docs: initial commit of Angular Package Format documentation (#43987)
This commit adds the Angular Package Format to AIO. Previously this document
was updated and versioned in Google Docs.

The document is also updated for the Angular Package Format version 13.

PR Close #43987
2021-11-01 18:24:21 -07:00
Joe Martin (Crowdstaffing) 74c497289f docs: update per feedback (#44009)
Update content per feedback from previous PR.

PR Close #44009
2021-11-01 17:38:54 -07:00
mgechev 892ded5865 docs: update the roadmap in alignment with v13 progress (#43986)
PR Close #43986
2021-11-01 14:02:14 -07:00