Skip to content

Commit e0bce96

Browse files
authored
release v0.9.4 (#632)
release v0.9.4
1 parent 4b81feb commit e0bce96

File tree

17 files changed

+179
-124
lines changed

17 files changed

+179
-124
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 1 deletion
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.3>
74+
# <newest-release=v0.9.4>
75+
- v0.9.4
7576
- v0.9.3
7677
- v0.9.2
7778
- v0.9.1

.github/workflows/release.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,30 @@ jobs:
217217
with:
218218
toolchain: stable
219219
- name: Publish rsonpath-syntax
220-
run: cargo publish --token ${{ secrets.CRATES_TOKEN }} -p rsonpath-syntax --no-verify
220+
run: |
221+
old_ver=$(cargo info rsonpath-syntax --registry crates-io | sed -n 's/version: \([0-9]\.[0-9].[0-9]\)/\1/p')
222+
new_ver=$(cargo pkgid rsonpath-syntax | sed 's/.*#//g')
223+
if [ $old_ver != $new_ver ]; then
224+
cargo publish --token ${{ secrets.CRATES_TOKEN }} -p rsonpath-syntax --no-verify
225+
fi
226+
- name: Publish rsonpath-syntax-proptest
227+
run: |
228+
old_ver=$(cargo info rsonpath-syntax-proptest --registry crates-io | sed -n 's/version: \([0-9]\.[0-9].[0-9]\)/\1/p')
229+
new_ver=$(cargo pkgid rsonpath-syntax-proptest | sed 's/.*#//g')
230+
if [ $old_ver != $new_ver ]; then
231+
cargo publish --token ${{ secrets.CRATES_TOKEN }} -p rsonpath-syntax-proptest --no-verify
232+
fi
221233
- name: Publish rsonpath-lib
222-
run: cargo publish --token ${{ secrets.CRATES_TOKEN }} -p rsonpath-lib --no-verify
234+
run: |
235+
old_ver=$(cargo info rsonpath-lib --registry crates-io | sed -n 's/version: \([0-9]\.[0-9].[0-9]\)/\1/p')
236+
new_ver=$(cargo pkgid rsonpath-lib | sed 's/.*#//g')
237+
if [ $old_ver != $new_ver ]; then
238+
cargo publish --token ${{ secrets.CRATES_TOKEN }} -p rsonpath-lib --no-verify
239+
fi
223240
- name: Publish rsonpath
224-
run: cargo publish --token ${{ secrets.CRATES_TOKEN }} -p rsonpath --no-verify
241+
run: |
242+
old_ver=$(cargo info rsonpath --registry crates-io | sed -n 's/version: \([0-9]\.[0-9].[0-9]\)/\1/p')
243+
new_ver=$(cargo pkgid rsonpath | sed 's/.*#//g')
244+
if [ $old_ver != $new_ver ]; then
245+
cargo publish --token ${{ secrets.CRATES_TOKEN }} -p rsonpath --no-verify
246+
fi

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

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

5+
## [0.9.4] - 2024-12-31
6+
7+
### Library
8+
9+
- Serde support for `MainEngine`.
10+
- Implemented `serde::Serialize` and `serde::Deserialize` for `MainEngine` in rsonpath-lib,
11+
The `serde` dependency is guarded behind the optional `serde` feature.
12+
- The serialization format is not stable, as the `Automaton`
13+
is expected to evolve. Thus, serialization includes a version
14+
and deserialization will fail if the version disagrees.
15+
- Also added snapshot tests for serialization based on `insta`.
16+
- Added the `MainEngine::automaton` function to retrieve a reference to the compiled query.
17+
- Removed the `arbitrary` feature from `rsonpath-lib` as it didn't actually do anything anymore.
18+
19+
### Dependencies
20+
21+
- `serde` (1.0.217) is now an optional dependency for `rsonpath` and `rsonpath-lib`
22+
523
## [0.9.3] - 2024-12-24
624

725
### Library

Cargo.lock

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exclude = ["crates/rsonpath-benchmarks", "crates/rsonpath-test-codegen"]
1313
resolver = "2"
1414

1515
[workspace.package]
16-
version = "0.9.3"
16+
version = "0.9.4"
1717
authors = ["Mateusz Gienieczko <mat@gienieczko.com>"]
1818
readme = "README.md"
1919
license = "MIT"
@@ -23,9 +23,9 @@ edition = "2021"
2323

2424
[workspace.dependencies]
2525
# Project crates
26-
rsonpath-lib = { version = "0.9.3", path = "./crates/rsonpath-lib", package = "rsonpath-lib", default-features = false }
27-
rsonpath-syntax = { version = "0.3.2", path = "./crates/rsonpath-syntax" }
28-
rsonpath-syntax-proptest = { version = "0.3.2", path = "./crates/rsonpath-syntax-proptest" }
26+
rsonpath-lib = { version = "0.9.4", path = "./crates/rsonpath-lib", package = "rsonpath-lib", default-features = false }
27+
rsonpath-syntax = { version = "0.4.0", path = "./crates/rsonpath-syntax" }
28+
rsonpath-syntax-proptest = { version = "0.4.0", path = "./crates/rsonpath-syntax-proptest" }
2929
# Main dependencies
3030
arbitrary = { version = "1.4.1" }
3131
cfg-if = "1.0.0"

Justfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,24 +273,25 @@ release ver:
273273
just release-patch {{ver}}
274274
just release-readme
275275
just release-bug-template {{ver}}
276-
cargo build
277-
cargo +nightly fuzz build
278276

279277
# Execute prerequisites for a release of `rsonpath-syntax` for the given version.
280278
release-syntax ver:
281279
#!/usr/bin/env nu
282280
let ver = "{{ver}}";
283281
sed -i $'s/^version = "[^"]*"/version = "($ver)"/' "./crates/rsonpath-syntax/Cargo.toml"
282+
sed -i $'s/^version = "[^"]*"/version = "($ver)"/' "./crates/rsonpath-syntax-proptest/Cargo.toml"
284283
sed -i $'s/^rsonpath-syntax = { version = "[^"]*"/rsonpath-syntax = { version = "($ver)"/' "./Cargo.toml"
284+
sed -i $'s/^rsonpath-syntax-proptest = { version = "[^"]*"/rsonpath-syntax-proptest = { version = "($ver)"/' "./Cargo.toml"
285285

286286
[private]
287-
release-patch ver:
287+
release-main ver:
288288
#!/usr/bin/env nu
289289
let ver = "{{ver}}";
290290
let paths = ["./Cargo.toml", "./crates/rsonpath-benchmarks/Cargo.toml", "./crates/rsonpath-test-codegen/Cargo.toml"];
291291
$paths | each { |path|
292292
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;
293293
};
294+
sed -z -i $"s/\\$ rq -V\\nrq \\\([^\\n]*\\\)\\n/\\$ rq -V\\nrq ($ver)\\n/" ./book/src/user/installation.md
294295

295296
[private]
296297
release-readme:

0 commit comments

Comments
 (0)