Hakan Ozkok
Hakan Ozkok
@scotttrinh yep, it's done. I added tests and updated doc.
Hi @scotttrinh, You are right, it might be a breaking change for existing users. One way to handle this situation might be to deprecate the use of `instance(name)` where name...
@scotttrinh Thinking a bit further on it, for anyone to reach a database with `instance` function, they have to `createInstace` first. so there wouldn't be anything broken. In your use...
For the existing users, accessing `$localForage` without `instance` or `createInstance` will still refer to `lfInstances[name]`, so there is no problem with it. I also changed `$localForage.instance()` (with no arguments) to...
One workaround you could apply is; ```py @dataclass class A: timestamp: datetime.datetime = field(default_factory=lambda: datetime.datetime.now()) ``` By doing this, `datetime.datetime.now` is not going to be referenced immediately during module load...