v0.48.0 #4940
Xuanwo
started this conversation in
Announcements
v0.48.0
#4940
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
OpenDAL Core Upgrade to v0.48
Public API
Typo in
customized_credential_load
Since v0.48, the
customed_credential_load
function has been renamed tocustomized_credential_load
to fix the typo ofcustomized
.S3 service rename
security_token
tosession_token
In 2014 Amazon switched from
AWS_SECURITY_TOKEN
toAWS_SESSION_TOKEN
. To be consistent with the naming of AWS STS, we have renamed thesecurity_token
field tosession_token
in the S3 service.Operator
from_iter
andvia_iter
replacesfrom_map
andvia_map
Since v0.48, Operator's new APIs
from_iter
andvia_iter
methods have deprecated thefrom_map
andvia_map
methods.New API
from_iter
andvia_iter
should cover all use cases offrom_map
andvia_map
.Service builder now takes ownership
Since v0.48, all service builder now takes ownership
self
instead of&mut self
. This change will allow users to configure the service in a more flexible way.Raw API
oio::Write::write
will write the whole bufferStarting from version 0.48,
oio::Write::write
now writes the entire buffer. This update aligns the API more closely withoio::Read::read
and simplifies the implementation of concurrent writing.write
will now returnResult<()>
instead ofResult<usize>
. The number of bytes written can be obtained from the buffer's length.Access::metadata()
will returnArc<AccessInfo>
Starting from version 0.48,
Access::metadata()
will returnArc<AccessInfo>
instead ofAccessInfo
. This change is intended to improve performance and reduce memory usage.MinitraceLayer
renamed toFastraceLayer
The
MinitraceLayer
has been renamed toFastraceLayer
to respond to the transition fromminitrace
tofastrace
.Use
Configurator
to replaceBuilder::from_config
Since v0.48, the
Builder::from_config
andBuilder::from_map
method has been replaced by theConfigurator
trait. TheConfigurator
trait provides a more flexible and extensible way to configure OpenDAL.Service implementers should update their code to use the
Configurator
trait instead:What's Changed
Added
Buffer::to_bytes()
by cloning contiguous bytes by @LDeakin in feat(core/types): avoid a copy inBuffer::to_bytes()
by cloning contiguous bytes #4858root
on using PrometheusClientLayer by @flaneur2020 in feat(prometheus-client): add metric label aboutroot
on using PrometheusClientLayer #4907Content-Type
based on the extension in the path. by @czy-29 in feat(layers/mime-guess): add a layer that can automatically setContent-Type
based on the extension in the path. #4912Changed
Arc<AccessInfo>
for metadata by @Lzzzzzt in refactor(core)!: ReturnArc<AccessInfo>
for metadata #4883Fixed
Docs
MimeGuessLayer
. by @czy-29 in docs(core): update README to addMimeGuessLayer
. #4916CI
Chore
New Contributors
Buffer::to_bytes()
by cloning contiguous bytes #4858Content-Type
based on the extension in the path. #4912Full Changelog: v0.47.3...v0.48.0
This discussion was created from the release v0.48.0.
Beta Was this translation helpful? Give feedback.
All reactions