Skip to content

Commit

Permalink
release v0.9.3 (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
V0ldek authored Dec 24, 2024
1 parent 37e9076 commit 1f2ebbe
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 27 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ body:
attributes:
label: Version of the release
options:
# <newest-release=v0.9.2>
# <newest-release=v0.9.3>
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
Expand Down
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

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

## [0.9.3] - 2024-12-24

### Library

- Made `MainEngine` `Send` and `Sync`
- Changed internal `Rc`s to `Arc`s in the automaton labels.
- Added a `static_assert` to make sure `MainEngine` is `Send+Sync` forever.
- Added a `Debug` impl for `MainEngine`.

## [0.9.2] - 2024-12-22

### Library

- 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))
- [**breaking**] 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))

- The `Automaton` struct borrowed the source query, which also caused the Engine to carry the query's lifetime with it.
The actual data being borrowed were the `JsonString` values for member transitions.
Expand All @@ -17,6 +26,8 @@ All notable changes to this project will be documented in this file.
To reduce the size of the automaton we cache the patterns and put them into an `Rc`.
This may get optimised later to instead use some kind of inline storage, but it's unlike to actually matter.
I ran the benchmarks and saw no measurable difference between the previous version and this one.
- This is a breaking API change -- the `MainEngine` is now lifetimeless and the `Compiler` trait requires the
returned engine to be lifetimeless.

### Dependencies

Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exclude = ["crates/rsonpath-benchmarks", "crates/rsonpath-test-codegen"]
resolver = "2"

[workspace.package]
version = "0.9.2"
version = "0.9.3"
authors = ["Mateusz Gienieczko <mat@gienieczko.com>"]
readme = "README.md"
license = "MIT"
Expand All @@ -22,7 +22,7 @@ edition = "2021"

[workspace.dependencies]
# Project crates
rsonpath-lib = { version = "0.9.2", path = "./crates/rsonpath-lib", package = "rsonpath-lib", default-features = false }
rsonpath-lib = { version = "0.9.3", path = "./crates/rsonpath-lib", package = "rsonpath-lib", default-features = false }
rsonpath-syntax = { version = "0.3.2", path = "./crates/rsonpath-syntax" }
# Main dependencies
arbitrary = { version = "1.4.1" }
Expand Down
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ default: (build-all "release")
# === INIT ===

# Initialize the repository for development.
init: check-cargo hooks-init checkout-submodules
init: check-cargo hooks-init checkout-submodules init-benchmarks

# Check if cargo is installed and install it from rustup if not.
[private]
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ cargo tree --package rsonpath --edges normal --depth 1

<!-- rsonpath dependencies start -->
```ini
rsonpath v0.9.2 (/home/mat/src/rsonpath/crates/rsonpath)
rsonpath v0.9.3 (/home/mat/src/rsonpath/crates/rsonpath)
├── clap v4.5.23
├── color-eyre v0.6.3
├── eyre v0.6.12
├── log v0.4.22
├── rsonpath-lib v0.9.2 (/home/mat/src/rsonpath/crates/rsonpath-lib)
├── rsonpath-syntax v0.3.1 (/home/mat/src/rsonpath/crates/rsonpath-syntax)
├── rsonpath-lib v0.9.3 (/home/mat/src/rsonpath/crates/rsonpath-lib)
├── rsonpath-syntax v0.3.2 (/home/mat/src/rsonpath/crates/rsonpath-syntax)
└── simple_logger v5.0.0
[build-dependencies]
├── rustflags v0.1.6
Expand All @@ -241,12 +241,12 @@ cargo tree --package rsonpath-lib --edges normal --depth 1

<!-- rsonpath-lib dependencies start -->
```ini
rsonpath-lib v0.9.2 (/home/mat/src/rsonpath/crates/rsonpath-lib)
rsonpath-lib v0.9.3 (/home/mat/src/rsonpath/crates/rsonpath-lib)
├── arbitrary v1.4.1
├── cfg-if v1.0.0
├── log v0.4.22
├── memmap2 v0.9.5
├── rsonpath-syntax v0.3.1 (/home/mat/src/rsonpath/crates/rsonpath-syntax)
├── rsonpath-syntax v0.3.2 (/home/mat/src/rsonpath/crates/rsonpath-syntax)
├── smallvec v1.13.2
├── static_assertions v1.1.0
├── thiserror v2.0.9
Expand Down Expand Up @@ -275,7 +275,7 @@ cargo tree --package rsonpath --edges normal

<!-- rsonpath-full dependencies start -->
```ini
rsonpath v0.9.2 (/home/mat/src/rsonpath/crates/rsonpath)
rsonpath v0.9.3 (/home/mat/src/rsonpath/crates/rsonpath)
├── clap v4.5.23
│ ├── clap_builder v4.5.23
│ │ ├── anstream v0.6.18
Expand Down Expand Up @@ -347,12 +347,12 @@ rsonpath v0.9.2 (/home/mat/src/rsonpath/crates/rsonpath)
│ └── owo-colors v3.5.0
├── eyre v0.6.12 (*)
├── log v0.4.22
├── rsonpath-lib v0.9.2 (/home/mat/src/rsonpath/crates/rsonpath-lib)
├── rsonpath-lib v0.9.3 (/home/mat/src/rsonpath/crates/rsonpath-lib)
│ ├── cfg-if v1.0.0
│ ├── log v0.4.22
│ ├── memmap2 v0.9.5
│ │ └── libc v0.2.169
│ ├── rsonpath-syntax v0.3.1 (/home/mat/src/rsonpath/crates/rsonpath-syntax)
│ ├── rsonpath-syntax v0.3.2 (/home/mat/src/rsonpath/crates/rsonpath-syntax)
│ │ ├── nom v7.1.3
│ │ │ ├── memchr v2.7.4
│ │ │ └── minimal-lexical v0.2.1
Expand Down Expand Up @@ -393,7 +393,7 @@ rsonpath v0.9.2 (/home/mat/src/rsonpath/crates/rsonpath)
│ ├── rand_core v0.5.1 (*)
│ └── rand_hc v0.2.0
│ └── rand_core v0.5.1 (*)
├── rsonpath-syntax v0.3.1 (/home/mat/src/rsonpath/crates/rsonpath-syntax) (*)
├── rsonpath-syntax v0.3.2 (/home/mat/src/rsonpath/crates/rsonpath-syntax) (*)
└── simple_logger v5.0.0
├── colored v2.2.0
│ ├── lazy_static v1.5.0
Expand Down
2 changes: 1 addition & 1 deletion book/src/user/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ To verify it works, check if `rq` is available from your command line:

```console
$ rq -V
rq 0.9.2
rq 0.9.3

```

Expand Down
4 changes: 2 additions & 2 deletions crates/rsonpath-benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = [
"Mateusz Gienieczko <mat@gienieczko.com>",
"Charles Paperman <charles.paperman@inria.fr>",
]
version = "0.9.2"
version = "0.9.3"
edition = "2021"
description = "Benchmark suite for the `rsonpath` project."
readme = "./README.md"
Expand Down Expand Up @@ -34,7 +34,7 @@ lazy_static = "1.5.0"
serde_json = "1.0.134"
sha2 = "0.10.8"
reqwest = { version = "0.12.9", features = ["blocking"] }
rsonpath-lib = { version = "0.9.2", default-features = false }
rsonpath-lib = { version = "0.9.3", default-features = false }
rsonpath-syntax = { version = "0.3.1", default-features = false }
serde_json_path = "0.7.1"
tar = "0.4.43"
Expand Down
4 changes: 2 additions & 2 deletions crates/rsonpath-lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ cargo tree --package rsonpath-lib --edges normal --depth 1

<!-- rsonpath-lib dependencies start -->
```ini
rsonpath-lib v0.9.2 (/home/mat/src/rsonpath/crates/rsonpath-lib)
rsonpath-lib v0.9.3 (/home/mat/src/rsonpath/crates/rsonpath-lib)
├── arbitrary v1.4.1
├── cfg-if v1.0.0
├── log v0.4.22
├── memmap2 v0.9.5
├── rsonpath-syntax v0.3.1 (/home/mat/src/rsonpath/crates/rsonpath-syntax)
├── rsonpath-syntax v0.3.2 (/home/mat/src/rsonpath/crates/rsonpath-syntax)
├── smallvec v1.13.2
├── static_assertions v1.1.0
├── thiserror v2.0.9
Expand Down
2 changes: 1 addition & 1 deletion crates/rsonpath-test-codegen/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/rsonpath-test-codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsonpath-test-codegen"
version = "0.9.2"
version = "0.9.3"
authors = ["Mateusz Gienieczko <mat@gienieczko.com>"]
description = "TOML-based test codegen for rsonpath-lib."
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/rsonpath-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ rsonpath-syntax = { workspace = true }
eyre = "0.6.12"
glob = "0.3.1"
md5 = "0.7.0"
rsonpath-test-codegen = { version = "0.9.1", path = "../rsonpath-test-codegen" }
rsonpath-test-codegen = { version = "0.9.3", path = "../rsonpath-test-codegen" }
2 changes: 1 addition & 1 deletion fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f2ebbe

Please sign in to comment.