Skip to content

Commit

Permalink
prepare for 0.16.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Feb 23, 2024
1 parent 516b915 commit 8aee543
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
36 changes: 26 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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

## v0.16.2 -- 2024-02-23

### Highlights

* switching to `flate2` with `zlib-ng` as the compression library for handling `gzip` files
* `zlib-ng` is a drop-in replacement for `zlib` with better performance

## v0.16.1 -- 2024-02-10

### Highlights
Expand All @@ -10,9 +17,10 @@ All notable changes to this project will be documented in this file.
* currently support local file, http(s) remote and s3 remote files checking

### Example usages

```rust
assert!(!oneio::exists("https://spaces.bgpkit.org/oneio/test_data_NOT_EXIST.json").unwrap());
assert!(oneio::exists("https://spaces.bgpkit.org/oneio/test_data.json").unwrap());
assert!(!oneio::exists("https://spaces.bgpkit.org/oneio/test_data_NOT_EXIST.json").unwrap());
assert!(oneio::exists("https://spaces.bgpkit.org/oneio/test_data.json").unwrap());
```

## v0.16.0 - 2024-01-29
Expand All @@ -24,12 +32,12 @@ All notable changes to this project will be documented in this file.
- removed `no-cache` and `vendored-openssl` flags
- removed `openssl` optional dependency
- add `digest` feature flag to allow calculating SHA256 digest of a file, enabled by default

### Library changes

- add `oneio::download_with_retry` function to allow retrying download
- add `oneio::get_sha256_digest` function to the library to calculate SHA256 digest of a file

### CLI changes

- add `oneio digest FILE` command to calculate file SHA256 digest
Expand All @@ -38,7 +46,8 @@ All notable changes to this project will be documented in this file.

### Hot fix

- fixed issue where `oneio s3 list BUCKET PREFIX` command not showing files match the prefix unless they are on the same directory as the prefix
- fixed issue where `oneio s3 list BUCKET PREFIX` command not showing files match the prefix unless they are on the same
directory as the prefix
- fixed issue where running `oneio` without argument causing program to panic

## v0.15.9 - 2024-01-26
Expand All @@ -52,6 +61,7 @@ All notable changes to this project will be documented in this file.
### Breaking changes

The signature of `s3_list` function is now changed to:

```rust
pub fn s3_list(
bucket: &str,
Expand All @@ -60,11 +70,14 @@ pub fn s3_list(
dirs: bool,
) -> Result<Vec<String>, OneIoError> {}
```

This includes changes of:

1. `delimiter` changed from `Option<&str>` to `Option<String>`
2. new `dirs` boolean flag to allow returning only matching directories in the specified prefix
- the `delimiter` is also automatically forced to `Some("/".to_string())` if `dirs` is specified and `delimiter` is specified as `None`.

- the `delimiter` is also automatically forced to `Some("/".to_string())` if `dirs` is specified and `delimiter` is
specified as `None`.

### Misc

- "cargo publish" process is now automated with GitHub actions
Expand All @@ -87,9 +100,12 @@ This includes changes of:

### Highlights

* Module Refactoring: A dedicated module has been created for remote and utils. (ec80e0236170f13e9eec2450eeaa8334e255a1ee)
* Improvements in Caching Control: The HTTP caching is now controllable and disabled for CLI requests. (69de57c5f9a7003edecde2fe6641c438abe233a5)
* Improved Error Handling: We have improved error handling in line reads. The application no longer attempts to read further if a line read fails, preventing any stalls. (fd1352fa2cb701e3fb336a4b6f99014d76d64788)
* Module Refactoring: A dedicated module has been created for remote and utils.
(ec80e0236170f13e9eec2450eeaa8334e255a1ee)
* Improvements in Caching Control: The HTTP caching is now controllable and disabled for CLI requests. (
69de57c5f9a7003edecde2fe6641c438abe233a5)
* Improved Error Handling: We have improved error handling in line reads. The application no longer attempts to read
further if a line read fails, preventing any stalls. (fd1352fa2cb701e3fb336a4b6f99014d76d64788)

## v0.15.6 - 2023-12-16

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oneio"
version = "0.16.1"
version = "0.16.2"
authors = ["Mingwei Zhang <mingwei@bgpkit.com>"]
edition = "2021"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
//!
//! Enable all compression algorithms, and handle remote files (default)
//! ```toml
//! oneio = "0.15"
//! oneio = "0.16"
//! ```
//!
//! Select from supported feature flags
//! ```toml
//! oneio = {version = "0.15", features = ["remote", "gz"]}
//! oneio = {version = "0.16", features = ["remote", "gz"]}
//! ```
//!
//! Supported feature flags:
Expand Down

0 comments on commit 8aee543

Please sign in to comment.