From f708cf3a77f29379f2967917ae858742215caa09 Mon Sep 17 00:00:00 2001 From: Alex Johnson Date: Fri, 11 Oct 2024 08:54:20 -0400 Subject: [PATCH 1/2] remove whitespace in metadata.json --- dash/development/component_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash/development/component_generator.py b/dash/development/component_generator.py index 35824ba692..338ca3d144 100644 --- a/dash/development/component_generator.py +++ b/dash/development/component_generator.py @@ -138,7 +138,7 @@ def generate_components( with open( os.path.join(project_shortname, "metadata.json"), "w", encoding="utf-8" ) as f: - json.dump(metadata, f, indent=2) + json.dump(metadata, f, separators=(",", ":")) generate_imports(project_shortname, components) From 6e65eceb9431f8f7c02c0edf09a88b0d4811307f Mon Sep 17 00:00:00 2001 From: Alex Johnson Date: Fri, 11 Oct 2024 09:12:21 -0400 Subject: [PATCH 2/2] changelog for #3034 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54af4cbea1..d205e39c60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - [#3011](https://github.com/plotly/dash/pull/3011) Fixed an exception error caused by assigning `None` to array properties with `exact` or `shape` element types. Fixes [#3010](https://github.com/plotly/dash/issues/3010) - [#2991](https://github.com/plotly/dash/pull/2991) Add support for URL decoding of the search parameter for pages. - [#3025](https://github.com/plotly/dash/pull/3025) Fix no output callback with error handler setting the response to NoUpdate and triggering an error. +- [#3034](https://github.com/plotly/dash/pull/3034) Remove whitespace from `metadata.json` files to reduce package size ## [2.18.1] - 2024-09-12