chore: upgrade to ntex 2.0 (#14)

* chore: upgrade to ntex 2.0

* bump version to 2.0
This commit is contained in:
leone 2024-05-28 17:38:47 +02:00 committed by GitHub
parent 7034dcc851
commit b89f611c12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 27 additions and 32 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "ntex-session"
version = "1.0.0"
version = "2.0.0"
authors = ["ntex contributors <team@ntex.rs>"]
description = "Session for ntex web framework."
readme = "README.md"
@ -22,7 +22,7 @@ default = ["cookie-session"]
cookie-session = ["cookie/secure", "ntex/cookie"]
[dependencies]
ntex = "1.1"
ntex = "2"
cookie = "0.18"
derive_more = "0.99"
futures = "0.3"
@ -31,4 +31,4 @@ serde_json = "1.0"
time = { version = "0.3", default-features = false, features = ["std"] }
[dev-dependencies]
ntex = { version = "1.1", features=["tokio"] }
ntex = { version = "2", features=["tokio"] }

View file

@ -300,8 +300,8 @@ where
type Response = WebResponse;
type Error = S::Error;
ntex::forward_poll_ready!(service);
ntex::forward_poll_shutdown!(service);
ntex::forward_ready!(service);
ntex::forward_shutdown!(service);
/// On first request, a new session cookie is returned in response, regardless
/// of whether any session state is set. With subsequent requests, if the