chore: prepare 1.0 release (#13)

* chore: prepare 1.0 release
This commit is contained in:
leone 2024-02-28 15:42:04 +01:00 committed by GitHub
parent b72566656a
commit 7034dcc851
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 27 additions and 17 deletions

View file

@ -3,7 +3,7 @@
<p><strong>A collection of additional crates supporting the ntex frameworks.</strong> </p>
<p>
[![Build Status](https://github.com/ntex-rs/ntex-extras/workflows/CI%20(Linux)/badge.svg)](https://travis-ci.org/ntex-rs/ntex)
[![Build Status](https://github.com/ntex-rs/ntex-extras/actions/workflows/linux.yml/badge.svg)](https://github.com/ntex-rs/ntex-extras/actions/workflows/linux.yml)
[![Version](https://img.shields.io/badge/rustc-1.75+-lightgray.svg)](https://blog.rust-lang.org/2023/12/28/Rust-1.75.0.html)
[![codecov](https://codecov.io/gh/ntex-rs/ntex-extras/branch/master/graph/badge.svg)](https://codecov.io/gh/ntex-rs/ntex-extras)

View file

@ -1,5 +1,9 @@
# Changes
## [1.0.0] - 2024-02-28
* Update the `ntex` dependency to 1.1
## [0.1.0] - 2020-10-05
* Initial release

View file

@ -1,6 +1,6 @@
[package]
name = "ntex-cors"
version = "0.5.0"
version = "1.0.0"
authors = ["ntex contributors <team@ntex.rs>"]
description = "Cross-origin resource sharing (CORS) for ntex applications."
readme = "README.md"

View file

@ -104,20 +104,15 @@ impl WebResponseError<DefaultError> for CorsError {
/// allowed).
///
/// `Default` is implemented for this enum and is `All`.
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Default, Clone, Debug, Eq, PartialEq)]
pub enum AllOrSome<T> {
/// Everything is allowed. Usually equivalent to the "*" value.
#[default]
All,
/// Only some of `T` is allowed
Some(T),
}
impl<T> Default for AllOrSome<T> {
fn default() -> Self {
AllOrSome::All
}
}
impl<T> AllOrSome<T> {
/// Returns whether this is an `All` variant
pub fn is_all(&self) -> bool {

View file

@ -1,5 +1,9 @@
# Changes
## [1.0.0] - 2024-02-28
* Update the `ntex` dependency to 1.1
## [0.4.1] - 2024-01-17
* Fix compatibility #11

View file

@ -1,6 +1,6 @@
[package]
name = "ntex-files"
version = "0.4.1"
version = "1.0.0"
authors = ["ntex contributors <team@ntex.rs>"]
description = "Static files support for ntex web."
readme = "README.md"

View file

@ -1,8 +1,9 @@
# Changes
## [Unreleased] - 2020-xx-xx
## [1.0.0] - 2024-02-28
* Update the `time` dependency to 0.2.5
* Update the `ntex` dependency to 1.1
* Update the `time` dependency to 0.3
## [0.2.1] - 2020-01-10

View file

@ -1,6 +1,6 @@
[package]
name = "ntex-identity"
version = "0.4.0"
version = "1.0.0"
authors = ["ntex contributors <team@ntex.rs>"]
description = "Identity service for ntex web framework."
readme = "README.md"

View file

@ -1,5 +1,10 @@
# Changes
## [1.0.0] - 2024-02-28
* Update the `ntex` dependency to 1.1
* Rename `ParseError` to `DecodeError`
## [0.2.1] - 2020-01-xx
* Remove the unused `time` dependency

View file

@ -1,6 +1,6 @@
[package]
name = "ntex-multipart"
version = "0.4.0"
version = "1.0.0"
authors = ["ntex contributors <team@ntex.rs>"]
description = "Multipart support for ntex web framework."
readme = "README.md"

View file

@ -1,8 +1,9 @@
# Changes
## [Unreleased] - 2020-01-xx
## [1.0.0] 2024-02-28
* Update the `time` dependency to 0.2.5
* Update the `ntex` dependency to 1.1
* Update the `time` dependency to 0.3
* [#1292](https://github.com/actix/actix-web/pull/1292) Long lasting auto-prolonged session
## [0.3.0] - 2019-12-20

View file

@ -1,6 +1,6 @@
[package]
name = "ntex-session"
version = "0.4.0"
version = "1.0.0"
authors = ["ntex contributors <team@ntex.rs>"]
description = "Session for ntex web framework."
readme = "README.md"