Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(settings): OptionType.ARRAY | OptionType.REGEX #696

Closed
wants to merge 5 commits into from

Conversation

Vap0r1ze
Copy link
Contributor

@Vap0r1ze Vap0r1ze commented Mar 25, 2023

Closes #615

Warning
Before you test this PR, make a backup of your settings file. This PR is WIP and changes the way settings are (de)serialized.

Adds future support for "impure" types (types aren't JSON values). Right now it adds Arrays, RegExps, and Maps; the example impl is a TextReplace plugin. Not sure what use-case map could have, but I added it before so bleh.

TODO:

  • PluginModal components for each setting type
  • Testing the (de)serialization

@Mylloon
Copy link
Contributor

Mylloon commented Sep 19, 2023

Any update on this?

@Vendicated
Copy link
Owner

this is very stale now and i don't quite see the use case for wanting to store maps or regexes. those would better be stored in indexeddb. it seems a bit overengineered to need this serialisation step instead of just continuing to use basic json

as for arrays, definitely useful but better implemented like described in #2210

thanks for your efforts regardless <3

@Vendicated Vendicated closed this May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Array Settings type
3 participants