]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: add isGloballyWhitelisted back, but deprecated (#8556)
authorHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 14 Jun 2023 06:02:53 +0000 (14:02 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 06:02:53 +0000 (14:02 +0800)
Fixes the regression described at https://github.com/vuejs/core/issues/8416#issuecomment-1566583260

packages/shared/src/globalsAllowList.ts

index c303be11d4cf2d06065257c8ae36dacecd3d4ddd..4af518c22f1138b47ee03e15a37504a81a0b42fa 100644 (file)
@@ -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