20612 Commits

Author SHA1 Message Date
Paul Gschwendtner 7cd79b8e01 build: updates to account for github primary branch rename [v11] (#45718)
This is the commit accounting for the Github primary branch
rename when we actually perform the update.

We have three change phases: Prepare, Direct, Cleanup. This commit
is for the `direct` phase.

Note the version of ng-dev used in this LTS branch does not properly
support custom primary branches, but this should be non-relevant here
because this commit will only land in a version branch (11.2.x)

PR Close #45718
2022-04-28 17:28:10 +00:00
Paul Gschwendtner 7fbe7b7322 build: preparation for primary branch rename in the Angular repos [v11] (#45695)
Preparation for the framework repo as outlined our planning
document.

PR Close #45695
2022-04-20 12:18:12 -07:00
Joey Perrott 959f7e85fa fix(docs-infra): prevent framing of AIO with X-Frame-Options
Prevent the docs site from being place in an iframe.
2022-03-23 15:11:19 -07:00
Paul Gschwendtner 2938008a20 ci: replace RBE instance name for components-repo-unit-tests job (#42645)
Temporarily replaces the RBE instance name for the
`components-repo-unit-tests` job until
https://github.com/angular/components/pull/23056 is available.

PR Close #42645
2021-06-24 08:37:16 -07:00
Joey Perrott 607f0325c9 build: update to new remote instance name for RBE (#42645)
Update to use remote instance name, primary_instance, for RBE

PR Close #42645
2021-06-24 08:37:15 -07:00
Pete Bacon Darwin 04f41554dc build(docs-infra): show a dist-tag when installing the CLI on non-stable versions (#41991) (#42041)
It is important to use the correct major version of the Angular CLI when
following the examples in the tutorials. This commit provides a custom
element that renders an appropriate dist-tag in the setup step of
the tutorial when the docs are not in "stable" mode.

Fixes #39821

PR Close #41991

PR Close #42041
2021-05-13 13:56:58 -04:00
Alex Rickabaugh 5f7a401fef release: cut the v11.2.14 release (#42070)
PR Close #42070
11.2.14
2021-05-12 16:57:22 -04:00
Alex Rickabaugh 20e52fce9d test: update size tracking goldens (#42069)
Due to the way PRs are merged to both master and patch branches, the size
tracking goldens for `11.2.x` have gotten slightly out of sync, causing
failures at HEAD.

This commit corrects the goldens (an increase of approximately 500 bytes).

PR Close #42069
2021-05-12 16:50:02 -04:00
Alex Rickabaugh 95e3e26fbb Revert "refactor(core): optimize calls to split and slice while computing version parts (#41208)"
This reverts commit 744bd2b64f.

This commit seems to cause issues in Safari.
2021-05-12 14:33:10 -04:00
JoostK f66c9ae749 fix(platform-browser): prevent memory leak of style nodes if shadow DOM encapsulation is used (#42005)
Prior to this change, any inserted `<style>` nodes into shadow dom trees would be retained
in memory, even after the shadow dom tree has been removed. This commit fixes the memory
leak by tracking the inserted `<style>` nodes per host element, such that removal of the
host element also releases the style nodes.

Fixes #36655

PR Close #42005
2021-05-10 16:12:20 -04:00
iRealNirmal 2d9a9aa268 build(docs-infra): fixed i18n broken stackblitz example (#42001)
This commit fixes the broken stackblitz example of i18n.

Closes #41838.

PR Close #42001
2021-05-10 16:11:36 -04:00
Pete Bacon Darwin b075481059 build(docs-infra): revert optional chaining usage (#42021)
This operator is not available in node v12.

PR Close #42021
2021-05-10 12:43:44 -04:00
Richard Sithole b870718d8d docs: fix a grammatical error in lazy-loading-ngmodules guide (#42008)
PR Close #42008
2021-05-10 11:53:19 -04:00
JoostK 5bb7c0ef3a fix(core): do not retain dynamically compiled components and modules (#42003)
The JIT compiler has a mapping from component to the owning NgModule
and tracks whether a certain NgModule class has been verified; these
maps causes any JIT compiled component and NgModule to be retained even
if they are no longer referenced from anywhere else. This commit
switches the maps to `WeakMap` to allow garbage collecting any
components and NgModules that are no longer referenced elsewhere.

Fixes #19997

PR Close #42003
2021-05-10 10:36:22 -04:00
Pete Bacon Darwin bd2e66cf2b build(docs-infra): ensure that terminal code snippets render correctly (#41994)
After the changes to the `lang-none` styling in #41335, code snippets marked with

```
language="none" class="code-shell"
```

were being styled with the same foreground and background colours.

It turns out that most of these ought to be marked `language="sh"`
in which case the `code-shell` style became redundant and has been
removed.

Fixes #41984

PR Close #41994
2021-05-10 10:31:14 -04:00
Teri Glover 7cbe316045 docs: Edited to remove jargon (#41976)
PR Close #41976
2021-05-10 10:29:37 -04:00
Pete Bacon Darwin 3a217847f3 refactor(core): remove unnecessary cast (#41960)
The `as any` is no longer needed since `providedIn` can accept `'any'`.

PR Close #41960
2021-05-10 10:28:33 -04:00
Pete Bacon Darwin f55a52c22c refactor(docs-infra): remove unused CSS rule (#41960)
The `.ngmodule-iist` is no longer used so can be removed.

PR Close #41960
2021-05-10 10:28:33 -04:00
Pete Bacon Darwin 7616dea3d8 build(docs-infra): add NgModules references to provided injectables (#41960)
Parse the `providers` property of each NgModule doc and add this doc to
the `ngModules` property of each provided injectable.

PR Close #41960
2021-05-10 10:28:32 -04:00
Pete Bacon Darwin 8f1e126dd6 build(docs-infra): associate providedIn injectables with their NgModule (#41960)
Such injectables were not appearing in the providers lists of their NgModule.
This commit updates the doc-gen to support associating these automatically.
Further, it also allows developers to mark other injectables that are provided
in an NgModule with a reference to the NgModule where they are provided.

The commit also does a refactoring of the `processNgModuleDocs` dgeni
processor code, to make it easier to maintain.

Fixes #41203

PR Close #41960
2021-05-10 10:28:32 -04:00
Andrew J Asche 88ae0a7952 fix(docs-infra): update glossary to include the term template-input-variable (#41632)
Template input variables are now described in the glossary.

PR Close #41632
2021-05-10 10:27:56 -04:00
Julien Marcou fcf3c1f1c5 refactor(core): optimize calls to split and slice while computing version parts (#41208)
Reduce the number of calls made to `split` and `slice` while computing version parts by deconstructing the result.

PR Close #41208
2021-05-10 10:26:35 -04:00
Julien Marcou c20dfac038 docs: fix package name in version.ts files in different packages (#41208)
PR Close #41208
2021-05-10 10:26:35 -04:00
profanis ed20342404 docs: change the documentation of creating-libraries by providing material links (#41982)
while reading the documentation, I noticed that there were
references in the material's documentation. Since the
links were absent, I had to google the terms and
continue my study. I find it easier for the reader not
to be distracted by googling, but just clicking
and following the suggested links

PR Close #41982
2021-05-07 10:11:10 -04:00
mgechev 63e2f63544 ci: introduce action implementing feature request prioritization process (#41975)
Enable a GitHub action that implements our new feature request
[process](https://github.com/angular/angular/blob/ce8e011a9f7c6bac94292d632b0cc8822f710a66/docs/GITHUB_PROCESS.md#feature-request-process).

As a prerequisite, we need to create the following labels:
- `in backlog`
- `votes required`
- `under consideration`
- `insufficient votes`

The bot will also use the existing `feature` label to identify feature
requests.

With its current configuration, we need to kick the process off
manually. We currently also have a limit, meaning the bot will process
only 50 feature requests before it exits. Additionally, now the bot will
not close issues, it'll just comment on them and if they have an
insufficient number of votes, the bot will label them with `insufficient
votes`.

On the next iteration, we can:
- Expand the limit from 50 to infinity (removing the option from the
yml file)
- Set a cron configuration to kick off the bot automatically
- Enable autoclose by setting the `close-when-no-sufficient-votes` to
`true`

PR Close #41975
2021-05-07 10:09:46 -04:00
mgechev 40cc29aa6e fix(core): invoke profiler around ngOnDestroy lifecycle hooks (#41969)
Invoke the profiler for `ngOnDestroy` lifecycle hooks for services,
components, directives, and pipes.

PR Close #41969
2021-05-07 10:04:22 -04:00
Joey Perrott 9883dab767 docs: reword a few phrases in the GITHUB_PROCESS.md doc (#41977)
Reword a few things in the explanation around our `Feature request process` to make
the process a little clearer.

PR Close #41977
2021-05-06 18:11:06 -07:00
mgechev 83bb0effc2 docs: use relative path for the feature request process diagram (#41970)
Center the diagram and use a relative path to make sure we don't break a branch if we restructure `master`/`main`.

PR Close #41970
2021-05-06 17:35:34 -04:00
Georgii Dolzhykov 9cf13e1a94 refactor(compiler): stricter types for HTML AST (#41360)
A Node can only be an instance of one of the six classes.
This relation can be accurately expressed using a union type.

PR Close #41360
2021-05-06 17:34:53 -04:00
Joey Perrott e090a6dbc1 feat(dev-infra): include release notes in Github release entries when publishing (#41964)
Include the release notes entry for the release in the release created on Github.

PR Close #41964
2021-05-06 15:45:50 -04:00
va-stefanek 1680c143f5 refactor(common): change missing NgSwitch provider error message (#41704)
change error message of invalid NgSwitch use and add corner cases tests

PR Close #41704
2021-05-06 15:44:40 -04:00
Kapunahele Wong c7bef55b6a feat(docs-infra): add support for unformatted code-snippets (#41335)
This commit adds support for skipping formatting in `<aio-code>`
elements (which are used by `<code-example>` and `<code-pane>` elements
under the hood) by specifying the `language` option as `'root'`.

This is useful for code-snippets that include plain text.

PR Close #41335
2021-05-06 15:03:46 -04:00
Joey Perrott 4fac102966 build: update release configuration to use new release notes system (#41905)
Update the ng-dev config for release to use the new release notes system
for generating release notes.

PR Close #41905
2021-05-06 09:45:47 -04:00
Joey Perrott 41becf3db8 feat(dev-infra): Set up new common release notes generation tooling (#41905)
Enables the new common release notes generation within the ng-dev release publishing
tooling.

PR Close #41905
2021-05-06 09:45:27 -04:00
mgechev 2daefc8a25 docs: introduce details about feature request automation (#41953)
PR Close #41953
2021-05-06 09:36:47 -04:00
Misko Hevery ce3cd509f2 release: cut the v11.2.13 release 11.2.13 2021-05-05 13:54:16 -07:00
Paul Gschwendtner 63020033c4 fix(dev-infra): publish script python check not working on windows (#41943)
We recently added a sanity check that ensures that `python` is
available for Bazel. The check relies on `/usr/bin/python` to check
if python is available w/ the correct version. The problem is
that on Windows there is no guarantee that the `/usr/bin` folder
exists, so the `ng-dev release publish` command always fails.

We fix this by just accessing the `env` binary that is also consulted
by scripts executed within Bazel actions. The `env` binary can be
assumed exist in the shell's `$PATH` and can point us to Python
as if it would be executed within Bazel.

PR Close #41943
2021-05-05 13:46:05 -07:00
Paul Gschwendtner 3ee8b0686e fix(dev-infra): spawned child processes messing with tty output (#41948)
Currently we have a common utility method for running commands
in a child process. This method pipes all stdout and stderr, but sets
the `stdin` to `inherited`. This seemed to work as expected in terms of
allowing interactive commands being executed, but it messes with the
TTY in Windows (and potentially other platforms) so that colors and
prompts no longer work properly. See attached screenshot.

We fix this by not inheriting the stdin by default; but exposing
a dedicated method for interactive commands. This results in more
readable and obvious code too, so it's worth making this change
regardless of the TTY issues.

PR Close #41948
2021-05-05 13:45:29 -07:00
Gourav102 46069ffe50 docs(common): Corrected the wrong formatting (#41945)
Removed the extra backtick character for `getLocaleTimeFormat()` link.
PR Close #41945
2021-05-04 21:08:54 -07:00
Paul Gschwendtner bd57bcb2d0 fix(dev-infra): do not set lts dist tag on packages from release-candidate train (#41946)
Currently if a major release-train in the `release-candidate`/`feature-freeze`
phase becomes `latest`, we intend to set the NPM LTS dist tag for all packages
of the previous major (as the old release train in `latest` moves into LTS phase).

The logic for this exists but the release tool sets the NPM dist tag for
all packages of the new major. This means that the script might error if
a new package is part of the new major; or it could cause a deleted
package to not receive the LTS tag properly.

PR Close #41946
2021-05-04 21:07:58 -07:00
Dylan Hunn 4ad5858eb9 docs: add dylhunn to contributors (#41936)
PR Close #41936
2021-05-04 21:06:31 -07:00
Pete Bacon Darwin 3150f9f66d fix(localize): relax error to warning for missing target (#41944)
Some localization workflows want to use the extracted source translation
files directy back in the project as a target translation file.

The extraction process generates files that only contain "source" messages
and not "target" messages. This is actually valid for most translation formats
but currently the Angular localization process expects target translation files
to always contain target messages and will stop with an error in this case.

Now, instead of an error, the translation file loader will log a warning,
and then try to falback to a source message, only erroring if this is also
missing.

Fixes #21690

PR Close #41944
2021-05-04 21:05:55 -07:00
Zach Arend 2993cde882 build: fix crash when validating commit messages (#41949)
Fixes a crash when running the `ValidateFileModule`.

PR Close #41949
2021-05-04 21:05:19 -07:00
Ben Lesh 7a86ebfcf6 fix(core): AsyncPipe now compatible with RxJS 7 (#41590)
Adds a fix to make sure that RxJS v7 Observable is compatible with AsyncPipe. This is a typings-only change.
For more information see: https://github.com/microsoft/TypeScript/issues/43643

PR Close #41590
2021-05-04 08:32:49 -07:00
Hugo Mejia eda431410a docs: attributes for 'label' and 'input' elements were mixed up (#41827)
A label should be 'for' an input, and an 'input' should have an 'id'.

PR Close #41827
2021-05-04 08:32:18 -07:00
Joey Perrott c2e863e720 build: remove emojis from github issue templates (#41902)
Remove emojis from github issue templates as they are not great for
a11y and do not provide great value.

PR Close #41902
2021-05-04 08:09:21 -07:00
Talha Azhar 62512d259a docs: fix text jargon from DI notes (#41928)
PR Close #41928
2021-05-04 08:08:48 -07:00
Andrew Scott a75a3175ee Revert "fix(language-service): only provide template results on reference requests (#41041)" (#41930)
This reverts commit 10aa5641dd.

Issue resolved upstream https://github.com/microsoft/vscode/issues/117095

PR Close #41930
2021-05-03 14:27:44 -07:00
Kapunahele Wong 729d8df920 docs: improve accessibility of form-validation example (#41283)
PR Close #41283
2021-05-03 14:25:12 -07:00
Jesse Palmer f11c5493e6 docs: update tagline (#41922)
Seems like the tagline has changed on the [Angular Twitter account](https://twitter.com/angular) and angular.io. This change makes this doc in line with those two resources.
PR Close #41922
2021-05-03 10:04:06 -07:00