Skip to content

Override default deserialization #5

Closed as not planned
Closed as not planned
@jarrvis

Description

@jarrvis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis issue or pull request is old

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions