@vue/compiler-core-canary
Advanced tools
Comparing version 3.20240624.0 to 3.20240624.1-minor.0
@@ -37,3 +37,10 @@ import { Node as Node$1, Identifier, Function, BlockStatement as BlockStatement$1, Program, ObjectProperty } from '@babel/types'; | ||
export declare const SET_BLOCK_TRACKING: unique symbol; | ||
/** | ||
* @deprecated no longer needed in 3.5+ because we no longer hoist element nodes | ||
* but kept for backwards compat | ||
*/ | ||
export declare const PUSH_SCOPE_ID: unique symbol; | ||
/** | ||
* @deprecated kept for backwards compat | ||
*/ | ||
export declare const POP_SCOPE_ID: unique symbol; | ||
@@ -92,3 +99,3 @@ export declare const WITH_CTX: unique symbol; | ||
temps: number; | ||
cached: number; | ||
cached: (CacheExpression | null)[]; | ||
identifiers: { | ||
@@ -117,3 +124,3 @@ [name: string]: number | undefined; | ||
hoist(exp: string | JSChildNode | ArrayExpression): SimpleExpressionNode; | ||
cache<T extends JSChildNode>(exp: T, isVNode?: boolean): CacheExpression | T; | ||
cache(exp: JSChildNode, isVNode?: boolean): CacheExpression; | ||
constantCache: WeakMap<TemplateChildNode, ConstantTypes>; | ||
@@ -206,3 +213,3 @@ filters?: Set<string>; | ||
imports: ImportItem[]; | ||
cached: number; | ||
cached: (CacheExpression | null)[]; | ||
temps: number; | ||
@@ -285,3 +292,3 @@ ssrHelpers?: symbol[]; | ||
CAN_SKIP_PATCH = 1, | ||
CAN_HOIST = 2, | ||
CAN_CACHE = 2, | ||
CAN_STRINGIFY = 3 | ||
@@ -371,3 +378,3 @@ } | ||
props: PropsExpression | undefined; | ||
children: TemplateChildNode[] | TemplateTextChildNode | SlotsExpression | ForRenderListExpression | SimpleExpressionNode | undefined; | ||
children: TemplateChildNode[] | TemplateTextChildNode | SlotsExpression | ForRenderListExpression | SimpleExpressionNode | CacheExpression | undefined; | ||
patchFlag: string | undefined; | ||
@@ -427,3 +434,4 @@ dynamicProps: string | SimpleExpressionNode | undefined; | ||
value: JSChildNode; | ||
isVNode: boolean; | ||
needPauseTracking: boolean; | ||
needArraySpread: boolean; | ||
} | ||
@@ -488,3 +496,3 @@ export interface MemoExpression extends CallExpression { | ||
export interface SlotFunctionExpression extends FunctionExpression { | ||
returns: TemplateChildNode[]; | ||
returns: TemplateChildNode[] | CacheExpression; | ||
} | ||
@@ -548,3 +556,3 @@ export interface DynamicSlotsExpression extends CallExpression { | ||
export declare function createConditionalExpression(test: ConditionalExpression['test'], consequent: ConditionalExpression['consequent'], alternate: ConditionalExpression['alternate'], newline?: boolean): ConditionalExpression; | ||
export declare function createCacheExpression(index: number, value: JSChildNode, isVNode?: boolean): CacheExpression; | ||
export declare function createCacheExpression(index: number, value: JSChildNode, needPauseTracking?: boolean): CacheExpression; | ||
export declare function createBlockStatement(body: BlockStatement['body']): BlockStatement; | ||
@@ -846,3 +854,3 @@ export declare function createTemplateLiteral(elements: TemplateLiteral['elements']): TemplateLiteral; | ||
/** | ||
* Hoist static VNodes and props objects to `_hoisted_x` constants | ||
* Cache static VNodes and props objects to `_hoisted_x` constants | ||
* @default false | ||
@@ -1031,3 +1039,3 @@ */ | ||
export declare function toValidAssetId(name: string, type: 'component' | 'directive' | 'filter'): string; | ||
export declare function hasScopeRef(node: TemplateChildNode | IfBranchNode | ExpressionNode | undefined, ids: TransformContext['identifiers']): boolean; | ||
export declare function hasScopeRef(node: TemplateChildNode | IfBranchNode | ExpressionNode | CacheExpression | undefined, ids: TransformContext['identifiers']): boolean; | ||
export declare function getMemoedVNodeCall(node: BlockCodegenNode | MemoExpression): VNodeCall | RenderSlotCall; | ||
@@ -1083,3 +1091,3 @@ export declare const forAliasRE: RegExp; | ||
export declare function getConstantType(node: TemplateChildNode | SimpleExpressionNode, context: TransformContext): ConstantTypes; | ||
export declare function getConstantType(node: TemplateChildNode | SimpleExpressionNode | CacheExpression, context: TransformContext): ConstantTypes; | ||
{ | ||
"name": "@vue/compiler-core-canary", | ||
"version": "3.20240624.0", | ||
"version": "3.20240624.1-minor.0", | ||
"description": "@vue/compiler-core", | ||
@@ -50,3 +50,3 @@ "main": "index.js", | ||
"@babel/parser": "^7.24.7", | ||
"@vue/shared": "npm:@vue/shared-canary@3.20240624.0", | ||
"@vue/shared": "npm:@vue/shared-canary@3.20240624.1-minor.0", | ||
"entities": "^4.5.0", | ||
@@ -53,0 +53,0 @@ "estree-walker": "^2.0.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
609770
19909
1
+ Added@vue/shared-canary@3.20240624.1-minor.0(transitive)
- Removed@vue/shared-canary@3.20240624.0(transitive)
Updated@vue/shared@npm:@vue/shared-canary@3.20240624.1-minor.0