Igor Minar
578bdeb522
fix(router): export missing UrlMatcher and UrlMatchResult types
...
Fixes #15140
2017-07-05 15:26:27 -07:00
Jason Aden
8a1a989a1c
feat(router): add router-level events for GuardsCheck and Resolve ( #17601 )
2017-07-01 10:30:17 -07:00
Jason Aden
b479ed9407
perf(core): refactor NgZone, decrease size by 1.2Kb ( #17773 )
...
- Remove getters
- Hide private methods for better property renaming
```
497893 May 31 11:26 core.umd.js
718073 May 31 11:26 core.umd.js.map
217108 May 31 11:26 core.umd.min.js
575092 May 31 11:26 core.umd.min.js.map
```
```
495594 May 31 11:28 core.umd.js
716943 May 31 11:28 core.umd.js.map
215826 May 31 11:28 core.umd.min.js
574401 May 31 11:28 core.umd.min.js.map
```
diff: 1,282
2017-07-01 10:29:56 -07:00
Matias Niemelä
1cfe67dac4
release: cut the 4.3.0-beta.1 release
2017-06-29 14:38:52 -07:00
Matias Niemelä
af14b1e384
test(animations): add proper tests to check multiple combinations of :enter/:leave animation queries
2017-06-28 18:18:10 -07:00
Matias Niemelä
40f77cb563
fix(animations): properly collect :enter nodes that exist within multi-level DOM trees
...
Closes #17632
2017-06-28 18:18:10 -07:00
Matias Niemelä
d699c354db
fix(animations): do not remove container nodes when children are queried by a parent animation
...
Closes #17746
2017-06-27 11:00:17 -07:00
Matias Niemelä
34f3832af9
fix(animations): do not delay style() values before a stagger() runs
...
Closes #17412
2017-06-27 11:00:06 -07:00
Victor Berchet
448d9f9f46
test(compiler): add a test for components not part of any `NgModule`
2017-06-26 13:24:36 -07:00
Jason Hodges
f365a0f45c
docs(aio): animations typos fixed
2017-06-26 11:04:13 -07:00
Pawel Kozlowski
263c1a1d7e
refactor: remove unused imports of the deprecated Renderer
2017-06-23 17:24:40 -07:00
Chuck Jazdzewski
3097083277
feat(compiler-cli): new compiler api and command-line using TypeScript transformers
2017-06-23 16:18:44 -07:00
Pawel Kozlowski
43c187b624
refactor(forms): remove usage of deprecated Renderer
2017-06-23 16:12:52 -07:00
Pawel Kozlowski
3165fd3dc9
refactor(router): remove usage of deprecated Renderer
2017-06-23 16:12:43 -07:00
Alex Eagle
e80851d98b
fix(core): add needed closure compiler warning suppression
2017-06-23 14:44:00 -07:00
Victor Berchet
b754e600e3
feat(compiler): add support `::ng-deep`
...
- /deep/ is deprecated and being removed from Chrome
- >>> is semantically invalid in a stylesheet
- sass will no longer support either in any version of sass
-> use ::ng-deep in emulated shadow DOM mode
Because the deep combinator is deprecated in the CSS spec,
`/deep/`, `>>>` and `::ng-deep` are also deprecated in emulated shadow DOM mode
and will be removed in the future.
see https://www.chromestatus.com/features/6750456638341120
2017-06-23 14:43:42 -07:00
Chuck Jazdzewski
81734cf7b6
refactor(compiler): add tracking comment for self-import detection
...
The underlying cause of #17386 needs to be investigated and as a
simple string compare should have been valid.
2017-06-23 14:43:24 -07:00
Matias Niemelä
f2ee1dcdb7
fix(animations): do not validate style overlap errors in different transitions
2017-06-23 09:02:37 -07:00
Hans Larsen
20a04f9076
release: cut the 4.3.0-beta.0 release
2017-06-21 17:16:04 -07:00
Chuck Jazdzewski
4352dd27c4
fix(compiler): avoid emitting self importing factories
...
Fixes : #17389
2017-06-21 16:19:43 -07:00
Chuck Jazdzewski
8c89cc4fc5
fix(compiler-cli): find lazy routes in nested module import arrays
...
Fixes : #17531
2017-06-20 14:21:14 -07:00
Alex Rickabaugh
c59c390cdc
fix: argument destructuring sometimes breaks strictNullChecks
...
Destructuring of the form:
function foo({a, b}: {a?, b?} = {})
breaks strictNullChecks, due to the TypeScript bug https://github.com/microsoft/typescript/issues/10078 .
This change eliminates usage of destructuring in function argument lists in cases where it would leak
into the public API .d.ts.
2017-06-20 12:56:08 -07:00
Pawel Kozlowski
009651e14f
refactor(core): remove toString() method from DefaultKeyValueDiffer
...
toString() from DefaultKeyValueDiffer is only used in tests and should not
be part of the production code. toString() methods from differs add
~ 0.3KB (min+gzip) to the production bundle size.
2017-06-20 12:55:20 -07:00
Chuck Jazdzewski
f194f18dbd
fix(language-service): infer `any` `ngForOf` of type `any`
...
Fixes : #17611
2017-06-20 12:04:51 -07:00
Chuck Jazdzewski
4e6be15069
fix(language-service): rollup `tslib` into the language service package
...
Fixes : #17614
2017-06-20 11:50:20 -07:00
Hans Larsen
3e685f98c6
fix(forms): roll back breaking change with min/max directives
...
With 4.2, we introduced the min and max validator directives. This was actually a breaking change because their selectors could include custom value accessors using the min/max properties for their own purposes.
For now, we are rolling back the change by removing the exports. At the least, we should wait to add them until a major version. In the meantime, we will have further discussion about what the best solution is going forward for all validator directives.
Closes #17491 .
----
PR #17551 tried to roll this back, but did not remove the dead code. This failed internal tests that were checking that all declared directives were used.
This PR rolls back the original PR and commit the same as #17551 while also removing the dead code.
2017-06-20 09:04:50 -07:00
Hans Larsen
6c8e7dd63e
revert: fix(forms): temp roll back breaking change with min/max directives
...
This reverts commit 232bd9395d
.
2017-06-20 09:04:50 -07:00
Igor Minar
d3c92a307a
fix(router): update the version placeholder so that it gets replaced during the build
...
Fixes #17403
2017-06-19 15:11:06 -07:00
Trotyl Yu
9315ab88d7
test(compiler): fix typo "mamespace"
2017-06-16 11:17:15 -07:00
Kara Erickson
232bd9395d
fix(forms): temp roll back breaking change with min/max directives
...
With 4.2, we introduced the min and max validator directives. This was actually a breaking change because
their selectors could include custom value accessors using the min/max properties for their own purposes.
For now, we are rolling back the change by removing the exports.
Closes #17491 .
2017-06-16 09:20:04 -07:00
Igor Minar
e096a85874
fix(animations): remove duplicate license header
2017-06-15 14:41:59 -07:00
Vikram Subramanian
0c07f8c099
test(platform-server): fix and re-enable integration tests
2017-06-13 15:50:23 -07:00
olegdunkan
93d1b4ed9d
refactor(compiler): remove duplicate code
2017-06-13 13:37:33 -07:00
Alex Rickabaugh
e95062d1df
release: cut the 4.2.2 release
2017-06-12 15:50:10 -07:00
Tobias Bosch
ed73d4f3ac
refactor(compiler): don’t always compile `.ngfactory.ts` files by default
...
This puts the behavior introduced in 573b8611bc
behind the new flag
`alwaysCompileGeneratedCode` to not break users that might have relied
on this behavior.
2017-06-12 15:27:02 -07:00
Matias Niemelä
6ca46929fa
fix(animations): properly collect :enter nodes in a partially updated collection
...
This PR fixes an issue where `query(':enter')` will only collect elements up until it an element that is found that isn't apart of the `:enter` query.
Closes #17440
2017-06-12 15:26:46 -07:00
Matias Niemelä
185075d870
fix(animations): compute removal node height correctly
2017-06-12 12:18:26 -07:00
Matias Niemelä
451257a2fd
fix(animations): do not treat a `0` animation state as `void`
2017-06-12 12:18:15 -07:00
Alex Rickabaugh
8575e3f71c
release: cut the 4.2.1 release
2017-06-09 16:04:09 -07:00
Tobias Bosch
90b0713e32
refactor(compiler): don’t write summaries for jit by default
...
The default is false externally but true internally at Google.
2017-06-09 15:58:53 -07:00
Alex Rickabaugh
c2d31fb01e
fix(http): move destructuring inside {Request,Response}Options ctor
...
Previously the RequestOptions/ResponseOptions classes had constructors
with a destructured argument hash (represented by the
{Request,Response}OptionsArgs type). This type consists entirely of
optional members.
This produces a .d.ts file which includes the constructor declaration:
constructor({param, otherParam}?: OptionsArgs);
However, this declaration doesn't type-check properly. TypeScript
determines the actual type of the hash parameter to be OptionsArgs | undefined,
which it then concludes does not have a `param` or `otherParam` member.
This is a bug in TypeScript ( https://github.com/microsoft/typescript/issues/10078 ).
As a workaround, destructuring is moved inside the method, where it does not produce
broken artifacts in the .d.ts.
Fixes #16663 .
2017-06-09 14:34:39 -07:00
Alex Rickabaugh
8e5beb024f
release: cut the 4.2.0 release
2017-06-08 15:38:20 -07:00
Kara Erickson
a222c3e609
fix(forms): fix min and max validator behavior on non-numbers
2017-06-08 13:59:17 -07:00
Matias Niemelä
e9886d701d
fix(animations): evaluate substitutions on option param values
2017-06-08 10:12:52 -07:00
Georgios Kalpakas
022835bab2
ci: update Chromium to 464641 (Chrome v59)
2017-06-08 09:36:35 -07:00
Matias Niemelä
fe6b39d585
perf(animations): do not create a closure each time a node is removed
2017-06-07 11:16:17 -07:00
Alex Eagle
b00b80a45b
feat(compiler-cli): introduce synchronous codegen API
2017-06-06 14:12:02 -07:00
Michael Giambalvo
269bbe0e7d
fix(upgrade): call setInterval outside the Angular zone
...
This wraps the $interval service when using upgrade to run the
$interval() call outside the Angular zone. However, the callback is
invoked within the Angular zone, so changes still propagate to
downgraded components.
2017-06-06 14:11:21 -07:00
Miško Hevery
bb2fc6b8da
refactor(platform-browser): Remove setGlobalVar from DOM adapter
2017-06-06 13:26:23 -07:00
Rafael
7c78282ce8
docs: fix typo in 'Routes' docs
2017-06-05 11:18:43 -07:00
Alex Eagle
5faf520067
build: Introduce Bazel build rules
...
So far this just compiles the core and common packages.
2017-06-05 11:18:20 -07:00
Matias Niemelä
819514aeba
fix(animations): ensure web-animations understands a numeric CSS perspective value
...
Closes #14007
2017-06-02 17:05:15 -07:00
Matias Niemelä
b55adee982
perf(animations): only apply `:leave` flags if animations are set to run
2017-06-02 17:05:06 -07:00
Robert Spier
4c32cb952f
fix(router): opening links in new window
...
Shift-clicks on router-links should not prevent browser default action.
A follow on to:
1ac9dda93d
2017-06-02 17:32:12 -04:00
Victor Berchet
8e7a3f031b
release: cut the 4.2.0-rc.2 release
2017-06-01 14:25:19 -07:00
Matias Niemelä
068133ec85
fix(animations): do not retain deleted nodes during an non-removal animation ( #17153 )
...
Closes #17086
2017-06-01 14:02:41 -07:00
Matias Niemelä
ad6a57e0a3
perf(animations): do not place enterId values on elements for querying purposes ( #17150 )
2017-06-01 11:39:53 -07:00
Chuck Jazdzewski
230255f887
feat(compiler-cli): produce template diagnostics error messages ( #17125 )
...
Refactoring the compiler to use transformers moves the code generation
after type-checking which suppresses the errors TypeScript would
generate in the user code.
`TypeChecker` currently produces the same factory code that was
generated prior the switch to transfomers, getting back the same
diagnostics as before. The refactoring will allow the code to
diverge from the factory code and allow better diagnostic error
messages than was previously possible by type-checking the factories.
2017-06-01 10:13:50 -07:00
Matias Niemelä
665e7071fa
fix(animations): always change to desired animation state even if no transition fires ( #17025 )
...
Fixes #16947
2017-05-31 15:36:41 -07:00
Jason Aden
c20f60b144
fix(router): make remove trailing slash consistent with URL params
...
closes #16069
2017-05-31 14:35:47 -07:00
Chuck Jazdzewski
e5138081ec
build: update router package.json placeholder ( #17060 )
2017-05-30 13:19:54 -07:00
Andrew Mitchell
8ffa483bb6
fix(compiler): enableLegacyTemplate should not be ignored ( #17051 )
...
Fixes #15555
2017-05-30 13:19:42 -07:00
Olivier Combe
535d9da6b6
fix(common): always use 'other' case for locales with no plural rules ( #16990 )
...
Locales with no rules were using the wrong plural rule instead of the default.
2017-05-30 10:46:36 -07:00
Chuck Jazdzewski
18bf77204e
feat(compiler): emit typescript nodes from an output ast ( #16823 )
2017-05-30 10:43:13 -07:00
Jason Aden
160221c815
test(platform-server): fix target of TS outDir for integration test ( #17118 )
2017-05-30 10:40:03 -07:00
Chuck Jazdzewski
a1724f7816
release: cut the 4.2.0-rc.1 release
2017-05-26 14:32:20 -07:00
Matias Niemelä
d108479d84
fix(animations): use a lightweight renderer for non-animation components ( #17003 )
...
This reverts commit c0981b8e13
.
2017-05-26 14:39:42 -06:00
Jesús Rodríguez
cd5bc64658
docs(aio): update headers for toc ( #16969 )
2017-05-26 13:28:06 -06:00
Tobias Bosch
7ffb75f476
refactor(compiler): change `bundle` to `flatModuleIndex` in the code ( #17028 )
2017-05-26 09:13:28 -07:00
Chuck Jazdzewski
c0981b8e13
Revert "fix(animations): use a lightweight renderer for non-animation components ( #17003 )"
...
This reverts commit 3ab86bd661
.
2017-05-26 08:55:23 -07:00
Chuck Jazdzewski
80e506563c
Revert "refactor(compiler): change `bundle` to `flatModuleIndex` in the code ( #17028 )"
...
This reverts commit 5aa53d70aa
.
2017-05-26 08:54:50 -07:00
Tobias Bosch
5aa53d70aa
refactor(compiler): change `bundle` to `flatModuleIndex` in the code ( #17028 )
2017-05-25 19:02:35 -06:00
Matias Niemelä
3ab86bd661
fix(animations): use a lightweight renderer for non-animation components ( #17003 )
2017-05-25 18:54:35 -06:00
Tobias Bosch
573b8611bc
fix(compiler): compile `.ngfactory.ts` files even if nobody references them. ( #16899 )
...
This is especially important for library authors, as they will
not reference the .ngfactory.ts files.
Fixes #16741
2017-05-25 11:00:26 -06:00
Tobias Bosch
eba59aaf87
refactor(compiler): add ability to produce stub .ngfactory / .ngsummary files ( #16963 )
...
These files are needed so that:
- user code can compile even without real codegen
- as tsc transformers cannot create but only change existing files
in the transformation pipeline.
2017-05-23 14:40:50 -06:00
Jason Aden
fa809ec8cf
build: import tslib rather than output TS helpers ( #16901 )
2017-05-23 14:01:39 -06:00
Chuck Jazdzewski
1651a8f189
fix(tsc-wrapped): ignore `|null` and `|undefined` when collecting types ( #16222 )
2017-05-23 11:53:38 -06:00
Chuck Jazdzewski
27761b4500
fix(compiler): do not report type errors for arguments with `@Inject` ( #16222 )
...
Fixes #15424
2017-05-23 11:53:38 -06:00
Tobias Bosch
a80ac0a8d3
fix(core): make decorators closure safe ( #16905 )
...
This is required as e.g. `token` from `@Inject` is
accessed in string form via makeParamDecorator
but as a property in the `ReflectiveInjector`.
Closes #16889 as this is a more general fix.
2017-05-23 11:52:40 -06:00
Tobias Bosch
5af143e8e4
refactor(compiler): allow sync AOT compilation ( #16832 ).
...
AOT compilation can be executed synchronously now,
if the `ReosurceLoader` returns a string directly
(and no `Promise`).
2017-05-23 10:41:23 -06:00
Tobias Bosch
50abca4583
refactor(compiler): don’t rely on global reflector ( #16832 )
...
Using the global reflector made it impossible
to compile multiple programs at the same time.
2017-05-23 10:41:23 -06:00
Tobias Bosch
de8d7c65f2
refactor(compiler): emit OutputAst and not sources ( #16832 )
...
This is in preparation for creating typescript nodes
directly from `OutputAst` nodes.
2017-05-23 10:41:23 -06:00
Tobias Bosch
6123b9c0c6
refactor(compiler): make `OutputAst` contain the moduleName, not the filePath ( #16832 ).
...
The goal of this change is to simplify the emitters,
as we will soon create a new one to emit TypeScript nodes directly.
2017-05-23 10:41:23 -06:00
Matias Niemelä
e7d9fd8056
fix(animations): repair flicker issues with WA polyfill ( #16937 )
...
Fixes #16919
Fixes #16918
2017-05-22 17:57:16 -06:00
Olivier Combe
08dfe91b95
feat(compiler): add location note to extracted xliff2 files ( #16791 )
...
Add source location as a note tag as `<note category="location">path/to/file.ts:start_line[,end_line]</note>`.
`[,end_line]` part is optional and specified only if the end line is different from the start line.
Fixes #16531
2017-05-22 12:20:45 -06:00
Julie Ralph
85d4c4b82e
feat(core): update zone.js to 0.8.10 and expose the flush method ( #16860 )
...
`flush()` can now be used from within fakeAsync tests to simulate moving
time forward until all macrotask events have been cleared from the
event queue.
2017-05-22 12:19:21 -06:00
Suguru Inatomi
afd703d08c
build: remove router-specific versioning process ( #16810 )
2017-05-22 11:06:46 -06:00
Jason Aden
9081f84543
release: cut the 4.2.0-rc.0 release
2017-05-19 15:54:52 -07:00
Matias Niemelä
f1a9e3c1bb
feat(animations): introduce routeable animation support
2017-05-19 13:45:22 -07:00
Matias Niemelä
b10029c18b
docs(animations): add documentation for new animation features
2017-05-19 12:52:04 -07:00
Victor Berchet
5d4f5434fd
refactor(router): don't run the change detection every time an outlet is activated
...
fix(router): inside on push // SQUASH after review
2017-05-19 11:55:15 -07:00
Victor Berchet
81ca51a8f0
refactor(router): cleanup, simplification
2017-05-19 11:55:15 -07:00
Matias Niemelä
6cb93c1fac
fix(animations): only require one flushMicrotasks call when testing animations
2017-05-19 10:45:20 -07:00
Matias Niemelä
7d9f96abf0
fix(animations): make sure reuseable animation subtitutions work without default params ( #16875 )
2017-05-18 12:59:54 -07:00
Matias Niemelä
86b7bd9c8e
revert: refactor(router): cleanup, simplification
...
This reverts commit 44d48d9d7a
.
2017-05-18 11:57:22 -07:00
Matias Niemelä
a0a6029915
revert: refactor(router): don't run the change detection every time an outlet is activated
...
This reverts commit 198edb3109
.
2017-05-18 11:57:22 -07:00
Victor Berchet
198edb3109
refactor(router): don't run the change detection every time an outlet is activated
2017-05-17 19:32:04 -07:00
Victor Berchet
44d48d9d7a
refactor(router): cleanup, simplification
2017-05-17 19:32:04 -07:00
Matias Niemelä
712630ca65
perf(animations): reduce size of animations bundle
...
before:
animations.umd.js = 33k
animations.umd.min.js = 9.0k
after:
animations.umd.js = 31k
animations.umd.min.js = 7.9k
2017-05-17 16:30:36 -07:00
Matias Niemelä
54a6e4ff9e
refactor(animations): make animation testing work with fixture.whenRenderingDone
2017-05-16 17:39:57 -07:00