From 9747cdd7d171f3539fef0fec85c054c499f787dd Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Tue, 3 Oct 2023 10:22:17 +0200 Subject: [PATCH] Sandbox: Update to latest near membrane version ^0.13.0 (#75605) * Sandbox: Update to latest near membrane version ^0.13.0 * Use exact version * Replace throw with reject * Add nera membrane to renovate skip list --- .github/renovate.json5 | 3 ++ package.json | 6 +-- .../plugins/sandbox/sandbox_plugin_loader.ts | 42 +--------------- yarn.lock | 48 +++++++++---------- 4 files changed, 31 insertions(+), 68 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 2f760c42165..be44fa33c7d 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -16,6 +16,9 @@ "systemjs", "ts-loader", // we should remove ts-loader and use babel-loader instead "ora", // we should bump this once we move to esm modules + "@locker/near-membrane-dom", // critical library. we need to bump this only intentionally + "@locker/near-membrane-shared", // critical library. we need to bump this only intentionally + "@locker/near-membrane-shared-dom", // critical library. we need to bump this only intentionally ], "includePaths": ["package.json", "packages/**"], "ignorePaths": ["emails/**", "plugins-bundled/**", "**/mocks/**"], diff --git a/package.json b/package.json index def058bf1ac..fdf917b05fc 100644 --- a/package.json +++ b/package.json @@ -259,9 +259,9 @@ "@lezer/common": "1.0.2", "@lezer/highlight": "1.1.3", "@lezer/lr": "1.3.3", - "@locker/near-membrane-dom": "^0.12.15", - "@locker/near-membrane-shared": "^0.12.15", - "@locker/near-membrane-shared-dom": "^0.12.15", + "@locker/near-membrane-dom": "0.13.3", + "@locker/near-membrane-shared": "0.13.3", + "@locker/near-membrane-shared-dom": "0.13.3", "@opentelemetry/api": "1.4.1", "@opentelemetry/exporter-collector": "0.25.0", "@opentelemetry/semantic-conventions": "1.15.0", diff --git a/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts b/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts index e169905fab6..46b901f74ae 100644 --- a/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts +++ b/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts @@ -161,22 +161,6 @@ async function doImportPluginModuleInSandbox(meta: PluginMeta): Promise {}, - error: getActivityErrorHandler(meta.id), - }; - }, - log: () => {}, - error: () => {}, - }, }); patchSandboxEnvironmentPrototype(sandboxEnvironment); @@ -186,8 +170,7 @@ async function doImportPluginModuleInSandbox(meta: PluginMeta): Promise