Skip to content

Releases: jmespath/jmespath.php

2.9.1

11 Jun 10:44
9c208ba

Choose a tag to compare

  • Fixed the compiled runtime to emit function names as string literals, preventing arbitrary code execution.
  • Fixed the parser to reject non-identifier function callees, such as literal and raw string callees.

2.9.0

10 Jun 22:35
9501100

Choose a tag to compare

  • Added PHP 8.5 support.
  • Fixed to_number() to parse number strings using the JSON number grammar.
  • Fixed reverse() and string slicing to operate on UTF-8 characters rather than bytes.
  • Fixed slicing of array-like (ArrayAccess + Countable) values.
  • Fixed equality and contains() to use JSON semantics, e.g. 1 == 1.0 is now true.
  • Fixed multi-select hashes to end projections, so following tokens apply to the projected list.
  • Fixed sort() and sort_by() to compare numbers numerically.
  • Changed sort(), sort_by(), max(), min(), max_by() and min_by() to order strings by code point.
  • Fixed max_by() and min_by() to error on mixed-type keys instead of returning arbitrary elements.
  • Fixed max() returning null or erroring when the first array element is falsy, e.g. max([0, 1]).
  • Fixed sum() and join() to return 0 and an empty string respectively for empty arrays.
  • Fixed 0.0 to be truthy in filters and logical operators, like every other number.
  • Fixed the compiled runtime to apply JMESPath truthiness to || and &&.
  • Fixed @(foo), foo[-] and oversized index literals to throw syntax errors.
  • Fixed PHP warnings emitted while parsing certain invalid expressions.
  • Fixed the caret position in syntax error messages for errors at the end of an expression.
  • Fixed map() to error on non-array second arguments instead of returning [].
  • Fixed Env::cleanCompileDir() when JP_PHP_COMPILE=on.

2.8.0

04 Sep 18:46
a2a865e

Choose a tag to compare

  • Add support for PHP 8.4.

2.7.0

25 Aug 10:56
bbb69a9

Choose a tag to compare

  • Fixed flattening in arrays starting with null.
  • Drop support for HHVM and PHP earlier than 7.2.5.
  • Add support for PHP 8.1, 8.2, and 8.3.

2.6.1

14 Jun 09:15
9b87907

Choose a tag to compare

  • Fixed edge case crash on PHP 8.0.

2.6.0

31 Jul 21:02
42dae2c

Choose a tag to compare

  • Support for PHP 8.0.

2.5.0

30 Dec 18:03
52168cb

Choose a tag to compare

  • Full support for PHP 7.0-7.4.
  • Fixed autoloading when run from within vendor folder.
  • Full multibyte (UTF-8) string support.

2.4.0

03 Dec 22:09

Choose a tag to compare

  • Added support for floats when interpreting data.
  • Added a function_exists check to work around redeclaration issues.

2.3.0

05 Jan 20:32

Choose a tag to compare

  • Added support for JEP-9,
    including unary filter expressions, and && filter expressions.
  • Fixed various parsing issues, including not removing escaped single quotes
    from raw string literals.
  • Added support for the map function.
  • Fixed several issues with code generation.

2.2.0

27 May 17:22

Choose a tag to compare

  • Added support for JEP-12 and raw string literals (e.g., 'foo').