Skip to content

Commit

Permalink
chore: prepare 1.0 release (#13)
Browse files Browse the repository at this point in the history
* chore: prepare 1.0 release
  • Loading branch information
leon3s authored Feb 28, 2024
1 parent b725666 commit 7034dcc
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions ntex-cors/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion ntex-cors/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-cors"
version = "0.5.0"
version = "1.0.0"
authors = ["ntex contributors <[email protected]>"]
description = "Cross-origin resource sharing (CORS) for ntex applications."
readme = "README.md"
Expand Down
9 changes: 2 additions & 7 deletions ntex-cors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions ntex-files/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion ntex-files/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-files"
version = "0.4.1"
version = "1.0.0"
authors = ["ntex contributors <[email protected]>"]
description = "Static files support for ntex web."
readme = "README.md"
Expand Down
5 changes: 3 additions & 2 deletions ntex-identity/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion ntex-identity/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-identity"
version = "0.4.0"
version = "1.0.0"
authors = ["ntex contributors <[email protected]>"]
description = "Identity service for ntex web framework."
readme = "README.md"
Expand Down
5 changes: 5 additions & 0 deletions ntex-multipart/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion ntex-multipart/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-multipart"
version = "0.4.0"
version = "1.0.0"
authors = ["ntex contributors <[email protected]>"]
description = "Multipart support for ntex web framework."
readme = "README.md"
Expand Down
5 changes: 3 additions & 2 deletions ntex-session/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion ntex-session/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-session"
version = "0.4.0"
version = "1.0.0"
authors = ["ntex contributors <[email protected]>"]
description = "Session for ntex web framework."
readme = "README.md"
Expand Down

0 comments on commit 7034dcc

Please sign in to comment.