13784 Commits

Author SHA1 Message Date
Keen Yee Liau
cf40105fc0 build: ignore packages/bazel/node_modules ()
PR Close 
2019-04-08 09:48:08 -07:00
Pawel Kozlowski
38a3a5a1f1 refactor(ivy): remove unused code related to listeners clanup ()
PR Close 
2019-04-08 09:47:55 -07:00
Alan Agius
902a53a4f6 feat(bazel): update the build to use the new architect api ()
With this change the builder has been updated to use the latest architect API and make it compatable with the latest CLI

Fixes https://github.com/angular/angular-cli/issues/14082

PR Close 
2019-04-08 09:47:34 -07:00
Alan Agius
e38115536f build: update angular cli packages to latest beta ()
PR Close 
2019-04-08 09:47:34 -07:00
Paul Gschwendtner
6d35c5094a test(core): add test for template variable object property assignment ()
The `template-var-assignment` schematic currently complains if someone
assigns a value to a template variable. This will no longer work with Ivy, but
it should be totally fine to update a property of the template variable if it refers
to an object. This commit adds a test that ensures that we don't incorrectly report
any failure for such property writes in bound events.

PR Close 
2019-04-08 09:46:57 -07:00
Paul Gschwendtner
4a2fb86b1e refactor(core): polish failure messages for template-var-assignment schematic ()
Improves the failure messages for the `template-var-assignment` schematic. After manual
testing of the schematic it's not quite clear for developers what the failure message means
without any context. The schematic now also references a short markdown file mentioning
what needs to be changed, but eventually this document needs to be expanded with more
information and context of the reasoning behind this change within Ivy.

PR Close 
2019-04-08 09:46:57 -07:00
George Kalpakas
8bbf481d60 refactor(docs-infra): rename properties (blacklisted --> ignored) ()
PR Close 
2019-04-08 09:46:34 -07:00
George Kalpakas
c5bba8d9f2 build(docs-infra): do not include announcements.json in sitemap ()
The `announcements.json` file should not be included in the sitemap and
including it causes an error in Google Search Console (because the
generated URL does not exist).

(This is a follow-up to fbef94a8e.)

PR Close 
2019-04-08 09:46:33 -07:00
Pete Bacon Darwin
e02684e609 fix(compiler-cli): ensure LogicalProjectPaths always start with a slash ()
Previously, if a matching rootDir ended with a slash then the path
returned from `logicalPathOfFile()` would not start with a slash,
which is inconsistent.

PR Close 
2019-04-08 09:46:16 -07:00
Matias Niemelä
ec56354306 fix(ivy): ensure parent/sub-class components evaluate styling correctly ()
The new styling algorithm in angular is designed to evaluate host
bindings stylinh priority in order of directive evaluation order. This,
however, does not work with respect to parent/sub-class directives
because sub-class host bindings are run after the parent host bindings
but still have priority. This patch ensures that the host styling bindings
for parent and sub-class components/directives are executed with respect
to the styling algorithm prioritization.

Jira Issue: FW-1132

PR Close 
2019-04-05 16:49:52 -07:00
JoostK
5c13feebfd test(ivy): verify ngOnDestroy is called for tree-shakeable providers ()
This test verifies that Ivy's module injector does not suffer from
 to prevent regressing on this behavior going forward.

PR Close 
2019-04-05 09:40:00 -07:00
JoostK
30b04424a3 fix(core): call ngOnDestroy for tree-shakeable providers ()
Prior to this change, any provider that was independently resolved using
its InjectableDef would not be considered when destroying the module it
was requested from. This commit provides a fix for this issue by storing
the resolved provider in the module's list of provider definitions.

Fixes 

PR Close 
2019-04-05 09:40:00 -07:00
Rado Kirov
f8cdda63d4 refactor: uniformly access all index sigs with index access. ()
Follow-up to https://github.com/angular/angular/pull/28937

A build-time check to enforce this is part of tsetse -
https://tsetse.info/property-renaming-safe but I don't know how to turn
it on for this repositories bazel builds.

PR Close 
2019-04-05 09:34:26 -07:00
Judy Bogart
b6f48dbe19 docs: correct route path description ()
PR Close 
2019-04-04 15:40:59 -07:00
Carlos Ortiz García
609024f93d fix(core): Deprecate TestBed.get(...):any ()
Adds an overload to TestBed.get making parameters strongly typed and
deprecated previous signature that accepted types `any`. The function
still returns `any` to prevent build breakages, but eventually stronger
type checks will be added so a future Angular version will break builds
due to additional type checks.
See previous breaking change - 

Issue 

PR Close 
2019-04-04 15:32:23 -07:00
Greg Magolan
9c056b974a build(bazel): tslib.js still required in ts_devserver & ts_web_test_suite for schematics ()
PR Close 
2019-04-04 14:27:05 -07:00
Greg Magolan
c0ec8425c2 build(bazel): remove unnecessary scripts from ts_devserver & ts_web_test_suite in bazel schematics ()
PR Close 
2019-04-04 14:27:05 -07:00
Greg Magolan
b02cb3dc01 build(bazel): remove unnecessary scripts from ts_devserver & ts_web_test_suite in /integration/bazel ()
PR Close 
2019-04-04 14:27:05 -07:00
Greg Magolan
2e66ddfdce fix(bazel): add configuration_env_vars = ["compile"] to generated @npm//@angular/bazel/bin:ngc-wrapped nodejs_binary ()
PR Close 
2019-04-04 14:27:04 -07:00
Greg Magolan
7fbe138b1f build(bazel): update to nodejs rules 0.27.10 ()
PR Close 
2019-04-04 14:27:04 -07:00
Judy Bogart
0c47dc0466 docs: add universal terms to glossary ()
PR Close 
2019-04-04 14:26:36 -07:00
Keen Yee Liau
2bd9214435 fix(bazel): remove karma-jasmine from ts_web_test_suite ()
It's not needed.

PR Close 
2019-04-04 14:26:11 -07:00
Pete Bacon Darwin
433b7b02a4 test(docs-infra): fix eslint warnings ()
```
warning  An "it" that uses an async method should handle failure (use "done.fail")  jasmine/no-promise-without-done-fail
```

PR Close 
2019-04-04 10:52:36 -07:00
Pete Bacon Darwin
a4f3f3f81d build(docs-infra): support doc aliases via @alias dgeni tag ()
Now, one can add an `@alias` tag to API docs, which tells dgeni that this
API element (usually a `const`) is really just an alias for some API element
defined elsewhere.

Dgeni will then look up this API element and copy over the properties from
the alias to the current doc.

For example, we would like to privately export an Enum from `@angular/core`
but then publicly export this from `@angular/common`:

**packages/core/private_exports.ts**

```ts
/**
 * Description of this document.
 */
export enum ɵSomeEnum { ... }
```

**packages/common/public_api.ts**

```ts
import {ɵSomeEnum} from '@angular/core';

 /**
 * @alias core/ɵSomeEnum
 */
export const SomeEnum = ɵSomeEnum;
```

In the generated docs there will be a page for `common/SomeEnum`, which
will be rendered as an enum, rather than a const, showing the description
extracted from the `core/ɵSomeEnum`.

---

The implementation of this feature required some refactoring of the other
processing:

1. Previously `ɵ` prefixed exports were not even considered.
2. Due to 1. some processors needed to have guards added to ignore such
   private exports (`addMetadataAliases` and `checkContentRules`).
3. The processing of package pages had to be reworked (and split) so that
   it picked up the aliased export docs after their alias proeprties had
   been copied.

See FW-1207, FW-632, 

PR Close 
2019-04-04 10:52:36 -07:00
Pete Bacon Darwin
6233cd55f7 style(docs-infra): fix typo ()
PR Close 
2019-04-04 10:52:36 -07:00
Paul Gschwendtner
c3aea737ff build: add render3 entry-point to legacy test systemjs config ()
Until the legacy job has been migrated to Bazel w/ Saucelabs, we
need to add the `render3` entry-point to the test SystemJS configuration
so that developers don't get inconsistent behavior between Bazel tests
and the legacy tests. e.g. https://circleci.com/gh/angular/angular/270102

PR Close 
2019-04-04 10:52:11 -07:00
musou1500
eaa49bdc04 docs: fix typo in getting-started/routing ()
PR Close 
2019-04-04 10:51:44 -07:00
Filipe Silva
96b76dc3f1 fix(core): add missing migration to npm package ()
While running `ng update @angular/core --next`, the following error would be displayed:

```
Cannot find module '....\node_modules\@angular\core\schematics\migrations\template-var-assignment\index'
```

This happened because the Schematics migration was referenced, but not included.

This commit fixes that bug by including the migration in the Bazel npm package dependencies.

PR Close 
2019-04-04 10:51:19 -07:00
zverbeta
afd2417ecd docs: add ibm carbon ui library ()
PR Close 
2019-04-04 10:50:05 -07:00
Ben Lesh
699ecac2c2 refactor(ivy): Add i18n create op codes debug info ()
Simply adds a `debug` property to the array of create opcodes while inside
`readCreateOpCodes` in i18n. This `debug` property has a property called `operations`
that is a human-readable list of operations that will be performed, as derived
from the op codes themselves, and the view it's acting upon.

PR Close 
2019-04-03 15:54:42 -07:00
Dave
c7ff728723 docs: add angular.de to the workshops page ()
undo unrelated whitespace change

PR Close 
2019-04-03 15:39:20 -07:00
Maxime Lafarie
d96f62fdc4 docs: add ngx-smart-modal to doc resources ()
PR Close 
2019-04-03 15:36:29 -07:00
Stephen Fluin
b9fead7f83 docs: update announcements for home page ()
Updated dates, add tracking to links

PR Close 
2019-04-03 15:36:03 -07:00
George Kalpakas
648adb1894 build(docs-infra): upgrade cli command docs sources to b00300ebd ()
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](f63f8c60f...b00300ebd):

**Modified**
- help/build.json
- help/generate.json

PR Close 
2019-04-03 15:31:15 -07:00
Alan
9810c6c0f9 fix(bazel): support running ng-add on minimal applications ()
Minimal applications don't have `test` and `e2e` targets but we are not currently checking if they exists.

Fixes 

PR Close 
2019-04-03 15:30:46 -07:00
RudarDaman
8e83b3bec1 docs: remove trailing comma in BAZEL.md ()
PR Close 
2019-04-03 15:30:20 -07:00
Pete Bacon Darwin
3246399bff fix(ivy): ngcc - show logging via CLI by default ()
The new logger implementation caused a regression where
by default the ngcc CLI did not output any logging messages.

PR Close 
2019-04-03 15:27:39 -07:00
Pete Bacon Darwin
0f4f315f8e test(ivy): update ngcc integration test dependencies ()
PR Close 
2019-04-03 15:27:38 -07:00
Jason Aden
0a530e6b47 release: cut the v8.0.0-beta.11 release 2019-04-03 15:02:25 -07:00
Jason Aden
dc5577dcb1 docs: release notes for the v7.2.12 release 2019-04-03 14:56:26 -07:00
Vani
a6809e0e7d docs: update location API docs ()
PR Close 
2019-04-02 16:11:28 -07:00
Vani
ddb935fac7 docs: update examples region to match the description in the guide ()
PR Close 
2019-04-02 16:09:19 -07:00
Carlos Ortiz García
afd4a4ed4d feat(core): Add "AbstractType<T>" interface ()
This new interface will match classes whether they are abstract or
concrete. Casting as `AbstractType<MyConcrete>` will return a type that
isn't newable. This type will be used to match abstract classes in the
`get()` functions of `Injector` and `TestBed`.
Type isn't used yet so this isn't a breaking change.

Issue 

PR Close 
2019-04-02 16:07:22 -07:00
JoostK
60afe88bcc feat(ivy): do not emit empty providers/imports for defineInjector ()
The defineInjector function specifies its providers and imports array to
be optional, so if no providers/imports are present these keys may be
omitted. This commit updates the compiler to only generate the keys when
necessary.

PR Close 
2019-04-02 16:03:54 -07:00
JoostK
2d372f48db feat(ivy): exclude declarations from injector imports ()
Prior to this change, a module's imports and exports would be used verbatim
as an injectors' imports. This is detrimental for tree-shaking, as a
module's exports could reference declarations that would then prevent such
declarations from being eligible for tree-shaking.

Since an injector actually only needs NgModule references as its imports,
we may safely filter out any declarations from the list of module exports.
This makes them eligible for tree-shaking once again.

PR Close 
2019-04-02 16:03:54 -07:00
JoostK
45c6360e5a feat(ivy): emit module scope metadata using pure function call ()
Prior to this change, all module metadata would be included in the
`defineNgModule` call that is set as the `ngModuleDef` field of module
types. Part of the metadata is scope information like declarations,
imports and exports that is used for computing the transitive module
scope in JIT environments, preventing those references from being
tree-shaken for production builds.

This change moves the metadata for scope computations to a pure function
call that patches the scope references onto the module type. Because the
function is marked pure, it may be tree-shaken out during production builds
such that references to declarations and exports are dropped, which in turn
allows for tree-shaken any declaration that is not otherwise referenced.

Fixes , FW-1035

PR Close 
2019-04-02 16:03:54 -07:00
Pete Bacon Darwin
6b39c9cf32 fix(compiler-cli): ngcc - cope with processing entry-points multiple times ()
With the new API, where you can choose to only process the first
matching format, it is possible to process an entry-point multiple
times, if you pass in a different format each time.

Previously, ngcc would always try to process the typings files for
the entry-point along with processing the first format of the current
execution of ngcc. But this meant that it would be trying to process
the typings a second time.

Now we only process the typings if they have not already been
processed as part of processing another format in another
even if it was in a different execution of ngcc.

PR Close 
2019-04-02 15:59:34 -07:00
George Kalpakas
c5799491e7 ci: fix CODEOWNERS for ngcc ()
With a770aa231, ngcc was moved to a different directory
(`compiler/src/ngcc/` --> `compiler/ngcc/`), but the `CODEOWNERS` file
was not updated to reflect that.
PR Close 
2019-04-02 15:57:36 -07:00
Alex Eagle
b14537a004 fix(bazel): use //:tsconfig.json as the default for ng_module ()
This matches the behavior of ts_library

PR Close 
2019-04-02 15:57:11 -07:00
Kara
630aaa6bfb docs: add Deborah Kurata to Trusted Collaborators ()
This commit adds Deborah to the Trusted Collaborators list, so she will appear in the Collaborators list on angular.io.
PR Close 
2019-04-02 15:53:48 -07:00