dirty 0.1.5 dirty: ^0.1.5 copied to clipboard
Dart Dirty is a persistent, server-side HashMap - a dirt simple nosql DB.
0.1.5 #
Test Changes #
unittest
package has been removed and replaced with test- a few new tests have also been added
Core library changes #
OnLoadCallback
typedef added, constructoronLoad
parameter now has to match itoperator[]
,remove
,containsKey
interface overrides have been adjusted to to match declaration signatureaddAll
now adds keys to queue and attempts to flush as well, just likeoperator[]=
- Initialization changes:
- if the DB file is not present on the disk, it will be created. If that cannot be performed, an exception is raised.
- If flushing is in progress and a new flush is invoked, Dirty will no longer fail silently, a
StateError
will be raised. - Fixed an issue: sometimes keys would not get persisted
Code cleanup #
- Doc comments have been converted from block comments to
///
format - Minor code-style upgrades
- strong mode enabled for library
Possible breaking changes #
- changes to
addAll
- database file will be created on Class instantiation if it is not present on path