angular.js v1.4.9 Release Notes
Release Date: 2016-01-21 // over 8 years ago-
๐ Bug Fixes
- Animation
- ensure that animate promises resolve when the document is hidden (9a60408c)
- do not trigger animations if the document is hidden (09f6061a, #12842, #13776)
- only copy over the animation options once (2fc954d3, #13722, #13578)
- allow event listeners on document in IE (5ba4419e, #13548, #13696)
- allow removing classes that are added by a running animation (6c4581fc, #13339, #13380, #13414, #13472, #13678)
- do not use
event.timeStamp
anymore for time tracking (620a20d1, #13494, #13495) - ignore children without animation data when closing them (be01cebf, #11992, #13424)
- do not alter the provided options data (7a81e6fe, #13040, #13175)
- correctly handle
$animate.pin()
host elements (a985adfd, #13783) - allow animations when pinned element is parent element (4cb8ac61, #13466)
- allow enabled children to animate on disabled parents (6d85f24e, #13179, #13695)
- correctly access
minErr
(0c1b54f0) - ensure animate runner is the same with and without animations (937942f5, #13205, #13347)
- remove animation end event listeners on close (d9157849, #13672)
- consider options.delay value for closing timeout (592bf516, #13355, #13363)
- $controller: allow identifiers containing
$
(2563ff7b, #13736) - $http: throw if url passed is not a string (c5bf9dae, #12925, #13444)
- ๐ $parse: handle interceptors with
undefined
expressions (7bb2414b) - $resource: don't allow using promises as
timeout
and log a warning (47486524) - formatNumber: cope with large and small number corner cases (9c49eb13, #13394, #8674, #12709, #8705, #12707, #10246, #10252)
- input:
- isArrayLike: recognize empty instances of an Array subclass (323f9ab7, #13560, #13708)
- ngInclude: do not compile template if original scope is destroyed (9590bcf0)
- ngOptions:
- select: re-define
ngModelCtrl.$render
in theselect
directive's postLink function (529b2507, #13583, #13583, #13663)
Minor Features
- ngLocale: add support for standalone months (54c4041e, #3744, #10247, #12642, #12844)
- ngMock: add support for
$animate.closeAndFlush()
(512c0811)
๐ Performance Improvements
- ngAnimate: speed up
areAnimationsAllowed
check (2d3303dd)
๐ฅ Breaking Changes
While we do not deem the following to be a real breaking change we are highlighting it here in the ๐ changelog to ensure that it does not surprise anyone.
- $resource: due to 47486524,
Possible breaking change for users who updated their code to provide a
timeout
promise for a$resource
request in version v1.4.8.โฑ Up to v1.4.7 (included), using a promise as a timeout in
$resource
, would silently fail (i.e. have no effect).โฑ In v1.4.8, using a promise as timeout would have the (buggy) behaviour described in https://github.com/angular/angular.js/pull/12657#issuecomment-152108887. (I.e. it will work as expected for the first time you resolve the promise and will cancel all subsequent requests after that - one has to re-create the resource class. This was not documented.)
โฑ With this change, using a promise as timeout in v1.4.9 onwards is not allowed. โ It will log a warning and ignore the timeout value.
โฌ๏ธ If you need support for cancellable
$resource
actions, you should upgrade to ๐ version 1.5 or higher. - Animation