1
1
Changelog
2
2
=========
3
3
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
+
4
34
1.3
5
35
---
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
7
38
8
39
1.2
9
40
---
@@ -39,7 +70,8 @@ Changelog
39
70
40
71
0.7.1
41
72
-----
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.
43
75
44
76
0.7
45
77
---
@@ -56,14 +88,16 @@ Changelog
56
88
57
89
0.5
58
90
---
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.
60
93
This is also affected by _ smartGet_ .
61
94
62
95
0.4
63
96
---
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.
67
101
68
102
0.3
69
103
---
0 commit comments