16978 Commits

Author SHA1 Message Date
Wagner Maciel
5efe9be051 refactor(benchpress): linted ()
PR Close 
2020-02-07 16:14:26 -08:00
Wagner Maciel
5ca7c2d40f refactor(benchpress): made all it callbacks async ()
PR Close 
2020-02-07 16:14:26 -08:00
Judy Bogart
26b17aee14 docs: add asset info to library guide ()
PR Close 
2020-02-07 13:57:18 -08:00
JoostK
5de5b52beb fix(ivy): repeat template guards to narrow types in event handlers ()
In Ivy's template type checker, event bindings are checked in a closure
to allow for accurate type inference of the `$event` parameter. Because
of the closure, any narrowing effects of template guards will no longer
be in effect when checking the event binding, as TypeScript assumes that
the guard outside of the closure may no longer be true once the closure
is invoked. For more information on TypeScript's Control Flow Analysis,
please refer to https://github.com/microsoft/TypeScript/issues/9998.

In Angular templates, it is known that an event binding can only be
executed when the view it occurs in is currently rendered, hence the
corresponding template guard is known to hold during the invocation of
an event handler closure. As such, it is desirable that any narrowing
effects from template guards are still in effect within the event
handler closure.

This commit tweaks the generated Type-Check Block (TCB) to repeat all
template guards within an event handler closure. This achieves the
narrowing effect of the guards even within the closure.

Fixes 

PR Close 
2020-02-07 13:06:00 -08:00
JiaLiPassion
daac33cdc8 feat: add basic jest support ()
PR Close 
2020-02-07 11:43:21 -08:00
Sonu Kapoor
f7e1c21596 docs: fix awkard space due to margin in sections with alert class ()
PR Close 
2020-02-07 11:36:58 -08:00
Pete Bacon Darwin
def64efdfc build: remove the exit 0 on components-unit-tests ()
PR Close 
2020-02-07 11:34:20 -08:00
Sachin Grover
843b3a2197 docs: missing item variable in structural directives example ()
PR Close 
PR Close 
2020-02-07 11:32:37 -08:00
Pete Bacon Darwin
54c3a5da3f fix(ngcc): ensure that path-mapped secondary entry-points are processed correctly ()
The `TargetedEntryPointFinder` must work out what the
containing package is for each entry-point that it finds.

The logic for doing this was flawed in the case that the
package was in a path-mapped directory and not in a
node_modules folder. This meant that secondary entry-points
were incorrectly setting their own path as the package
path, rather than the primary entry-point path.

Fixes 

PR Close 
2020-02-07 11:32:05 -08:00
Stepan Suvorov
1c85c24ed3 docs(changelog): formatting fix ()
PR Close 
2020-02-07 09:59:35 -08:00
Stephen Fluin
b5fa4b58ca docs: improve description of providedIn any ()
PR Close 
2020-02-07 09:59:09 -08:00
Andrew Scott
0cbdd54fd0 fix(ivy): ensure module imports are instantiated before the module being declared ()
PR Close 
2020-02-07 09:58:49 -08:00
Oleg Teterin
79742a397f fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type ()
PR Close 
2020-02-07 09:58:31 -08:00
David Shevitz
5b80e944be docs: Minor updates to Updating to Angular version 9 topic ()
PR Close 
2020-02-07 09:57:56 -08:00
Schneider
53193c9779 docs: fix typo in glossary ()
PR Close 
2020-02-07 09:57:25 -08:00
Misko Hevery
16eb691e7f docs(ivy): add anchor-node insert before/after difference ()
PR Close 
2020-02-07 09:56:37 -08:00
George Kalpakas
d3650ce3d8 build(docs-infra): upgrade cli command docs sources to d452f0873 ()
Updating [angular#master](https://github.com/angular/angular/tree/master) from [cli-builds#master](https://github.com/angular/cli-builds/tree/master).

##
Relevant changes in [commit range](94d07909c...d452f0873):

**Modified**
- help/generate.json

##

PR Close 
2020-02-06 15:37:36 -08:00
Paul Gschwendtner
bee6d73755 ci: re-enable android 7 saucelabs tests ()
We fixed the tunnel connectivity issues by using a localhost domain
alias. Hence we can re-enable the Android 7.1 Saucelabs tests.

PR Close 
2020-02-06 15:36:27 -08:00
Paul Gschwendtner
363e1ab775 ci: ensure saucelabs browsers can load karma test page ()
In the past we had connecitivity issues on Saucelabs. Browsers on
mobile devices were not able to properly resolve the `localhost`
hostname through the tunnel. This is because the device resolves
`localhost` or `127.0.0.1` to the actual Saucelabs device, while it
should resolve to the tunnel host machine (in our case the CircleCI VM).

In the past, we simply disabled the failing devices and re-enabled the
devices later. At this point, the Saucelabs team claimed that the
connecitivy/proxy issues were fixed.

Saucelabs seems to have a process for VMs which ensures that requests to
`localhost` / `127.0.0.1` are properly resolved through the tunnel. This
process is not very reliable and can cause tests to fail. Related issues have been
observed/mentioned in the Saucelabs support docs. e.g.

https://support.saucelabs.com/hc/en-us/articles/115002212447-Unable-to-Reach-Application-on-localhost-for-Tests-Run-on-Safari-8-and-9-and-Edge
https://support.saucelabs.com/hc/en-us/articles/225106887-Safari-and-Internet-Explorer-Won-t-Load-Website-When-Using-Sauce-Connect-on-Localhost

In order to ensure that requests are always resolved through the tunnel,
we add our own domain alias in the CircleCI's hosts file, and enforce that
it is always resolved through the tunnel (using the `--tunnel-domains` SC flag).
Saucelabs devices by default will never resolve this domain/hostname to the
actual local Saucelabs device.

PR Close 
2020-02-06 15:36:27 -08:00
JiaLiPassion
dc5ac88a19 docs: fix wrong link of tick() ()
PR Close 
2020-02-06 15:35:50 -08:00
Alan Agius
dcff6c9940 fix(bazel): spawn prod server using port 4200 ()
Currently the prod server uses a default port of 8080, with this change we align the port with the devserver.

PR Close 
2020-02-06 15:35:11 -08:00
Alan Agius
129010e4c2 fix(bazel): devserver shows blank page in Windows ()
`additional_root_paths` should contain the workspace name see: d4200191c5/packages/typescript/src/internal/devserver/ts_devserver.bzl (L137-L140)

Fixes 

PR Close 
2020-02-06 15:34:30 -08:00
Alan Agius
6fb538ed1d fix(bazel): update ibazel to 0.11.1 ()
PR Close 
2020-02-06 15:33:26 -08:00
Paul Gschwendtner
c4ad12c1c3 ci: remove components-repo-ci blocklist ()
Previously we needed the `components-repo-ci` blocklist to disable
tests that were failing during the development of Ivy. Since we fixed
all those failing tests, and we don't want to regress, we can remove the
blocklist logic.

Resolves FW-1807

PR Close 
2020-02-06 15:32:33 -08:00
Sonu Kapoor
10ad984334 docs: Clarifies code section is a continuation from the section above ()
PR Close 
2020-02-06 15:31:41 -08:00
Joey Perrott
27d16a7881 ci: Remove old vendoring solution in favor of relying on yarn-path ()
Now that bazel respects the yarn-path value found in .yarnrc, we can
remove the last remaining reliances on our vendoring in
//third_party/github.com/yarnpkg/yarn/

PR Close 
2020-02-06 15:30:51 -08:00
Alex Rickabaugh
3c69442dbd feat(compiler-cli): implement NgTscPlugin on top of the NgCompiler API ()
This commit implements an experimental integration with tsc_wrapped, where
it can load the Angular compiler as a plugin and perform Angular
transpilation at a user's request.

This is an alternative to the current ngc_wrapped mechanism, which is a fork
of tsc_wrapped from several years ago. tsc_wrapped has improved
significantly since then, and this feature will allow Angular to benefit
from those improvements.

Currently the plugin API between tsc_wrapped and the Angular compiler is a
work in progress, so NgTscPlugin does not yet implement any interfaces from
@bazel/typescript (the home of tsc_wrapped). Instead, an interface is
defined locally to guide this standardization.

PR Close 
2020-02-06 15:27:34 -08:00
Alex Rickabaugh
14aa6d090e refactor(ivy): compute ignoreFiles for compilation on initialization ()
This commit moves the calculation of `ignoreFiles` - the set of files to be
ignored by a consumer of the `NgCompiler` API - from its `prepareEmit`
operation to its initialization. It's now available as a field on
`NgCompiler`.

This will allow a consumer to skip gathering diagnostics for `ignoreFiles`
as well as skip emit.

PR Close 
2020-02-06 15:27:34 -08:00
Misko Hevery
49dd7b6a0a docs: consilidate release notes for the v8.0.0 release ()
PR Close 
2020-02-06 14:58:10 -08:00
Stephen Fluin
532ccb647c docs: remove the release schedule from docs ()
Removing for now, since the info is stale, and we need to determine how to adjust the schedule due to the unexpected and significant version 9 delay.

PR Close 
2020-02-06 14:29:21 -08:00
Igor Minar
ba0cdd3010 feat(docs-infra): add v8 to the version picker in the navbar ()
The v8.angular.io should be ready shortly.

PR Close 
2020-02-06 14:28:08 -08:00
Igor Minar
86db592b5c docs(ivy): add a not about compile-time constants to the ivy compatibility guide ()
PR Close 
2020-02-06 13:53:50 -08:00
Misko Hevery
053dabb7ed docs: consolidate and remove rc/next notes from the v9.0.0 release ()
PR Close 
2020-02-06 13:44:18 -08:00
Misko Hevery
22acdc2728 docs: consilidate release notes for the v9.0.0 release 2020-02-06 11:41:56 -08:00
Misko Hevery
548b0e5fc2 docs: release notes for the v9.0.0 release 2020-02-06 10:32:20 -08:00
Igor Minar
722251da40 build: update scripts/release/post-check with the latest versions ()
these files are used as a post-release smoke tests and haven't been updated to reflect recent depedency changes
and package additions.

PR Close 
2020-02-06 09:37:26 -08:00
Kara Erickson
c286fbb9dc docs(ivy): add size debugging section ()
PR Close 
2020-02-06 09:34:36 -08:00
Kara Erickson
7526ef77b7 docs(ivy): add docs for styling priority order ()
PR Close 
2020-02-06 09:33:28 -08:00
Kara Erickson
4e9d62ff81 docs(ivy): update style binding docs to v9 behavior ()
PR Close 
2020-02-06 09:33:28 -08:00
Kara Erickson
a08f6d9795 docs(ivy): clean up class binding docs and update to v9 behavior ()
PR Close 
2020-02-06 09:33:28 -08:00
Kara Erickson
4fc2678438 docs(ivy): document breaking change with host attribute priority ()
PR Close 
2020-02-05 18:22:16 -08:00
Filipe Silva
c73d7181ae build: update @angular/cli to rc 14 ()
PR Close 
2020-02-05 17:20:31 -08:00
Misko Hevery
9f99c9955f ci: temporary disable the Android 7 SauceLab due to timeout ()
PR Close 
2020-02-05 16:53:19 -08:00
Alex Rickabaugh
c35671c0a4 fix(ivy): template type-check errors from TS should not use NG error codes ()
A bug previously caused the template type-checking diagnostics produced by
TypeScript for template expressions to use -99-prefixed error codes. These
codes are converted to "NG" errors instead of "TS" errors during diagnostic
printing. This commit fixes the issue.

PR Close 
2020-02-04 15:59:01 -08:00
Sasha Rudan
1f6da8c7d5 docs: fix typo in router animation ()
`output directive` should be written: `outlet directive`

PR Close 
2020-02-04 15:58:26 -08:00
ajitsinghkaler
491654d882 fix(docs-infra): fix CSS issues on home page and search results ()
On home page, image size set to 400px, which make the page not render
properly on devices below the size of 400px width.

Also, when search results were scrolled, they interfered with the top
nav items. Added border at the top of the search results container so
that the results are not visible under the nav items during scrolling.

PR Close 
2020-02-04 15:57:58 -08:00
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