angular-cn/packages/compiler/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
..
aot fix(compiler): cleanly compile with TypeScript 2.4 (#18456) 2017-08-02 16:26:42 -07:00
css_parser fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
expression_parser feat(compiler): adds support for quoted object keys in the parser 2017-07-07 16:17:33 -07:00
i18n perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
ml_parser fix(compiler): fix for element needing implicit parent placed in top-level ng-container 2017-07-31 11:30:19 -07:00
output build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00
schema feat(compiler): update the schema by extracting from latest chrome (#17858) 2017-07-06 12:11:34 -07:00
template_parser perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
directive_lifecycle_spec.ts refactor(compiler): don’t rely on global reflector (#16832) 2017-05-23 10:41:23 -06:00
directive_normalizer_spec.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
directive_resolver_mock_spec.ts refactor(compiler): don’t rely on global reflector (#16832) 2017-05-23 10:41:23 -06:00
directive_resolver_spec.ts fix(core): make decorators closure safe (#16905) 2017-05-23 11:52:40 -06:00
integration_spec.ts fix(compiler): support `<ng-container>` whatever the namespace 2017-04-17 10:14:15 -07:00
metadata_overrider_spec.ts fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
metadata_resolver_fixture.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
metadata_resolver_spec.ts refactor(compiler): don’t rely on global reflector (#16832) 2017-05-23 10:41:23 -06:00
ng_module_resolver_mock_spec.ts refactor(compiler): don’t rely on global reflector (#16832) 2017-05-23 10:41:23 -06:00
ng_module_resolver_spec.ts refactor(compiler): don’t rely on global reflector (#16832) 2017-05-23 10:41:23 -06:00
parse_util_spec.ts build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00
pipe_resolver_mock_spec.ts refactor(compiler): don’t rely on global reflector (#16832) 2017-05-23 10:41:23 -06:00
pipe_resolver_spec.ts refactor(compiler): don’t rely on global reflector (#16832) 2017-05-23 10:41:23 -06:00
resource_loader_mock_spec.ts fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
runtime_compiler_spec.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
selector_spec.ts fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
shadow_css_spec.ts feat(compiler): add support `::ng-deep` 2017-06-23 14:43:42 -07:00
spies.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
style_url_resolver_spec.ts fix(compiler): ignore @import in multi-line css (#18452) 2017-08-03 11:00:38 -07:00
url_resolver_spec.ts fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
util_spec.ts refactor(compiler): allow sync AOT compilation (#16832). 2017-05-23 10:41:23 -06:00