From 63dfe8eab499979bcc2f7829e82464e13899c895 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 14 Jun 2023 14:02:53 +0800 Subject: [PATCH] fix: add isGloballyWhitelisted back, but deprecated (#8556) 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