angular-cn/tools
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
..
@angular/tsc-wrapped docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
build chore(build): remove unused build/util 2016-11-07 10:32:00 -08:00
cjs-jasmine docs(Location): updating Location docs and adding example 2016-12-12 11:19:21 -08:00
code.angularjs.org build(publish): remove unneeded add-license-to-rx (#12734) 2016-11-10 15:56:14 -08:00
docs build(aio): move doc-gen stuff from angular.io (#14097) 2017-01-26 23:46:59 -08:00
karma refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
npm chore(npm): clean up clean-shrinkwrap script 2016-10-31 11:26:59 -07:00
public_api_guard feat(upgrade): return a function (instead of array) from `downgradeInjectable()` (#14037) 2017-02-01 09:29:51 -06:00
travis refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
tree-shaking-test refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
tsc-watch refactor(compiler): drop old codegen tests that run inside of `test.sh` 2016-11-28 15:19:23 -08:00
tslint chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
validate-commit-message ci: add support for 'aoi' scope in commit messages for angular.io 2017-01-25 17:38:33 -08:00
check-environment.js docs: branding fixes (#14132) 2017-01-27 15:03:11 -06: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(aio): move doc-gen stuff from angular.io (#14097) 2017-01-26 23:46:59 -08: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