vize 0.543.0 → 0.544.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 (2) hide show
  1. package/README.md +14 -8
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -62,7 +62,8 @@ vp install -D vize
62
62
 
63
63
  The package declares TypeScript 7's native Corsa runtime as an optional dependency, so standard
64
64
  installs include the runtime needed by `vize check`. The `--corsa-path` CLI option remains available
65
- for custom native TypeScript builds.
65
+ for custom native TypeScript builds. For project type checking, prefer TypeScript 7.1's content
66
+ mapper, documented below. tsrs can run that same project.
66
67
 
67
68
  ## Package Scripts
68
69
 
@@ -218,8 +219,8 @@ The TypeScript 7.1
218
219
  the TS Server plugin replacement needed by Vue. Vize publishes the package metadata and protocol
219
220
  server merged upstream in
220
221
  [microsoft/typescript-go#4712](https://github.com/microsoft/typescript-go/pull/4712),
221
- letting a `tsgo` build with content-mapper support transform `.vue` files directly instead of
222
- materializing a parallel `.vue.ts` project.
222
+ letting TypeScript 7.1 or newer, and [tsrs](https://github.com/oxc-project/tsrs), transform
223
+ `.vue` files directly instead of materializing a parallel `.vue.ts` project.
223
224
 
224
225
  ```json
225
226
  {
@@ -238,13 +239,18 @@ materializing a parallel `.vue.ts` project.
238
239
  ```
239
240
 
240
241
  ```bash
241
- tsgo --runExternalCode --noEmit -p tsconfig.json
242
+ tsc --runExternalCode --noEmit -p tsconfig.json
242
243
  ```
243
244
 
244
- Content Mappers are merged on the `typescript-go` main branch but are not in released TypeScript 7
245
- platform packages yet. Use a `tsgo` built from main while evaluating them, keep `--runExternalCode`
246
- explicit, and keep `vize check` as the supported typecheck path until a TypeScript 7 release ships
247
- the protocol. Vize negotiates protocol v1 with UTF-8 mappings, resolves its mapper options
245
+ tsrs checks the same project:
246
+
247
+ ```bash
248
+ tsrs --runExternalCode --noEmit -p tsconfig.json
249
+ ```
250
+
251
+ Content mappers ship in TypeScript 7.1, starting with the 7.1 beta (`typescript@beta`). Keep
252
+ `--runExternalCode` explicit. `vize check` remains available for the checker packaged in `vize`;
253
+ new projects should use the content mapper. Vize negotiates protocol v1 with UTF-8 mappings, resolves its mapper options
248
254
  and its declared `checkJs` / `noUnusedLocals` compiler-option dependencies per project through the
249
255
  `openProject`/`closeProject` lifecycle (invalid options surface as `optionDiagnostics` in the
250
256
  tsconfig), maps `<!-- @vue-expect-error -->` and `<!-- @vue-ignore -->` template comments onto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vize",
3
- "version": "0.543.0",
3
+ "version": "0.544.0",
4
4
  "description": "Vize - High-performance Vue.js toolchain in Rust",
5
5
  "keywords": [
6
6
  "cli",
@@ -53,7 +53,7 @@
53
53
  "access": "public"
54
54
  },
55
55
  "dependencies": {
56
- "@vizejs/native": "0.543.0",
56
+ "@vizejs/native": "0.544.0",
57
57
  "oxc-transform": "0.144.0"
58
58
  },
59
59
  "devDependencies": {