Skip to content

Commit b2310c4

Browse files
committed
Bump version number and update change log
1 parent 2ac8f65 commit b2310c4

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# Python JSONPath Change Log
22

3-
## Version 1.1.2 (unreleased)
3+
## Version 1.2.0 (unreleased)
4+
5+
**Fixes**
46

57
- Fixed handling of JSONPath literals in filter expressions. We now raise a `JSONPathSyntaxError` if a filter expression literal is not part of a comparison or function expression. See [jsonpath-compliance-test-suite#81](https://github.com/jsonpath-standard/jsonpath-compliance-test-suite/pull/81).
68

9+
**Features**
10+
11+
- Added a `select` method to the JSONPath [query iterator interface](https://jg-rp.github.io/python-jsonpath/query/), generating a projection of each JSONPath match by selecting a subset of its values.
12+
- Added the `addne` and `addap` operations to [JSONPatch](https://jg-rp.github.io/python-jsonpath/api/#jsonpath.JSONPatch). `addne` (add if not exists) is like the standard `add` operation, but only adds object keys/values if the key does not exist. `addap` (add or append) is like the standard `add` operation, but assumes and index of `-` if the target index can not be resolved.
13+
714
## Version 1.1.1
815

916
**Fixes**

jsonpath/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2023-present James Prior <[email protected]>
22
#
33
# SPDX-License-Identifier: MIT
4-
__version__ = "1.1.2"
4+
__version__ = "1.2.0"

jsonpath/fluent_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def select(
171171
Returns:
172172
An iterable of objects built from selecting _expressions_ relative to
173173
each match from the current query.
174+
175+
**New in version 1.2.0**
174176
"""
175177
return filter(
176178
bool,

jsonpath/patch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ class OpAddNe(OpAdd):
9191
9292
This is like _OpAdd_, but only adds object/dict keys/values if they key does
9393
not already exist.
94+
95+
**New in version 1.2.0**
9496
"""
9597

9698
__slots__ = ("path", "value")
@@ -126,6 +128,8 @@ class OpAddAp(OpAdd):
126128
127129
This is like _OpAdd_, but assumes an index of "-" if the path can not
128130
be resolved.
131+
132+
**New in version 1.2.0**
129133
"""
130134

131135
__slots__ = ("path", "value")

0 commit comments

Comments
 (0)