lowdb
lowdb copied to clipboard
fix: make LocalStorage adapter available in the browser
trafficstars
https://github.com/typicode/lowdb/pull/528 cause this issue, it breaks Browser example.
@typicode hi can you review this pull?
Hey,
Sorry for the late reply.
As part of v4/v5 update, I went ahead and simply removed global. I tested it and it works in Vite and CodeSandbox (with .js).
Also TypeScript doesn't seem to complain when lib has DOM in tsconfig.json.
Is there still a failing use case that I may be missing? Or v5 fixes your initial issue?
New version looks good but import path of adapters breaks old code