- TypeScript version 5.6+ is required.
This library still works with Angular v16+, but if you use the strict peer dependencies setting (enabled by default) in your package manager, TypeScript version 5.6+ is only supported by Angular v19.
This is caused by a different method of importing the localForge library, and this method is required for SSR support.
- SSR is now supported 🎉
You no longer need to wrap storage initialization in afterNextRender()
.
Angular 18 is now supported.
Add info about getWritableSignal()
to README.
Method getWritableSignal()
will not write initial value to the storage anymore.
Fix: Do not emit an observable and signal if no value is found during the initial read in the storage.
Fix types in functions overloading.
New method: getWritableSignal()
- returns a signal that you can modify using set()
or update()
methods, and these modifications will also update the storage key.
More types overloading for getSignal()
🤦
Better TypeScript types for getSignal()
, remove SignalOptions
type (was not part of public API).
Better TypeScript types for getSignal()
and SignalOptions
.
Method getSignal()
now accepts SignalOptions
as the second argument. This allows you to set the initial value and the equality check function.
-
This library has been tested in production for a long enough time.
-
No breaking changes in the API are expected in the near future.
-
So we can indeed call it v1.0.0!
Use BroadcastChannel to sync changes of IndexedDB stores in multiple tabs.
More docs, more tests.
Improve documentation.