From: Haoqun Jiang Date: Wed, 14 Jun 2023 06:02:53 +0000 (+0800) Subject: fix: add isGloballyWhitelisted back, but deprecated (#8556) X-Git-Tag: v3.3.5~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63dfe8eab499979bcc2f7829e82464e13899c895;p=thirdparty%2Fvuejs%2Fcore.git fix: add isGloballyWhitelisted back, but deprecated (#8556) Fixes the regression described at https://github.com/vuejs/core/issues/8416#issuecomment-1566583260 --- diff --git a/packages/shared/src/globalsAllowList.ts b/packages/shared/src/globalsAllowList.ts index c303be11d4..4af518c22f 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