Skip to content

Commit 2ff8ab3

Browse files
committed
Releases v0.2.1
1 parent 4a9f4fe commit 2ff8ab3

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- run: rustup component add clippy
2626
- uses: Swatinem/rust-cache@v2
2727
- run: cargo clippy --all-targets -- -D warnings -D clippy::all
28+
- run: cargo clippy --all-targets --features async-tokio -- -D warnings -D clippy::all
2829

2930
test:
3031
runs-on: ubuntu-latest
@@ -133,7 +134,7 @@ jobs:
133134
- uses: Swatinem/rust-cache@v2
134135
- uses: taiki-e/install-action@v2
135136
with: { tool: cargo-llvm-cov }
136-
- run: cargo llvm-cov --codecov --output-path codecov.json
137+
- run: cargo llvm-cov --features async-tokio --codecov --output-path codecov.json
137138
- uses: codecov/codecov-action@v5
138139
with:
139140
files: codecov.json

CHANGELOG.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
1+
## [0.2.1] - 2025-02-23
2+
3+
### Changed
4+
5+
* Some renaming to get a cleaner API (aliases with the old names are kept):
6+
- `FromTokioAsyncReadJsonReader` -> `TokioAsyncReaderJsonParser`
7+
- `FromBufferJsonReader` -> `SliceJsonParser`
8+
- `FromReadJsonReader` -> `ReaderJsonParser`
9+
- `LowLevelJsonReader` -> `LowLevelJsonParser`
10+
- `LowLevelJsonReaderResult` -> `LowLevelJsonParserResult`
11+
- `ParseError` -> `JsonParseError`
12+
- `SyntaxError` -> `JsonSyntaxError`
13+
- `ToTokioAsyncWriteJsonWriter` -> `TokioAsyncWriterJsonSerializer`
14+
- `ToWriteJsonWriter` -> `WriterJsonSerializer<W>`
15+
- `LowLevelJsonWriter` -> `LowLevelJsonSerializer`
16+
- `read_next_event` -> `parse_next`
17+
- `write_event` -> `serialize_event`
18+
119
## [0.2.0] - 2024-02-23
220

321
No change compared to the alpha releases.
422

523
## [0.2.0-alpha.2] - 2023-11-13
624

7-
## Changed
25+
### Changed
826

927
- Improves error messages.
1028
- Improves ordering of tokens and errors when errors are present.
@@ -17,7 +35,7 @@ No change compared to the alpha releases.
1735
- Support of UTF-8 byte-order-mark (BOM) during parsing.
1836
- Support of Tokio `AsyncRead` and `AsyncWrite` interfaces behind the `async-tokio` feature.
1937

20-
## Changed
38+
### Changed
2139

2240
- The parser API has been rewritten. The new entry points are `FromBufferJsonReader`, `FromReadJsonReader`,
2341
and `LowLevelJsonReader`.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "json-event-parser"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = ["Tpt <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"

JSONTestSuite

src/write.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ impl<W: AsyncWrite + Unpin> TokioAsyncWriterJsonSerializer<W> {
9090
}
9191

9292
#[deprecated(note = "Use serialize_event() instead")]
93-
pub fn write_event(&mut self, event: JsonEvent<'_>) -> Result<()> {
94-
self.serialize_event(event)
93+
pub async fn write_event(&mut self, event: JsonEvent<'_>) -> Result<()> {
94+
self.serialize_event(event).await
9595
}
9696

9797
pub fn finish(self) -> Result<W> {

0 commit comments

Comments
 (0)