Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flatted

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flatted - npm Package Compare versions

Comparing version 3.2.2 to 3.2.3

.github/workflows/node.js.yml

2

index.js

@@ -127,2 +127,2 @@ self.Flatted = (function (exports) {

}({}));
})({});
{
"name": "flatted",
"version": "3.2.2",
"version": "3.2.3",
"description": "A super light and fast circular JSON parser.",

@@ -15,5 +15,5 @@ "unpkg": "min.js",

"size": "cat index.js | wc -c;cat min.js | wc -c;gzip -c9 min.js | wc -c;cat min.js | brotli | wc -c; cat es.js | brotli | wc -c",
"coveralls": "c8 report --reporter=text-lcov | coveralls",
"test": "c8 node test/index.js",
"test:php": "php php/test.php"
"test:php": "php php/test.php",
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info"
},

@@ -38,16 +38,16 @@ "repository": {

"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@ungap/structured-clone": "^0.3.4",
"ascjs": "^5.0.1",
"c8": "^7.7.3",
"c8": "^7.10.0",
"circular-json": "^0.5.9",
"circular-json-es6": "^2.0.2",
"coveralls": "^3.1.1",
"drop-babel-typeof": "^1.0.3",
"jsan": "^3.1.13",
"rollup": "^2.52.8",
"rollup": "^2.59.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.2",
"terser": "^5.7.1"
"terser": "^5.9.0"
},

@@ -54,0 +54,0 @@ "module": "./esm/index.js",

@@ -9,2 +9,14 @@ # flatted

## Announcement 📣
There 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).
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*.
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 👍
- - -
A super light (0.5K) and fast circular JSON parser, directly from the creator of [CircularJSON](https://github.com/WebReflection/circular-json/#circularjson).

@@ -11,0 +23,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc