@vizejs/native 0.92.0 → 0.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +48 -0
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -166,6 +166,13 @@ export interface CatalogOutputNapi {
|
|
|
166
166
|
tags: Array<string>;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Classify a Vite plugin module request using the native Vize request model.
|
|
171
|
+
* This keeps pure query parsing and virtual module categorization in Rust while
|
|
172
|
+
* JavaScript keeps Vite hook orchestration and filesystem interactions.
|
|
173
|
+
*/
|
|
174
|
+
export declare function classifyVitePluginRequest(id: string): VitePluginRequestNapi;
|
|
175
|
+
|
|
169
176
|
/** Compile Vue template to VDom render function */
|
|
170
177
|
export declare function compile(
|
|
171
178
|
template: string,
|
|
@@ -648,6 +655,47 @@ export interface TypeCheckResultNapi {
|
|
|
648
655
|
analysisTimeMs?: number;
|
|
649
656
|
}
|
|
650
657
|
|
|
658
|
+
export interface VitePluginRequestNapi {
|
|
659
|
+
/** Path segment before the query string. */
|
|
660
|
+
path: string;
|
|
661
|
+
/** Query suffix including the leading `?`, or an empty string. */
|
|
662
|
+
querySuffix: string;
|
|
663
|
+
/** Path normalized for macro virtual modules (`.vue.ts` -> `.vue`). */
|
|
664
|
+
normalizedVuePath: string;
|
|
665
|
+
/** For `\0...` virtual macro IDs, the real path without the virtual prefix. */
|
|
666
|
+
strippedVirtualPath?: string;
|
|
667
|
+
/** Whether this ID is a Vize-compiled virtual Vue module. */
|
|
668
|
+
isVizeVirtual: boolean;
|
|
669
|
+
/** Whether this ID is a Vize SSR virtual Vue module. */
|
|
670
|
+
isVizeSsrVirtual: boolean;
|
|
671
|
+
/** Real `.vue` path extracted from a Vize virtual Vue module ID. */
|
|
672
|
+
vizeVirtualPath?: string;
|
|
673
|
+
/** Build-safe ID with Vite's `/@fs` prefix removed when present. */
|
|
674
|
+
normalizedFsId?: string;
|
|
675
|
+
/** Whether the query contains `macro=true`. */
|
|
676
|
+
hasMacroQuery: boolean;
|
|
677
|
+
/** Whether the query contains `definePage`. */
|
|
678
|
+
hasDefinePageQuery: boolean;
|
|
679
|
+
/** Whether this is a `\0` virtual ID carrying a macro query. */
|
|
680
|
+
isMacroVirtualId: boolean;
|
|
681
|
+
/** Whether the request points at a Vue SFC after macro normalization. */
|
|
682
|
+
isVueSfcPath: boolean;
|
|
683
|
+
/** Whether the request is a Vite Vue style virtual query. */
|
|
684
|
+
isVueStyleQuery: boolean;
|
|
685
|
+
/** Style block language, defaulting to `css` for style virtual queries. */
|
|
686
|
+
styleLang?: string;
|
|
687
|
+
/** Style block index for style virtual queries. */
|
|
688
|
+
styleIndex?: number;
|
|
689
|
+
/** Scoped attribute value for style virtual queries. */
|
|
690
|
+
styleScoped?: string;
|
|
691
|
+
/** Whether the style query carries a CSS modules marker. */
|
|
692
|
+
hasStyleModule: boolean;
|
|
693
|
+
/** Extension suffix Vite should see for the style pipeline. */
|
|
694
|
+
styleVirtualSuffix?: string;
|
|
695
|
+
/** Vue boundary file kind: `client`, `server`, or undefined. */
|
|
696
|
+
boundaryKind?: string;
|
|
697
|
+
}
|
|
698
|
+
|
|
651
699
|
/** Type diagnostic for NAPI */
|
|
652
700
|
export interface TypeDiagnosticNapi {
|
|
653
701
|
severity: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.94.0",
|
|
4
4
|
"description": "High-performance Vue.js compiler - Native bindings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@vizejs/native-darwin-x64": "0.
|
|
45
|
-
"@vizejs/native-darwin-arm64": "0.
|
|
46
|
-
"@vizejs/native-win32-x64-msvc": "0.
|
|
47
|
-
"@vizejs/native-win32-arm64-msvc": "0.
|
|
48
|
-
"@vizejs/native-linux-x64-gnu": "0.
|
|
49
|
-
"@vizejs/native-linux-x64-musl": "0.
|
|
50
|
-
"@vizejs/native-linux-arm64-gnu": "0.
|
|
51
|
-
"@vizejs/native-linux-arm64-musl": "0.
|
|
44
|
+
"@vizejs/native-darwin-x64": "0.94.0",
|
|
45
|
+
"@vizejs/native-darwin-arm64": "0.94.0",
|
|
46
|
+
"@vizejs/native-win32-x64-msvc": "0.94.0",
|
|
47
|
+
"@vizejs/native-win32-arm64-msvc": "0.94.0",
|
|
48
|
+
"@vizejs/native-linux-x64-gnu": "0.94.0",
|
|
49
|
+
"@vizejs/native-linux-x64-musl": "0.94.0",
|
|
50
|
+
"@vizejs/native-linux-arm64-gnu": "0.94.0",
|
|
51
|
+
"@vizejs/native-linux-arm64-musl": "0.94.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "node ./scripts/build-local.mjs --release",
|