angular-cn/tools/public_api_guard
Georgios Kalpakas 1f90f29369 feat(upgrade): return a function (instead of array) from `downgradeInjectable()` (#14037)
This makes it more consistent with the dynamic version of `upgrade` and makes it
possible to share code between the dynamic and static versions.

This commit also refactors the file layout, moving common and dynamic-specific
files to `common/` and `dynamic/` directories respectively and renaming `aot/`
to `static/`.

Some private keys, used as AngularJS DI tokens, have also been renamed, but this
should  not affect apps, since these keys are undocumented and not supposed to
be used externally.

BREAKING CHANGE:

Previously, `upgrade/static/downgradeInjectable` returned an array of the form:

```js
['dep1', 'dep2', ..., function factory(dep1, dep2, ...) { ... }]
```

Now it returns a function with an `$inject` property:

```js
factory.$inject = ['dep1', 'dep2', ...];
function factory(dep1, dep2, ...) { ... }
```

It shouldn't affect the behavior of apps, since both forms are equally suitable
to be used for registering AngularJS injectable services, but it is possible
that type-checking might fail or that current code breaks if it relies on the
returned value being an array.
2017-02-01 09:29:51 -06:00
..
common fix(common): add PopStateEvent interface (#13400) 2017-01-31 12:08:54 -06:00
compiler fix(packages): use ES modules for primary build (#11120) 2016-08-30 18:07:40 -07:00
core fix(testing): async/fakeAsync/inject/withModule helpers should pass through context to callback functions (#13718) 2017-01-29 12:08:53 -06:00
forms fix(forms): provide a method to compare options (#13349) 2017-01-31 11:38:30 -06:00
http feat(http): simplify URLSearchParams creation (#13338) 2016-12-09 15:38:29 -08:00
platform-browser feat(core): Add type information to injector.get() (#13785) 2017-01-17 15:34:54 -06:00
platform-browser-dynamic feat(build): record angular version in the dom (#13164) 2016-11-30 13:52:08 -08:00
platform-server feat(build): record angular version in the dom (#13164) 2016-11-30 13:52:08 -08:00
platform-webworker feat(core): Add type information to injector.get() (#13785) 2017-01-17 15:34:54 -06:00
platform-webworker-dynamic feat(build): record angular version in the dom (#13164) 2016-11-30 13:52:08 -08:00
router feat(router): deprecate preserveQueryParams,add queryParamsHandling (#14095) 2017-01-31 15:43:25 -06:00
upgrade feat(upgrade): return a function (instead of array) from `downgradeInjectable()` (#14037) 2017-02-01 09:29:51 -06:00