1336 Commits

Author SHA1 Message Date
Domas Trijonis
2b3de6390f fix(upgrade): two-way binding and listening for event ()
Changes would not propagate to a value in downgraded component in case you had two-way binding and listening to a value-change, e.g. [(value)]="value" (value-change)="fetch()"

Closes 

PR Close 
2018-03-19 22:44:36 -05:00
Rado Kirov
5c387a7f3c fix(compiler): do not emit line/char in ngsummary files. ()
Having ngsummaries emit line/char numbers causes white space change to
retrigger upstream recompilations.

PR Close 
2018-03-19 16:01:41 -07:00
Misko Hevery
fc50c77bd3 test(ivy): switch HelloWorld to ivy compiler ()
PR Close 
2018-03-19 16:00:38 -07:00
Greg Magolan
bfe077ad64 fix(bazel): correct expected outs for external sources in ng_module ()
PR Close 
2018-03-19 16:30:01 -05:00
Kara Erickson
1a0cb21538 refactor(ivy): remove unnecessary binding from hello world ()
PR Close 
2018-03-19 16:29:45 -05:00
Igor Minar
0bede54b2d style: fix formatting issues on the master branch ()
PR Close 
2018-03-18 14:03:26 -07:00
Kara Erickson
e27cfd6236 refactor(ivy): split up directiveCreate for tree shaking ()
PR Close 
2018-03-18 11:56:35 -07:00
Kara Erickson
1612985e48 refactor(ivy): allow tick and deps to be tree-shaken ()
PR Close 
2018-03-18 11:47:44 -07:00
Kara Erickson
4f21d373b7 refactor(ivy): move hostBindings calls out of template ()
PR Close 
2018-03-18 11:41:39 -07:00
Igor Minar
ce63dc6f95 feat: update the package output of build.sh to APF v6 ()
PR Close 
2018-03-18 09:33:51 -07:00
Igor Minar
d54615d555 build: don't mark language-service package as sideEffect free ()
we are not sure if this is the case and we don't need this package to
be optimized at the moment.

PR Close 
2018-03-18 09:33:51 -07:00
Miško Hevery
f258ec67bf docs(ivy): update status of ivy ()
PR Close 
2018-03-16 22:20:21 -07:00
Rob Wormald
5d82d8da6d fix(elements): fix elements test bootstrap ()
PR Close 
2018-03-16 22:19:50 -07:00
Alex Rickabaugh
6ef9f2278f feat(ivy): @NgModule -> ngInjectorDef compilation ()
This adds compilation of @NgModule providers and imports into
ngInjectorDef statements in generated code. All @NgModule annotations
will be compiled and the @NgModule decorators removed from the
resultant js output.

All @Injectables will also be compiled in Ivy mode, and the decorator
removed.

PR Close 
2018-03-16 12:57:11 -07:00
Andrew Seguin
688096b7a3 feat(elements): remove attribute/input from config ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
2e450f6fda feat(elements): update package.json with latest ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
0b45dfac29 feat(elements): fix lint ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
167fdf745c feat(elements): rename API to createCustomElement ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
39a12d2c3d feat(elements): make bazel happy ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
87f60bccfd feat(elements): injector create ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
46efd4b938 feat(elements): George's comments ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
19368085aa feat(elements): provide type, not factory; remove config need ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
d2be675acc feat(elements): add tests for component factory strategy ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
22b96b9690 feat(elements): add support for creating custom elements ()
PR Close 
2018-03-16 12:39:07 -07:00
Chuck Jazdzewski
cedc04c320 docs(ivy): document project status ()
Moves the status reporting from the issue  to a file that
can be updated as changes are being made. This addresses one of the
comments on the issue and allows better tracking of updates to this
status and changes made.

PR Close 
2018-03-16 11:27:15 -07:00
Kara Erickson
bafdad9083 fix(ivy): cache local names and support multiple locals with same value ()
PR Close 
2018-03-16 11:26:38 -07:00
Kara Erickson
9220521149 test(ivy): correct export tests and add query test ()
PR Close 
2018-03-16 11:26:38 -07:00
Jeremy Elbourn
b149424b11 build(bazel): make ng_package auto generate package.json for secondary entry-points ()
PR Close 
2018-03-15 21:18:27 -07:00
Oussama Ben Brahim
269c3a1908 build(compiler-cli): fix tsconfig.json circularity issue ()
Fixes 

PR Close 
2018-03-15 21:18:07 -07:00
Alex Eagle
f9247e4b2e build: enable importHelpers in tsconfig ()
This is the primary tsconfig file used for Bazel builds.
Previously, we enabled this option only for releases.

PR Close 
2018-03-15 21:16:03 -07:00
Igor Minar
44de10e2db feat: mark angular packages as side-effect free ()
This flag is picked up by webpack v4 and used for more agressive optimizations.

Our code is already side-effect free, because that's what we needed for build-optimizer to work.

PR Close 
2018-03-15 14:52:40 -07:00
Victor Berchet
0ebd577db4 refactor(compiler): Drop support for the deprecated <template>. Use <ng-template> instead ()
BREAKING CHANGE:

The `<template>` tag was deprecated in Angular v4 to avoid collisions (i.e. when
using Web Components).

This commit removes support for `<template>`. `<ng-template>` should be used
instead.

BEFORE:

    <!-- html template -->
    <template>some template content</template>

    # tsconfig.json
    {
      # ...
      "angularCompilerOptions": {
        # ...
        # This option is no more supported and will have no effect
        "enableLegacyTemplate": [true|false]
      }
    }

AFTER:

    <!-- html template -->
    <ng-template>some template content</ng-template>

PR Close 
2018-03-15 14:52:22 -07:00
Kara Erickson
4e6ac185e5 refactor(ivy): double size of DI bloom filter ()
PR Close 
2018-03-15 14:49:39 -07:00
Kara Erickson
e55bf8fa79 refactor(ivy): access component def through tData ()
PR Close 
2018-03-15 14:49:23 -07:00
Olivier Combe
3b167be069 feat(compiler): support for singleline, multiline & jsdoc comments ()
PR Close 
2018-03-15 14:48:53 -07:00
Alex Eagle
88b3198c80 feat(bazel): change ng_package rule to APF v6 ()
Angular Package Format v6 stops bundling files in the esm5 and esm2015
directories, now that Webpack 4 can tree-shake per-file.

Adds some missing files like package.json to make packages closer to
what we publish today.

Refactor ng_package to be a type of npm_package and re-use the packaging
action from that rule.

PR Close 
2018-03-15 11:38:31 -07:00
Chuck Jazdzewski
6e5e819e80 fix(compiler-cli): emit correct css string escape sequences ()
Works around an issue with TypeScript 2.6 and 2.7 that causes
the tranformer emit to emit incorrect escapes for css string
literals.

Fixes: 

PR Close 
2018-03-15 11:37:50 -07:00
Adam Plumer
cd2ebd22fd fix(platform-server): add styles to elements correctly ()
* Partially reverts  due to lack of total spec compliance
  on the server
* Maintains the camel-case styles fix

PR Close 
2018-03-14 14:12:31 -07:00
Miško Hevery
112431db69 test(ivy): add canonical compiler spec for class/style ()
Adds a stub for `elementStyle` and `elementClass` instruction
with a canonical spec for the compiler. The spec shows the the
compiler should be using `elementStyle` and `elementClass` instruction
in place of `[class]` and `[style]` bindings respectively.
PR Close 
2018-03-14 12:59:52 -07:00
Miško Hevery
a0a01f1e1e refactor(ivy): rename class/style to make space for new instruction ()
Rename:
- `elementClass` (short: `k`) => `elementClassNamed` (short: `kn`)
- `elementStyle` (short: `s`) => `elementStyleNamed` (short: `sn`)

Currently `[class.name]` is `elementClass(0, ‘name’, value)`. We would
like to introduce new binding `[class]` which needs a new instruction
ideally `elementClass(0, value)`. Doing the rename creates space
to create such an instruction in subsequent change.

PR Close 
2018-03-14 12:59:52 -07:00
Miško Hevery
ae19d071bb test(ivy): add ComponentFixture for cleaner tests. ()
PR Close 
2018-03-14 12:59:52 -07:00
Matias Niemelä
f5a98f41fe fix(core): remove core animation import symbols ()
This patch removes the deprecated support for animation
symbol imports from @angular/core.

BREAKING CHANGE: it is no longer possible to import
animation-related functions from @angular/core. All
animation symbols must now be imported from @angular/animations.

PR Close 
2018-03-14 12:23:51 -07:00
Pawel Kozlowski
c09bd67aee fix(ivy): fix views manipulation logic ()
This commit fixes a bug that would result in views insert / remove
even if a view needed only refresh operation.

The crux of the bug was that we were looking for a view to update
only in the LContainer.nextIndex position. This is incorrect as a
view with a given block id could be present later in the views
array (this happens if we about to remove a view in the middle of
the views array).

The code in this fix searches for a view to update in the views array and
can remove views in the middle of the views collection. Previously we
would remove views at the end of the collection only.

PR Close 
2018-03-14 12:07:15 -07:00
Michael Giambalvo
37fedd001c feat(core): add task tracking to Testability ()
Allow passing an optional timeout to Testability's whenStable(). If
specified, if Angular is not stable before the timeout is hit, the
done callback will be invoked with a list of pending macrotasks.

Also, allows an optional update callback, which will be invoked whenever
the set of pending macrotasks changes. If this callback returns true,
the timeout will be cancelled and the done callback will not be invoked.

If the optional parameters are not passed, whenStable() will work
as it did before, whether or not the task tracking zone spec is
available.

This change also migrates the Testability unit tests off the deprecated
AsyncTestCompleter.

PR Close 
2018-03-14 08:48:48 -07:00
Kara Erickson
b1365d1fa8 refactor(ivy): remove directiveRefresh instruction ()
PR Close 
2018-03-13 23:29:21 -07:00
WilliamKoza
4ac606b419 docs(compiler): fix spelling errors ()
PR Close 
2018-03-13 21:45:13 -07:00
Miško Hevery
51027d73cc fix(ivy): Update rollup rule to prevent inlining symbols in debug. ()
The new rollup rule disables inlining symbols in debug mode. This makes 
it look as if there would be more symbols but in reality these are the
symbols which are no longer being inlined.
PR Close 
2018-03-13 19:58:30 -07:00
Kara Erickson
bd9d4df735 refactor(ivy): remove inputsPropertyName ()
Closes 

PR Close 
2018-03-13 13:26:15 -07:00
Jeremy Elbourn
34e355a3b0 build(bazel): ng_package rxjs/operators rollup config ()
PR Close 
2018-03-13 12:12:11 -07:00
Matias Niemelä
58b94e6f5e feat(animations): expose element and params within transition matchers ()
PR Close 
2018-03-13 09:42:24 -07:00