angular-cn/tools
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
..
build chore(build): remove unused build/util 2016-11-07 10:32:00 -08:00
cjs-jasmine build: remove redundant line 2017-06-16 07:51:18 +01:00
code.angularjs.org build: use subshells when changing directories 2017-05-12 12:19:51 -07:00
gulp-tasks build: ignore node_modules for tslint 2017-08-01 10:13:44 -07:00
karma refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
ngc-wrapped build: fix broken bazel build (#18335) 2017-07-26 09:40:33 -07:00
npm chore(npm): clean up clean-shrinkwrap script 2016-10-31 11:26:59 -07:00
public_api_guard perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
travis refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
tree-shaking-test refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
tsc-watch refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
tslint fix: build and test fixes for TS 2.1 (#13294) 2017-02-08 11:32:40 -06:00
validate-commit-message fix: validation messages support animations scope 2017-02-10 19:05:00 -06:00
check-environment.js build: fix link to DEVELOPER.md in `check-environment.js` 2017-06-16 07:51:18 +01:00
chromedriverpatch.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
tsconfig.json build: Bazel builds ngfactories for packages/core (#18289) 2017-07-21 18:09:47 -05:00
types.d.ts fix(fakeAsync): have fakeAsync use Proxy zone. (#10797) 2016-08-19 12:10:53 -07:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00