@vizejs/native 0.565.0 → 0.567.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.
Files changed (3) hide show
  1. package/index.d.ts +19 -0
  2. package/index.js +1 -0
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -1055,6 +1055,25 @@ export declare function parseDesignTokensFromJson(source: string): string;
1055
1055
 
1056
1056
  export declare function parseDesignTokensFromPath(tokensPath: string): string;
1057
1057
 
1058
+ /**
1059
+ * Analyze authored props and emits from the shared SFC script analysis.
1060
+ * Defaults are JSON values only when statically proven; executable expressions
1061
+ * remain explicit `unsupported_default` metadata with their authored source.
1062
+ */
1063
+ export declare function analyzeSfc(
1064
+ source: string,
1065
+ options?: SfcAnalyzeOptions | undefined | null,
1066
+ ): any;
1067
+
1068
+ /** Metadata analysis does not resolve external modules or execute defaults. */
1069
+ export interface SfcAnalyzeOptions {
1070
+ filename?: string;
1071
+ /** Include native phase timings and actual work counts in the result. */
1072
+ profile?: boolean;
1073
+ /** Bypass the bounded exact-source cache, for cold measurements. */
1074
+ cache?: boolean;
1075
+ }
1076
+
1058
1077
  /**
1059
1078
  * Parse the original SFC, including content/tag geometry in UTF-8 bytes.
1060
1079
  * Invalid SFC syntax throws `InvalidSfc` with the unchanged parser reason.
package/index.js CHANGED
@@ -74,6 +74,7 @@ module.exports.parseArtStatusWarnings = nativeBinding.parseArtStatusWarnings;
74
74
  module.exports.parseCssAst = nativeBinding.parseCssAst;
75
75
  module.exports.parseDesignTokensFromJson = nativeBinding.parseDesignTokensFromJson;
76
76
  module.exports.parseDesignTokensFromPath = nativeBinding.parseDesignTokensFromPath;
77
+ module.exports.analyzeSfc = nativeBinding.analyzeSfc;
77
78
  module.exports.parseSfc = nativeBinding.parseSfc;
78
79
  module.exports.parseTemplate = nativeBinding.parseTemplate;
79
80
  module.exports.printCssAst = nativeBinding.printCssAst;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/native",
3
- "version": "0.565.0",
3
+ "version": "0.567.0",
4
4
  "description": "High-performance Vue.js compiler - Native bindings",
5
5
  "keywords": [
6
6
  "compiler",
@@ -36,14 +36,14 @@
36
36
  "@napi-rs/cli": "3.6.2"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@vizejs/native-darwin-arm64": "0.565.0",
40
- "@vizejs/native-darwin-x64": "0.565.0",
41
- "@vizejs/native-linux-arm64-gnu": "0.565.0",
42
- "@vizejs/native-linux-arm64-musl": "0.565.0",
43
- "@vizejs/native-linux-x64-gnu": "0.565.0",
44
- "@vizejs/native-linux-x64-musl": "0.565.0",
45
- "@vizejs/native-win32-arm64-msvc": "0.565.0",
46
- "@vizejs/native-win32-x64-msvc": "0.565.0"
39
+ "@vizejs/native-darwin-arm64": "0.567.0",
40
+ "@vizejs/native-darwin-x64": "0.567.0",
41
+ "@vizejs/native-linux-arm64-gnu": "0.567.0",
42
+ "@vizejs/native-linux-arm64-musl": "0.567.0",
43
+ "@vizejs/native-linux-x64-gnu": "0.567.0",
44
+ "@vizejs/native-linux-x64-musl": "0.567.0",
45
+ "@vizejs/native-win32-arm64-msvc": "0.567.0",
46
+ "@vizejs/native-win32-x64-msvc": "0.567.0"
47
47
  },
48
48
  "napi": {
49
49
  "binaryName": "vize-vitrine",