转载

Angular.js 1.4.7/1.5.0-beta.1/v1.3.20/v1.2.29 发布

Angular.js 1.4.7/1.5.0-beta.1/v1.3.20/v1.2.29 发布,更内容如下:

1.5.0-beta.1 dense-dispersion (2015-09-29)

Bug 修复

  • $compile:

    • use createMap() for $$observe listeners when initialized from attr interpolation ( 76c2491a , #10446 )

    • properly sanitize xlink:href attribute interoplation ( f33ce173 , #12524 )

  • $parse:

    • fix typo in error message ("assing" -> "assign") ( 70dac5ae , #12940 )

    • block assigning to fields of a constructor ( e1f4f23f , #12860 )

    • do not convert to string computed properties multiple times ( 20cf7d5e )

  • $sanitize:

    • strip urls starting with 'unsafe:' as opposed to 'unsafe' ( a4dfa4d0 , #12524 )

    • add mXSS protection ( bc0d8c4e , #12524 )

    • support void elements, fixups, remove dead code, typos ( 94207f8f , #12524 )

  • filters: ensure formatNumber observes i18n decimal separators ( 658a865c , #10342 , #12850 )

  • injector: support arrow functions with no parenthesis ( 03726f7f , #12890 )

  • input: remove workaround for Firefox bug ( b366f035 )

  • ngAnimate:

    • ensure anchoring uses body as a container when needed ( 240d5896 , #12872 )

    • callback detection should only use RAF when necessary ( 8b27c3f0 )

  • ngMessages: prevent race condition with ngAnimate ( 8366622b , #12856 , #12903 )

  • ngOptions:

    • skip comments when looking for option elements ( 7f3f3dd3 , #12190 )

    • prevent frozen select ui in IE ( 42c97c5d , #11314 , #11795 )

    • allow falsy values as option group identifiers ( b71d7c3f , #7015 , #7024 , #12888 )

    • throw if ngModel is not present ( ded25187 , #7047 , #12840 )

  • ngResource: encode & in URL query param values ( 1c97a605 , #12201 )

特性

  • $animateCss: add support for temporary styles via cleanupStyles ( 9f67da62 , #12930 )

  • $http: add $xhrFactory service to enable creation of custom xhr objects ( 106f90aa , #2318 , #9319 , #12159 )

  • $injector: add strictDi property to $injector instance ( 79577c5d , #11728 , #11734 )

  • $sanitize: make svg support an opt-in ( 181fc567 , #12524 )

  • $time: create time service ( fa4c7b7f , #10402 , #10525 )

  • ngModel: provide ng-empty and ng-not-empty CSS classes ( 630280c7 , #10050 , #12848 )

性能改进

  • $compile: Lazily compile the transclude function ( 652b83eb )

重大更新

  • $sanitize: due to 181fc567 , The svg support in  is now an opt-in option

Applications that depend on this option can use  to turn the option back on, but while doing so, please read the warning provided in the  documentation for information on preventing click-hijacking attacks when this option is turned on.

  • ngOptions: due to ded25187 ,

ngOptions will now throw if ngModel is not present on the select element. Previously, having no ngModel let ngOptions silently fail, which could lead to hard to debug errors. The change should therefore not affect any applications, as it simply makes the requirement more strict and alerts the developer explicitly.

1.4.7 dark-luminescence (2015-09-29)

Bug 修复

  • $compile: use createMap() for $$observe listeners when initialized from attr interpolation ( 5a98e806 , #10446 )

  • $parse:

    • block assigning to fields of a constructor ( a7f3761e , #12860 )

    • do not convert to string computed properties multiple times ( 698af191 )

  • filters: ensure formatNumber observes i18n decimal separators ( 4994acd2 , #10342 , #12850 )

  • jqLite: properly handle dash-delimited node names in jqLiteBuildFragment ( cdd1227a , #10617 , #12759 )

  • ngAnimate:

    • ensure anchoring uses body as a container when needed ( 9d3704ca , #12872 )

    • callback detection should only use RAF when necessary ( fa8c399f )

  • ngMessages: prevent race condition with ngAnimate ( 7295c60f , #12856 , #12903 )

  • ngOptions:

    • skip comments when looking for option elements ( 68d4dc5b , #12190 )

    • prevent frozen select ui in IE ( dbc69851 , #11314 , #11795 )

特性

  • $animateCss: add support for temporary styles via cleanupStyles ( e52d731b , #12930 )

  • $http: add $xhrFactory service to enable creation of custom xhr objects ( 7a413df5 , #2318 , #9319 , #12159 )

重大更新

1.3.20 shallow-translucence (2015-09-29)

Bug 修复

  • $parse: do not convert to string computed properties multiple times ( d434f3db )

1.2.29 ultimate-deprecation (2015-09-29)

Bug 修复

  • $browser: prevent infinite digests when clearing the hash of a url ( 9845cee6 , #9629 , #9635 , #10228 , #10308 )

  • $compile: workaround for IE11 MutationObserver ( fccce96d , #11781 , #12613 )

  • $location: strip off empty hash segments when comparing ( e81b2f72 , #9635 , #10748 )

  • $parse:

    • do not convert to string computed properties multiple times ( afb65c11 )

    • throw error when accessing a restricted property indirectly ( e6cbd4fa , #12833 )

  • ngAnimate: ensure that minified repaint code isn't removed ( b041b664 , #9936 )

正文到此结束
Loading...