- bumped
ft-sys
to0.1.6
- upgraded
diesel
from2.1
to2.2
- bumped
ft-sys
to0.1.5
- bumped
ft-sys-shared
to0.1.4
- bumped
ft-sys-shared
to0.1.4
impl TryFrom<&SqliteRawValue> for Vec<u8>
acceptsSqliteRawValue::Text()
- fixed
ft_sdk::data::browser_redirect_with_cookie()
, it was not setting cookie earlier.
- Due to mistake in previous release, the ft-sys and ft-sys-shared were not upgraded to latest versions.
- Decoupled session store from
auth-provider
feature.ft_sdk::session
module can be used to interact with the session store - Move
ft_sdk::auth::SessionID
toft_sdk::SessionID
. Theft_sdk::session
replacesft_sdk::auth::session
- add
ft_sdk::SessionData
which can only be constructed throughSessionId::data()
and is used to interact with the session store. ft_sdk::utils::uuid_v8
function to generate uuids.- Impl
Display
forft_sdk::PlainText
. - Derive
Clone
forft_sdk::Cookie
andft_sdk::Host
- Added
ft_sdk::auth::provider::user_data_by_id
convenience function to get user data by id. - Added
ft_sdk::auth::ProviderData::first_email
to get the first email (verified or unverified) of the user. - Removed
ft_sdk::auth::provider::LoginError::SetUserIDError
and addedft_sdk::auth::provider::LoginError::SessionError
- Added
ft_sdk::data::browser_redirect_with_cookie()
: redirect and set-cookie do not work well together, this function be used to work around that issue. - Bumped
ft-sys
to0.1.4
- Bumped
ft-sys-shared
to `0.1.3
- Bumped
ft-sys-shared
to0.1.3
- Added
ft_sys_shared::TRACKER_KEY
constant
- fix: fill
UserData::email
with user's verified emails (or unverified emails if no verified email is present). - fix: use
fastn_user.identity
column to fillUserData::identity
. - make
ft_sdk::auth::user_data_by_query
public.
- Bug fix: Cookie related bug introduced in previous release.
- Bug fix:
fastn-sid-1
cookie was found when we tryft_sdk::Cookie<"fastn-sid">
.
- removed
ft_sdk::processor::redirect()
in favor offt_sdk::processor::{temporary,permanent}_redirect()
- the
ft_sdk::processor::*_redirect
helpers return redirect response instead of json response
- added default
String
toft_sdk::Query<const KEY: &'static str, T = String>
so its easy to migrate fromft-sdk: 0.1.6
.
- removed migration framework. we are adding migration feature to fastn core itself, so no need to maintain it here.
- support for optional query parameters in
ft_sdk::Query
. - ft-derive 0.1.1
- removed migration proc macro
- added
#[serde(default)]
toft_sdk::auth::ProviderData
- added
#[derive(Default)
toft_sdk::auth::ProviderData
- added
#[derive(Debug)
toft_sdk::auth::{UserId, SessionID, Counter}
ft_sdk::auth::provider::user_data_by_custom_attribute
: get the user that matching the provided custom key.- make
fastn_user::identity
nullable,fastn_user::data
non-nullable andfastn_session::data
non-nullable. - updated
diesel
requirement to">=2, <2.2"
, we do not yet work with recently released diesel-2.2.
- added
ft_sdk::auth_provider::update_user()
ft_sdk::auth_provider::create_user()
no longer returnssession id
, instead returns theuser id
of the created user. also it does not automatically log user in, call toft_sdk::auth_provider::login()
is now required to explicitly log user in.- added
ft_sdk::data::binary()
andft_sdk::data::download()
helpers to construct http responses.
- updated
ft-sys
to0.1.3
- bring back
ft_sdk::auth::user_data_by_query
, used by few things behind feature flag
- removed
auth-providers
,sqlite-default
andpostgres-default
features andft_sys::Connection
- updated
ft-sys
to0.1.2
- added migration framework
- added support for
fastn_user
,fastn_session
,fastn_email_queue
tables - added auth and auth provider framework
- removed
ft_sdk::{CookieExt, Query, QueryExt, JsonBody, JsonBodyExt}
- removed
ft_sdk::In
- removed
ft_sdk::Layout
framework - added
ft_sdk::send_email
- added
ft_sdk::server_error!()
,ft_fdk::not_found!()
,ft_sdk::unauthorised!()
- added from_request extractors for
cookie
,form
,headers
,hidden
,host
,path
,optional
,mountpoint
,query
,required
- added
ft_sdk::{processor, form, data}
for handling http requests - added
ft-derive
, and re-exportedft_sdk::{form, processor, wrapped_processor, data, migration}!()
- added
ft_sdk::dbg_query
- added
ft_sdk::Rng
to generate random numbers
Initial release with these macros: {form, processor, wrapped_processor, data, migration}!()
. Should
be used via ft-sdk
.
- upgraded
ft-sys-shared
to0.1.2
- re-organised code using feature flags
- added sqlite backend
- renamed ft_sys::diesel to ft_sys::diesel_pg
- removed
ft_sys::env::ud
, useft_sdk::auth::ud
instead ft_sys::println!
works in non wasm also- removed non-working
ft_sys::http::{get,post}
and addedft_sys::http::send
- created
ft_sys::{Connection, ConnectionError}
No change, this is good enough for wider use so bumping to 0.1.2
.
- added
SESSION_KEY
- changed
UserData.username
toUserData.identity
- added
DatabaseErrorKind
- changed
DbError::DatabaseError
(replacedcode
withkind
)
- Added
impl rusqlite::ToSql for SqliteRawValue
- Added sqlite related types.
- Updated: ft-sys
0.1.0 -> 0.1.1
- Added:
ft_sys::env::random() -> f64
to generate a random number.
- Initial Release
- Initial Release
- Initial Release