Comments (3)
@Rich-Harris do u consider option to ignore functions/symbols and throw warning instead of error or its wont be in this lib by design?
from devalue.
It's by design. For the use case that this library is intended for, there's no point in serializing values with less than 100% fidelity
from devalue.
@tevel you can do:
Object.defineProperty(store, "t", {enumerable: false, configurable: true, value: t});
It won't be transferred.
from devalue.
Related Issues (20)
- Creating A Dictionary For JSON Keys? HOT 1
- How to actually recover value form stringified form? HOT 1
- Support a `.toJSON`-like interface
- Error - No "exports" main defined in /var/task/node_modules/devalue/package.json HOT 5
- Error with certain build setups: No known conditions for "." entry in "devalue" package
- update example-link in description HOT 3
- [Feature request] How about serializing arbitrary class instances? HOT 1
- [Feature request] Improve TypeScript support
- don't throw an error on invalid dates when using `stringify` HOT 1
- [Feature request] some means to specify properties that should not be seralized - e.g. Symbol properties HOT 2
- `.uneval()` does not handle nested maps properly
- Allow `ReadableStream`s for `parse`
- Can the new line character appear in the serialized string?
- [meta] invalid JSON test is broken on Node 20
- Symbol descriptions are printed literally
- devalue is too strict about what can be serialized with custom types
- Support for async revivers
- What is the difference between devalue and superjson?
- Why can't symbolic keys be stringified?
- [Feature Request] Support URLs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devalue.