|
| 1 | +<a name="1.3.0-rc.1"></a> |
| 2 | +# 1.3.0-rc.1 backyard-atomicity (2014-09-09) |
| 3 | + |
| 4 | + |
| 5 | +## Bug Fixes |
| 6 | + |
| 7 | +- **$compile:** render nested transclusion at the root of a template |
| 8 | + ([6d1e7cdc](https://github.com/angular/angular.js/commit/6d1e7cdc51c074139639e870b66997fb0df4523f), |
| 9 | + [#8914](https://github.com/angular/angular.js/issues/8914), [#8925](https://github.com/angular/angular.js/issues/8925)) |
| 10 | +- **$location:** |
| 11 | + - don't call toString on null values |
| 12 | + ([c3a58a9f](https://github.com/angular/angular.js/commit/c3a58a9f34919f121587540e03ecbd51b25198d4)) |
| 13 | + - remove an unused parameter of $location.url |
| 14 | + ([99d95f16](https://github.com/angular/angular.js/commit/99d95f1639b64c39231448d77209676b54e6f0be)) |
| 15 | + - allow numeric location setter arguments |
| 16 | + ([adb5c6d6](https://github.com/angular/angular.js/commit/adb5c6d6cc76b928436743707727ab0974d6810b), |
| 17 | + [#7054](https://github.com/angular/angular.js/issues/7054)) |
| 18 | + - set `baseHref` in mock browser to `/` |
| 19 | + ([fc706d13](https://github.com/angular/angular.js/commit/fc706d13d80bb40eb3dade58ea4b92dca33ce4e7), |
| 20 | + [#8866](https://github.com/angular/angular.js/issues/8866), [#8889](https://github.com/angular/angular.js/issues/8889)) |
| 21 | +- **$parse:** disallow passing Function to Array.sort |
| 22 | + ([bd8ad0fb](https://github.com/angular/angular.js/commit/bd8ad0fbe81f6c280baa26a596d78e58fc7842e6)) |
| 23 | +- **input:** check `scope.$$phase` only on `$rootScope` |
| 24 | + ([bf59d727](https://github.com/angular/angular.js/commit/bf59d7274f4a667c5b19e6d4ba5ed2730ca2fe42)) |
| 25 | +- **ngAnimate:** support removing classes from SVG elements when using jQuery |
| 26 | + ([b3b67213](https://github.com/angular/angular.js/commit/b3b672130d4d1c6f13bdf7e58be76b2aafea2497), |
| 27 | + [#8872](https://github.com/angular/angular.js/issues/8872), [#8893](https://github.com/angular/angular.js/issues/8893)) |
| 28 | +- **ngEventDirs:** check `scope.$$phase` only on `$rootScope` |
| 29 | + ([203ea10f](https://github.com/angular/angular.js/commit/203ea10f9ea49d7e29569a4232d3b2a666307cd8), |
| 30 | + [#8891](https://github.com/angular/angular.js/issues/8891)) |
| 31 | +- **ngForm:** don't clear validity of whole form when removing control |
| 32 | + ([953ee22f](https://github.com/angular/angular.js/commit/953ee22f76f8c1137949ed07f36fafc5bbfeb7fe), |
| 33 | + [#8863](https://github.com/angular/angular.js/issues/8863)) |
| 34 | +- **ngInclude:** correctly add svg-namespaced template content |
| 35 | + ([6639ca9d](https://github.com/angular/angular.js/commit/6639ca9d6bc00a6e3a31e54c50474361ae3561c6), |
| 36 | + [#7538](https://github.com/angular/angular.js/issues/7538), [#8981](https://github.com/angular/angular.js/issues/8981), [#8997](https://github.com/angular/angular.js/issues/8997)) |
| 37 | +- **ngModel:** |
| 38 | + - update model value with async validators correctly |
| 39 | + ([64c3b745](https://github.com/angular/angular.js/commit/64c3b745fba0792166f30e057f9251f263d80dac)) |
| 40 | + - render immediately also with async validators |
| 41 | + ([f94d5515](https://github.com/angular/angular.js/commit/f94d551529b7c970c38b29e3073cec4e7f6b0e00)) |
| 42 | + - properly parse min/max date values as strings for date inputs |
| 43 | + ([088545c1](https://github.com/angular/angular.js/commit/088545c1856ce1c3ec3416965dff65077a6e0523), |
| 44 | + [#6755](https://github.com/angular/angular.js/issues/6755)) |
| 45 | + - revalidate the model when min/max expression values change for date inputs |
| 46 | + ([b3502835](https://github.com/angular/angular.js/commit/b3502835039178296b730b7526e5666b66ba9156), |
| 47 | + [#6755](https://github.com/angular/angular.js/issues/6755)) |
| 48 | + - consider ngMin/ngMax values when validating number input types |
| 49 | + ([25541c1f](https://github.com/angular/angular.js/commit/25541c1f876a16c892d71faae11727bec7bba98c)) |
| 50 | + - revalidate the model when min/max expression values change for number inputs |
| 51 | + ([7b273a2c](https://github.com/angular/angular.js/commit/7b273a2c978d5f5ef374f5335afab0ca7d8cfd4d), |
| 52 | + [#2404](https://github.com/angular/angular.js/issues/2404)) |
| 53 | +- **ngModelOptions:** do not trigger digest on `setViewValue` if debouncing |
| 54 | + ([e322cd9b](https://github.com/angular/angular.js/commit/e322cd9b3b8b47b95c9de3edf631bb46f919c492), |
| 55 | + [#8814](https://github.com/angular/angular.js/issues/8814), [#8850](https://github.com/angular/angular.js/issues/8850), [#8911](https://github.com/angular/angular.js/issues/8911)) |
| 56 | +- **ngRepeat:** preserve original position of elements that are being animated away |
| 57 | + ([ed637330](https://github.com/angular/angular.js/commit/ed6373300028deda9a0878b3975699d183c1f75c), |
| 58 | + [#8918](https://github.com/angular/angular.js/issues/8918), [#8994](https://github.com/angular/angular.js/issues/8994)) |
| 59 | +- **ngSwitch:** ensure correct iterator is passed to async function |
| 60 | + ([712299c2](https://github.com/angular/angular.js/commit/712299c2a24390e74cd5c20f51cb1d78f0233b6f), |
| 61 | + [#8833](https://github.com/angular/angular.js/issues/8833)) |
| 62 | +- **numberFilter:** format numbers that round to zero as nonnegative |
| 63 | + ([ae952fbf](https://github.com/angular/angular.js/commit/ae952fbf0be925a48743d1c925ffe4e31a42c280), |
| 64 | + [#8489](https://github.com/angular/angular.js/issues/8489)) |
| 65 | +- **orderBy:** allow arrayLike objects to be ordered |
| 66 | + ([cbdaabfb](https://github.com/angular/angular.js/commit/cbdaabfb59bf3348588d5b581f2754e0f9f034a4), |
| 67 | + [#8944](https://github.com/angular/angular.js/issues/8944)) |
| 68 | + |
| 69 | + |
| 70 | +## Features |
| 71 | + |
| 72 | +- **angular.forEach:** add the array/object as the 3rd param like the native array forEach |
| 73 | + ([df9e60c8](https://github.com/angular/angular.js/commit/df9e60c8e7453cdca2cb5a4fa48f3981ecc23a7d), |
| 74 | + [#7902](https://github.com/angular/angular.js/issues/7902)) |
| 75 | +- **ngModelOptions:** add allowInvalid option |
| 76 | + ([3c538c1d](https://github.com/angular/angular.js/commit/3c538c1d21c43422c7b4cd9b69cb67981bce2b87), |
| 77 | + [#8290](https://github.com/angular/angular.js/issues/8290), [#8313](https://github.com/angular/angular.js/issues/8313)) |
| 78 | + |
| 79 | + |
| 80 | +## Performance Improvements |
| 81 | + |
| 82 | +- **$parse:** |
| 83 | + - remove getterFn wrapper for internal use |
| 84 | + ([b3b476db](https://github.com/angular/angular.js/commit/b3b476db7d34bc2f8b099ab5b993b1e899b9cffd), |
| 85 | + [#8901](https://github.com/angular/angular.js/issues/8901)) |
| 86 | + - removing references to Parser/Lexer from parsed expressions |
| 87 | + ([43c67ccd](https://github.com/angular/angular.js/commit/43c67ccd167aecc3549e1b7f7d100956204e3ed4)) |
| 88 | + - calculate array lengths once at start of loop |
| 89 | + ([907b8c16](https://github.com/angular/angular.js/commit/907b8c1675865ac38dd055f3f304272e68b233d0)) |
| 90 | +- **extend:** remove use of forEach to remove calls/closures/passing arguments |
| 91 | + ([9bedeb33](https://github.com/angular/angular.js/commit/9bedeb3353969fba631ad9164edea3c38059fbda), |
| 92 | + [#8898](https://github.com/angular/angular.js/issues/8898)) |
| 93 | +- **jQuery:** only trigger $destroy if a handler exists |
| 94 | + ([f6aa1c55](https://github.com/angular/angular.js/commit/f6aa1c55616b34215f562e0445e436210860ef04), |
| 95 | + [#8859](https://github.com/angular/angular.js/issues/8859)) |
| 96 | + |
| 97 | + |
| 98 | +## Breaking Changes |
| 99 | + |
| 100 | +- **ngModelController,formController:** due to [6046e14b](https://github.com/angular/angular.js/commit/6046e14bd22491168116e61ffdf5fd3fed5f135c), |
| 101 | + |
| 102 | +- `ctrl.$error` does no more contain entries for validators that were |
| 103 | + successful. |
| 104 | +- `ctrl.$setValidity` now differentiates between `true`, `false`, |
| 105 | + `undefined` and `null`, instead of previously only truthy vs falsy. |
| 106 | + |
| 107 | +Closes #8941- **ngSwitch:** due to [0f806d96](https://github.com/angular/angular.js/commit/0f806d9659b5b89a4bd9493364bc36398677e939), |
| 108 | + |
| 109 | + |
| 110 | +Ever since 0df93fd, tagged in v1.0.0rc1, the ngSwitch directive has had an undocumented `change` |
| 111 | +attribute, used for evaluating a scope expression when the switch value changes. |
| 112 | + |
| 113 | +While it's unlikely, applications which may be using this feature should work around the removal |
| 114 | +by adding a custom directive which will perform the eval instead. Directive controllers are |
| 115 | +re-instantiated when being transcluded, so by putting the attribute on each item that you want |
| 116 | +to be notified of a change to, you can more or less emulate the old behaviour. |
| 117 | + |
| 118 | +Example: |
| 119 | + |
| 120 | +```js |
| 121 | +angular.module("switchChangeWorkaround", []). |
| 122 | + directive("onSwitchChanged", function() { |
| 123 | + return { |
| 124 | + linke: function($scope, $attrs) { |
| 125 | + $scope.$parent.$eval($attrs.change); |
| 126 | + } |
| 127 | + }; |
| 128 | + }); |
| 129 | +``` |
| 130 | + |
| 131 | +```html |
| 132 | +<div ng-switch="switcher"> |
| 133 | + <div ng-switch-when="a" on-switch-changed="doSomethingInParentScope()"></div> |
| 134 | + <div ng-switch-when="b" on-switch-changed="doSomethingInParentScope()"></div> |
| 135 | +</div> |
| 136 | +``` |
| 137 | + |
| 138 | +Closes #8858 |
| 139 | +Closes #8822 |
| 140 | + |
| 141 | + |
| 142 | +<a name="1.2.24"></a> |
| 143 | +# 1.2.24 static-levitation (2014-09-09) |
| 144 | + |
| 145 | + |
| 146 | +## Bug Fixes |
| 147 | + |
| 148 | +- **$browser:** detect changes to the browser url that happened in sync |
| 149 | + ([2ece4d03](https://github.com/angular/angular.js/commit/2ece4d0347a8a18d4d35993bb882ed6b5b24266c), |
| 150 | + [#6976](https://github.com/angular/angular.js/issues/6976)) |
| 151 | +- **$compile:** |
| 152 | + - render nested transclusion at the root of a template |
| 153 | + ([9d9cdfb5](https://github.com/angular/angular.js/commit/9d9cdfb575b89e96ae957c986734a49995e2b511), |
| 154 | + [#8914](https://github.com/angular/angular.js/issues/8914), [#8925](https://github.com/angular/angular.js/issues/8925)) |
| 155 | + - render nested transclusion at the root of a template |
| 156 | + ([466320f6](https://github.com/angular/angular.js/commit/466320f6911698048bae5406e341d25af7efafa0), |
| 157 | + [#8914](https://github.com/angular/angular.js/issues/8914), [#8925](https://github.com/angular/angular.js/issues/8925)) |
| 158 | +- **$location:** |
| 159 | + - don't call toString on null values |
| 160 | + ([c12e8d46](https://github.com/angular/angular.js/commit/c12e8d4665b635ba6b09d12802efb88d38b7ad5c)) |
| 161 | + - remove an unused parameter of $location.url |
| 162 | + ([c65796d4](https://github.com/angular/angular.js/commit/c65796d496038554861e70da8012f9d0e2521e6d)) |
| 163 | + - allow numeric location setter arguments |
| 164 | + ([68a09ba7](https://github.com/angular/angular.js/commit/68a09ba74d10a1490feca1d248f85b0023aa399b), |
| 165 | + [#7054](https://github.com/angular/angular.js/issues/7054)) |
| 166 | +- **$parse:** disallow passing Function to Array.sort |
| 167 | + ([b39e1d47](https://github.com/angular/angular.js/commit/b39e1d47b9a1b39a9fe34c847a81f589fba522f8)) |
| 168 | +- **form:** ensure concurrent animations use setClass |
| 169 | + ([d7548fdf](https://github.com/angular/angular.js/commit/d7548fdf1ce6f543bf55d330985a83ef09d0cb83), |
| 170 | + [#8166](https://github.com/angular/angular.js/issues/8166)) |
| 171 | +- **input:** check `scope.$$phase` only on `$rootScope` |
| 172 | + ([36e6de1d](https://github.com/angular/angular.js/commit/36e6de1d91937d73e900ac115ae366fbefcdf6da)) |
| 173 | +- **ngEventDirs:** |
| 174 | + - check `scope.$$phase` only on `$rootScope` |
| 175 | + ([2712c2f1](https://github.com/angular/angular.js/commit/2712c2f1979db23eeb53be8a519b9f79bd75e217), |
| 176 | + [#8891](https://github.com/angular/angular.js/issues/8891)) |
| 177 | + - execute `blur` and `focus` expression using `scope.$evalAsync` |
| 178 | + ([54f0bc0f](https://github.com/angular/angular.js/commit/54f0bc0fe0c6b6d974d23f2c5ef07359dd93eb99), |
| 179 | + [#4979](https://github.com/angular/angular.js/issues/4979), [#5945](https://github.com/angular/angular.js/issues/5945), [#8803](https://github.com/angular/angular.js/issues/8803), [#6910](https://github.com/angular/angular.js/issues/6910), [#5402](https://github.com/angular/angular.js/issues/5402)) |
| 180 | +- **ngRepeat:** improve errors for duplicate items |
| 181 | + ([1812af58](https://github.com/angular/angular.js/commit/1812af58c2d470d586c2a543c9a7db3f0baca04f)) |
| 182 | +- **numberFilter:** format numbers that round to zero as nonnegative |
| 183 | + ([7e02fa07](https://github.com/angular/angular.js/commit/7e02fa07eb5b02e75b1db0058d638af3d1074942), |
| 184 | + [#8489](https://github.com/angular/angular.js/issues/8489)) |
| 185 | +- **orderBy:** allow arrayLike objects to be ordered |
| 186 | + ([94b0f2d3](https://github.com/angular/angular.js/commit/94b0f2d35de601ded3d93ea4fa78a4d9b139c0a0), |
| 187 | + [#8944](https://github.com/angular/angular.js/issues/8944)) |
| 188 | + |
| 189 | + |
| 190 | +## Breaking Changes |
| 191 | + |
| 192 | +- **ngEventDirs:** due to [54f0bc0f](https://github.com/angular/angular.js/commit/54f0bc0fe0c6b6d974d23f2c5ef07359dd93eb99), |
| 193 | + |
| 194 | +The `blur` and `focus` event fire synchronously, also during DOM operations |
| 195 | +that remove elements. This lead to errors as the Angular model was not |
| 196 | +in a consistent state. See this [fiddle](http://jsfiddle.net/fq1dq5yb/) for a demo. |
| 197 | + |
| 198 | +This change executes the expression of those events using |
| 199 | +`scope.$evalAsync` if an `$apply` is in progress, otherwise |
| 200 | +keeps the old behavior. |
| 201 | + |
| 202 | +Fixes #4979 |
| 203 | +Fixes #5945 |
| 204 | +Closes #8803 |
| 205 | +Closes #6910 |
| 206 | +Closes #5402 |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
1 | 211 | <a name="1.3.0-RC.0"></a>
|
2 | 212 | # 1.3.0-RC.0 sonic-boltification (2014-08-29)
|
3 | 213 |
|
|
0 commit comments