Skip to content

Commit

Permalink
0.7.3 (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
f3ath authored Aug 2, 2024
1 parent e66cdc0 commit 635eb3a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.3] - 2024-08-01
### Changed
- Updated CTS

### Fixed
- Invalid escape sequences were allowed in child selectors. See https://github.com/jsonpath-standard/jsonpath-compliance-test-suite/pull/87

## [0.7.2] - 2024-05-30
### Added
- New functions: `key()` and `index()`
Expand Down Expand Up @@ -189,6 +196,7 @@ Previously, no modification would be made and no errors/exceptions thrown.
### Added
- Basic design draft

[0.7.3]: https://github.com/f3ath/jessie/compare/0.7.2...0.7.3
[0.7.2]: https://github.com/f3ath/jessie/compare/0.7.1...0.7.2
[0.7.1]: https://github.com/f3ath/jessie/compare/0.7.0...0.7.1
[0.7.0]: https://github.com/f3ath/jessie/compare/0.6.6...0.7.0
Expand Down
9 changes: 7 additions & 2 deletions lib/src/grammar/child_selector.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import 'package:json_path/fun_sdk.dart';
import 'package:json_path/src/selector.dart';

SingularSelector childSelector(String key) =>
(node) => SingularNodeList.from(node.child(key));
SingularSelector childSelector(String key) {
if (key.runes
.any((r) => r < 0 || r > 0x10FFFF || (r >= 0xD800 && r <= 0xDFFF))) {
throw const FormatException('Invalid UTF code units in childSelector.');
}
return (node) => SingularNodeList.from(node.child(key));
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: json_path
version: 0.7.2
version: 0.7.3
description: "Implementation of RFC 9535 - JSONPath: Query Expressions for JSON. Reads and writes values in parsed JSON objects using queries like `$.store.book[2].price`."
homepage: "https://github.com/f3ath/jessie"

Expand Down
2 changes: 1 addition & 1 deletion test/cases/cts
Submodule cts updated 2 files
+105 −0 cts.json
+105 −0 tests/name_selector.json

0 comments on commit 635eb3a

Please sign in to comment.