This commit is contained in:
Ran Benita
2019-06-22 22:15:30 +03:00
parent c8544a2b77
commit 9f109d92fc
4 changed files with 16 additions and 8 deletions
+4
View File
@@ -1,3 +1,7 @@
## 1.10.0 2019-06-22
* Added support for arrow functions, e.g. annotating
`var controller = ($scope) => { ngInject"; }`.
## 1.9.0 2019-01-25
* Added support for ES6 classes with explicit `ngInject` annotations.
The support may not be perfect yet. For more information please see
+10 -6
View File
@@ -20,15 +20,19 @@ This fork contains the following changes:
- Added support for ngInject in `export [default] function functionName() {...}`
and `export [default] var varName = function [functionName]() {...}`.
- Added support for ES6 classes with explicit `ngInject` annotations.
- Added support for annotating ES6 classes with explicit `ngInject`
annotations.
The support may not be perfect yet. For more information please see
[ES6 test file](tests/es6-classes.js).
- Added support for dynamic `import()` syntax. If you use Webpack or a similar
module loader you would probably like to compile to `esnext` modules for
dynamic import support. To do that you will need to pass the
`dynamicImport` flag which will switch from the default acorn package,
to the upgraded `acorn-dynamic-import`.
- Added support for annotating arrow functions in most places where
old-style function expressions are accepted.
- Added support for parsing dynamic `import()` syntax. If you use Webpack
or a similar module loader you would probably like to compile to
`esnext` modules for dynamic import support. To do that you will need to
pass the `dynamicImport` flag which will switch from the default acorn
package, to the upgraded `acorn-dynamic-import`.
- Published to npm under the name `ng-annotate-patched`.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ng-annotate-patched",
"version": "1.8.1",
"version": "1.10.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ng-annotate-patched",
"version": "1.9.0",
"version": "1.10.0",
"description": "add, remove and rebuild angularjs dependency injection annotations",
"main": "src/ng-annotate-main.js",
"repository": {