Skip to content

Commit

Permalink
0.7.5 Fixes #122 (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
f3ath authored Jan 29, 2025
1 parent 180fce0 commit 324fcf1
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ jobs:
run: dart test --coverage=.coverage
- name: Coverage
run: dart run coverage:format_coverage -l -c -i .coverage --report-on=lib --packages=.dart_tool/package_config.json | dart run check_coverage:check_coverage
downgrade:
runs-on: ubuntu-latest
container:
image: dart:stable
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: dart pub get
- name: Downgrade
run: dart pub downgrade
- name: Analyzer
run: dart analyze --fatal-infos --fatal-warnings
14 changes: 9 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ 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).

## [Unreleased]
## [0.7.5] - 2025-01-28
### Changed
- Minor performance improvements
- CTS update

### Fixed
- Slash escaped incorrectly in normalized paths ([issue](https://github.com/f3ath/jessie/issues/122))

## [0.7.4] - 2024-08-03
### Changed
- CTS updated

### Fixed
- Uppercase "E" was not acceptable in floating point numbers
- A digit before the decimal point was not enforced for floating point numbers
- Integer literal bounds were not enforced
- Uppercase "E" not acceptable in floating point numbers
- A digit before the decimal point not enforced for floating point numbers
- Integer literal bounds not enforced

## [0.7.3] - 2024-08-01
### Changed
Expand Down Expand Up @@ -209,7 +213,7 @@ Previously, no modification would be made and no errors/exceptions thrown.
### Added
- Basic design draft

[Unreleased]: https://github.com/f3ath/jessie/compare/0.7.4...HEAD
[0.7.5]: https://github.com/f3ath/jessie/compare/0.7.4...0.7.5
[0.7.4]: https://github.com/f3ath/jessie/compare/0.7.3...0.7.4
[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
Expand Down
1 change: 0 additions & 1 deletion lib/src/normalized/name_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ extension on String {
codeUnits.map((c) => '\\u${c.toRadixString(16).padLeft(4, '0')}').join();

String get escaped => const {
r'/': r'\/',
r'\': r'\\',
'\b': r'\b',
'\f': r'\f',
Expand Down
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.4
version: 0.7.5
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
30 changes: 30 additions & 0 deletions test/cases/standard/normalized_path.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,27 @@
"'": "single quote/apostrophe",
"\\": "backslash"
},
"result": [
"NUL",
"SOH",
"STX",
"ETX",
"EOT",
"ENQ",
"ACK",
"nul",
"BS, backspace",
"HT, tab",
"LF, new line",
"VT",
"FF, form feed",
"CR, carriage return",
"SO",
"SI",
"US",
"single quote/apostrophe",
"backslash"
],
"result_paths": [
"$['\\u0000']",
"$['\\u0001']",
Expand Down Expand Up @@ -51,12 +72,21 @@
"selector": "$[*]",
"document": {
"\"": "double quote",
"/": "slash",
"[]": "[]",
"\ud83d\ude00": "smiley face",
"\u10FFFF": "0x10FFFF"
},
"result": [
"double quote",
"slash",
"[]",
"smiley face",
"0x10FFFF"
],
"result_paths": [
"$['\"']",
"$['/']",
"$['[]']",
"$['\uD83D\uDE00']",
"$['\u10FFFF']"
Expand Down

0 comments on commit 324fcf1

Please sign in to comment.