tauri-store
Next
Nothing yet.
1.1.0
Features
1.0.2
Documentation
- Update README.
1.0.1
Bug fixes
- Remove accidentally exposed internal command.
1.0.0
Breaking Changes
- Rename
Store::get
toStore::get_raw
. - Rename
Store::try_get
,Store::try_get_or
,Store::try_get_or_default
, andStore::try_get_or_else
toStore::get
,Store::get_or
,Store::get_or_default
, andStore::get_or_else
, respectively. - Rename
Store::state
toStore::raw_state
. - Rename
StoreCollection::try_state
,StoreCollection::try_state_or
,StoreCollection::try_state_or_default
, andStoreCollection::try_state_or_else
toStoreCollection::state
,StoreCollection::state_or
,StoreCollection::state_or_default
, andStoreCollection::state_or_else
, respectively. - Remove
StoreCollection::set_path
and its respective JavaScript command (setStoreCollectionPath
); - Remove
meta.tauristore
file. - Remove
pretty
option from the plugin builder.
Features
- Add
Marshaler
trait for custom serialization and deserialization. - Add
JsonMarshaler
andPrettyJsonMarshaler
to save the stores as JSON files. - Add
TomlMarshaler
andPrettyTomlMarshaler
to save the stores as TOML files. - Add
StoreCollection::app_handle
. - Allow to destroy stores, also deleting their respective files.
- Introduce unchecked variants for
get
methods (e.g.Store::get_unchecked
). - Use sandboxed environment on Android and iOS (thanks @saurL).
- Stabilize store migrations.
0.12.1
Dependencies
- Update minor dependencies.
0.12.0
Features
- Allow adding or removing stores from the save and sync deny lists after the plugin has been built.
- Add
allowSave
,allowSync
,denySave
, anddenySync
commands. - Add
save
andsync
options.
Bug fixes
- Stop unnecessarily requiring
filterKeys
to be set when the strategy is a callback.
0.11.0
Breaking Changes
- Introduce a
CollectionMarker
generic for theStore
andStoreCollection
types to enable plugin interoperability. - Remove top-level
with_store
helper.
Features
- Allow to start stores automatically.
- Add
store_collection_with_marker
.
0.10.5
Features
- Expose
TimeStrategy
,TimeStrategyKind
,LooseTimeStrategyKind
,StoreKeyFilter
, andStoreKeyFilterStrategy
types.
0.10.4
Dependencies
- Update dependencies.
0.10.3
Features
- Add
try_state_or
,try_state_or_default
, andtry_state_or_else
methods.
0.10.2
Dependencies
- Update dependencies.
0.10.1
Documentation
- Update README.
0.10.0
Breaking Changes
- Remove
Store.subscribeKey
.
Features
- Add experimental support for store migrations.
- Use
alien-signals
as the underlying reactivity system.
0.9.0
Breaking Changes
- Use different files for the stores when in development mode.
- Add
StoreId
struct. - Add
WatcherId
struct. - Remove deprecated
StoreFrontendOptions.onError
.
0.8.1
Documentation
- Ensure that Cargo features are properly documented on
docs.rs
.
0.8.0
Breaking Changes
- Add
plugin
feature. Now it's possible usetauri-store
directly as a Tauri plugin. This is enabled by default, so anyone developing a plugin based on thetauri-store
crate should make sure to disable this feature.
0.7.2
Documentation
- Update README.
0.7.1
Bug Fixes
- Remove
#[expect]
attribute.
0.7.0
Features
0.6.0
Breaking Changes
StoreState
is now a struct instead of a type alias.- Remove the
StoreStateExt
trait. - Rename
StoreCollection::store_state
toStoreCollection::state
. - Rename
StoreCollection::try_store_state
toStoreCollection::try_state
.
Features
- Add
Store::try_get_or
,Store::try_get_or_default
, andStore::try_get_or_else
. - Add
StoreCollection::try_get_or
,StoreCollection::try_get_or_default
, andStoreCollection::try_get_or_else
. - Add
ManagerExt::with_store
as a provided method.
Enhancements
Store::patch
,Store::patch_with_source
,Store::set
,StoreCollection::patch
, andStoreCollection::set
now take a generic parameter for the value type.
0.5.0
Breaking Changes
- Remove
unstable-async
feature.
Enhancements
- Add
prelude
module.
0.4.0
Breaking Changes
- Take
&mut self
inStore::watch
andStore::unwatch
. - Return
T
instead ofResult<T, Error>
fromwith_store
functions. Store::set
,Store::patch
, andStore::patch_with_source
are now async.- Remove
ahash
feature. - Remove
boxed
andboxed_ok
macros.
Features
- Add
StoreCollection::default_save_strategy
andStoreCollectionBuilder::default_save_strategy
. - Add
StoreCollection::save_now
,StoreCollection::save_some_now
, andStoreCollection::save_all_now
, to save a store immediately, ignoring the save strategy. - Add
Store::save_on_change
. - Add
Store::save_now
. - Add
Store::set_options
. - Add
Store::save_strategy
andStore::set_save_strategy
. - Allow debouncing and throttling when saving the stores.
- Add
boxed
function.
Enhancements
StoreCollectionBuilder::autosave
,StoreCollection::clear_autosave
, andStoreCollection::set_autosave
are no longer gated by theunstable-async
feature.
Bug Fixes
- Consume the first autosave tick immediately before starting the interval.
Performance
- Use the
ResourceTable
to manage each store independently, instead of using a single hash map for all of them.