Commit graph

22322 commits

Author SHA1 Message Date
Alan Agius
df2e862cae 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:13 +00:00
Alan Agius
f12f6de3c6 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:13 +00:00
Paul Gschwendtner
ec7dd5d4c2 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
7441747087 docs: update roadmap update date (#44036)
PR Close #44036
2021-11-04 18:56:14 +00:00
Alan Agius
36388b3ab2 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
2f62a9a548 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
02b84af5bd docs: update the survey expiry date (#44021)
PR Close #44021
2021-11-04 18:55:24 +00:00
Paul Gschwendtner
8cbc0e9d0e 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
78569f088e 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:54 +00:00
Paul Gschwendtner
60dec531fc 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:54 +00:00
Paul Gschwendtner
70f93a640b 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:54 +00:00
Paul Gschwendtner
d93ac1e81b 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:54 +00:00
Andrew Kushnir
34f990986c feat(upgrade): support NgModule class as an argument of the downgradeModule function (#43973)
This commit extends the logic of the `downgradeModule` function to support NgModule class as an argument. This is needed to simplify the API surface to avoid the need to resolve NgModule factory before invoking the `downgradeModule` method.

PR Close #43973
2021-11-04 18:54:00 +00:00
Joel Lefkowitz
ab423f5ee9 docs: amend inaccurate immutability definition (#43951) (#43951)
PR Close #43951

PR Close #43951
2021-11-04 18:53:18 +00:00
Renovate Bot
b6798f30b9 build: update dependency http-server to v14 (#43900)
PR Close #43900
2021-11-04 18:52:40 +00:00
HyperLife1119
d452b388bd feat(http): add has() method to HttpContext class (#43887)
At present, the get() method provided by HttpContext will never return null. Sometimes we need to check whether an http token is included, so add the has() method to HttpContext.

PR Close #43887
2021-11-04 18:52:18 +00:00
Joey Perrott
821270dba5 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
a0c2e0780e docs: add blog post link to CHANGELOG (#44049)
PR Close #44049
2021-11-03 17:24:59 -07:00
Andrew Kushnir
96e84ccdcd docs: update CHANGELOG with deprecations (#44048)
This commit adds deprecation messages from the commits in the `.next` and `.rc` releases.

PR Close #44048
2021-11-03 17:04:24 -07:00
Pete Bacon Darwin
8020457ce2 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
Renovate Bot
595a7e3dcd build: update angular (#44024)
PR Close #44024
2021-11-03 15:06:36 -07:00
Alex Rickabaugh
cbf96c1407 release: cut the v13.1.0-next.0 release (#44040)
PR Close #44040
2021-11-03 13:46:46 -07:00
Alex Rickabaugh
1cbe864d12 docs: release notes for the v12.2.13 release (#44039)
PR Close #44039
2021-11-03 13:39:31 -07:00
Alex Rickabaugh
1a1dfaba6e docs: release notes for the v13.0.0 release (#44034)
PR Close #44034
2021-11-03 11:05:12 -07:00
Paul Gschwendtner
8d308dc4ec 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:43 -07:00
Pete Bacon Darwin
3fada9ee7e 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:43 -07:00
Pete Bacon Darwin
0cab229e91 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:43 -07:00
George Kalpakas
3574e7d9e9 build(docs-infra): update Angular CLI/framework/Material to final v13 RCs in docs examples (#43583)
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 #43583
2021-11-02 17:31:58 -07:00
Paul Gschwendtner
763905ba64 test: update size goldens for AIO after updating to final v13 RCs (#43583)
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 #43583
2021-11-02 17:31:58 -07:00
Paul Gschwendtner
ac8b5bffe4 build(docs-infra): update AIO to angular framework/components/cli final RCs (#43583)
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`:

7ff8c5350e/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 #43583
2021-11-02 17:31:58 -07:00
Renovate Bot
08234f9499 build: update angular (#43583)
PR Close #43583
2021-11-02 17:31:58 -07:00
Alex Rickabaugh
fd1e7d4f0d docs: release notes for the v13.0.0-rc.3 release (#44012)
PR Close #44012
2021-11-01 19:02:24 -07:00
Alex Rickabaugh
509b14536a 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)
1f8d5c3aec docs: update per feedback (#44009)
Update content per feedback from previous PR.

PR Close #44009
2021-11-01 17:38:53 -07:00
mgechev
32fa5335c6 docs: update the roadmap in alignment with v13 progress (#43986)
PR Close #43986
2021-11-01 14:02:14 -07:00
Andrew Scott
d015ac214f Revert "refactor(router): restore history in a consistent way on canceled navigations (#43651)" (#44006)
This reverts commit a268c4471f.

Causes failures in internal team's code. The failures likely relate to
attempting to manually update private Router state tracking properties,
which this change would have affected.

PR Close #44006
2021-11-01 09:25:36 -07:00
Joe Martin (Crowdstaffing)
3d1ac6a009 docs: update left-nav (#43964)
Update left-nav toc.

PR Close #43964
2021-10-29 16:51:32 -07:00
Joe Martin (Crowdstaffing)
73b35afbee docs: add link (#43964)
Add link for RFC. Clean up markdown formatting.

PR Close #43964
2021-10-29 16:51:32 -07:00
Joe Martin (Crowdstaffing)
fe4bceb04e docs: update per tech review (#43964)
Update content per feedback in tech review.

PR Close #43964
2021-10-29 16:51:32 -07:00
Joe Martin (Crowdstaffing)
19b2d6d2ea docs: update release notes (#43964)
Update release note for version 13.

PR Close #43964
2021-10-29 16:51:32 -07:00
Joe Martin (Crowdstaffing)
9316254062 docs: add redirect test (#43964)
Add redirect test for new latest version topic.

PR Close #43964
2021-10-29 16:51:32 -07:00
Joe Martin (Crowdstaffing)
13f6243a03 docs: add links (#43964)
docs: add links to additional information.

PR Close #43964
2021-10-29 16:51:32 -07:00
Joe Martin (Crowdstaffing)
98912bf811 docs: remove previous latest verison (#43964)
Remove content for previous latest version.

PR Close #43964
2021-10-29 16:51:32 -07:00
Joe Martin (Crowdstaffing)
557cabc980 docs: update migration content (#43964)
Update content for AngularJS to Angular migration.  Add note to manually create UMD bundles.

PR Close #43964
2021-10-29 16:51:32 -07:00
Joe Martin (Crowdstaffing)
8cded1743a docs: update library use content (#43964)
Update content for library use.

PR Close #43964
2021-10-29 16:51:32 -07:00
Joe Martin (Crowdstaffing)
fc3cd38125 docs: add latest version content (#43964)
Add the update to latest version content for version 13.  Add redirect for latest version content.  Update toc for later version content.

PR Close #43964
2021-10-29 16:51:32 -07:00
Alan Agius
408e4dafbd fix(docs-infra): search box input line-height (#43983)
This fixes an issue on Safari which caused the text to be pushed down when blurring out of the search input field. The root cause of the problem appears to be that previously the computed line height was that of 32px, which caused a shift in content.

Closes #43935

PR Close #43983
2021-10-29 15:47:06 -07:00
Joe Martin (Crowdstaffing)
6e32fa2f03 docs: update note (#43979)
Update the note for hierarchy of locale identifiers.

PR Close #43979
2021-10-29 15:46:33 -07:00
Joe Martin (Crowdstaffing)
4b4996fd34 docs: remove link (#43979)
Remove redundant link.

PR Close #43979
2021-10-29 15:46:32 -07:00
Andrew Kushnir
a72333c714 refactor(core): add ViewRef to private exports (#43978)
This commit adds `ViewRef` to private exports, so it can be reused in internal packages.

The `ViewRef` symbol remains *private* and should not be referenced directly.

PR Close #43978
2021-10-29 15:45:49 -07:00