vize 0.178.0 → 0.179.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/README.md +25 -29
- package/dist/{config-BD4XICzq.d.mts → config-Bumh_1am.d.mts} +3 -3
- package/dist/{config-BD4XICzq.d.mts.map → config-Bumh_1am.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
- package/pkl/CompilerConfig.pkl +3 -2
- package/pkl/jsonschema/generate.pkl +5 -4
- package/pkl/vize.pkl +2 -1
- package/schemas/vize.config.schema.json +5 -4
- package/src/types/generated.ts +2 -2
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ export default defineConfig({
|
|
|
74
74
|
sourceMap: true,
|
|
75
75
|
vapor: false,
|
|
76
76
|
customRenderer: false,
|
|
77
|
-
|
|
77
|
+
templateSyntax: "standard",
|
|
78
78
|
},
|
|
79
79
|
vite: {
|
|
80
80
|
scanPatterns: ["src/**/*.vue"],
|
|
@@ -125,41 +125,37 @@ Use the Rust CLI when you need Corsa project diagnostics across Vue, TS, TSX, an
|
|
|
125
125
|
|
|
126
126
|
Important shared fields:
|
|
127
127
|
|
|
128
|
-
| Field
|
|
129
|
-
|
|
|
130
|
-
| `compiler.sourceMap`
|
|
131
|
-
| `compiler.ssr`
|
|
132
|
-
| `compiler.vapor`
|
|
133
|
-
| `compiler.customRenderer`
|
|
134
|
-
| `compiler.
|
|
135
|
-
| `compiler.compatibility`
|
|
136
|
-
| `compiler.scriptExt`
|
|
137
|
-
| `vite.scanPatterns`
|
|
138
|
-
| `linter.preset`
|
|
139
|
-
| `typeChecker.strict`
|
|
140
|
-
| `formatter.printWidth`
|
|
141
|
-
|
|
142
|
-
###
|
|
143
|
-
|
|
144
|
-
`compiler.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
`v-for` aliases before splitting `value`, `key`, and `index`; Vize reports those as malformed in
|
|
150
|
-
strict mode and mirrors Vue only when this flag is enabled. Strict mode also follows HTML tree
|
|
151
|
-
construction for `<div />` and `<span />`, while quirk mode keeps those elements as self-closing
|
|
152
|
-
leaves.
|
|
128
|
+
| Field | Used by | Purpose |
|
|
129
|
+
| ------------------------- | ---------------------- | --------------------------------------------------------- |
|
|
130
|
+
| `compiler.sourceMap` | Vite plugin | Enable source maps |
|
|
131
|
+
| `compiler.ssr` | npm build, Vite plugin | Force SSR compilation |
|
|
132
|
+
| `compiler.vapor` | npm build, Vite plugin | Enable Vapor compilation |
|
|
133
|
+
| `compiler.customRenderer` | npm build, Vite plugin | Support custom renderer element semantics |
|
|
134
|
+
| `compiler.templateSyntax` | npm build, Vite plugin | Choose standard, strict, or quirks template syntax mode |
|
|
135
|
+
| `compiler.compatibility` | integrations | Opt into legacy Vue, Nuxt, CDN, Vapor, or Webpack bridges |
|
|
136
|
+
| `compiler.scriptExt` | npm build | Preserve TypeScript output or downcompile to JavaScript |
|
|
137
|
+
| `vite.scanPatterns` | Vite plugin | Pre-compile matching Vue files |
|
|
138
|
+
| `linter.preset` | npm lint | Select the Patina lint preset |
|
|
139
|
+
| `typeChecker.strict` | npm check | Enable strict checks |
|
|
140
|
+
| `formatter.printWidth` | npm fmt | Set formatting width |
|
|
141
|
+
|
|
142
|
+
### Template syntax
|
|
143
|
+
|
|
144
|
+
`compiler.templateSyntax` defaults to `"standard"`.
|
|
145
|
+
|
|
146
|
+
- `"standard"` warns and rewrites invalid non-void HTML self-closing tags such as `<div />`.
|
|
147
|
+
- `"strict"` reports invalid syntax as compilation errors.
|
|
148
|
+
- `"quirks"` preserves compatibility quirks without extra warnings.
|
|
153
149
|
|
|
154
150
|
```text
|
|
155
151
|
<template>
|
|
156
|
-
<!--
|
|
152
|
+
<!-- Standard/strict reject this. Quirk mode compiles it as `item in items`. -->
|
|
157
153
|
<div v-for="(item in items">{{ item }}</div>
|
|
158
154
|
|
|
159
|
-
<!--
|
|
155
|
+
<!-- Standard/strict reject this. Quirk mode compiles it as `item in items`. -->
|
|
160
156
|
<div v-for="item) in items">{{ item }}</div>
|
|
161
157
|
|
|
162
|
-
<!--
|
|
158
|
+
<!-- Standard warns and rewrites this as `<div></div>`. Strict errors. Quirk keeps it as a leaf. -->
|
|
163
159
|
<div />
|
|
164
160
|
</template>
|
|
165
161
|
```
|
|
@@ -70,9 +70,9 @@ interface CompilerConfig {
|
|
|
70
70
|
*/
|
|
71
71
|
ssr?: boolean;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Template syntax compatibility mode
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
templateSyntax?: "standard" | "strict" | "quirks";
|
|
76
76
|
/**
|
|
77
77
|
* Enable source map generation
|
|
78
78
|
*/
|
|
@@ -653,4 +653,4 @@ declare function resolveConfigExport(exported: UserConfigExport, env?: ConfigEnv
|
|
|
653
653
|
declare function normalizeGlobalTypes(config: GlobalTypesConfig): Record<string, GlobalTypeDeclaration>;
|
|
654
654
|
//#endregion
|
|
655
655
|
export { RuleSeverity as A, LintPreset as C, MuseaConfig as D, MuseaAutogenConfig as E, VueVersion as F, VitePluginConfig as M, VizeConfig as N, MuseaVrtConfig as O, VizeConfigEntry as P, LanguageServerConfig as S, MuseaA11yConfig as T, CompilerCompatibilityConfig as _, loadConfig as a, GlobalTypeDeclaration as b, LspConfig as c, MaybePromise as d, ResolvedVizeConfig as f, LintRulesConfig as g, LintRuleName as h, defineConfig as i, TypeCheckerConfig as j, RuleCategory as k, ConfigEnv as l, UserConfigInput as m, VIZE_CONFIG_JSON_SCHEMA_PATH as n, normalizeGlobalTypes as o, UserConfigExport as p, VIZE_CONFIG_PKL_SCHEMA_PATH as r, resolveConfigExport as s, CONFIG_FILE_NAMES as t, LoadConfigOptions as u, CompilerConfig as v, LinterConfig as w, GlobalTypesConfig as x, FormatterConfig as y };
|
|
656
|
-
//# sourceMappingURL=config-
|
|
656
|
+
//# sourceMappingURL=config-Bumh_1am.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-Bumh_1am.d.mts","names":[],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../src/config.ts"],"mappings":";;AAOA;;;;KAAY,UAAA;AAAA,KAQA,YAAA;AAAA,KAEA,YAAA;;;;KAKA,UAAA;;;;UAKK,UAAA;EALL;;;EASV,IAAA;EAToB;AAKtB;;EAQE,QAAA;EAaW;;;EATX,KAAA;EAaY;;;EATZ,OAAA;EAac;;;EATd,OAAA;EACA,QAAA,GAAW,cAAA;EACX,IAAA,GAAO,gBAAA;EACP,MAAA,GAAS,YAAA;EACT,WAAA,GAAc,iBAAA;EACd,SAAA,GAAY,eAAA;EACZ,cAAA,GAAiB,oBAAA;EACjB,GAAA,GAAM,oBAAA;EACN,KAAA,GAAQ,WAAA;EACR,WAAA,GAAc,iBAAA;EANd;;;EAUA,OAAA,GAAU,eAAA;AAAA;;;;UAKK,cAAA;EAXT;;;EAeN,IAAA;EAbc;;;EAiBd,KAAA;EAbyB;AAK3B;;EAYE,cAAA;EAyC2C;;;EArC3C,GAAA;EAAA;;;EAIA,cAAA;EAYA;;;EARA,SAAA;EAwBA;;;EApBA,iBAAA;EAyB2C;;AAK7C;EA1BE,WAAA;;;;EAIA,aAAA;EA2BA;;;EAvBA,IAAA;EAuCA;;;EAnCA,SAAA;EAwC+B;;;EApC/B,iBAAA;EA4CmB;;;EAxCnB,iBAAA;EACA,aAAA,GAAgB,2BAAA;AAAA;;;;UAKD,2BAAA;EACf,UAAA,GAAa,UAAA;EAyCb;;;EArCA,YAAA;EA0C2B;;;EAtC3B,uBAAA;EA8CA;;;EA1CA,eAAA;EAqDE;;;EAjDF,WAAA;EAqDE;;;EAjDF,cAAA;AAAA;;;;UAKe,gBAAA;EA2Df;;;EAvDA,OAAA,YAAmB,MAAA,aAAmB,MAAA;EAuEtC;;;EAnEA,OAAA,YAAmB,MAAA,aAAmB,M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iBIwMgB,oBAAA,CACd,MAAA,EAAQ,iBAAA,GACP,MAAA,SAAe,qBAAA"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, i as defineConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, i as defineConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-Bumh_1am.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as RuleSeverity, C as LintPreset, D as MuseaConfig, E as MuseaAutogenConfig, F as VueVersion, M as VitePluginConfig, N as VizeConfig, O as MuseaVrtConfig, P as VizeConfigEntry, S as LanguageServerConfig, T as MuseaA11yConfig, _ as CompilerCompatibilityConfig, a as loadConfig, b as GlobalTypeDeclaration, c as LspConfig, d as MaybePromise, f as ResolvedVizeConfig, g as LintRulesConfig, h as LintRuleName, i as defineConfig, j as TypeCheckerConfig, k as RuleCategory, l as ConfigEnv, m as UserConfigInput, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as UserConfigExport, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LoadConfigOptions, v as CompilerConfig, w as LinterConfig, x as GlobalTypesConfig, y as FormatterConfig } from "./config-
|
|
1
|
+
import { A as RuleSeverity, C as LintPreset, D as MuseaConfig, E as MuseaAutogenConfig, F as VueVersion, M as VitePluginConfig, N as VizeConfig, O as MuseaVrtConfig, P as VizeConfigEntry, S as LanguageServerConfig, T as MuseaA11yConfig, _ as CompilerCompatibilityConfig, a as loadConfig, b as GlobalTypeDeclaration, c as LspConfig, d as MaybePromise, f as ResolvedVizeConfig, g as LintRulesConfig, h as LintRuleName, i as defineConfig, j as TypeCheckerConfig, k as RuleCategory, l as ConfigEnv, m as UserConfigInput, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as UserConfigExport, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LoadConfigOptions, v as CompilerConfig, w as LinterConfig, x as GlobalTypesConfig, y as FormatterConfig } from "./config-Bumh_1am.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, type CompilerCompatibilityConfig, type CompilerConfig, type ConfigEnv, type FormatterConfig, type GlobalTypeDeclaration, type GlobalTypesConfig, type LanguageServerConfig, type LintPreset, type LintRuleName, type LintRulesConfig, type LinterConfig, type LoadConfigOptions, type LspConfig, type MaybePromise, type MuseaA11yConfig, type MuseaAutogenConfig, type MuseaConfig, type MuseaVrtConfig, type ResolvedVizeConfig, type RuleCategory, type RuleSeverity, type TypeCheckerConfig, type UserConfigExport, type UserConfigInput, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, type VitePluginConfig, type VizeConfig, type VizeConfigEntry, type VueVersion, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.179.0",
|
|
4
4
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@vizejs/native": "0.
|
|
53
|
+
"@vizejs/native": "0.179.0",
|
|
54
54
|
"oxc-transform": "0.130.0",
|
|
55
55
|
"vue": "3.5.34"
|
|
56
56
|
},
|
package/pkl/CompilerConfig.pkl
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
module vize.CompilerConfig
|
|
3
3
|
|
|
4
4
|
typealias VueVersion = Number | "legacy"
|
|
5
|
+
typealias TemplateSyntax = "standard" | "strict" | "quirks"
|
|
5
6
|
|
|
6
7
|
class CompilerCompatibilityConfig {
|
|
7
8
|
/// Host Vue runtime version for opt-in compatibility modes.
|
|
@@ -36,8 +37,8 @@ class CompilerConfig {
|
|
|
36
37
|
/// Enable SSR mode.
|
|
37
38
|
ssr: Boolean = false
|
|
38
39
|
|
|
39
|
-
///
|
|
40
|
-
|
|
40
|
+
/// Template syntax compatibility mode.
|
|
41
|
+
templateSyntax: TemplateSyntax = "standard"
|
|
41
42
|
|
|
42
43
|
/// Enable source map generation.
|
|
43
44
|
sourceMap: Boolean = false
|
|
@@ -48,10 +48,11 @@ local compilerConfigDef: JsonSchema = new JsonSchema {
|
|
|
48
48
|
description = "Enable SSR mode"
|
|
49
49
|
default = false
|
|
50
50
|
}
|
|
51
|
-
["
|
|
52
|
-
type = "
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
["templateSyntax"] = new JsonSchema {
|
|
52
|
+
type = "string"
|
|
53
|
+
enum = new Listing { "standard"; "strict"; "quirks" }
|
|
54
|
+
description = "Template syntax compatibility mode"
|
|
55
|
+
default = "standard"
|
|
55
56
|
}
|
|
56
57
|
["sourceMap"] = new JsonSchema {
|
|
57
58
|
type = "boolean"
|
package/pkl/vize.pkl
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
module vize.Config
|
|
10
10
|
|
|
11
11
|
typealias CompilerMode = "module" | "function"
|
|
12
|
+
typealias TemplateSyntax = "standard" | "strict" | "quirks"
|
|
12
13
|
typealias ScriptExt = "ts" | "js"
|
|
13
14
|
typealias RuleSeverity = "off" | "warn" | "error"
|
|
14
15
|
typealias LintPreset = "happy-path" | "opinionated" | "essential" | "incremental" | "ecosystem" | "nuxt"
|
|
@@ -22,7 +23,7 @@ class CompilerConfig {
|
|
|
22
23
|
vapor: Boolean? = null
|
|
23
24
|
customRenderer: Boolean? = null
|
|
24
25
|
ssr: Boolean? = null
|
|
25
|
-
|
|
26
|
+
templateSyntax: TemplateSyntax? = null
|
|
26
27
|
sourceMap: Boolean? = null
|
|
27
28
|
prefixIdentifiers: Boolean? = null
|
|
28
29
|
hoistStatic: Boolean? = null
|
|
@@ -26,10 +26,11 @@
|
|
|
26
26
|
"default": false,
|
|
27
27
|
"type": "boolean"
|
|
28
28
|
},
|
|
29
|
-
"
|
|
30
|
-
"description": "
|
|
31
|
-
"default":
|
|
32
|
-
"type": "
|
|
29
|
+
"templateSyntax": {
|
|
30
|
+
"description": "Template syntax compatibility mode",
|
|
31
|
+
"default": "standard",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": ["standard", "strict", "quirks"]
|
|
33
34
|
},
|
|
34
35
|
"sourceMap": {
|
|
35
36
|
"description": "Enable source map generation",
|
package/src/types/generated.ts
CHANGED
|
@@ -81,9 +81,9 @@ export interface CompilerConfig {
|
|
|
81
81
|
*/
|
|
82
82
|
ssr?: boolean;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* Template syntax compatibility mode
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
templateSyntax?: "standard" | "strict" | "quirks";
|
|
87
87
|
/**
|
|
88
88
|
* Enable source map generation
|
|
89
89
|
*/
|