vite-plus 1.4.0 → 1.5.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 (68) hide show
  1. package/binding/index.cjs +54 -54
  2. package/binding/index.d.cts +31 -0
  3. package/dist/{agent-D8oxxhVR.js → agent-DkQD3xqe.js} +2 -2
  4. package/dist/bin.js +15 -7
  5. package/dist/config/bin.js +5 -5
  6. package/dist/{constants-DRUnJ_Dz.js → constants-D2P2aVKb.js} +6 -2
  7. package/dist/create/bin.js +114 -64
  8. package/dist/{define-config-rPhYIFSn.d.ts → define-config-BrvHRi-G.d.ts} +30 -2
  9. package/dist/{define-config-Cv2P6NT2.cjs → define-config-CwtQqYC1.cjs} +35 -3
  10. package/dist/{define-config-ChwJcu5e.js → define-config-wR57OZG_.js} +30 -5
  11. package/dist/define-config.cjs +2 -1
  12. package/dist/define-config.d.ts +2 -2
  13. package/dist/define-config.js +1 -1
  14. package/dist/{editor-ClL78D8u.js → editor-aOy1T15H.js} +1266 -884
  15. package/dist/hooks/bin.js +2 -2
  16. package/dist/{hooks-xRcJPc-O.js → hooks-w_e2whkQ.js} +40 -21
  17. package/dist/index.cjs +4 -3
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +2 -2
  20. package/dist/lint-plugins.cjs +1 -1
  21. package/dist/migration/bin.js +1302 -311
  22. package/dist/migration/compat/worker.js +1 -1
  23. package/dist/{oxlint-plugin-config-BVpqYdcC.js → oxlint-plugin-config-CHsI_zKo.js} +1 -1
  24. package/dist/oxlint-plugin.js +29 -4
  25. package/dist/pack-bin.js +2 -2
  26. package/dist/{package-DzsomcUD.js → package-DfFo6-E-.js} +1 -1
  27. package/dist/{prompts-GL1vj0wk.js → prompts-C7DI63WP.js} +3 -3
  28. package/dist/register.d.ts +1 -0
  29. package/dist/register.js +12 -0
  30. package/dist/{report-DLHO30yZ.js → report-BEdpIQvC.js} +2 -0
  31. package/dist/{resolve-vite-config-QO6cC0SP.js → resolve-vite-config-33bzSaeT.js} +1 -1
  32. package/dist/{resolve-vite-config-Dn5896A4.js → resolve-vite-config-Cx3cnVVI.js} +2 -2
  33. package/dist/script-esm-hooks.d.ts +5 -2
  34. package/dist/script-esm-hooks.js +5 -2
  35. package/dist/script-preload.cjs +24 -1
  36. package/dist/script-register.js +7 -2
  37. package/dist/script-watch.js +135 -41
  38. package/dist/staged/bin.js +2 -2
  39. package/dist/sync-versions/bin.js +1 -1
  40. package/dist/toolchain.js +13 -13
  41. package/dist/toolchain.json +13 -13
  42. package/dist/{tsconfig-Do6MAG_f.js → tsconfig-BE3Wj9OX.js} +1 -1
  43. package/dist/{tsconfig-LE_mAwe_.js → tsconfig-shNmmCE_.js} +2 -2
  44. package/dist/version.js +2 -2
  45. package/dist/versions.js +6 -6
  46. package/docs/config/check.md +2 -0
  47. package/docs/config/fmt.md +1 -1
  48. package/docs/config/lint.md +1 -1
  49. package/docs/config/run.md +6 -2
  50. package/docs/config/staged.md +1 -1
  51. package/docs/guide/check.md +5 -1
  52. package/docs/guide/ci.md +2 -2
  53. package/docs/guide/create.md +1 -1
  54. package/docs/guide/env.md +1 -1
  55. package/docs/guide/global-cli.md +12 -8
  56. package/docs/guide/homebrew.md +127 -0
  57. package/docs/guide/ide-integration.md +1 -3
  58. package/docs/guide/implode.md +5 -3
  59. package/docs/guide/local-cli.md +21 -0
  60. package/docs/guide/migrate-rules.md +81 -22
  61. package/docs/guide/migrate.md +9 -9
  62. package/docs/guide/run.md +23 -1
  63. package/docs/guide/test.md +1 -1
  64. package/docs/guide/troubleshooting.md +1 -1
  65. package/docs/guide/upgrade.md +12 -6
  66. package/docs/guide/vitest-v5.md +2 -2
  67. package/docs/guide/vpx.md +44 -4
  68. package/package.json +39 -33
package/binding/index.cjs CHANGED
@@ -93,12 +93,12 @@ function requireNative() {
93
93
  const bindingPackageVersion =
94
94
  require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
95
95
  if (
96
- bindingPackageVersion !== '1.4.0' &&
96
+ bindingPackageVersion !== '1.5.0' &&
97
97
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
98
98
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
99
99
  ) {
100
100
  throw new Error(
101
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
101
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
102
102
  );
103
103
  }
104
104
  return binding;
@@ -116,12 +116,12 @@ function requireNative() {
116
116
  const bindingPackageVersion =
117
117
  require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
118
118
  if (
119
- bindingPackageVersion !== '1.4.0' &&
119
+ bindingPackageVersion !== '1.5.0' &&
120
120
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
121
121
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
122
122
  ) {
123
123
  throw new Error(
124
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
124
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
125
125
  );
126
126
  }
127
127
  return binding;
@@ -151,12 +151,12 @@ function requireNative() {
151
151
  const bindingPackageVersion =
152
152
  require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
153
153
  if (
154
- bindingPackageVersion !== '1.4.0' &&
154
+ bindingPackageVersion !== '1.5.0' &&
155
155
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
156
156
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
157
157
  ) {
158
158
  throw new Error(
159
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
159
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
160
160
  );
161
161
  }
162
162
  return binding;
@@ -174,12 +174,12 @@ function requireNative() {
174
174
  const bindingPackageVersion =
175
175
  require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
176
176
  if (
177
- bindingPackageVersion !== '1.4.0' &&
177
+ bindingPackageVersion !== '1.5.0' &&
178
178
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
179
179
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
180
180
  ) {
181
181
  throw new Error(
182
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
182
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
183
183
  );
184
184
  }
185
185
  return binding;
@@ -198,12 +198,12 @@ function requireNative() {
198
198
  const bindingPackageVersion =
199
199
  require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
200
200
  if (
201
- bindingPackageVersion !== '1.4.0' &&
201
+ bindingPackageVersion !== '1.5.0' &&
202
202
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
203
203
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
204
204
  ) {
205
205
  throw new Error(
206
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
206
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
207
207
  );
208
208
  }
209
209
  return binding;
@@ -221,12 +221,12 @@ function requireNative() {
221
221
  const bindingPackageVersion =
222
222
  require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
223
223
  if (
224
- bindingPackageVersion !== '1.4.0' &&
224
+ bindingPackageVersion !== '1.5.0' &&
225
225
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
226
226
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
227
227
  ) {
228
228
  throw new Error(
229
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
229
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
230
230
  );
231
231
  }
232
232
  return binding;
@@ -247,12 +247,12 @@ function requireNative() {
247
247
  const bindingPackageVersion =
248
248
  require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
249
249
  if (
250
- bindingPackageVersion !== '1.4.0' &&
250
+ bindingPackageVersion !== '1.5.0' &&
251
251
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
252
252
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
253
253
  ) {
254
254
  throw new Error(
255
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
255
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
256
256
  );
257
257
  }
258
258
  return binding;
@@ -270,12 +270,12 @@ function requireNative() {
270
270
  const bindingPackageVersion =
271
271
  require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
272
272
  if (
273
- bindingPackageVersion !== '1.4.0' &&
273
+ bindingPackageVersion !== '1.5.0' &&
274
274
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
275
275
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
276
276
  ) {
277
277
  throw new Error(
278
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
278
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
279
279
  );
280
280
  }
281
281
  return binding;
@@ -293,12 +293,12 @@ function requireNative() {
293
293
  const bindingPackageVersion =
294
294
  require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
295
295
  if (
296
- bindingPackageVersion !== '1.4.0' &&
296
+ bindingPackageVersion !== '1.5.0' &&
297
297
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
298
298
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
299
299
  ) {
300
300
  throw new Error(
301
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
301
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
302
302
  );
303
303
  }
304
304
  return binding;
@@ -320,12 +320,12 @@ function requireNative() {
320
320
  const bindingPackageVersion =
321
321
  require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
322
322
  if (
323
- bindingPackageVersion !== '1.4.0' &&
323
+ bindingPackageVersion !== '1.5.0' &&
324
324
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
325
325
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
326
326
  ) {
327
327
  throw new Error(
328
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
328
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
329
329
  );
330
330
  }
331
331
  return binding;
@@ -343,12 +343,12 @@ function requireNative() {
343
343
  const bindingPackageVersion =
344
344
  require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
345
345
  if (
346
- bindingPackageVersion !== '1.4.0' &&
346
+ bindingPackageVersion !== '1.5.0' &&
347
347
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
348
348
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
349
349
  ) {
350
350
  throw new Error(
351
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
351
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
352
352
  );
353
353
  }
354
354
  return binding;
@@ -371,12 +371,12 @@ function requireNative() {
371
371
  const bindingPackageVersion =
372
372
  require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
373
373
  if (
374
- bindingPackageVersion !== '1.4.0' &&
374
+ bindingPackageVersion !== '1.5.0' &&
375
375
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
376
376
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
377
377
  ) {
378
378
  throw new Error(
379
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
379
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
380
380
  );
381
381
  }
382
382
  return binding;
@@ -394,12 +394,12 @@ function requireNative() {
394
394
  const bindingPackageVersion =
395
395
  require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
396
396
  if (
397
- bindingPackageVersion !== '1.4.0' &&
397
+ bindingPackageVersion !== '1.5.0' &&
398
398
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
399
399
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
400
400
  ) {
401
401
  throw new Error(
402
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
402
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
403
403
  );
404
404
  }
405
405
  return binding;
@@ -419,12 +419,12 @@ function requireNative() {
419
419
  const bindingPackageVersion =
420
420
  require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
421
421
  if (
422
- bindingPackageVersion !== '1.4.0' &&
422
+ bindingPackageVersion !== '1.5.0' &&
423
423
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
424
424
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
425
425
  ) {
426
426
  throw new Error(
427
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
427
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
428
428
  );
429
429
  }
430
430
  return binding;
@@ -442,12 +442,12 @@ function requireNative() {
442
442
  const bindingPackageVersion =
443
443
  require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
444
444
  if (
445
- bindingPackageVersion !== '1.4.0' &&
445
+ bindingPackageVersion !== '1.5.0' &&
446
446
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
447
447
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
448
448
  ) {
449
449
  throw new Error(
450
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
450
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
451
451
  );
452
452
  }
453
453
  return binding;
@@ -467,12 +467,12 @@ function requireNative() {
467
467
  const bindingPackageVersion =
468
468
  require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
469
469
  if (
470
- bindingPackageVersion !== '1.4.0' &&
470
+ bindingPackageVersion !== '1.5.0' &&
471
471
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
472
472
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
473
473
  ) {
474
474
  throw new Error(
475
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
475
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
476
476
  );
477
477
  }
478
478
  return binding;
@@ -490,12 +490,12 @@ function requireNative() {
490
490
  const bindingPackageVersion =
491
491
  require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
492
492
  if (
493
- bindingPackageVersion !== '1.4.0' &&
493
+ bindingPackageVersion !== '1.5.0' &&
494
494
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
495
495
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
496
496
  ) {
497
497
  throw new Error(
498
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
498
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
499
499
  );
500
500
  }
501
501
  return binding;
@@ -515,12 +515,12 @@ function requireNative() {
515
515
  const bindingPackageVersion =
516
516
  require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
517
517
  if (
518
- bindingPackageVersion !== '1.4.0' &&
518
+ bindingPackageVersion !== '1.5.0' &&
519
519
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
520
520
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
521
521
  ) {
522
522
  throw new Error(
523
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
523
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
524
524
  );
525
525
  }
526
526
  return binding;
@@ -538,12 +538,12 @@ function requireNative() {
538
538
  const bindingPackageVersion =
539
539
  require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
540
540
  if (
541
- bindingPackageVersion !== '1.4.0' &&
541
+ bindingPackageVersion !== '1.5.0' &&
542
542
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
543
543
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
544
544
  ) {
545
545
  throw new Error(
546
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
546
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
547
547
  );
548
548
  }
549
549
  return binding;
@@ -563,12 +563,12 @@ function requireNative() {
563
563
  const bindingPackageVersion =
564
564
  require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
565
565
  if (
566
- bindingPackageVersion !== '1.4.0' &&
566
+ bindingPackageVersion !== '1.5.0' &&
567
567
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
568
568
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
569
569
  ) {
570
570
  throw new Error(
571
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
571
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
572
572
  );
573
573
  }
574
574
  return binding;
@@ -586,12 +586,12 @@ function requireNative() {
586
586
  const bindingPackageVersion =
587
587
  require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
588
588
  if (
589
- bindingPackageVersion !== '1.4.0' &&
589
+ bindingPackageVersion !== '1.5.0' &&
590
590
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
591
591
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
592
592
  ) {
593
593
  throw new Error(
594
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
594
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
595
595
  );
596
596
  }
597
597
  return binding;
@@ -610,12 +610,12 @@ function requireNative() {
610
610
  const bindingPackageVersion =
611
611
  require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
612
612
  if (
613
- bindingPackageVersion !== '1.4.0' &&
613
+ bindingPackageVersion !== '1.5.0' &&
614
614
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
615
615
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
616
616
  ) {
617
617
  throw new Error(
618
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
618
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
619
619
  );
620
620
  }
621
621
  return binding;
@@ -633,12 +633,12 @@ function requireNative() {
633
633
  const bindingPackageVersion =
634
634
  require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
635
635
  if (
636
- bindingPackageVersion !== '1.4.0' &&
636
+ bindingPackageVersion !== '1.5.0' &&
637
637
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
638
638
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
639
639
  ) {
640
640
  throw new Error(
641
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
641
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
642
642
  );
643
643
  }
644
644
  return binding;
@@ -660,12 +660,12 @@ function requireNative() {
660
660
  const bindingPackageVersion =
661
661
  require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
662
662
  if (
663
- bindingPackageVersion !== '1.4.0' &&
663
+ bindingPackageVersion !== '1.5.0' &&
664
664
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
665
665
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
666
666
  ) {
667
667
  throw new Error(
668
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
668
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
669
669
  );
670
670
  }
671
671
  return binding;
@@ -683,12 +683,12 @@ function requireNative() {
683
683
  const bindingPackageVersion =
684
684
  require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
685
685
  if (
686
- bindingPackageVersion !== '1.4.0' &&
686
+ bindingPackageVersion !== '1.5.0' &&
687
687
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
688
688
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
689
689
  ) {
690
690
  throw new Error(
691
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
691
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
692
692
  );
693
693
  }
694
694
  return binding;
@@ -706,12 +706,12 @@ function requireNative() {
706
706
  const bindingPackageVersion =
707
707
  require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
708
708
  if (
709
- bindingPackageVersion !== '1.4.0' &&
709
+ bindingPackageVersion !== '1.5.0' &&
710
710
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
711
711
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
712
712
  ) {
713
713
  throw new Error(
714
- `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
714
+ `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
715
715
  );
716
716
  }
717
717
  return binding;
@@ -857,9 +857,9 @@ if (!nativeBinding || forceWasi) {
857
857
  ) {
858
858
  const bindingPackageVersion =
859
859
  require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
860
- if (bindingPackageVersion !== '1.4.0') {
860
+ if (bindingPackageVersion !== '1.5.0') {
861
861
  throw new Error(
862
- `WASI binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
862
+ `WASI binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
863
863
  );
864
864
  }
865
865
  }
@@ -1669,6 +1669,15 @@ export interface TypeScriptOptions {
1669
1669
  rewriteImportExtensions?: 'rewrite' | 'remove' | boolean;
1670
1670
  }
1671
1671
 
1672
+ /**
1673
+ * The selected tsconfig and its original source, sent to an asynchronous loader.
1674
+ * `None` selects discovery explicitly, without consulting the receiving thread's env.
1675
+ */
1676
+ export interface FrozenTsconfig {
1677
+ path?: string;
1678
+ source?: string;
1679
+ }
1680
+
1672
1681
  export interface LoadContext {
1673
1682
  /** Export conditions of the relevant `package.json` */
1674
1683
  conditions?: Array<string>;
@@ -2009,6 +2018,12 @@ export declare class BindingOutputChunk {
2009
2018
  getImports(): Array<string>;
2010
2019
  getDynamicImports(): Array<string>;
2011
2020
  getCode(): string;
2021
+ /**
2022
+ * Identity of the shared chunk data behind this object. Two `BindingOutputChunk` objects with the same
2023
+ * identity share the same data, so a JavaScript string made from `getCode()` of one is valid for the other.
2024
+ * The identity is the address of that data. It stays unique while a `BindingOutputChunk` keeps the data alive.
2025
+ */
2026
+ getCodeIdentity(): number;
2012
2027
  getMap(): string | null;
2013
2028
  getSourcemapFileName(): string | null;
2014
2029
  getPreliminaryFileName(): string;
@@ -2058,6 +2073,8 @@ export declare class BindingRenderedChunkMeta {
2058
2073
 
2059
2074
  export declare class BindingRenderedModule {
2060
2075
  get code(): string | null;
2076
+ /** `code.length` without materializing `code`. */
2077
+ get renderedLength(): number;
2061
2078
  get renderedExports(): Array<string>;
2062
2079
  }
2063
2080
 
@@ -2314,6 +2331,12 @@ export interface BindingDevOptions {
2314
2331
 
2315
2332
  export interface BindingDevtoolsOptions {
2316
2333
  sessionId?: string;
2334
+ /**
2335
+ * `"full"` (default): write JSON-lines devtools logs. `"report"`: aggregate the same
2336
+ * event stream in-memory and emit an agent-readable report (`metrics.json` + markdown)
2337
+ * under `node_modules/.rolldown/report/<output dir>` instead.
2338
+ */
2339
+ mode?: 'full' | 'report';
2317
2340
  }
2318
2341
 
2319
2342
  export interface BindingDevWatchOptions {
@@ -4238,6 +4261,14 @@ export declare namespace oxcNode {
4238
4261
  ) => ResolveFnOutput | Promise<ResolveFnOutput>,
4239
4262
  ): ResolveFnOutput | Promise<ResolveFnOutput>;
4240
4263
  export function enableWatchReport(): void;
4264
+ export function freezeTransformDeps(): string;
4265
+ /** Freeze the effective config before registering the off-thread ESM hooks. */
4266
+ export function freezeTsconfig(cwd: string): FrozenTsconfig;
4267
+ /** Apply a frozen selection, including discovery without the receiving thread's env. */
4268
+ export function initializeLoader(
4269
+ path?: string | undefined | null,
4270
+ source?: string | undefined | null,
4271
+ ): void;
4241
4272
  export function load(
4242
4273
  url: string,
4243
4274
  context: LoadContext,
@@ -1,6 +1,6 @@
1
+ import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-C7DI63WP.js";
2
+ import { a as SETUP_VP_VERSION } from "./constants-D2P2aVKb.js";
1
3
  import { n as rewriteDocumentationLinks } from "./documentation-cv_y0Auv.js";
2
- import { a as SETUP_VP_VERSION } from "./constants-DRUnJ_Dz.js";
3
- import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-GL1vj0wk.js";
4
4
  import path from "node:path";
5
5
  import { styleText } from "node:util";
6
6
  import fs from "node:fs";
package/dist/bin.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as documentationUrl$1 } from "./documentation-cv_y0Auv.js";
2
2
  import { t as renderCliDoc } from "./help-B03t_iQ4.js";
3
3
  import { c as warnMsg, i as log, n as errorMsg, o as printHeader, t as accent } from "./terminal-BcuPUy-j.js";
4
- import { g as resolveBundled, h as resolve$1, i as DEFAULT_ENVS, l as VITE_CONFIG_FILES, n as BASEURL_TSCONFIG_WARNING, r as CONFIG_METADATA_ENV, u as VITE_PLUS_NAME } from "./constants-DRUnJ_Dz.js";
5
- import { i as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-BVpqYdcC.js";
6
- import { o as readNearestPackageJson } from "./package-DzsomcUD.js";
4
+ import { i as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-CHsI_zKo.js";
5
+ import { g as resolveBundled, h as resolve$1, i as DEFAULT_ENVS, l as VITE_CONFIG_FILES, n as BASEURL_TSCONFIG_WARNING, r as CONFIG_METADATA_ENV, u as VITE_PLUS_NAME } from "./constants-D2P2aVKb.js";
6
+ import { o as readNearestPackageJson } from "./package-DfFo6-E-.js";
7
7
  import { t as cac } from "./dist-CdkMvIiQ.js";
8
8
  import { createRequire } from "node:module";
9
9
  import path, { dirname, join, resolve } from "node:path";
@@ -342,7 +342,7 @@ const commandHelpDocs = {
342
342
  },
343
343
  {
344
344
  label: "--api [port]",
345
- description: "Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204 or 63315 in browser mode. Use '--help --api' for more info."
345
+ description: "Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204 or 23315 in browser mode. Use '--help --api' for more info."
346
346
  },
347
347
  {
348
348
  label: "--silent [value]",
@@ -440,6 +440,14 @@ const commandHelpDocs = {
440
440
  label: "--changed [since]",
441
441
  description: "Run tests that are affected by the changed files (default: false)"
442
442
  },
443
+ {
444
+ label: "--sinceLastRun",
445
+ description: "Run tests with dependencies modified since their last run, plus tests that failed (default: false)"
446
+ },
447
+ {
448
+ label: "--lastFailed",
449
+ description: "Run only the tests that failed in the last run (default: false)"
450
+ },
443
451
  {
444
452
  label: "--sequence <options>",
445
453
  description: "Options for how tests should be sorted. Use '--help --sequence' for more info."
@@ -1099,7 +1107,7 @@ const commandHelpDocs = {
1099
1107
  },
1100
1108
  {
1101
1109
  label: "--env-file <file>",
1102
- description: "Load environment variables from a file, when used together with --env, variables in --env take precedence"
1110
+ description: "Load environment variables from a file, can be repeated"
1103
1111
  },
1104
1112
  {
1105
1113
  label: "--env-prefix <prefix>",
@@ -1529,7 +1537,7 @@ async function applyToolInitConfigToViteConfig(command, args, projectPath = proc
1529
1537
  }
1530
1538
  if (spec.configKey === "lint" && hasTriggerFlag(args, ["--init"])) {
1531
1539
  const lintInitConfigPath = path.join(projectPath, ".vite-plus-lint-init.oxlintrc.json");
1532
- const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-Do6MAG_f.js");
1540
+ const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-BE3Wj9OX.js");
1533
1541
  await fixBaseUrlInTsconfig(projectPath);
1534
1542
  const hasBaseUrl = hasBaseUrlInTsconfig(projectPath);
1535
1543
  const initConfig = createDefaultVitePlusLintConfig({ includeTypeAwareDefaults: !hasBaseUrl });
@@ -1867,7 +1875,7 @@ else try {
1867
1875
  toolchainManifestPath: path.join(cliDistDir, "toolchain.json"),
1868
1876
  vitePlusPackagePath,
1869
1877
  resolveUniversalViteConfig: async (err, cwd) => {
1870
- const { resolveUniversalViteConfig } = await import("./resolve-vite-config-QO6cC0SP.js");
1878
+ const { resolveUniversalViteConfig } = await import("./resolve-vite-config-33bzSaeT.js");
1871
1879
  return resolveUniversalViteConfig(err, cwd);
1872
1880
  },
1873
1881
  nodeVersion: process.version,
@@ -1,9 +1,9 @@
1
- import { i as log, n as errorMsg } from "../terminal-BcuPUy-j.js";
2
- import { i as promptGitHooks, n as defaultInteractive } from "../prompts-GL1vj0wk.js";
3
- import { o as updateExistingAgentInstructions } from "../agent-D8oxxhVR.js";
4
- import { t as require_dist } from "../dist-Bs0SObNC.js";
5
- import { c as isGitHooksEnvDisabled, l as isHooksUserDisabled, s as install, u as resolveHooksLocation } from "../hooks-xRcJPc-O.js";
1
+ import { o as updateExistingAgentInstructions } from "../agent-DkQD3xqe.js";
6
2
  import { t as unwrapCliParseOutcome } from "../cli-parse-aeUeFDlC.js";
3
+ import { t as require_dist } from "../dist-Bs0SObNC.js";
4
+ import { i as promptGitHooks, n as defaultInteractive } from "../prompts-C7DI63WP.js";
5
+ import { i as log, n as errorMsg } from "../terminal-BcuPUy-j.js";
6
+ import { c as isGitHooksEnvDisabled, l as isHooksUserDisabled, s as install, u as resolveHooksLocation } from "../hooks-w_e2whkQ.js";
7
7
  import path, { join, relative } from "node:path";
8
8
  import { parseConfigArgs } from "../../binding/index.js";
9
9
  import fs, { existsSync } from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
2
  // package.json
3
- var version = "1.4.0";
3
+ var version = "1.5.0";
4
4
  var exports = {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -45,6 +45,10 @@ var exports = {
45
45
  "types": "./dist/oxlint-plugin.d.ts"
46
46
  },
47
47
  "./package.json": "./package.json",
48
+ "./register": {
49
+ "types": "./dist/register.d.ts",
50
+ "default": "./dist/register.js"
51
+ },
48
52
  "./pack": {
49
53
  "types": "./dist/pack.d.ts",
50
54
  "import": "./dist/pack.js"
@@ -288,7 +292,7 @@ const VITE_CONFIG_FILES = [
288
292
  "vite.config.mts",
289
293
  "vite.config.cts"
290
294
  ];
291
- const VITEST_VERSION = "5.0.5";
295
+ const VITEST_VERSION = "5.1.0";
292
296
  const SETUP_VP_VERSION = "v1.21.2";
293
297
  const TSDOWN_MIGRATION_SKILL_URL = "https://github.com/rolldown/tsdown/blob/main/skills/tsdown-migrate/SKILL.md";
294
298
  const VITE_PLUS_OVERRIDE_PACKAGES = process.env.VP_OVERRIDE_PACKAGES ? JSON.parse(process.env.VP_OVERRIDE_PACKAGES) : {