From 0976f81df89d647eda6ba7ed08a6685388ee58b9 Mon Sep 17 00:00:00 2001 From: Stan Lewis Date: Mon, 12 Feb 2024 09:11:36 -0500 Subject: [PATCH] chore(app): remove deprecation warning (#961) This change updates the options being passed to Scalprum to remove a deprecation warning that was being printed to the browser console. Signed-off-by: Stan Lewis --- .changeset/twenty-falcons-work.md | 5 +++++ packages/app/src/components/DynamicRoot/DynamicRoot.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/twenty-falcons-work.md diff --git a/.changeset/twenty-falcons-work.md b/.changeset/twenty-falcons-work.md new file mode 100644 index 0000000000..fe9f4f8160 --- /dev/null +++ b/.changeset/twenty-falcons-work.md @@ -0,0 +1,5 @@ +--- +'app': patch +--- + +Update from using a deprecated Scalprum API to remove a console warning message diff --git a/packages/app/src/components/DynamicRoot/DynamicRoot.tsx b/packages/app/src/components/DynamicRoot/DynamicRoot.tsx index 9ae3ba9ef1..35c5da8fb9 100644 --- a/packages/app/src/components/DynamicRoot/DynamicRoot.tsx +++ b/packages/app/src/components/DynamicRoot/DynamicRoot.tsx @@ -320,7 +320,7 @@ const ScalprumRoot = ({ config={value?.scalprumConfig ?? {}} pluginSDKOptions={{ pluginLoaderOptions: { - postProcessManifest: manifest => { + transformPluginManifest: manifest => { return { ...manifest, loadScripts: manifest.loadScripts.map(