Skip to content

Commit 346de72

Browse files
committed
Update CHANGELOG.md with 1.3.1, 2.0 and 2.1
1 parent 5e4f1f8 commit 346de72

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

CHANGELOG.md

+40-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,40 @@
11
Changelog
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+
434
1.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

839
1.2
940
---
@@ -39,7 +70,8 @@ Changelog
3970

4071
0.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

4476
0.7
4577
---
@@ -56,14 +88,16 @@ Changelog
5688

5789
0.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.
6093
This is also affected by _smartGet_.
6194

6295
0.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

68102
0.3
69103
---

0 commit comments

Comments
 (0)