vize 0.423.1 → 0.424.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 CHANGED
@@ -121,7 +121,9 @@ export default defineConfig({
121
121
  vapor: false,
122
122
  jsxVapor: false,
123
123
  intagComment: false,
124
- pattenedTemplate: false,
124
+ patternedTemplate: false,
125
+ selfComponent: false,
126
+ strictSlotChildren: false,
125
127
  serverScript: false,
126
128
  },
127
129
  vite: {
@@ -238,25 +240,27 @@ extension so both TypeScript and embedded JSX parse correctly. See the
238
240
 
239
241
  Important shared fields:
240
242
 
241
- | Field | Used by | Purpose |
242
- | -------------------------------- | ------------------------------ | ------------------------------------------------------------------ |
243
- | `compiler.sourceMap` | Vite plugin | Enable source maps |
244
- | `compiler.ssr` | npm build, Vite plugin | Force SSR compilation |
245
- | `compiler.vapor` | npm build, Vite plugin | Enable Vapor compilation |
246
- | `compiler.customRenderer` | npm build, Vite plugin | Treat lowercase non-HTML tags as custom renderer elements |
247
- | `compiler.customElements` | npm build, Vite plugin | Tag patterns compiled as custom elements instead of Vue components |
248
- | `compiler.templateSyntax` | npm build, Vite plugin | Choose standard, strict, or quirks template syntax mode |
249
- | `experimentals.vapor` | npm build, Vite plugin | Opt into experimental SFC Vapor before compiler support |
250
- | `experimentals.jsxVapor` | Vite plugin | Opt into experimental JSX Vapor by default |
251
- | `experimentals.intagComment` | npm build, Vite plugin, syntax | Opt into in-tag `//` comments |
252
- | `experimentals.pattenedTemplate` | npm build, Vite plugin | Opt into `v-match` / `v-case` templates |
253
- | `experimentals.serverScript` | npm build, Vite plugin | Preserve server-script RFC opt-in surface |
254
- | `compiler.compatibility` | integrations | Opt into legacy Vue, Nuxt, CDN, Vapor, or Webpack bridges |
255
- | `compiler.scriptExt` | npm build | Preserve TypeScript output or downcompile to JavaScript |
256
- | `vite.scanPatterns` | Vite plugin | Pre-compile matching Vue files |
257
- | `linter.preset` | npm lint | Select the Patina lint preset |
258
- | `typeChecker.strict` | npm check | Enable strict checks |
259
- | `formatter.printWidth` | npm fmt | Set formatting width |
243
+ | Field | Used by | Purpose |
244
+ | ---------------------------------- | ------------------------------ | ------------------------------------------------------------------ |
245
+ | `compiler.sourceMap` | Vite plugin | Enable source maps |
246
+ | `compiler.ssr` | npm build, Vite plugin | Force SSR compilation |
247
+ | `compiler.vapor` | npm build, Vite plugin | Enable Vapor compilation |
248
+ | `compiler.customRenderer` | npm build, Vite plugin | Treat lowercase non-HTML tags as custom renderer elements |
249
+ | `compiler.customElements` | npm build, Vite plugin | Tag patterns compiled as custom elements instead of Vue components |
250
+ | `compiler.templateSyntax` | npm build, Vite plugin | Choose standard, strict, or quirks template syntax mode |
251
+ | `experimentals.vapor` | npm build, Vite plugin | Opt into experimental SFC Vapor before compiler support |
252
+ | `experimentals.jsxVapor` | Vite plugin | Opt into experimental JSX Vapor by default |
253
+ | `experimentals.intagComment` | npm build, Vite plugin, syntax | Opt into in-tag `//` comments |
254
+ | `experimentals.patternedTemplate` | npm build, Vite plugin | Opt into `v-match` / `v-when` patterned templates |
255
+ | `experimentals.selfComponent` | npm build, Vite plugin | Opt into reserved `<Self>` recursive component resolution |
256
+ | `experimentals.strictSlotChildren` | npm check | Opt into strict slot child contract checks |
257
+ | `experimentals.serverScript` | npm build, Vite plugin | Preserve server-script RFC opt-in surface |
258
+ | `compiler.compatibility` | integrations | Opt into legacy Vue, Nuxt, CDN, Vapor, or Webpack bridges |
259
+ | `compiler.scriptExt` | npm build | Preserve TypeScript output or downcompile to JavaScript |
260
+ | `vite.scanPatterns` | Vite plugin | Pre-compile matching Vue files |
261
+ | `linter.preset` | npm lint | Select the Patina lint preset |
262
+ | `typeChecker.strict` | npm check | Enable strict checks |
263
+ | `formatter.printWidth` | npm fmt | Set formatting width |
260
264
 
261
265
  ### Template syntax
262
266
 
@@ -284,6 +288,18 @@ Vue upstream reference:
284
288
  - [`forAliasRE`](https://github.com/vuejs/core/blob/main/packages/compiler-core/src/utils.ts#L571)
285
289
  - [`stripParensRE` in `parseForExpression`](https://github.com/vuejs/core/blob/main/packages/compiler-core/src/parser.ts#L493-L530)
286
290
 
291
+ ### Experimental Vue RFC Flags
292
+
293
+ Every experimental Vue RFC flag is off by default. Set a key to `true` or `{}` in
294
+ `experimentals` to enable it for the matching tool; `false` and `null` keep it disabled. The
295
+ historical typo `pattenedTemplate` is still accepted as an alias for `patternedTemplate`, but new
296
+ configs should use `patternedTemplate`.
297
+
298
+ Supported opt-ins cover in-tag `//` comments, `v-match` / `v-when` patterned templates, reserved
299
+ `<Self>` recursion, and virtual-TypeScript slot child contract checks. See
300
+ [`docs/experimental-vue-rfc-flags.md`](./docs/experimental-vue-rfc-flags.md) for syntax, examples,
301
+ tool coverage, and upstream RFC links.
302
+
287
303
  ## Programmatic Config Helpers
288
304
 
289
305
  ```ts
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/ubugeeei-prod/vize/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@vizejs/native": "0.423.1",
10
+ "@vizejs/native": "0.424.0",
11
11
  "oxc-transform": "0.144.0"
12
12
  },
13
13
  "description": "Vize - High-performance Vue.js toolchain in Rust",
@@ -100,7 +100,7 @@
100
100
  ]
101
101
  }
102
102
  },
103
- "version": "0.423.1",
103
+ "version": "0.424.0",
104
104
  "scripts": {
105
105
  "build": "vp run --workspace-root generate:rule-types && vp pack",
106
106
  "check": "vp check src tests vite.config.ts",
@@ -36,6 +36,8 @@ class ExperimentalsConfig {
36
36
  inTagComment: Boolean? = null
37
37
  pattenedTemplate: Boolean? = null
38
38
  patternedTemplate: Boolean? = null
39
+ selfComponent: Boolean? = null
40
+ strictSlotChildren: Boolean? = null
39
41
  serverScript: Boolean? = null
40
42
  }
41
43
 
package/pkl/vize.pkl CHANGED
@@ -60,6 +60,8 @@ class ExperimentalsConfig {
60
60
  inTagComment: Boolean? = null
61
61
  pattenedTemplate: Boolean? = null
62
62
  patternedTemplate: Boolean? = null
63
+ selfComponent: Boolean? = null
64
+ strictSlotChildren: Boolean? = null
63
65
  serverScript: Boolean? = null
64
66
  }
65
67