- New Feature: Support directive definition in variable (#36, Thanks @noppa!)
- New Feature: Support
@ngInject
in a multiline comment (#32 & #37, Thanks @sbrunner and @kamilbrk!)
- bugfix: Fix issue w/
$inject
hoisting and nested injected blocks (#29)
- bugfix: Annotate functions inside of functions w/ default arguments (#30)
- New Feature: Support exported anonymous functions (#17)
- New Feature: Support exported anonymous classes (#24)
- New Feature: Allow multiple asterisks, ie. (
/** @ngInject **/
) (#23)
- New Feature: Support for ES6 Object Method shorthand (#16)
- New Feature: print a warning if we ask to re-annotate an DI injection array if the new parameters do not match, and throw an exception if the number of parameters is wrong.
- bugfix: fix error when re-annotating existing array
- bugfix: fix crash on illegal component declaration (#11)
- bugfix: follow references in component definition objects (#7)
- bugfix: remove superfluous dependency on
babel
- New Feature: Add annotations to injectable
template
andtemplateUrl
component properties - New Feature: Adds a very simple REPL (see the
gh-pages
branch).
- New option: Disable implicit matching (only annotate functions marked up with
/* @ngInject */
or'ngInject'
)
- Add support for ES6 arrow functions
- Add support for ES6 class annotations
- Add support for exported ES6 classes and functions
- Run all tests against transpiled and non-transpiled code.
- Initial release
- bugfix case where $inject arrays were incorrectly hoisted
- angular-dashboard-framework optional: match apply
- bugfix $inject array positioning with TypeScript inheritance (__extends)
- bugfix parsing in strict mode even if source is not
- bugfix $inject arrays for function definitions not being hoisted
- match angular.module("MyMod").component("foo", {controller: function ..})
- match angular.module("MyMod").decorator("foo", function ..)
- match $controllerProvider.register
- match $uibModal.open from angular-ui (recently renamed from $modal.open)
- ui-router declarations improvements
- bugfix reference-following crash
- don't include .gitignore in npm package
- optional matchers: --list and --enable
- angular-dashboard-framework optional
- bugfix documentation of sourcemap API
- improved incoming sourcemap support
- match flux-angular myMod.store("MyCtrl", function ..)
- bugfix duplicated fn.$inject arrays in some IIFE situations
- emit LF/CRLF newlines depending on input newlines
- minor newline fixes
- improved Traceur compatibility ("ngInject" prologue => fn.$inject = [..] arrays)
- bugfix "ngInject" directive prologue (removing and rebuilding)
- bugfix extra newlines when rebuilding existing fn.$inject = [..] arrays
- bugfix crash on ES6 input (but ng-annotate does not yet understand ES6)
- bugfix release for compatibility with io.js
- "ngInject" directive prologue (usage like "use strict")
- /* @ngNoInject */, ngNoInject(..) and "ngNoInject" for suppressing false positives
- Acorn is now the default and only parser
- removed the experimental --es6 option and made it the default
- bugfix /* @ngInject */ not working as expected in case of other matches
- support sourcemap combination and better map granularity
- match $mdDialog.show, $mdToast.show and $mdBottomSheet.show
- improved $provide matching (.decorator, .service, .factory and .provider)
- bugfix crash when reference-following to an empty variable declarator
- improved TypeScript compatibility due to improved matching through IIFE's
- match $injector.invoke
- $modal.open is no longer experimental
- reference-following is no longer experimental
- bugfix reference-following such as var Ctrl = function(dep1, dep2) {}
- match properties {name: ..}, {"name": ..} and {'name': ..} alike
- --es6 option for ES6 support via the Acorn parser (experimental)
- support stateHelperProvider.setNestedState nested children
- support stateHelperProvider.setNestedState
- optional renaming of declarations and references (experimental)
- further improved detection of existing fn.$inject = [..] arrays
- improved insertion of $inject arrays in case of early return
- improved angular module detection (reference-following)
- restrict matching based on method context (directive, provider)
- improved detection of existing fn.$inject = [..] arrays
- reference-following (experimental)
- ngInject(..) as an alternative to /* @ngInject */ ..
- more flexible /* @ngInject */ placement (object literals)
- --sourcemap option for generating inline source maps
- match implicit config function: angular.module("MyMod", function(dep) {})
- match through IIFE's
- more capable /* @ngInject */ (support function expression assignment)
- match myMod.invoke
- more capable --regexp option (match any method callee, identifier or not)
- added ability to read from stdin and write to file
- bugfix name of generated fn.$inject = [..] arrays (was: fn.$injects)
- stricter match: only match code inside of angular modules (except explicit)
- ui-router declarations improvements
- bugfix duplicated annotations arrays in case of redundant /* @ngInject */
- indent generated fn.$inject = [..] arrays nicely
- /* @ngInject */ object literal support
- bugfix ES5 strict mode oops
- added more tools that support ng-annotate to README
- match $modal.open from angular-ui/bootstrap (experimental)
- --stats option for runtime statistics (experimental)
- revert match .controller(name, ..) that was added in 0.9.0 because it triggered false positives
- explicit annotations using /* @ngInject */
- --plugin option to load user plugins (experimental, 0.9.x may change API)
- match $httpProvider.interceptors.push(function($scope) {})
- match $httpProvider.responseInterceptors.push(function($scope) {})
- match self and that as aliases to this for this.$get = function($scope){}
- match .controller(name, ..) in addition to .controller("name", ..)
- bugfix ui-router declarations
- bugfix angular.module("MyMod").bootstrap(e, [], {}) disrupting chaining
- even faster (~6% faster annotating angular.js)
- add error array to API return object
- ngRoute support: $routeProvider.when("path", { .. })
- even faster (~11% faster annotating angular.js)
- support obj.myMod.controller(..) in addition to myMod.controller(..)
- ui-router declarations improvements
- ui-router declarations improvements
- ui-router declarations support
- --single_quotes option to output '$scope' instead of "$scope"
- tweaked output: ["foo", "bar", ..] instead of ["foo","bar", ..]
- match angular.module("MyMod").animation(".class", function ..)
- bugfix .provider("foo", function($scope) ..) annotation. fixes #2
- bugfix angular.module("MyMod").constant("foo", "bar") disrupting chaining
- match $provide.decorator (in addition to other $provide methods)
- bugfix angular.module("MyMod").value("foo", "bar") disrupting chaining
- ES5 build via defs
- Grunt-support via grunt-ng-annotate
- better matching
- better README
- cross-platform shell script wrapper