Skip to content

Commit 9f4e52e

Browse files
committed
release v0.9.2
1 parent f8b9ae0 commit 9f4e52e

File tree

14 files changed

+363
-172
lines changed

14 files changed

+363
-172
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ body:
7171
attributes:
7272
label: Version of the release
7373
options:
74-
# <newest-release=v0.9.1>
74+
# <newest-release=v0.9.2>
75+
- v0.9.2
7576
- v0.9.1
7677
- v0.9.0
7778
- v0.8.7

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.9.2] - 2024-12-22
6+
7+
### Library
8+
9+
- Added `StringPattern` and made `Automaton` no longer borrow the query. ([#117](https://github.com/V0ldek/rsonpath/issues/117)[#613](https://github.com/V0ldek/rsonpath/issues/613))
10+
11+
- The `Automaton` struct borrowed the source query, which also caused the Engine to carry the query's lifetime with it.
12+
The actual data being borrowed were the `JsonString` values for member transitions.
13+
In preparation for [#117](https://github.com/V0ldek/rsonpath/issues/117)we remove the borrowed `JsonString` and replace it
14+
with `StringPattern`. For UTF-8 the `StringPattern` will be a more complex struct that precomputes some stuff for efficient matching later.
15+
For now, it's a thin wrapper over a `JsonString`.
16+
- During construction we may create many transitions over the same pattern.
17+
To reduce the size of the automaton we cache the patterns and put them into an `Rc`.
18+
This may get optimised later to instead use some kind of inline storage, but it's unlike to actually matter.
19+
I ran the benchmarks and saw no measurable difference between the previous version and this one.
20+
21+
### Dependencies
22+
23+
- Bump arbitrary from 1.3.1 to 1.4.1
24+
- Bump clap from 4.5.2 to 4.5.23
25+
- Bump color-eyre from 0.6.2 to 0.6.3
26+
- Bump log from 0.4.21 to 0.4.22
27+
- Bump memmap2 from 0.9.4 to 0.9.5
28+
- Bump simple_logger from 4.3.3 to 5.0.0
29+
- Bump smallvec from 1.13.1 to 1.13.2
30+
- Bump thiserror from 1.0.58 to 2.0.9 (#617). ([#617](https://github.com/V0ldek/rsonpath/issues/617))
31+
- Remove `nom` as a direct dependency of `rsonpath-lib`
32+
533
## [0.9.1] - 2024-04-03
634

735
### Bug Fixes

Cargo.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exclude = ["crates/rsonpath-benchmarks", "crates/rsonpath-test-codegen"]
1212
resolver = "2"
1313

1414
[workspace.package]
15-
version = "0.9.1"
15+
version = "0.9.2"
1616
authors = ["Mateusz Gienieczko <[email protected]>"]
1717
readme = "README.md"
1818
license = "MIT"
@@ -22,8 +22,8 @@ edition = "2021"
2222

2323
[workspace.dependencies]
2424
# Project crates
25-
rsonpath-lib = { version = "0.9.1", path = "./crates/rsonpath-lib", package = "rsonpath-lib", default-features = false }
26-
rsonpath-syntax = { version = "0.3.1", path = "./crates/rsonpath-syntax" }
25+
rsonpath-lib = { version = "0.9.2", path = "./crates/rsonpath-lib", package = "rsonpath-lib", default-features = false }
26+
rsonpath-syntax = { version = "0.3.2", path = "./crates/rsonpath-syntax" }
2727
# Main dependencies
2828
arbitrary = { version = "1.4.1" }
2929
cfg-if = "1.0.0"

Justfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,19 @@ release ver:
276276
cargo build
277277
cargo +nightly fuzz build
278278

279+
# Execute prerequisits for a release of `rsonpath-syntax` for the given version.
280+
release-syntax ver:
281+
#!/usr/bin/env nu
282+
let ver = "{{ver}}";
283+
sed -i $'s/^version = "[^"]*"/version = "($ver)"/' "./crates/rsonpath-syntax/Cargo.toml"
284+
sed -i $'s/^rsonpath-syntax = { version = "[^"]*"/rsonpath-syntax = { version = "($ver)"/' "./Cargo.toml"
285+
279286
[private]
280287
release-patch ver:
281288
#!/usr/bin/env nu
282289
let ver = "{{ver}}";
283290
let paths = ["./Cargo.toml", "./crates/rsonpath-benchmarks/Cargo.toml", "./crates/rsonpath-test-codegen/Cargo.toml"];
284291
$paths | each { |path|
285-
let path = $"./crates/($cr)/Cargo.toml";
286292
sed -i $'s/^version = "[^"]*"/version = "($ver)"/;s/^rsonpath-lib = { version = "[^"]*"/rsonpath-lib = { version = "($ver)"/;s/rsonpath-test-codegen = { version = "[^"]*"/rsonpath-test-codegen = { version = "($ver)"/' $path;
287293
};
288294

0 commit comments

Comments
 (0)