flatted
Advanced tools
Comparing version 3.2.4 to 3.2.5
{ | ||
"name": "flatted", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "A super light and fast circular JSON parser.", | ||
@@ -55,5 +55,8 @@ "unpkg": "min.js", | ||
"exports": { | ||
"import": "./esm/index.js", | ||
"default": "./cjs/index.js" | ||
".": { | ||
"import": "./esm/index.js", | ||
"default": "./cjs/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
} | ||
} |
@@ -11,9 +11,9 @@ # flatted | ||
There is a standard approach to recursion and more data-types than what JSON allow, and it's part of this [Structured Clone Module](https://github.com/ungap/structured-clone/#readme). | ||
There is a standard approach to recursion and more data-types than what JSON allows, and it's part of the [Structured Clone polyfill](https://github.com/ungap/structured-clone/#readme). | ||
Beside acting as a polyfill, its `@ungap/structured-clone/json` export provides both `stringify` and `parse`, and it's been tested for being faster than *flatted*, but its produced output is also smaller than *flatted*. | ||
Beside acting as a polyfill, its `@ungap/structured-clone/json` export provides both `stringify` and `parse`, and it's been tested for being faster than *flatted*, but its produced output is also smaller than *flatted* in general. | ||
The *@ungap/structured-clone* module is, in short, a drop in replacement for *flatted*, but it's not compatible with *flatted* specialized syntax. | ||
However, if recursion, as well as more data-types, are what you are after, or interesting for your projects, consider switching to this new module whenever you can 👍 | ||
However, if recursion, as well as more data-types, are what you are after, or interesting for your projects/use cases, consider switching to this new module whenever you can 👍 | ||
@@ -46,3 +46,3 @@ - - - | ||
## toJSON and from JSON | ||
## toJSON and fromJSON | ||
@@ -49,0 +49,0 @@ If you'd like to implicitly survive JSON serialization, these two helpers helps: |
78704