From dd1ac444bc63256ca3b491701beaebe2651dde08 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 12 Jun 2023 21:43:51 +0800 Subject: [PATCH] fix: add isGloballyWhitelisted back, but deprecated Fixes the regression described at https://github.com/vuejs/core/issues/8416#issuecomment-1566583260 --- packages/shared/src/globalsAllowList.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/shared/src/globalsAllowList.ts b/packages/shared/src/globalsAllowList.ts index c303be11d4c..4af518c22f1 100644 --- a/packages/shared/src/globalsAllowList.ts +++ b/packages/shared/src/globalsAllowList.ts @@ -6,3 +6,6 @@ const GLOBALS_ALLOWED = 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console' export const isGloballyAllowed = /*#__PURE__*/ makeMap(GLOBALS_ALLOWED) + +/** @deprecated use `isGloballyAllowed` instead */ +export const isGloballyWhitelisted = isGloballyAllowed