@vue/compiler-sfc
Advanced tools
Comparing version 3.2.4 to 3.2.5
@@ -7,7 +7,8 @@ import { parse as babelParse } from '@babel/parser'; | ||
import { ElementNode } from '@vue/compiler-core'; | ||
import { extractIdentifiers } from '@vue/compiler-core'; | ||
import { generateCodeFrame } from '@vue/compiler-core'; | ||
import { Identifier } from '@babel/types'; | ||
import { isInDestructureAssignment } from '@vue/compiler-core'; | ||
import { isStaticProperty } from '@vue/compiler-core'; | ||
import { LazyResult } from 'postcss'; | ||
import MagicString from 'magic-string'; | ||
import { Node as Node_2 } from '@babel/types'; | ||
import { ParserOptions } from '@vue/compiler-core'; | ||
@@ -18,5 +19,9 @@ import { ParserPlugin } from '@babel/parser'; | ||
import { RootNode } from '@vue/compiler-core'; | ||
import { shouldTransform as shouldTransformRef } from '@vue/ref-transform'; | ||
import { SourceLocation } from '@vue/compiler-core'; | ||
import { Statement } from '@babel/types'; | ||
import { transform as transformRef } from '@vue/ref-transform'; | ||
import { transformAST as transformRefAST } from '@vue/ref-transform'; | ||
import { walk } from 'estree-walker'; | ||
import { walkIdentifiers } from '@vue/compiler-core'; | ||
@@ -74,4 +79,10 @@ declare interface AssetURLOptions { | ||
export { extractIdentifiers } | ||
export { generateCodeFrame } | ||
export { isInDestructureAssignment } | ||
export { isStaticProperty } | ||
export { MagicString } | ||
@@ -89,15 +100,2 @@ | ||
/** | ||
* Text range data for IDE support | ||
*/ | ||
declare interface ScriptSetupTextRanges { | ||
scriptBindings: TextRange[]; | ||
scriptSetupBindings: TextRange[]; | ||
propsTypeArg?: TextRange; | ||
propsRuntimeArg?: TextRange; | ||
emitsTypeArg?: TextRange; | ||
emitsRuntimeArg?: TextRange; | ||
withDefaultsArg?: TextRange; | ||
} | ||
export declare interface SFCAsyncStyleCompileOptions extends SFCStyleCompileOptions { | ||
@@ -151,3 +149,2 @@ isAsync?: boolean; | ||
scriptSetupAst?: Statement[]; | ||
ranges?: ScriptSetupTextRanges; | ||
} | ||
@@ -170,6 +167,10 @@ | ||
/** | ||
* Introduce a compiler-based syntax sugar for using refs without `.value` | ||
* (Experimental) Enable syntax transform for using refs without `.value` | ||
* https://github.com/vuejs/rfcs/discussions/369 | ||
* @default true | ||
*/ | ||
refTransform?: boolean; | ||
/** | ||
* @deprecated use `refTransform` instead. | ||
*/ | ||
refSugar?: boolean; | ||
@@ -190,8 +191,2 @@ /** | ||
templateOptions?: Partial<SFCTemplateCompileOptions>; | ||
/** | ||
* Skip codegen and only return AST / binding / text range information. | ||
* Also makes the call error-tolerant. | ||
* Used for IDE support. | ||
*/ | ||
parseOnly?: boolean; | ||
} | ||
@@ -275,2 +270,4 @@ | ||
export { shouldTransformRef } | ||
export declare interface TemplateCompiler { | ||
@@ -281,17 +278,10 @@ compile(template: string, options: CompilerOptions): CodegenResult; | ||
declare interface TextRange { | ||
start: number; | ||
end: number; | ||
} | ||
export { transformRef } | ||
export { transformRefAST } | ||
export { walk } | ||
/** | ||
* Walk an AST and find identifiers that are variable references. | ||
* This is largely the same logic with `transformExpressions` in compiler-core | ||
* but with some subtle differences as this needs to handle a wider range of | ||
* possible syntax. | ||
*/ | ||
export declare function walkIdentifiers(root: Node_2, onIdentifier: (node: Identifier, parent: Node_2, parentStack: Node_2[]) => void, onNode?: (node: Node_2, parent: Node_2, parentStack: Node_2[]) => void | boolean): void; | ||
export { walkIdentifiers } | ||
export { } |
{ | ||
"name": "@vue/compiler-sfc", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "@vue/compiler-sfc", | ||
@@ -34,11 +34,12 @@ "main": "dist/compiler-sfc.cjs.js", | ||
"dependencies": { | ||
"@babel/parser": "^7.13.9", | ||
"@babel/types": "^7.13.0", | ||
"@babel/parser": "^7.15.0", | ||
"@babel/types": "^7.15.0", | ||
"@types/estree": "^0.0.48", | ||
"@vue/compiler-core": "3.2.4", | ||
"@vue/compiler-dom": "3.2.4", | ||
"@vue/compiler-ssr": "3.2.4", | ||
"@vue/shared": "3.2.4", | ||
"@vue/compiler-core": "3.2.5", | ||
"@vue/compiler-dom": "3.2.5", | ||
"@vue/compiler-ssr": "3.2.5", | ||
"@vue/ref-transform": "3.2.5", | ||
"@vue/shared": "3.2.5", | ||
"consolidate": "^0.16.0", | ||
"estree-walker": "^2.0.1", | ||
"estree-walker": "^2.0.2", | ||
"hash-sum": "^2.0.0", | ||
@@ -45,0 +46,0 @@ "lru-cache": "^5.1.1", |
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
1962975
55252
18
+ Added@vue/ref-transform@3.2.5
+ Added@vue/compiler-core@3.2.5(transitive)
+ Added@vue/compiler-dom@3.2.5(transitive)
+ Added@vue/compiler-ssr@3.2.5(transitive)
+ Added@vue/ref-transform@3.2.5(transitive)
+ Added@vue/shared@3.2.5(transitive)
- Removed@vue/compiler-core@3.2.4(transitive)
- Removed@vue/compiler-dom@3.2.4(transitive)
- Removed@vue/compiler-ssr@3.2.4(transitive)
- Removed@vue/shared@3.2.4(transitive)
Updated@babel/parser@^7.15.0
Updated@babel/types@^7.15.0
Updated@vue/compiler-core@3.2.5
Updated@vue/compiler-dom@3.2.5
Updated@vue/compiler-ssr@3.2.5
Updated@vue/shared@3.2.5
Updatedestree-walker@^2.0.2