11Changelog
22=========
33
4+ 2.1
5+ ---
6+
7+ * Allow filter keys with a regex match
8+ (https://github.com/Galbar/JsonPath-PHP/pull/59 )
9+ * Allow PCRE ` i ` and ` x ` modifiers in regex expressions
10+ (https://github.com/Galbar/JsonPath-PHP/pull/59 )
11+ * Fix bug causing a DivisionByZeroError when using negative indexes to access
12+ an empty array (https://github.com/Galbar/JsonPath-PHP/issues/60 )
13+
14+ 2.0
15+ ---
16+ ### Normalize behavior of .length operation
17+
18+ Until now (except for version 1.3, sorry, you should go to 1.3.1 if this
19+ affects you) .length operator always behaved in the smartGet manner.
20+
21+ Starting with this version, .length will behave as any other operator. That is,
22+ it will always return an array of results, even if there is just one, unless
23+ smartGet is enabled, then it'll work in the same way smartGet works for every
24+ other operation: return the result directly, if the path does not diverge, or
25+ return an array of results, if the path diverges.
26+
27+ Also, fix regex so that array interval selector of the type ` [:3] ` work.
28+
29+
30+ 1.3.1
31+ -----
32+ * Revert .length behavior to avoid breaking changes in same major version
33+
4341.3
535---
6- * Expose internal language parsing and querying functions as part of the public API
36+ * Expose internal language parsing and querying functions as part of the public
37+ API
738
8391.2
940---
@@ -39,7 +70,8 @@ Changelog
3970
40710.7.1
4172-----
42- * Bug fix when accessing an array with a negative index. It now behaves as expected.
73+ * Bug fix when accessing an array with a negative index. It now behaves as
74+ expected.
4375
44760.7
4577---
@@ -56,14 +88,16 @@ Changelog
5688
57890.5
5890---
59- * Added getJsonObjects to get child JsonObjects that reference the original JsonObject contents.
91+ * Added getJsonObjects to get child JsonObjects that reference the original
92+ JsonObject contents.
6093This is also affected by _ smartGet_ .
6194
62950.4
6396---
64- * Added support for json objects with fields with names that are not valid javascript variable
65- names.
66- * Fixed error in smart get when accessing a list of names or list of indices and only one existed in the object.
97+ * Added support for json objects with fields with names that are not valid
98+ javascript variable names.
99+ * Fixed error in smart get when accessing a list of names or list of indices
100+ and only one existed in the object.
67101
681020.3
69103---
0 commit comments