browser-level icon indicating copy to clipboard operation
browser-level copied to clipboard

Override default deserialization

Open jarrvis opened this issue 1 year ago • 1 comments

Is there a way to bypass deserialize call after getting data? https://github.com/Level/browser-level/blob/main/index.js#L135

I need to work with js objects with no encoding. Details here: https://gist.github.com/saulshanabrook/b74984677bccd08b028b30d9968623f5

I can disable encoding over level's public API but deserialization of browser-level still encodes objects as Uint8Array.

I understand that using level without encoding sounds weird as I may as well just use indexeddb directly if I don't need encodings. I use level to get a little nicer API and browser / nodejs / in memry abstraction.

jarrvis avatar Nov 29 '22 11:11 jarrvis