16932 Commits

Author SHA1 Message Date
ajitsinghkaler
12b49167b8 fix(docs-infra): size footer links to appropriate size for SEO ()
Footer links did not have enough space between them, so lighthouse was
reporting that tap targets are not appropriately sized. Added the
required 8px space between links.

Also updated the margin of group headers accordingly.

Fixes 

PR Close 
2020-02-04 15:57:58 -08:00
Joey Perrott
960e5e25e5 docs(animations): increase wait time for status-slider animation ()
Because the animation completes in 2000ms, and browser.wait checks
every 100ms, there can be a race condition of if the final state has
actually been reached to read the color. By moving to 2101ms, we ensure
that we cheack after the 2000ms of the animation has completed.

PR Close 
2020-02-04 15:57:37 -08:00
ajitsinghkaler
aed5c7caad feat(docs-infra): add stable to the list of api statuses ()
Earlier api can be filtered based on security risk and deprecated now added stable as a status for better user experience

Fixes 

PR Close 
2020-02-04 15:57:14 -08:00
Miško Hevery
d528dedd50 refactor(ivy): Explicitly pass in TView ()
- Adds `TView` into `LFrame`, read the `TView` from `LView` on `enterView`.
- Before this change the `TView` was ofter looked up from `LView` as `lView[TVIEW]`. This is suboptimal since reading from an Array, requires that the read checks array size before the read. This means that such a read has a much higher cost than reading from the property directly. By passing in the `TView` explicitly it makes the code more explicit and faster.
- Some rearrangements of arguments so that `TView` would come before `LView` for consistency.

PR Close 
2020-02-04 12:56:47 -08:00
Miško Hevery
770980de69 test(ivy): fix broken tests ()
PR Close 
2020-02-04 12:56:47 -08:00
Sonu Kapoor
7fb66eca25 docs: changes AoT to AOT for consistency ()
PR Close 
2020-02-04 10:43:33 -08:00
Wagner Maciel
991e665fba fix(benchpress): formatted spec files ()
PR Close 
2020-02-04 10:41:06 -08:00
Wagner Maciel
e210715958 refactor(benchpress): added tsconfig and fixed ts errors ()
PR Close 
2020-02-04 10:41:06 -08:00
JoostK
6ddf5508db fix(ivy): support emitting a reference to interface declarations ()
In  the ngtsc compiler gained the ability to emit type parameter
constraints, which would generate imports for any type reference that
is used within the constraint. However, the `AbsoluteModuleStrategy`
reference emitter strategy did not consider interface declarations as a
valid declaration it can generate an import for, throwing an error
instead.

This commit fixes the issue by including interface declarations in the
logic that determines whether something is a declaration.

Fixes 

PR Close 
2020-02-04 10:40:45 -08:00
JoostK
5cada5cce1 fix(ivy): recompile on template change in ngc watch mode on Windows ()
In , a bug in `ngc --watch` mode was fixed so that a component is
recompiled when its template file is changed. Due to insufficient
normalization of files paths, this fix did not have the desired effect
on Windows.

Fixes 

PR Close 
2020-02-04 10:40:22 -08:00
Joey Perrott
f7d4cc9cab ci: properly validate commit messages locally ()
PR Close 
2020-02-04 10:25:01 -08:00
Joey Perrott
8499bbdd17 ci: only lint commit messages in the PR ()
PR Close 
2020-02-04 10:25:01 -08:00
Joey Perrott
51f47535e8 ci: move determineTargetRefAndSha to a new file for reusability ()
PR Close 
2020-02-04 10:25:01 -08:00
Joey Perrott
c2c4aea97d ci: only lint commit messages on PRs ()
As all commit messages are linted during the PR process, we
do not need to relint these previous commit messages on upstream
branches.

PR Close 
2020-02-04 10:25:01 -08:00
Stephen Fluin
e6cb60ee22 docs: update typescript version reference ()
PR Close 
2020-02-04 10:22:48 -08:00
Kapunahele Wong
7369dd6f24 docs: fix animations example/remove 1st person ()
Fixes  and removes first person from transitions-triggers.md

PR Close 
2020-02-04 08:58:04 -08:00
Judy Bogart
0e3eeb4e71 docs: restructure nav for beginner concepts ()
PR Close 
2020-02-04 08:57:31 -08:00
Misko Hevery
128d4ac8a9 docs: release notes for the v9.0.0-rc.14 release 2020-02-03 20:22:34 -08:00
George Kalpakas
523c785e8f fix(ngcc): correctly invalidate cache when moving/removing files/directories ()
One particular scenario where this was causing problems was when the
[BackupFileCleaner][1] restored a file (such as a `.d.ts` file) by
[moving the backup file][2] to its original location, but the modified
content was kept in the cache.

[1]: https://github.com/angular/angular/blob/4d36b2f6e/packages/compiler-cli/ngcc/src/writing/cleaning/cleaning_strategies.ts#L54
[2]: https://github.com/angular/angular/blob/4d36b2f6e/packages/compiler-cli/ngcc/src/writing/cleaning/cleaning_strategies.ts#L61

Fixes 

PR Close 
2020-02-03 14:25:47 -08:00
JiaLiPassion
3c30474417 docs: update zone-bluebird patch document for angular ()
PR Close 
2020-02-03 14:05:22 -08:00
George Kalpakas
9601b5d18a refactor(ngcc): remove unused function ()
Since , the `markNonAngularPackageAsProcessed()` function is no
longer used and can be removed.

PR Close 
2020-02-03 14:04:59 -08:00
Miško Hevery
ab931cf872 fix(ivy): host-styling throws assert exception inside *ngFor ()
Inside `*ngFor` the second run of the styling instructions can get into situation where it tries to read a value from a binding which has not yet executed. As a result the read is `NO_CHANGE` value and subsequent property read cause an exception as it is of wrong type.

Fix 

PR Close 
2020-02-03 14:03:40 -08:00
Keen Yee Liau
a8609ba0ad refactor(language-service): dedupe diagnostics using ts utility function ()
This commit makes a minor refactoring that replaces `uniqueBySpan` with
`ts.sortAndDeduplicateDiagnostics()`.

PR Close 
2020-02-03 08:57:58 -08:00
Keen Yee Liau
c8584e5d36 refactor(language-service): Replace TypeDiagnostic with ng.Diagnostic ()
This commit cleans up `expression_type.ts` by

1. Removing the unnecessary `TypeDiagnostic` class. It's replaced by
`ng.Diagnostic`.
2. Consolidating `reportError()` and `reportWarning()` to
`reportDiagnostic()`.

This is prep work so that we could make some of the type diagnostics a
suggestion in later PRs.

PR Close 
2020-02-03 08:57:18 -08:00
Misko Hevery
01308e4c7c refactor(ivy): Remove TNode.directives in favor of TData ()
`TNode.directives` was introduced in https://github.com/angular/angular/pull/34938. Turns out that it is unnecessary because the information is already present it `TData` when combining with `TNode.directiveStart` and `TNode.directiveEnd`

Mainly this is true (conceptually):
```
expect(tNode.directives).toEqual(
    tData.slice(
        tNode.directivesStart,
        tNode.directivesEnd - tNode.DirectivesStart -1
    )
);
```

The refactoring removes `TNode.directives` and adds `TNode.directiveStyling` as we still need to keep location in the directive in `TNode`

PR Close 
2020-02-03 08:56:51 -08:00
Misko Hevery
65dbd50594 test(ivy): correct var count in perf benchmarks. ()
These tests are used for perf testing and don't run as part of CI, as a result they bit-rotted. This fixes that. Long term these tests should be run as part of CI.

PR Close 
2020-02-03 08:48:41 -08:00
Pete Bacon Darwin
3d4067a464 fix(ngcc): do not lock if the target is not compiled by Angular ()
To support parallel CLI builds we instruct developers to pre-process
their node_modules via ngcc at the command line.

Despite doing this ngcc was still trying to set a lock when it was being
triggered by the CLI for packages that are not going to be processed,
since they are not compiled by Angular for instance.

This commit checks whether a target package needs to be compiled
at all before attempting to set the lock.

Fixes 

PR Close 
2020-02-03 08:46:43 -08:00
JiaLiPassion
a3c7ab99b7 feat: performance improvement for eventListeners ()
PR Close 
2020-02-03 08:40:49 -08:00
Misko Hevery
4d36b2f6e9 docs: release notes for the v9.0.0-rc.13 release 2020-01-31 18:31:37 -08:00
Pete Bacon Darwin
f0b8f0cc7c build: temporarily disable components-repo-unit-tests ()
Disabling this job until the fix at
https://github.com/angular/components/pull/18355 or similar lands.

PR Close 
2020-01-31 17:02:44 -08:00
Pete Bacon Darwin
2bfddcf29f feat(ngcc): automatically clean outdated ngcc artifacts ()
If ngcc gets updated to a new version then the artifacts
left in packages that were processed by the previous
version are possibly invalid.

Previously we just errored if we found packages that
had already been processed by an outdated version.

Now we automatically clean the packages that have
outdated artifacts so that they can be reprocessed
correctly with the current ngcc version.

Fixes 

PR Close 
2020-01-31 17:02:44 -08:00
Pete Bacon Darwin
2e52fcf1eb refactor(compiler-cli): add removeDir() to FileSystem ()
PR Close 
2020-01-31 17:02:44 -08:00
Pete Bacon Darwin
16e15f50d2 refactor(ngcc): export magic strings as constants ()
These strings will be used when cleaning up outdated
packages.

PR Close 
2020-01-31 17:02:43 -08:00
Pete Bacon Darwin
3cf55c195b refactor(ngcc): add additional build marker helpers ()
PR Close 
2020-01-31 17:02:43 -08:00
Pete Bacon Darwin
cc43bfa725 refactor(ngcc): do not crash if package build version is outdated ()
Now `hasBeenProcessed()` will no longer throw if there
is an entry-point that has been built with an outdated
version of ngcc.

Instead it just returns `false`, which will include it in this
processing run.

This is a precursor to adding functionality that will
automatically revert outdate build artifacts.

PR Close 
2020-01-31 17:02:43 -08:00
Pete Bacon Darwin
171a79d04f refactor(ngcc): remove unused code ()
PR Close 
2020-01-31 17:02:43 -08:00
Alan Agius
6d11a81994 fix(compiler-cli): add sass as a valid css preprocessor extension ()
`.sass` is a valid preprocessor extension which is used for Sass indented syntax

https://sass-lang.com/documentation/syntax

PR Close 
2020-01-31 13:28:39 -08:00
JiaLiPassion
58b29f1503 fix: should also allow subclass Promise without Symbol.species ()
PR Close 
2020-01-31 13:17:59 -08:00
Greg Magolan
60018d265f build: update to rules_nodejs 1.2.2 ()
Fixes issue with yarn_install not following yarn-path in .yarnrc when bazel run from yarn with `yarn bazel ...` (rules_nodejs: fix: unset YARN_IGNORE_PATH in yarn_install before calling yarn )

PR Close 
2020-01-31 13:14:05 -08:00
Greg Magolan
da604310c6 build: update to rules_nodejs 1.2.1 ()
Fixes issue with conflicting linker module mappings introduced in 1.2.0

PR Close 
2020-01-31 13:14:05 -08:00
Greg Magolan
513c69169e build: update to rules_nodejs 1.2.0 ()
This brings in a fix so that yarn_install picks up the yarn-path attribute of the .yarnrc file.

PR Close 
2020-01-31 13:14:05 -08:00
cexbrayat
c77cf717aa test(common): unit test for http/testing expectOne with several requests ()
PR Close 
2020-01-31 13:13:38 -08:00
cexbrayat
115b7e42c6 fix(common): http/testing expectOne lists the received requests if no matches ()
Fixes 

Previously it was hard to debug an `expectOne` if the request had no match, as the error message was:

    Expected one matching request for criteria "Match URL: /some-url?query=hello", found none.

This commit adds a bit more info to the error, by listing the actual requests received:

    Expected one matching request for criteria "Match URL: /some-url?query=hello", found none. Requests received are: POST /some-url?query=world.

PR Close 
2020-01-31 13:13:37 -08:00
cexbrayat
a622a281d3 test(common): unit tests for http/testing expectOne ()
PR Close 
2020-01-31 13:13:37 -08:00
ajitsinghkaler
e672b1f2ac feat(docs-infra): change navigation in resources page ()
https://angular.io/resources needs to be sturctured to be able to navigate to all resources with improved user experience. A lone scroll bar in this page will not help the reader a great deal in exploring the resources

Fixes 

PR Close 
2020-01-31 11:27:09 -08:00
ajitsinghkaler
7431206247 refactor(docs-infra): remove unused functions in resources component page ()
In resources component there were unused functions removed unused funtions

PR Close 
2020-01-31 11:27:09 -08:00
cexbrayat
fcfce99e9e fix(common): remove extra & in http params ()
Previous to this commit, HTTP params like `{ a: '1', b: [], c: '3' }` resulted in a request like `a=1&&c=3` (note the double &&).

The ideal fix would probably be to stringify these params to `a=1&b=&c=3` like we do for empty string values. But that might be breaking as some APIs may rely on the absence of the parameter.

This fixes the issue in a compatible way by just removing the extra and unnecessary `&`, resulting in `a=1&c=3`.

PR Close 
2020-01-31 11:26:25 -08:00
陈旭
6b710f7ae1 docs: update awade jigsaw's web site url of the resources ()
PR Close 
2020-01-31 11:25:57 -08:00
Igor Minar
c070037357 refactor(compiler): rename diagnostics/src/code.ts to diagnostics/src/error_code.ts ()
the new filename is less ambiguous and better reflects the name of the symbol defined in it.

PR Close 
2020-01-31 11:25:27 -08:00
Igor Minar
a4cacb55eb test: add the error code of ngc/ngtsc under api guard ()
We should not change these error code without a good reason, so they should be guarded.

PR Close 
2020-01-31 11:25:27 -08:00