Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Remove json-to-pretty-yaml (#81085)

Andrei Chernykhfa7e1e598a02
diff --git a/bun.lock b/bun.lock
index 1204f445381..12d69fd3c75 100644
--- a/bun.lock
+++ b/bun.lock
@@ -299,7 +299,6 @@
"jest-junit": "^16.0.0",
"jest-watch-typeahead": "^3.0.0",
"jose": "^5.6.3",
- "json-to-pretty-yaml": "^1.2.2",
"jsonwebtoken": "^9.0.3",
"knex": "^2.4.2",
"lint-staged": "^16.4.0",
@@ -3728,8 +3727,6 @@
"json-stringify-safe": ["[email protected]", "", {}, "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="],
- "json-to-pretty-yaml": ["[email protected]", "", { "dependencies": { "remedial": "^1.0.7", "remove-trailing-spaces": "^1.0.6" } }, "sha512-rvm6hunfCcqegwYaG5T4yKJWxc9FXFgBVrcTZ4XfSVRwa5HA/Xs+vB/Eo9treYYHCeNM0nrSUr82V/M31Urc7A=="],
-
"json5": ["[email protected]", "", { "bin": { "json5": "lib/cli.js" } }, "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="],
"jsonc-parser": ["[email protected]", "", {}, "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ=="],
@@ -4738,12 +4735,8 @@
"remark-stringify": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-to-markdown": "^2.0.0", "unified": "^11.0.0" } }, "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw=="],
- "remedial": ["[email protected]", "", {}, "sha512-/62tYiOe6DzS5BqVsNpH/nkGlX45C/Sp6V+NtiN6JQNS1Viay7cWkazmRkrQrdFj2eshDe96SIQNIoMxqhzBOg=="],
-
"remend": ["[email protected]", "", {}, "sha512-iIhggPkhW3hFImKtB10w0dz4EZbs28mV/dmbcYVonWEJ6UGHHpP+bFZnTh6GNWJONg5m+U56JrL+8IxZRdgWjw=="],
- "remove-trailing-spaces": ["[email protected]", "", {}, "sha512-O3vsMYfWighyFbTd8hk8VaSj9UAGENxAtX+//ugIst2RMk5e03h6RoIS+0ylsFxY1gvmPuAY/PO4It+gPEeySA=="],
-
"renderkid": ["[email protected]", "", { "dependencies": { "css-select": "^4.1.3", "dom-converter": "^0.2.0", "htmlparser2": "^6.1.0", "lodash": "^4.17.21", "strip-ansi": "^6.0.1" } }, "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg=="],
"repeating": ["[email protected]", "", { "dependencies": { "is-finite": "^1.0.0" } }, "sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A=="],
diff --git a/package.json b/package.json
index 4424c21632e..d3fa2fdd02d 100644
--- a/package.json
+++ b/package.json
@@ -308,7 +308,6 @@
"jest-junit": "^16.0.0",
"jest-watch-typeahead": "^3.0.0",
"jose": "^5.6.3",
- "json-to-pretty-yaml": "^1.2.2",
"jsonwebtoken": "^9.0.3",
"knex": "^2.4.2",
"lint-staged": "^16.4.0",
diff --git a/rspack.static-viz.config.js b/rspack.static-viz.config.js
index 63a7adedf2a..61d9945b781 100644
--- a/rspack.static-viz.config.js
+++ b/rspack.static-viz.config.js
@@ -1,5 +1,5 @@
const rspack = require("@rspack/core");
-const YAML = require("json-to-pretty-yaml");
+const yaml = require("js-yaml");
const { StatsWriterPlugin } = require("webpack-stats-plugin");
const { WEBPACK_BUNDLE } = require("./frontend/build/shared/constants");
@@ -173,7 +173,7 @@ module.exports = (env) => {
},
filename: "../../../../.github/static-viz-sources.yaml",
transform: (stats) =>
- YAML.stringify({
+ yaml.dump({
static_viz: stats.modules
.filter(
(module) =>