@kdujs/compiler-sfc-canary
Advanced tools
Comparing version 3.20240318.0-minor.0 to 3.20240318.0
@@ -1,2 +0,1 @@ | ||
import * as lru_cache_min from 'lru-cache/min'; | ||
import * as _babel_types from '@babel/types'; | ||
@@ -105,3 +104,3 @@ import { Statement, Expression, TSType, Program, CallExpression, Node, ObjectPattern, TSModuleDeclaration, TSPropertySignature, TSMethodSignature, TSCallSignatureDeclaration, TSFunctionType } from '@babel/types'; | ||
* Generate the final component as a variable instead of default export. | ||
* This is useful in e.g. @witejs/plugin-kdu where the script needs to be | ||
* This is useful in e.g. @lahmjs/plugin-kdu where the script needs to be | ||
* placed inside the main module. | ||
@@ -148,2 +147,6 @@ */ | ||
reactivityTransform?: boolean; | ||
/** | ||
* Transform Kdu SFCs into custom elements. | ||
*/ | ||
customElement?: boolean | ((filename: string) => boolean); | ||
} | ||
@@ -196,3 +199,3 @@ interface ImportBinding { | ||
* Fully resolved dependency file paths (unix slashes) with imported types | ||
* used in macros, used for HMR cache busting in @witejs/plugin-kdu and | ||
* used in macros, used for HMR cache busting in @lahmjs/plugin-kdu and | ||
* kdu-loader. | ||
@@ -235,3 +238,2 @@ */ | ||
} | ||
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; | ||
@@ -363,2 +365,3 @@ | ||
isTS: boolean; | ||
isCE: boolean; | ||
scriptAst: Program | null; | ||
@@ -464,3 +467,3 @@ scriptSetupAst: Program | null; | ||
_resolvedElements?: ResolvedElements; | ||
}, scope?: TypeScope): ResolvedElements; | ||
}, scope?: TypeScope, typeParameters?: Record<string, Node>): ResolvedElements; | ||
/** | ||
@@ -478,3 +481,5 @@ * @private | ||
export declare const parseCache: Map<string, SFCParseResult>; | ||
export declare const walk: any; | ||
{ | ||
"name": "@kdujs/compiler-sfc-canary", | ||
"version": "3.20240318.0-minor.0", | ||
"version": "3.20240318.0", | ||
"description": "@kdujs/compiler-sfc", | ||
@@ -35,18 +35,18 @@ "main": "dist/compiler-sfc.cjs.js", | ||
"dependencies": { | ||
"@babel/parser": "^7.23.0", | ||
"@kdujs/compiler-core": "npm:@kdujs/compiler-core-canary@3.20240318.0-minor.0", | ||
"@kdujs/compiler-dom": "npm:@kdujs/compiler-dom-canary@3.20240318.0-minor.0", | ||
"@kdujs/compiler-ssr": "npm:@kdujs/compiler-ssr-canary@3.20240318.0-minor.0", | ||
"@kdujs/reactivity-transform": "npm:@kdujs/reactivity-transform-canary@3.20240318.0-minor.0", | ||
"@kdujs/shared": "npm:@kdujs/shared-canary@3.20240318.0-minor.0", | ||
"@babel/parser": "^7.23.5", | ||
"@kdujs/compiler-core": "npm:@kdujs/compiler-core-canary@3.20240318.0", | ||
"@kdujs/compiler-dom": "npm:@kdujs/compiler-dom-canary@3.20240318.0", | ||
"@kdujs/compiler-ssr": "npm:@kdujs/compiler-ssr-canary@3.20240318.0", | ||
"@kdujs/reactivity-transform": "npm:@kdujs/reactivity-transform-canary@3.20240318.0", | ||
"@kdujs/shared": "npm:@kdujs/shared-canary@3.20240318.0", | ||
"estree-walker": "^2.0.2", | ||
"magic-string": "^0.30.5", | ||
"postcss": "^8.4.31", | ||
"postcss": "^8.4.32", | ||
"source-map-js": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/types": "^7.23.0", | ||
"@babel/types": "^7.23.5", | ||
"@kdujs/consolidate": "^0.17.3", | ||
"hash-sum": "^2.0.0", | ||
"lru-cache": "^10.0.1", | ||
"lru-cache": "^10.1.0", | ||
"merge-source-map": "^1.1.0", | ||
@@ -57,4 +57,4 @@ "minimatch": "^9.0.3", | ||
"pug": "^3.0.2", | ||
"sass": "^1.69.4" | ||
"sass": "^1.69.5" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # @kdujs/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 Kdu Single File Components (SFCs) into JavaScript. It is used in `kdu-loader`, `rollup-plugin-kdu` and `wite`. | ||
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 Kdu Single File Components (SFCs) into JavaScript. It is used in `kdu-loader`, `rollup-plugin-kdu` and `lahm`. | ||
@@ -8,0 +8,0 @@ ## API |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2238491
67125
1
+ Added@kdujs/compiler-core-canary@3.20240318.0(transitive)
+ Added@kdujs/compiler-dom-canary@3.20240318.0(transitive)
+ Added@kdujs/compiler-ssr-canary@3.20240318.0(transitive)
+ Added@kdujs/reactivity-transform-canary@3.20240318.0(transitive)
+ Added@kdujs/shared-canary@3.20240318.0(transitive)
- Removed@kdujs/compiler-core-canary@3.20240318.0-minor.0(transitive)
- Removed@kdujs/compiler-dom-canary@3.20240318.0-minor.0(transitive)
- Removed@kdujs/compiler-ssr-canary@3.20240318.0-minor.0(transitive)
- Removed@kdujs/reactivity-transform-canary@3.20240318.0-minor.0(transitive)
- Removed@kdujs/shared-canary@3.20240318.0-minor.0(transitive)
Updated@babel/parser@^7.23.5
Updated@kdujs/compiler-core@npm:@kdujs/compiler-core-canary@3.20240318.0
Updated@kdujs/compiler-dom@npm:@kdujs/compiler-dom-canary@3.20240318.0
Updated@kdujs/compiler-ssr@npm:@kdujs/compiler-ssr-canary@3.20240318.0
Updated@kdujs/reactivity-transform@npm:@kdujs/reactivity-transform-canary@3.20240318.0
Updatedpostcss@^8.4.32