1350 Commits

Author SHA1 Message Date
Matias Niemelä
f88fba020b fix(animations): avoid animation insertions during router back/refresh ()
Closes 

PR Close 
2018-03-22 17:59:41 -04:00
Victor Berchet
32105c8012 test: temporarily disable ng_package test ()
PR Close 
2018-03-22 15:27:28 -04:00
Victor Berchet
4a075e885f test: display a diff when example_apckage.spec.ts fails to ease debugging ()
PR Close 
2018-03-22 15:27:28 -04:00
Rado Kirov
838a610197 fix(compiler): don't typecheck all inputs ()
ngc knows to filter out d.ts inputs, but the logic accidentally
depended on whether it had a previous Program lying around.

Fixing that logic puts ngc on the fast code path, but in that code
path it must be able to merge tsickle EmitResults, so we need to
plumb the tsickle.mergeEmitResults function through all the intervening
APIs.  The bulk of this change is that plumbing.

PR Close 
2018-03-21 18:29:18 -04:00
Alex Eagle
64efcf103c build: add the FESM files back to ng_package ()
PR Close 
2018-03-21 13:19:19 -07:00
adasilva
8c2a57878b fix(service-worker): fix LruList bugs ()
'remove' method not removing url from state.map
'accessed' method not removing 'previous' reference from existing  node when it becomes the head

Fixes 
Fixes 

PR Close 
2018-03-21 13:11:26 -07:00
Igor Minar
8768665587 fix: correct peerDependencies declaration on rxjs 2018-03-20 22:48:41 -07:00
Jason Aden
623d769858 fix(router): make locationSyncBootstrapListener public due to change in output after TS 2.7 update in ()
PR Close 
2018-03-20 17:40:25 -07:00
Miško Hevery
17fb9832f4 fix(ivy): fix type error in newer version of TS ()
Newer version of TS is stricter about types and flags counter-variant
types in some  situations. This change inlines the DirectiveDefArgs
into the arguments which:
1) removes the inheritance which caused the issue and
2) Makes it more friendly to IDEs since they will not report comments.

Closes 
Closes 

PR Close 
2018-03-20 15:49:45 -07:00
Igor Minar
3cc5c2e4d0 build: update to rxjs@6.0.0-beta.0 ()
PR Close 
2018-03-20 15:26:49 -07:00
Vikram Subramanian
e6c731f791 fix(router): don't use spread operator to workaround an issue in closure compiler ()
Closure compiler could not handle the spread operator in this one place. Working around it by removing the use of spread operator.

PR Close 
2018-03-20 13:30:37 -07:00
Igor Minar
7d095b96cd fix: correct several esm2015 entry-points in package.jsons ()
PR Close 
2018-03-20 13:30:08 -07:00
Alex Eagle
689f351092 build: expose flatModuleOutFile option on ng_module ()
This lets projects like Material change ng_package "bundle index" files to non-conflicting paths

Currently packages like @angular/core ship with the generated metadata
in a path like 'core.js' which overwrites one of the inputs.

Angular material puts the generated file in a path like 'index.js'

Either way these files generated by ng_module rules have the potential
to collide with inputs given by the user, which results in an error.

Instead, give users the freedom to choose a different non-conflicting name.

Also this refactors the ng_package rule, removing the redundant
secondary_entry_points attribute.

Instead, we assume that any ng_module in the deps with a module_name
attribute is a secondary entry point.

PR Close 
2018-03-20 13:28:57 -07:00
Igor Minar
b43f8bc7d3 feat(core): upgrade rxjs to 6.0.0-alpha.4 ()
PR Close 
2018-03-19 21:51:51 -07:00
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