@vue/compiler-core
Advanced tools
Comparing version 3.0.11 to 3.1.0-beta.1
@@ -120,2 +120,4 @@ import { generateCodeFrame } from '@vue/shared'; | ||
export declare function checkCompatEnabled(key: CompilerDeprecationTypes, context: ParserContext | TransformContext, loc: SourceLocation | null, ...args: any[]): boolean; | ||
export declare interface CodegenContext extends Omit<Required<CodegenOptions>, 'bindingMetadata' | 'inline' | 'isTS'> { | ||
@@ -190,4 +192,25 @@ source: string; | ||
declare type CompilerCompatConfig = Partial<Record<CompilerDeprecationTypes, boolean | 'suppress-warning'>> & { | ||
MODE?: 2 | 3; | ||
}; | ||
declare interface CompilerCompatOptions { | ||
compatConfig?: CompilerCompatConfig; | ||
} | ||
export declare const enum CompilerDeprecationTypes { | ||
COMPILER_IS_ON_ELEMENT = "COMPILER_IS_ON_ELEMENT", | ||
COMPILER_V_BIND_SYNC = "COMPILER_V_BIND_SYNC", | ||
COMPILER_V_BIND_PROP = "COMPILER_V_BIND_PROP", | ||
COMPILER_V_BIND_OBJECT_ORDER = "COMPILER_V_BIND_OBJECT_ORDER", | ||
COMPILER_V_ON_NATIVE = "COMPILER_V_ON_NATIVE", | ||
COMPILER_V_IF_V_FOR_PRECEDENCE = "COMPILER_V_IF_V_FOR_PRECEDENCE", | ||
COMPILER_V_FOR_REF = "COMPILER_V_FOR_REF", | ||
COMPILER_NATIVE_TEMPLATE = "COMPILER_NATIVE_TEMPLATE", | ||
COMPILER_INLINE_TEMPLATE = "COMPILER_INLINE_TEMPLATE", | ||
COMPILER_FILTERS = "COMPILER_FILTER" | ||
} | ||
export declare interface CompilerError extends SyntaxError { | ||
code: number; | ||
code: number | string; | ||
loc?: SourceLocation; | ||
@@ -297,3 +320,3 @@ } | ||
export declare function createTransformContext(root: RootNode, { filename, prefixIdentifiers, hoistStatic, cacheHandlers, nodeTransforms, directiveTransforms, transformHoist, isBuiltInComponent, isCustomElement, expressionPlugins, scopeId, slotted, ssr, ssrCssVars, bindingMetadata, inline, isTS, onError }: TransformOptions): TransformContext; | ||
export declare function createTransformContext(root: RootNode, { filename, prefixIdentifiers, hoistStatic, cacheHandlers, nodeTransforms, directiveTransforms, transformHoist, isBuiltInComponent, isCustomElement, expressionPlugins, scopeId, slotted, ssr, ssrCssVars, bindingMetadata, inline, isTS, onError, onWarn, compatConfig }: TransformOptions): TransformContext; | ||
@@ -409,2 +432,7 @@ 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; | ||
declare interface ErrorHandlingOptions { | ||
onWarn?: (warning: CompilerError) => void; | ||
onError?: (error: CompilerError) => void; | ||
} | ||
export declare type ExpressionNode = SimpleExpressionNode | CompoundExpressionNode; | ||
@@ -465,2 +493,7 @@ | ||
isSlot: boolean; | ||
/** | ||
* __COMPAT__ only, indicates a slot function that should be excluded from | ||
* the legacy $scopedSlots instance property. | ||
*/ | ||
isNonScopedSlot?: boolean; | ||
} | ||
@@ -563,2 +596,4 @@ | ||
declare type MergedParserOptions = Omit<Required<ParserOptions>, OptionalOptions> & Pick<ParserOptions, OptionalOptions>; | ||
export declare type Namespace = number; | ||
@@ -617,6 +652,20 @@ | ||
declare type OptionalOptions = 'whitespace' | 'isNativeTag' | 'isBuiltInComponent' | keyof CompilerCompatOptions; | ||
declare type ParentNode_2 = RootNode | ElementNode | IfBranchNode | ForNode; | ||
export { ParentNode_2 as ParentNode } | ||
export declare interface ParserOptions { | ||
declare interface ParserContext { | ||
options: MergedParserOptions; | ||
readonly originalSource: string; | ||
source: string; | ||
offset: number; | ||
line: number; | ||
column: number; | ||
inPre: boolean; | ||
inVPre: boolean; | ||
onWarn: NonNullable<ErrorHandlingOptions['onWarn']>; | ||
} | ||
export declare interface ParserOptions extends ErrorHandlingOptions, CompilerCompatOptions { | ||
/** | ||
@@ -655,6 +704,9 @@ * e.g. platform native elements, e.g. `<div>` for browsers | ||
/** | ||
* Whitespace handling strategy | ||
*/ | ||
whitespace?: 'preserve' | 'condense'; | ||
/** | ||
* Only needed for DOM compilers | ||
*/ | ||
decodeEntities?: (rawText: string, asAttr: boolean) => string; | ||
onError?: (error: CompilerError) => void; | ||
/** | ||
@@ -720,2 +772,4 @@ * Keep comments in the templates AST, even in production | ||
export declare const RESOLVE_FILTER: unique symbol; | ||
export declare function resolveComponentType(node: ComponentNode, context: TransformContext, ssr?: boolean): string | symbol | CallExpression; | ||
@@ -740,2 +794,3 @@ | ||
codegenNode?: TemplateChildNode | JSChildNode | BlockStatement; | ||
filters?: string[]; | ||
} | ||
@@ -885,3 +940,3 @@ | ||
export declare function toValidAssetId(name: string, type: 'component' | 'directive'): string; | ||
export declare function toValidAssetId(name: string, type: 'component' | 'directive' | 'filter'): string; | ||
@@ -896,3 +951,3 @@ export declare const trackSlotScopes: NodeTransform; | ||
export declare interface TransformContext extends Required<Omit<TransformOptions, 'filename'>> { | ||
export declare interface TransformContext extends Required<Omit<TransformOptions, 'filename' | keyof CompilerCompatOptions>>, CompilerCompatOptions { | ||
selfName: string | null; | ||
@@ -930,2 +985,3 @@ root: RootNode; | ||
constantCache: Map<TemplateChildNode, ConstantTypes>; | ||
filters?: Set<string>; | ||
} | ||
@@ -941,3 +997,3 @@ | ||
export declare interface TransformOptions extends SharedTransformCodegenOptions { | ||
export declare interface TransformOptions extends SharedTransformCodegenOptions, ErrorHandlingOptions, CompilerCompatOptions { | ||
/** | ||
@@ -1017,3 +1073,2 @@ * An array of node transforms to be applied to every AST node. | ||
ssrCssVars?: string; | ||
onError?: (error: CompilerError) => void; | ||
} | ||
@@ -1042,2 +1097,4 @@ | ||
export declare function warnDeprecation(key: CompilerDeprecationTypes, context: ParserContext | TransformContext, loc: SourceLocation | null, ...args: any[]): void; | ||
export declare const WITH_CTX: unique symbol; | ||
@@ -1044,0 +1101,0 @@ |
{ | ||
"name": "@vue/compiler-core", | ||
"version": "3.0.11", | ||
"version": "3.1.0-beta.1", | ||
"description": "@vue/compiler-core", | ||
@@ -14,2 +14,3 @@ "main": "index.js", | ||
"name": "VueCompilerCore", | ||
"compat": true, | ||
"formats": [ | ||
@@ -35,3 +36,3 @@ "esm-bundler", | ||
"dependencies": { | ||
"@vue/shared": "3.0.11", | ||
"@vue/shared": "3.1.0-beta.1", | ||
"@babel/parser": "^7.12.0", | ||
@@ -38,0 +39,0 @@ "@babel/types": "^7.12.0", |
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
609068
15255
1
77
+ Added@vue/shared@3.1.0-beta.1(transitive)
- Removed@vue/shared@3.0.11(transitive)
Updated@vue/shared@3.1.0-beta.1