Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit fd1528a

Browse files
gkalpakpetebacondarwin
authored andcommitted
chore(CHANGELOG): add breaking change note for #9757
1 parent 6cb5fbf commit fd1528a

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

CHANGELOG.md

+30-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- strip off empty hash segments when comparing
1818
([e93710fe](https://github.com/angular/angular.js/commit/e93710fe0e4fb05ceee59a04f290692a5bec5d20),
1919
[#9635](https://github.com/angular/angular.js/issues/9635))
20-
- **$parse:**
20+
- **$parse:**
2121
- fix operators associativity
2222
([ed1243ff](https://github.com/angular/angular.js/commit/ed1243ffc7c2cb4bd5b4dece597597db8eb08e34))
2323
- follow JavaScript context for unbound functions
@@ -81,7 +81,7 @@
8181
## Breaking Changes
8282

8383
- **$location:** due to [2dc34a96](https://github.com/angular/angular.js/commit/2dc34a969956eea680be4c8d9f800556d110996a),
84-
84+
8585

8686
We no longer throw an `ihshprfx` error if the URL after the base path
8787
contains only a hash fragment. Previously, if the base URL was `http://abc.com/base/`
@@ -96,6 +96,34 @@ and hashPrfix are set up as above, then `http://abc.com/base/other/path` does no
9696
throw an error but just ignores the extra path: `http://abc.com/base`.
9797

9898

99+
- **filterFilter:** due to [a75537d4](https://github.com/angular/angular.js/commit/a75537d461c92e3455e372ff5005bf0cad2d2e95),
100+
101+
Named properties in the expression object will only match against properties on the **same level**.
102+
Previously, named string properties would match against properties on the same level **or deeper**.
103+
104+
Before:
105+
106+
```js
107+
arr = filterFilter([{level1: {level2: 'test'}}], {level1: 'test'}); // arr.length -> 1
108+
```
109+
110+
After:
111+
112+
```js
113+
arr = filterFilter([{level1: {level2: 'test'}}], {level1: 'test'}); // arr.length -> 0
114+
```
115+
116+
In order to match deeper nested properties, you have to either match the depth level of the
117+
property or use the special `$` key (which still matches properties on the same level
118+
**or deeper**). E.g.:
119+
120+
```js
121+
// Both examples below have `arr.length === 1`
122+
arr = filterFilter([{level1: {level2: 'test'}}], {level1: {level2: 'test'}});
123+
arr = filterFilter([{level1: {level2: 'test'}}], {$: 'test'});
124+
```
125+
126+
99127
<a name="1.3.5"></a>
100128
# 1.3.5 cybernetic-mercantilism (2014-12-01)
101129

0 commit comments

Comments
 (0)