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