angular-cn/packages/core/test
Miško Hevery fcadbf4bf6 perf: switch angular to use StaticInjector instead of ReflectiveInjector
This change allows ReflectiveInjector to be tree shaken resulting
in not needed Reflect polyfil and smaller bundles.

Code savings for HelloWorld using Closure:

Reflective: bundle.js:  105,864(34,190 gzip)
    Static: bundle.js:  154,889(33,555 gzip)
                            645( 2%)

BREAKING CHANGE:

`platformXXXX()` no longer accepts providers which depend on reflection.
Specifically the method signature when from `Provider[]` to
`StaticProvider[]`.

Example:
Before:
```
[
  MyClass,
  {provide: ClassA, useClass: SubClassA}
]

```

After:
```
[
  {provide: MyClass, deps: [Dep1,...]},
  {provide: ClassA, useClass: SubClassA, deps: [Dep1,...]}
]
```

NOTE: This only applies to platform creation and providers for the JIT
compiler. It does not apply to `@Compotent` or `@NgModule` provides
declarations.

Benchpress note: Previously Benchpress also supported reflective
provides, which now require static providers.

DEPRECATION:

- `ReflectiveInjector` is now deprecated as it will be remove. Use
  `Injector.create` as a replacement.

closes #18496
2017-08-07 15:42:34 -07:00
..
animation fix(animations): support persisting dynamic styles within animation states (#18468) 2017-08-07 11:40:04 -07:00
change_detection perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
debug fix(core): Update types for TypeScript nullability support (#15472) 2017-03-29 09:34:45 -07:00
di feat(core): Create StaticInjector which does not depend on Reflect polyfill. 2017-08-07 15:40:15 -07:00
dom fix(core): Update types for TypeScript nullability support (#15472) 2017-03-29 09:34:45 -07:00
linker perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
metadata build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
reflection fix(core): make decorators closure safe (#16905) 2017-05-23 11:52:40 -06:00
testability perf(core): refactor NgZone, decrease size by 1.2Kb (#17773) 2017-07-01 10:29:56 -07:00
util refactor: fix typos (#18000) 2017-07-07 16:55:17 -07:00
view perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
zone perf(core): use native addEventListener for faster rendering. (#18107) 2017-07-25 15:35:44 -05:00
application_init_spec.ts build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00
application_module_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
application_ref_spec.ts fix(core): invoke error handler outside of the Angular Zone (#18269) 2017-07-21 16:35:23 -05:00
component_fixture_spec.ts refactor(animations): make animation testing work with fixture.whenRenderingDone 2017-05-16 17:39:57 -07:00
dev_mode_spec.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
directive_lifecycle_integration_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
error_handler_spec.ts fix(core): ErrorHandler should not rethrow an error by default (#15077) (#15208) 2017-03-16 12:58:41 -07:00
event_emitter_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
fake_async_spec.ts feat(core): update zone.js to 0.8.10 and expose the flush method (#16860) 2017-05-22 12:19:21 -06:00
forward_ref_integration_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
spies.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
testing_internal_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
util_spec.ts fix(core): Update types for TypeScript nullability support (#15472) 2017-03-29 09:34:45 -07:00