@vue/component-compiler-utils
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -0,1 +1,10 @@ | ||
## [3.2.2](https://github.com/vuejs/component-compiler-utils/compare/v3.2.1...v3.2.2) (2021-06-15) | ||
### Reverts | ||
* Revert "fix: patch postcss 7 and bundle it in the published npm package (#111)" ([a9e3afd](https://github.com/vuejs/component-compiler-utils/commit/a9e3afd052856edbcccc0baf8355eb6088e10eaf)), closes [#111](https://github.com/vuejs/component-compiler-utils/issues/111) | ||
## [3.2.1](https://github.com/vuejs/component-compiler-utils/compare/v3.2.0...v3.2.1) (2021-06-09) | ||
@@ -2,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { LazyResult } from "../third_party/postcss/lib/postcss"; | ||
import { LazyResult } from 'postcss'; | ||
export interface StyleCompileOptions { | ||
@@ -3,0 +3,0 @@ source: string; |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.doCompileStyle = exports.compileStyleAsync = exports.compileStyle = void 0; | ||
const postcss = require("../third_party/postcss/lib/postcss"); | ||
const postcss = require('postcss'); | ||
const trim_1 = __importDefault(require("./stylePlugins/trim")); | ||
@@ -10,0 +10,0 @@ const scoped_1 = __importDefault(require("./stylePlugins/scoped")); |
@@ -1,3 +0,3 @@ | ||
import { VueTemplateCompiler, VueTemplateCompilerOptions, ErrorWithRange } from "./types"; | ||
import { AssetURLOptions, TransformAssetUrlsOptions } from "./templateCompilerModules/assetUrl"; | ||
import { VueTemplateCompiler, VueTemplateCompilerOptions, ErrorWithRange } from './types'; | ||
import { AssetURLOptions, TransformAssetUrlsOptions } from './templateCompilerModules/assetUrl'; | ||
export interface TemplateCompileOptions { | ||
@@ -4,0 +4,0 @@ source: string; |
@@ -1,5 +0,5 @@ | ||
import { parse, SFCBlock, SFCCustomBlock, SFCDescriptor } from "./parse"; | ||
import { compileTemplate, TemplateCompileOptions, TemplateCompileResult } from "./compileTemplate"; | ||
import { compileStyle, compileStyleAsync, StyleCompileOptions, StyleCompileResults } from "./compileStyle"; | ||
import { parse, SFCBlock, SFCCustomBlock, SFCDescriptor } from './parse'; | ||
import { compileTemplate, TemplateCompileOptions, TemplateCompileResult } from './compileTemplate'; | ||
import { compileStyle, compileStyleAsync, StyleCompileOptions, StyleCompileResults } from './compileStyle'; | ||
export { parse, compileTemplate, compileStyle, compileStyleAsync }; | ||
export { SFCBlock, SFCCustomBlock, SFCDescriptor, TemplateCompileOptions, TemplateCompileResult, StyleCompileOptions, StyleCompileResults }; |
@@ -1,2 +0,2 @@ | ||
import { RawSourceMap, VueTemplateCompiler, VueTemplateCompilerParseOptions } from "./types"; | ||
import { RawSourceMap, VueTemplateCompiler, VueTemplateCompilerParseOptions } from './types'; | ||
export interface ParseOptions { | ||
@@ -3,0 +3,0 @@ source: string; |
@@ -1,3 +0,3 @@ | ||
import * as postcss from "../../third_party/postcss/lib/postcss"; | ||
import * as postcss from 'postcss'; | ||
declare const _default: postcss.Plugin<any>; | ||
export default _default; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const postcss = __importStar(require("../../third_party/postcss/lib/postcss")); | ||
const postcss = __importStar(require("postcss")); | ||
// postcss-selector-parser does have typings but it's problematic to work with. | ||
@@ -25,0 +25,0 @@ const selectorParser = require('postcss-selector-parser'); |
@@ -1,3 +0,3 @@ | ||
import * as postcss from "../../third_party/postcss/lib/postcss"; | ||
import * as postcss from 'postcss'; | ||
declare const _default: postcss.Plugin<unknown>; | ||
export default _default; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const postcss = __importStar(require("../../third_party/postcss/lib/postcss")); | ||
const postcss = __importStar(require("postcss")); | ||
exports.default = postcss.plugin('trim', () => (css) => { | ||
@@ -25,0 +25,0 @@ css.walk(({ type, raws }) => { |
@@ -1,2 +0,2 @@ | ||
import { ASTNode } from "./utils"; | ||
import { ASTNode } from './utils'; | ||
export interface AssetURLOptions { | ||
@@ -3,0 +3,0 @@ [name: string]: string | string[]; |
@@ -1,3 +0,3 @@ | ||
import { ASTNode } from "./utils"; | ||
import { TransformAssetUrlsOptions } from "./assetUrl"; | ||
import { ASTNode } from './utils'; | ||
import { TransformAssetUrlsOptions } from './assetUrl'; | ||
declare const _default: (transformAssetUrlsOptions?: TransformAssetUrlsOptions | undefined) => { | ||
@@ -4,0 +4,0 @@ postTransformNode: (node: ASTNode) => void; |
@@ -1,2 +0,2 @@ | ||
import { TransformAssetUrlsOptions } from "./assetUrl"; | ||
import { TransformAssetUrlsOptions } from './assetUrl'; | ||
export interface Attr { | ||
@@ -3,0 +3,0 @@ name: string; |
@@ -1,2 +0,2 @@ | ||
import { SFCDescriptor } from "./parse"; | ||
import { SFCDescriptor } from './parse'; | ||
export interface StartOfSourceMap { | ||
@@ -3,0 +3,0 @@ file?: string; |
{ | ||
"name": "@vue/component-compiler-utils", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Lower level utilities for compiling Vue single file components", | ||
@@ -9,13 +9,8 @@ "main": "dist/index.js", | ||
"dist", | ||
"lib", | ||
"third_party" | ||
"lib" | ||
], | ||
"scripts": { | ||
"lint": "prettier --write \"{lib,test}/**/*.ts\"", | ||
"pretest": "yarn clean && yarn patch-postcss", | ||
"test": "prettier --list-different \"{lib,test}/**/*.ts\" && jest --coverage", | ||
"clean": "rm -rf dist third_party", | ||
"patch-postcss": "patch-package && mkdir -p third_party/postcss && cp -R node_modules/postcss third_party/", | ||
"prebuild": "yarn clean && yarn patch-postcss", | ||
"build": "ttsc", | ||
"build": "rm -rf dist && tsc", | ||
"prepublishOnly": "yarn build && conventional-changelog -p angular -r 2 -i CHANGELOG.md -s" | ||
@@ -55,4 +50,2 @@ }, | ||
"lint-staged": "^8.1.1", | ||
"patch-package": "^6.4.7", | ||
"postcss": "^7.0.35", | ||
"pug": "^2.0.3", | ||
@@ -62,5 +55,3 @@ "sass": "^1.17.3", | ||
"ts-jest": "^24.0.0", | ||
"ttypescript": "^1.5.12", | ||
"typescript": "^3.3.0", | ||
"typescript-transform-paths": "^2.2.4", | ||
"vue": "^2.6.6", | ||
@@ -75,2 +66,3 @@ "vue-template-compiler": "^2.6.6", | ||
"merge-source-map": "^1.1.0", | ||
"postcss": "^7.0.36", | ||
"postcss-selector-parser": "^6.0.2", | ||
@@ -77,0 +69,0 @@ "source-map": "~0.6.1", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
14
2
79457
10
36
1769
+ Addedpostcss@^7.0.36
+ Addedpicocolors@0.2.1(transitive)
+ Addedpostcss@7.0.39(transitive)