190 Commits

Author SHA1 Message Date
Miško Hevery b54a957ef4 release: cut the 4.0.3 release 2017-04-20 23:39:36 -05:00
Alex Eagle 21c14a79fa fix(compiler): suppress another closure warning (#16137)
closure compiler warns in generated .ngfactory.ts files:
```
WARNING - property createInternal already defined on superclass module$contents$..$core$src$linker$ng_module_factory_NgModuleInjector; use @override to override it
```

PR Close #16137
2017-04-20 23:39:36 -05:00
Alex Eagle 719c232321 fix(core): distribute externs for testability API (#16179)
Workaround for #11119

PR Close #16179
2017-04-20 23:39:36 -05:00
Victor Berchet bd033b69c1 feat: add support for TS 2.3 2017-04-20 23:39:36 -05:00
Tobias Bosch 20ffb4196d fix(benchpress): chrome - prevent trace buffer overflow 2017-04-20 23:39:36 -05:00
Chuck Jazdzewski a30a73c2aa fix(compiler): ignore calls to unresolved symbols in metadata
This only shows up in the language service. Calls to symbols
that are not resolve resulted in null instead of being resolved
causing the language service to see exceptions when the null
was not expected such as in the animations array.

Fixes #15969
2017-04-20 23:39:36 -05:00
Tobias Bosch fb94c9937c feat(upgrade): fixes for allow setting the angularjs lib at runtime
- always have a value for `angular`, even if no angular is on the page
- use `const` instead of `function` to allow to export a variable `module`
  without breaking tsickle / closure.
2017-04-20 23:39:36 -05:00
Tobias Bosch b3259e26fe feat(upgrade): allow setting the angularjs lib at runtime (#15168)
Readds 8ad464d90e.
2017-04-20 23:39:36 -05:00
Randall Koutnik be406f8464 fix(compiler): Inform user where Quoted error was thrown 2017-04-20 23:39:36 -05:00
Victor Berchet 5cab3b146e fix(router): prevent RouterLinkActive from causing an infinite CD loop
fixes #15825
2017-04-20 23:39:36 -05:00
Chuck Jazdzewski eff6216319 fix(language-service): only use canonical symbols
Language service was treating some alias TypeScript symbols as if
they where the canonical symbol. If the symbol in scope is an alias
of another symbol the symbol should be converted to the canonical
symbol.
2017-04-20 23:39:35 -05:00
Tobias Bosch 88b2ab09ea Revert "fix(compiler): ignore calls to unresolved symbols in metadata (#15970)"
This reverts commit ce47d33cd9.
2017-04-20 23:39:35 -05:00
Tobias Bosch 5ad6d55a45 Revert "feat(upgrade): allow setting the angularjs lib at runtime (#15168)"
This reverts commit 8ad464d90e.

Breaks G3.
2017-04-20 23:39:35 -05:00
Victor Berchet c81c7c0920 fix(compiler): fix build error in xliff2 2017-04-20 23:39:35 -05:00
Victor Berchet 6f8e23b061 refactor(router): drop the InternalRoute interface 2017-04-20 23:39:35 -05:00
Dzmitry Shylovich dc9711107d refactor(router): misc refactoring 2017-04-20 23:39:35 -05:00
Panuruj Khambanonda (PK) 4c0c1e5fa0 feat(compiler): Implement i18n XLIFF 2.0 serializer (#14185)
- Ensure that the result passes OASIS XLIFF 2.0 schema validation
- Use <ph/> for self-closing placeholder tags
- Use <pc></pc> for other placeholder tags
- Check for the correct XLIFF file version
- Add ICU support

fixes #11735
2017-04-20 23:39:35 -05:00
Victor Savkin 06ef0908c7 feat(upgrade): allow setting the angularjs lib at runtime (#15168)
This PR adds an ability to reset the angularjs library, which is often needed when Angular
is loaded lazily using RequireJS.
2017-04-20 23:39:35 -05:00
Victor Berchet 44afa5a03a fix(core): key-value differ changes iteration (#15968)
fixes #14997
2017-04-20 23:39:35 -05:00
Chuck Jazdzewski 0733f8d3e1 fix(compiler): ignore calls to unresolved symbols in metadata (#15970)
This only shows up in the language service. Calls to symbols
that are not resolve resulted in null instead of being resolved
causing the language service to see exceptions when the null
was not expected such as in the animations array.

Fixes #15969
2017-04-20 23:39:35 -05:00
Victor Berchet 6604a4dc40 refactor(compiler): cleanup (#15960) 2017-04-20 23:39:35 -05:00
Adrien Boullé 96c63a92e2 fix(platform-server): handle innerText (#15818) 2017-04-20 23:39:35 -05:00
Hans Larsen 61e089931f release: cut the 4.0.2 release 2017-04-11 14:50:12 -07:00
Victor Berchet 2f41b52e78 fix(router): fix query param parsing 2017-04-11 14:38:46 -07:00
Victor Berchet dcf60da16d refactor(router): cleanup & simplifications 2017-04-11 14:38:45 -07:00
Marc Laval 9c9f409364 test(router): enable running the campaign in non-ES6 browsers
Closes #15806.
2017-04-11 14:38:45 -07:00
Victor Berchet b44b983c1f test(router): test preloading when a module is already loaded 2017-04-11 14:38:45 -07:00
Dzmitry Shylovich 978f80985c fix(router): the preloader use the module from the loaded config 2017-04-11 14:38:45 -07:00
Chuck Jazdzewski 168a2eb5bf fix(language-service): detect when there isn't a tsconfig.json
Fixes #15874
2017-04-11 14:38:44 -07:00
Chuck Jazdzewski c9c7acd484 fix(language-service): parse extended i18n forms 2017-04-11 14:34:15 -07:00
Chuck Jazdzewski 5b99533315 fix(language-service): initialize static reflector correctly
Fixes #15768
2017-04-11 14:34:14 -07:00
Ethan Veres 037805b741 style(router): fix typo in router preloader method 2017-04-11 14:34:14 -07:00
Chuck Jazdzewski 0861fda69c fix(language-service): avoid throwing exceptions when reporting metadata errors 2017-04-11 14:34:13 -07:00
Chuck Jazdzewski feae7b6059 fix(language-service): resolve any parameter types to any result 2017-04-11 14:34:12 -07:00
Chuck Jazdzewski e4277a0869 fix(language-service): improve resilience to incomplete information 2017-04-11 14:34:12 -07:00
Tobias Bosch 1864ccb3dd fix(compiler): fix inheritance for AOT with summaries (#15583)
Allows to inherit ctor args, lifecycle hooks and statics from a class
in another compilation unit. 
Will error if trying to inherit from a class in another compilation unit 
that has an `@Component` / `@Directive` / `@Pipe` / `@NgModule`.
2017-04-11 14:34:11 -07:00
Victor Berchet 53c12a84dc release: cut the 4.0.1 release 2017-03-29 16:26:06 -07:00
Tobias Bosch ca665303f4 fix(core): fix inheritance in JIT mode for TS 2.1 (#15599)
Fixes #15502
2017-03-29 16:19:15 -07:00
Chuck Jazdzewski 0fe4985756 fix(language-service): correctly determine base members of types (#15600)
Fixes #15460
2017-03-29 16:19:09 -07:00
Dzmitry Shylovich 74087cb39d docs(http): remove deprecated stuff and outdated plunkrs (#15598) 2017-03-29 15:18:03 -07:00
Dzmitry Shylovich 902bb2f026 fix(compiler): throw when a component defines both template and templateUrl (#15572)
Closes #15566
2017-03-29 10:29:00 -07:00
Victor Berchet 23bf34853c refactor(router): cleanup & simplification (#15436) 2017-03-29 10:15:00 -07:00
Miško Hevery 8c4b963927 fix(core): Update types for TypeScript nullability support (#15472) 2017-03-29 10:14:55 -07:00
Chuck Jazdzewski bfa4f70204 fix(language-service): don't require reflect-metadata module to be provided (#15569)
Fixes #15568
2017-03-29 10:14:48 -07:00
Shai Reznik d481f6d150 docs(core): fix API docs for Injector.get 2017-03-29 10:14:38 -07:00
Dzmitry Shylovich fd6114561b perf(router): don't create new serializer every time UrlTree.toString is called (#15565) 2017-03-29 10:11:21 -07:00
Matias Niemelä c82851172e fix(animations): make sure style calculations are not computed too early (#15540)
Closes #15507
2017-03-29 10:11:06 -07:00
Dzmitry Shylovich 75478b2078 fix(router): should run CanActivate after CanDeactivate guards
Closes #14059
Closes #15467
2017-03-29 10:11:00 -07:00
Dzmitry Shylovich cdbb3dbd2a refactor(router): fix tests structure 2017-03-29 10:10:53 -07:00
Victor Berchet e72124c888 fix(core): fix the key/value differ (#15539)
fixes #15457
2017-03-29 10:10:43 -07:00