Skip to content

Releases: Galbar/JsonPath-PHP

3.0

05 Mar 19:46
Compare
Choose a tag to compare

Breaking changes:

  • The recursive operation now works slightly different (see 5ac1783)
  • Queries with no matches will now return empty arrays, instead of false. The only exception being when using smart get and a non-divergent path, where false will still be returned.

New features:

  • Support for child selector operation immediatly after recursive operation: $..[?(@.author == "Nigel Rees")]
  • In|Not In Array Operation (#65 by @lucasangi)
  • Added formal support for variable names starting with numbers in the dot-notation: $.2

2.1

18 Aug 13:57
Compare
Choose a tag to compare
2.1
  • Allow filter keys with a regex match
    (#59)
  • Allow PCRE i and x modifiers in regex expressions
    (#59)
  • Fix bug causing a DivisionByZeroError when using negative indexes to access
    an empty array (#60)

2.0: Normalize behavior of .length operation

19 Aug 20:37
eab3a7e
Compare
Choose a tag to compare

Until now (except for version 1.3, sorry, you should go to 1.3.1 if this affects you) .length operator always behaved in the smartGet manner.

Starting with this version, .length will behave as any other operator. That is, it will always return an array of results, even if there is just one, unless smartGet is enabled, then it'll work in the same way smartGet works for every other operation: return the result directly, if the path does not diverge, or return an array of results, if the path diverges.

Also, fix regex so that array interval selector of the type [:3] work.

1.3.1: Revert .length behavior to avoid breaking changes

19 Aug 20:20
38fdd37
Compare
Choose a tag to compare
  • revert .length behavior to avoid breaking changes in same major version

1.3

26 Jul 19:09
4b9b18e
Compare
Choose a tag to compare
1.3
  • Expose internal language parsing and querying functions as part of the public API

1.2: add `!`, `&&` and `||` to be synonyms of `not`, `and` and `or`

07 Apr 17:12
Compare
Choose a tag to compare
  • Add ! as synonym of not
  • Add && as synonym of and
  • Add || as synonym of or

1.1: Ability to use .length outside of []

01 Jun 15:20
36d3ac5
Compare
Choose a tag to compare
  • Drop support for PHP 5.4 and 5.5
  • Add support for PHP 7.2 and 7.3
  • Add utf-8 support (#33)
  • Ability to use .length outside of [] (#28)

1.0: Drop support for PHP 5.3

13 Sep 09:21
Compare
Choose a tag to compare
  • Drop support for PHP 5.3
  • Adding json_encode options bitmask (#7)

0.8: Allows minus character within property name

07 Aug 08:21
Compare
Choose a tag to compare

0.7.3: Bug fix in `.length` regex

02 Dec 08:08
Compare
Choose a tag to compare
Merge pull request #4 from Skyscanner/length_re_wrong

Bug fix in `.length` regex. Minor code cleanup.