Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@vue/compiler-sfc

Package Overview
Dependencies
13
Maintainers
1
Versions
248
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.0-alpha.1 to 3.4.0-alpha.2

27

dist/compiler-sfc.d.ts

@@ -1,5 +0,4 @@

import * as lru_cache_min from 'lru-cache/min';
import * as _babel_types from '@babel/types';
import { Statement, Expression, TSType, Program, CallExpression, Node, ObjectPattern, TSModuleDeclaration, TSPropertySignature, TSMethodSignature, TSCallSignatureDeclaration, TSFunctionType } from '@babel/types';
import { CompilerOptions, CodegenResult, ParserOptions, RootNode, CompilerError, SourceLocation, ElementNode, BindingMetadata as BindingMetadata$1 } from '@vue/compiler-core';
import { RootNode, CompilerOptions, CodegenResult, ParserOptions, CompilerError, SourceLocation, BindingMetadata as BindingMetadata$1 } from '@vue/compiler-core';
export { BindingMetadata, CompilerError, CompilerOptions, extractIdentifiers, generateCodeFrame, isInDestructureAssignment, isStaticProperty, walkIdentifiers } from '@vue/compiler-core';

@@ -13,3 +12,2 @@ import { RawSourceMap } from 'source-map-js';

import TS from 'typescript';
export { shouldTransform as shouldTransformRef, transform as transformRef, transformAST as transformRefAST } from '@vue/reactivity-transform';

@@ -33,3 +31,3 @@ export interface AssetURLTagConfig {

export interface TemplateCompiler {
compile(template: string, options: CompilerOptions): CodegenResult;
compile(source: string | RootNode, options: CompilerOptions): CodegenResult;
parse(template: string, options: ParserOptions): RootNode;

@@ -48,2 +46,3 @@ }

source: string;
ast?: RootNode;
filename: string;

@@ -143,10 +142,2 @@ id: string;

};
/**
* (Experimental) Enable syntax transform for using refs without `.value` and
* using destructured props with reactivity
* @deprecated the Reactivity Transform proposal has been dropped. This
* feature will be removed from Vue core in 3.4. If you intend to continue
* using it, disable this and switch to the [Vue Macros implementation](https://vue-macros.sxzz.moe/features/reactivity-transform.html).
*/
reactivityTransform?: boolean;
}

@@ -187,3 +178,3 @@ interface ImportBinding {

type: 'template';
ast: ElementNode;
ast?: RootNode;
}

@@ -238,3 +229,2 @@ export interface SFCScriptBlock extends SFCBlock {

}
export declare const parseCache: Map<string, SFCParseResult> | lru_cache_min.LRUCache<string, SFCParseResult, unknown>;
export declare function parse(source: string, { sourceMap, filename, sourceRoot, pad, ignoreEmpty, compiler }?: SFCParseOptions): SFCParseResult;

@@ -484,3 +474,12 @@

export declare const parseCache: Map<string, SFCParseResult>;
export declare const walk: any;
/**
* @deprecated this is preserved to avoid breaking vite-plugin-vue < 5.0
* with reactivityTransform: true. The desired behavior should be silently
* ignoring the option instead of breaking.
*/
export declare const shouldTransformRef: () => boolean;
{
"name": "@vue/compiler-sfc",
"version": "3.4.0-alpha.1",
"version": "3.4.0-alpha.2",
"description": "@vue/compiler-sfc",

@@ -35,18 +35,17 @@ "main": "dist/compiler-sfc.cjs.js",

"dependencies": {
"@babel/parser": "^7.23.0",
"@vue/compiler-core": "3.4.0-alpha.1",
"@vue/compiler-dom": "3.4.0-alpha.1",
"@vue/compiler-ssr": "3.4.0-alpha.1",
"@vue/reactivity-transform": "3.4.0-alpha.1",
"@vue/shared": "3.4.0-alpha.1",
"@babel/parser": "^7.23.3",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.5",
"postcss": "^8.4.31",
"source-map-js": "^1.0.2"
"source-map-js": "^1.0.2",
"@vue/compiler-core": "3.4.0-alpha.2",
"@vue/compiler-ssr": "3.4.0-alpha.2",
"@vue/shared": "3.4.0-alpha.2",
"@vue/compiler-dom": "3.4.0-alpha.2"
},
"devDependencies": {
"@babel/types": "^7.23.0",
"@babel/types": "^7.23.3",
"@vue/consolidate": "^0.17.3",
"hash-sum": "^2.0.0",
"lru-cache": "^10.0.1",
"lru-cache": "^10.0.3",
"merge-source-map": "^1.1.0",

@@ -57,4 +56,4 @@ "minimatch": "^9.0.3",

"pug": "^3.0.2",
"sass": "^1.69.4"
"sass": "^1.69.5"
}
}

@@ -7,3 +7,3 @@ # @vue/compiler-sfc

This package contains lower level utilities that you can use if you are writing a plugin / transform for a bundler or module system that compiles Vue Single File Components (SFCs) into JavaScript. It is used in [vue-loader](https://github.com/vuejs/vue-loader), [rollup-plugin-vue](https://github.com/vuejs/rollup-plugin-vue) and [vite](https://github.com/vitejs/vite).
This package contains lower level utilities that you can use if you are writing a plugin / transform for a bundler or module system that compiles Vue Single File Components (SFCs) into JavaScript. It is used in [vue-loader](https://github.com/vuejs/vue-loader) and [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue).

@@ -81,2 +81,2 @@ ## API

For detailed API references and options, check out the source type definitions. For actual usage of these APIs, check out [rollup-plugin-vue](https://github.com/vuejs/rollup-plugin-vue/tree/next) or [vue-loader](https://github.com/vuejs/vue-loader/tree/next).
For detailed API references and options, check out the source type definitions. For actual usage of these APIs, check out [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue) or [vue-loader](https://github.com/vuejs/vue-loader/tree/next).

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc