@vue/compiler-core
Advanced tools
Comparing version 3.0.0-beta.20 to 3.0.0-beta.21
@@ -47,2 +47,6 @@ import { generateCodeFrame } from '@vue/shared'; | ||
export declare interface BindingMetadata { | ||
[key: string]: 'data' | 'props' | 'setup' | 'options'; | ||
} | ||
export declare type BlockCodegenNode = VNodeCall | RenderSlotCall; | ||
@@ -82,3 +86,5 @@ | ||
export declare interface CodegenContext extends Required<CodegenOptions> { | ||
export declare const CAPITALIZE: unique symbol; | ||
export declare interface CodegenContext extends Omit<Required<CodegenOptions>, 'bindingMetadata'> { | ||
source: string; | ||
@@ -131,3 +137,3 @@ code: string; | ||
*/ | ||
optimizeBindings?: boolean; | ||
optimizeImports?: boolean; | ||
/** | ||
@@ -145,2 +151,3 @@ * Customize where to import runtime helpers from. | ||
prefixIdentifiers?: boolean; | ||
bindingMetadata?: BindingMetadata; | ||
ssr?: boolean; | ||
@@ -254,3 +261,3 @@ } | ||
export declare function createTransformContext(root: RootNode, { prefixIdentifiers, hoistStatic, cacheHandlers, nodeTransforms, directiveTransforms, transformHoist, isBuiltInComponent, expressionPlugins, scopeId, ssr, onError }: TransformOptions): TransformContext; | ||
export declare function createTransformContext(root: RootNode, { prefixIdentifiers, hoistStatic, cacheHandlers, nodeTransforms, directiveTransforms, transformHoist, isBuiltInComponent, expressionPlugins, scopeId, ssr, ssrCssVars, bindingMetadata, onError }: TransformOptions): TransformContext; | ||
@@ -486,2 +493,4 @@ export declare function createVNodeCall(context: TransformContext | null, tag: VNodeCall['tag'], props?: VNodeCall['props'], children?: VNodeCall['children'], patchFlag?: VNodeCall['patchFlag'], dynamicProps?: VNodeCall['dynamicProps'], directives?: VNodeCall['directives'], isBlock?: VNodeCall['isBlock'], disableTracking?: VNodeCall['disableTracking'], loc?: SourceLocation): VNodeCall; | ||
export declare const isStaticExp: (p: JSChildNode) => p is SimpleExpressionNode; | ||
export declare function isTemplateNode(node: RootNode | TemplateChildNode): node is TemplateNode; | ||
@@ -901,2 +910,12 @@ | ||
ssr?: boolean; | ||
/** | ||
* SFC <style vars> injection string | ||
* needed to render inline CSS variables on component root | ||
*/ | ||
ssrCssVars?: string; | ||
/** | ||
* Optional binding metadata analyzed from script - used to optimize | ||
* binding access when `prefixIdentifiers` is enabled. | ||
*/ | ||
bindingMetadata?: BindingMetadata; | ||
onError?: (error: CompilerError) => void; | ||
@@ -903,0 +922,0 @@ } |
{ | ||
"name": "@vue/compiler-core", | ||
"version": "3.0.0-beta.20", | ||
"version": "3.0.0-beta.21", | ||
"description": "@vue/compiler-core", | ||
@@ -33,8 +33,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"@vue/shared": "3.0.0-beta.20", | ||
"@babel/parser": "^7.8.6", | ||
"@babel/types": "^7.8.6", | ||
"estree-walker": "^0.8.1", | ||
"@vue/shared": "3.0.0-beta.21", | ||
"@babel/parser": "^7.10.4", | ||
"@babel/types": "^7.10.4", | ||
"estree-walker": "^2.0.1", | ||
"source-map": "^0.6.1" | ||
} | ||
} |
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
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
498328
12558
55
+ Added@vue/shared@3.0.0-beta.21(transitive)
+ Addedestree-walker@2.0.2(transitive)
- Removed@vue/shared@3.0.0-beta.20(transitive)
- Removedestree-walker@0.8.1(transitive)
Updated@babel/parser@^7.10.4
Updated@babel/types@^7.10.4
Updated@vue/shared@3.0.0-beta.21
Updatedestree-walker@^2.0.1