Skip to content

Allow parse and stringify extension #120

Description

@DaddyWarbucks

I would like to see two methods added to this class parse(string) and stringify(data). And those methods should just return their JSON method by default and should be used to parse/stringify the store.
The following two places would be updated to use this.parse or this.stringify

This would allow the user to extend the service class and use their own parser. My specific example for this is using JSON Compression to compress the store before storing it in storage and decompress the store when pulling it out of storage.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions