file-system-cache
file-system-cache copied to clipboard
Support other datatypes such as Dates / Disallow other datatypes
Currently datatypes such as Dates, Sets or Maps are not supported as JSON can't represent those types.
The solutions I'm thinking of are:
- Only allow types that can be converted losslessly to JSON, for example JsonValue in the library type-fest
- Don't use JSON and use an alternative, libraries such as devalue and serialize-javascript might be an option
https://github.com/Rich-Harris/devalue