Skip to content

Commit

Permalink
Bump to version 0.18.0 (#768)
Browse files Browse the repository at this point in the history
* Bump to version 0.18.0

Signed-off-by: Xuanwo <[email protected]>

* Fix ci

Signed-off-by: Xuanwo <[email protected]>

* Update change log

Signed-off-by: Xuanwo <[email protected]>

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Oct 1, 2022
1 parent b591595 commit d4b2763
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/service_test_http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Test
shell: bash
run: cargo test http --features compress,layers-retry,services-http -- --nocapture
run: cargo test http --features compress,layers-retry -- --nocapture
env:
RUST_BACKTRACE: full
RUST_LOG: debug
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Test
shell: bash
run: cargo test http --features compress,layers-retry,services-http -- --nocapture
run: cargo test http --features compress,layers-retry -- --nocapture
env:
RUST_BACKTRACE: full
RUST_LOG: debug
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/)
and this project adheres to [Semantic Versioning](https://semver.org/).

## [v0.18.0] - 2022-10-01

### Added

- feat: Add Metadata Cache Layer (#739)
- feat: Bump reqsign version to 0.5 (#741)
- feat: Derive Hash, Eq, PartialEq for Operation (#749)
- feat: Make AccessorMetadata public so outer users can use (#750)
- feat: Expose AccessorCapability to users (#751)
- feat: Expose opendal's http util to users (#753)
- feat: Implement convert from PresignedRequest (#756)
- feat: Make ObjectMetadata setter public (#758)
- feat: Implement cached metadata for ObjectEntry (#761)
- feat: Assign unique name for memory backend (#769)

### Changed

- refactor: replace error::other with new_other_object_error (#738)
- chore(compress): log with trace level instead of debug. (#752)
- refactor: Rename DirXxxx to ObjectXxxx instead (#759)

### Fixed

- fix(http_util): Disable auto compress and enable http proxy (#731)
- deps: Fix build after bump deps of oli and oay (#766)

## [v0.17.4] - 2022-09-27

### Fixed
Expand Down
9 changes: 3 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
authors = ["Databend Authors <[email protected]>"]
categories = ["filesystem"]
description = "OpenDAL: Access data freely, painless, and efficiently."
description = "OpenDAL: Access data freely, painlessly, and efficiently."
edition = "2021"
exclude = ["docs/", "testdata/"]
homepage = "https://opendal.databend.rs/"
keywords = ["storage", "data", "s3", "azblob", "gcs"]
keywords = ["storage", "fs", "s3", "azblob", "gcs"]
license = "Apache-2.0"
name = "opendal"
repository = "https://github.com/datafuselabs/opendal"
version = "0.17.4"
version = "0.18.0"

[package.metadata.docs.rs]
all-features = true
Expand All @@ -33,9 +33,6 @@ layers-metadata-cache = ["bincode", "serde"]

# Enable services hdfs support
services-hdfs = ["hdrs"]
# Enable services http support
# deprecated: We don't need services-http feature any more.
services-http = []
# Enable services ftp support
services-ftp = ["suppaftp"]
# Enable services ipfs support
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[crates.io]: https://crates.io/crates/opendal
[Crate Downloads]: https://img.shields.io/crates/d/opendal.svg

**Open** **D**ata **A**ccess **L**ayer: Access data freely, painless, and efficiently
**Open** **D**ata **A**ccess **L**ayer: Access data freely, painlessly, and efficiently

---

Expand Down Expand Up @@ -37,7 +37,7 @@ Access data **freely**
- Access different storage services in the same way
- Behavior tests for all services

Access data **painless**
Access data **painlessly**

- **100%** documents covered
- Powerful [`Layers`](https://opendal.databend.rs/opendal/layers/index.html)
Expand All @@ -58,7 +58,7 @@ use anyhow::Result;
use futures::StreamExt;
use futures::TryStreamExt;
use opendal::ObjectEntry;
use opendal::DirStreamer;
use opendal::ObjectStreamer;
use opendal::Object;
use opendal::ObjectMetadata;
use opendal::ObjectMode;
Expand Down Expand Up @@ -98,8 +98,8 @@ async fn main() -> Result<()> {

// List dir object.
let o = op.object("test_dir/");
let mut ds = o.list().await?;
while let Some(entry) = ds.try_next().await? {
let mut os = o.list().await?;
while let Some(entry) = os.try_next().await? {
let path = entry.path();
let mode = entry.mode();
}
Expand All @@ -120,7 +120,7 @@ Check out the [CONTRIBUTING.md](./CONTRIBUTING.md) guide for more details on get

## Getting help

Submit [issues](https://github.com/datafuselabs/opendal/issues/new/choose) for bug report or asking questions in [discussion](https://github.com/datafuselabs/opendal/discussions/new?category=q-a).
Submit [issues](https://github.com/datafuselabs/opendal/issues/new/choose) for bug report or asking questions in [discussion](https://github.com/datafuselabs/opendal/discussions/new?category=q-a).

#### License

Expand Down
25 changes: 25 additions & 0 deletions docs/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

This document intends to record upgrade and migrate procedures while OpenDAL meets breaking changes.

## Upgrade to v0.18

OpenDAL v0.18 introduces the following breaking changes:

- Deprecated feature flag `services-http` has been removed.
- All `DirXxx` items have been renamed to `ObjectXxx` to make them more consistent.
- `DirEntry` -> `ObjectEntry`
- `DirStream` -> `ObjectStream`
- `DirStreamer` -> `ObjectStream`
- `DirIterate` -> `ObjectIterate`
- `DirIterator` -> `ObjectIterator`

Besides, we also make a big change to our `ObjectEntry` API. Since v0.18, we can fully reuse the metadata that fetched during `list`. Take `entry.content_length()` for example:

- If `content_lenght` is already known, we will return directly.
- If not, we will check if the object entry is `complete`:
- If `complete`, the entry already fetched all metadata that it could have, return directly.
- If not, we will send a `stat` call to get the `metadata` and refresh our cache.

This change means:

- All API like `content_length` will be changed into async functions.
- `metadata` and `blocking_metadata` will not return errors anymore.
- To retrieve the latest meta, please use `entry.into_object().metadata()` instead.

## Upgrade to v0.17

OpenDAL v0.17 refactor the `Accessor` to make space for future features.
Expand Down
4 changes: 2 additions & 2 deletions oay/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 oay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords = ["storage", "data", "s3", "fs", "azblob"]
license = "Apache-2.0"
name = "oay"
repository = "https://github.com/datafuselabs/opendal"
version = "0.17.4"
version = "0.18.0"

[dependencies]
actix-web = "4"
Expand All @@ -17,7 +17,7 @@ clap = { version = "4", features = ["cargo"] }
env_logger = "0.9"
futures = "0.3"
log = "0.4"
opendal = "0.17"
opendal = "0.18"
percent-encoding = "2"
sluice = "0.5"
tokio = { version = "1.20", features = ["rt-multi-thread", "macros"] }
Expand Down
4 changes: 2 additions & 2 deletions oli/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 oli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ keywords = ["storage", "data", "s3", "fs", "azblob"]
license = "Apache-2.0"
name = "oli"
repository = "https://github.com/datafuselabs/opendal"
version = "0.17.4"
version = "0.18.0"

[dependencies]
anyhow = "1"
clap = { version = "4", features = ["cargo", "string"] }
env_logger = "0.9"
log = "0.4"
opendal = "0.17"
opendal = "0.18"
tokio = { version = "1.20", features = ["fs", "macros", "rt-multi-thread"] }

[dev-dependencies]
Expand Down

1 comment on commit d4b2763

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on d4b2763 Oct 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for opendal ready!

✅ Preview
https://opendal-m0mfribxq-databend.vercel.app
https://opendal-git-refstagsv0180.vercel.app

Built with commit d4b2763.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.