mirror of
https://github.com/bluetech/ng-annotate-patched.git
synced 2026-07-02 08:27:43 +08:00
1.10.0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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`.
|
||||
|
||||
|
||||
Generated
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ng-annotate-patched",
|
||||
"version": "1.8.1",
|
||||
"version": "1.10.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
+1
-1
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user