vize 0.177.0 → 0.178.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 +13 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -144,17 +144,23 @@ Important shared fields:
|
|
|
144
144
|
`compiler.vueParserQuirks` is off by default. Keep it disabled for strict parsing, and enable it
|
|
145
145
|
when a project must compile templates that Vue currently accepts through parser edge-case behavior.
|
|
146
146
|
|
|
147
|
-
The supported
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
The supported quirks cover `v-for` aliases with an unmatched edge parenthesis and invalid
|
|
148
|
+
self-closing syntax on non-void HTML elements. Vue strips a leading `(` or trailing `)` from
|
|
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.
|
|
153
|
+
|
|
154
|
+
```text
|
|
152
155
|
<template>
|
|
153
156
|
<!-- Strict mode rejects this. Quirk mode compiles it as `item in items`. -->
|
|
154
|
-
<div v-for="item in items">{{ item }}</div>
|
|
157
|
+
<div v-for="(item in items">{{ item }}</div>
|
|
155
158
|
|
|
156
159
|
<!-- Strict mode rejects this. Quirk mode compiles it as `item in items`. -->
|
|
157
|
-
<div v-for="item in items">{{ item }}</div>
|
|
160
|
+
<div v-for="item) in items">{{ item }}</div>
|
|
161
|
+
|
|
162
|
+
<!-- Strict mode treats this as an open `<div>` start tag. Quirk mode keeps it as a leaf. -->
|
|
163
|
+
<div />
|
|
158
164
|
</template>
|
|
159
165
|
```
|
|
160
166
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.178.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.178.0",
|
|
54
54
|
"oxc-transform": "0.130.0",
|
|
55
55
|
"vue": "3.5.34"
|
|
56
56
|
},
|