vite-plus 0.3.2 → 1.0.0-rc.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 (149) hide show
  1. package/LICENSE +35 -146
  2. package/README.md +3 -3
  3. package/binding/index.cjs +140 -55
  4. package/binding/index.d.cts +49 -0
  5. package/dist/{agent-C59HKB4Y.js → agent-Dinpyd-k.js} +6 -5
  6. package/dist/bin.js +48 -18
  7. package/dist/config/bin.js +2 -2
  8. package/dist/constants-CiKwrA0v.js +356 -0
  9. package/dist/create/bin.js +96 -71
  10. package/dist/{define-config-DPNEJxPz.d.ts → define-config-B9usMnEa.d.ts} +51 -10
  11. package/dist/{define-config-DpAPETDf.cjs → define-config-CBccpane.cjs} +173 -44
  12. package/dist/{define-config-DAaCa0U_.js → define-config-jhuYJ7Tb.js} +158 -42
  13. package/dist/define-config.cjs +1 -1
  14. package/dist/define-config.d.ts +1 -1
  15. package/dist/define-config.js +1 -1
  16. package/dist/documentation-DqcZSthV.js +11 -0
  17. package/dist/{editor-QOIGtmH4.js → editor-DMBczTdj.js} +216 -152
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/{json-cULBl7Pi.js → json-JP24qHUF.js} +14 -6
  22. package/dist/lint-plugins.cjs +1 -1
  23. package/dist/migration/bin.js +3122 -15
  24. package/dist/{oxlint-plugin-config-BU42tr8y.js → oxlint-plugin-config-BgsDA6ua.js} +1 -1
  25. package/dist/oxlint-plugin.js +9 -7
  26. package/dist/pack-bin.js +1 -1
  27. package/dist/{package-BB-Jh_z3.js → package-B85H2Nw0.js} +6 -2
  28. package/dist/{vitest-ecosystem-BiRqcaRI.js → package-overrides-Dpn4scvN.js} +1 -7
  29. package/dist/{prompts-CujFOJXu.js → prompts-CQobX7uP.js} +2 -2
  30. package/dist/{resolve-vite-config-CHHjsjKJ.js → resolve-vite-config-BUFUmi8h.js} +2 -2
  31. package/dist/{resolve-vite-config-6Nox70uP.js → resolve-vite-config-I8fmpR7I.js} +1 -1
  32. package/dist/staged/bin.js +1205 -3317
  33. package/dist/sync-versions/bin.js +3 -2
  34. package/dist/sync-versions/bin.mjs +17 -2
  35. package/dist/test/browser/context.js +1 -1
  36. package/dist/test/browser/providers/playwright/context.js +1 -1
  37. package/dist/test/browser/providers/preview/context.js +1 -1
  38. package/dist/test/browser-playwright/context.js +1 -1
  39. package/dist/test/browser-preview/context.js +1 -1
  40. package/dist/test/context.d.ts +2 -942
  41. package/dist/test/context.js +1 -1
  42. package/dist/test/internal/traces.js +1 -0
  43. package/dist/test/locators.d.ts +2 -294
  44. package/dist/test/matchers.d.ts +2 -29
  45. package/dist/test/mocker.d.ts +2 -0
  46. package/dist/test/mocker.js +1 -0
  47. package/dist/test/{browser-webdriverio/context.js → plugins/browser-context.d.ts} +1 -0
  48. package/dist/test/plugins/browser-context.js +1 -1
  49. package/dist/test/plugins/browser-locators.d.ts +2 -0
  50. package/dist/test/plugins/browser-playwright.d.ts +2 -0
  51. package/dist/test/plugins/browser-preview.d.ts +2 -0
  52. package/dist/test/plugins/browser.d.ts +2 -0
  53. package/dist/test/plugins/mocker-automock.d.ts +2 -0
  54. package/dist/test/plugins/mocker-browser.d.ts +2 -0
  55. package/dist/test/plugins/mocker-node.d.ts +2 -0
  56. package/dist/test/plugins/mocker-redirect.d.ts +2 -0
  57. package/dist/test/plugins/mocker-register.d.ts +2 -0
  58. package/dist/test/plugins/mocker-transforms.d.ts +2 -0
  59. package/dist/test/plugins/mocker.d.ts +2 -0
  60. package/dist/test/plugins/pretty-format.d.ts +2 -0
  61. package/dist/test/plugins/snapshot-environment.d.ts +2 -0
  62. package/dist/test/plugins/snapshot-manager.d.ts +2 -0
  63. package/dist/test/plugins/snapshot.d.ts +2 -0
  64. package/dist/test/plugins/spy.d.ts +2 -0
  65. package/dist/test/plugins/utils-constants.d.ts +2 -0
  66. package/dist/test/plugins/utils-diff.d.ts +2 -0
  67. package/dist/test/plugins/utils-display.d.ts +2 -0
  68. package/dist/test/plugins/utils-error.d.ts +2 -0
  69. package/dist/test/plugins/utils-helpers.d.ts +2 -0
  70. package/dist/test/plugins/utils-offset.d.ts +2 -0
  71. package/dist/test/plugins/utils-resolver.d.ts +2 -0
  72. package/dist/test/plugins/utils-serialize.d.ts +2 -0
  73. package/dist/test/plugins/utils-source-map-node.d.ts +2 -0
  74. package/dist/test/plugins/utils-source-map.d.ts +2 -0
  75. package/dist/test/plugins/utils-timers.d.ts +2 -0
  76. package/dist/test/plugins/utils.d.ts +2 -0
  77. package/dist/toolchain.js +10 -10
  78. package/dist/toolchain.json +10 -10
  79. package/dist/{tsconfig-DCtWfQPA.js → tsconfig-Buo0RSzz.js} +8 -4
  80. package/dist/{tsconfig-MXktI3SX.js → tsconfig-C1VeTG9k.js} +1 -1
  81. package/dist/version.js +5 -3
  82. package/dist/versions.js +5 -5
  83. package/dist/vitest-ecosystem-BU0AqZq-.js +23 -0
  84. package/dist/vitest-v5-entry-points-DthU1e_O.js +25 -0
  85. package/docs/config/fmt.md +2 -2
  86. package/docs/config/lint.md +2 -2
  87. package/docs/config/run.md +1 -1
  88. package/docs/config/staged.md +1 -2
  89. package/docs/guide/check.md +2 -0
  90. package/docs/guide/ci.md +28 -31
  91. package/docs/guide/commit-hooks.md +18 -34
  92. package/docs/guide/create.md +1 -2
  93. package/docs/guide/docker.md +20 -68
  94. package/docs/guide/env.md +47 -32
  95. package/docs/guide/fmt.md +4 -2
  96. package/docs/guide/global-cli.md +426 -0
  97. package/docs/guide/ide-integration.md +1 -2
  98. package/docs/guide/implode.md +14 -1
  99. package/docs/guide/index.md +38 -35
  100. package/docs/guide/install.md +18 -20
  101. package/docs/guide/lint.md +6 -10
  102. package/docs/guide/local-cli.md +123 -0
  103. package/docs/guide/migrate-rules.md +104 -297
  104. package/docs/guide/migrate.md +82 -59
  105. package/docs/guide/monorepo.md +5 -1
  106. package/docs/guide/run.md +1 -1
  107. package/docs/guide/test.md +2 -0
  108. package/docs/guide/troubleshooting.md +6 -11
  109. package/docs/guide/upgrade-project.md +61 -0
  110. package/docs/guide/upgrade.md +17 -62
  111. package/docs/guide/vitest-v5.md +221 -0
  112. package/package.json +67 -90
  113. package/bin/oxfmt +0 -33
  114. package/bin/oxlint +0 -38
  115. package/dist/cli-truncate-Bg3RDXpi.js +0 -865
  116. package/dist/constants-IhOditRA.js +0 -80
  117. package/dist/is-fullwidth-code-point-BUNlIICg.js +0 -8
  118. package/dist/log-update-CoW8Z4Dl.js +0 -491
  119. package/dist/strip-ansi-C3wrWz9t.js +0 -853
  120. package/dist/test/browser/providers/webdriverio/context.d.ts +0 -1
  121. package/dist/test/browser/providers/webdriverio/context.js +0 -1
  122. package/dist/test/browser/providers/webdriverio.d.ts +0 -77
  123. package/dist/test/browser/providers/webdriverio.js +0 -1
  124. package/dist/test/browser-webdriverio/context.d.ts +0 -1
  125. package/dist/test/browser-webdriverio.d.ts +0 -77
  126. package/dist/test/browser-webdriverio.js +0 -1
  127. package/dist/test/coverage.d.ts +0 -2
  128. package/dist/test/coverage.js +0 -1
  129. package/dist/test/environments.d.ts +0 -2
  130. package/dist/test/environments.js +0 -1
  131. package/dist/test/plugins/browser-webdriverio.js +0 -1
  132. package/dist/test/plugins/expect.js +0 -1
  133. package/dist/test/plugins/runner-types.js +0 -1
  134. package/dist/test/plugins/runner-utils.js +0 -1
  135. package/dist/test/plugins/runner.js +0 -1
  136. package/dist/test/reporters.d.ts +0 -2
  137. package/dist/test/reporters.js +0 -1
  138. package/dist/test/runners.d.ts +0 -2
  139. package/dist/test/runners.js +0 -1
  140. package/dist/test/snapshot.d.ts +0 -2
  141. package/dist/test/snapshot.js +0 -1
  142. package/dist/test/suite.d.ts +0 -2
  143. package/dist/test/suite.js +0 -1
  144. package/dist/tsgolint-path-CbDReEOx.js +0 -34
  145. package/dist/tsgolint-path.d.ts +0 -7
  146. package/dist/tsgolint-path.js +0 -2
  147. package/dist/wrap-ansi-DNjkuBEp.js +0 -157
  148. package/dist/wrap-ansi-DUi52C6W.js +0 -2
  149. package/docs/guide/installer-env-vars.md +0 -286
@@ -1 +1 @@
1
- export * from '@vitest/browser/context';
1
+ export * from 'vitest/browser';
@@ -0,0 +1 @@
1
+ export * from 'vitest/internal/traces';
@@ -1,294 +1,2 @@
1
- import { UserEventClickOptions, UserEventWheelOptions, UserEventClearOptions, UserEventHoverOptions, UserEventFillOptions, UserEventUploadOptions, UserEventDragAndDropOptions, UserEventSelectOptions, LocatorScreenshotOptions, MarkOptions, LocatorByRoleOptions, LocatorOptions, SelectorOptions } from './browser.js';
2
-
3
- //#region src/cssParser.d.ts
4
- type ClauseCombinator = '' | '>' | '+' | '~' | '>=';
5
- type CSSFunctionArgument = CSSComplexSelector | number | string;
6
- interface CSSFunction {
7
- name: string;
8
- args: CSSFunctionArgument[];
9
- }
10
- interface CSSSimpleSelector {
11
- css?: string;
12
- functions: CSSFunction[];
13
- }
14
- interface CSSComplexSelector {
15
- simples: {
16
- selector: CSSSimpleSelector;
17
- combinator: ClauseCombinator;
18
- }[];
19
- }
20
- type CSSComplexSelectorList = CSSComplexSelector[];
21
- //#endregion
22
- //#region src/selectorParser.d.ts
23
- interface NestedSelectorBody {
24
- parsed: ParsedSelector;
25
- distance?: number;
26
- }
27
- interface ParsedSelectorPart {
28
- name: string;
29
- body: string | CSSComplexSelectorList | NestedSelectorBody;
30
- source: string;
31
- }
32
- interface ParsedSelector {
33
- parts: ParsedSelectorPart[];
34
- capture?: number;
35
- }
36
- //#endregion
37
- //#region src/selectorGenerator.d.ts
38
- interface GenerateSelectorOptions {
39
- testIdAttributeName: string;
40
- }
41
- //#endregion
42
- //#region src/selectorUtils.d.ts
43
- interface ElementText {
44
- full: string;
45
- normalized: string;
46
- immediate: string[];
47
- }
48
- //#endregion
49
- //#region src/selectorEvaluator.d.ts
50
- interface QueryContext {
51
- scope: Element | Document;
52
- pierceShadow: boolean;
53
- originalScope?: Element | Document;
54
- }
55
- type Selector = any;
56
- interface SelectorEvaluator {
57
- query: (context: QueryContext, selector: Selector) => Element[];
58
- matches: (element: Element, selector: Selector, context: QueryContext) => boolean;
59
- }
60
- interface SelectorEngine$1 {
61
- matches?: (element: Element, args: (string | number | Selector)[], context: QueryContext, evaluator: SelectorEvaluator) => boolean;
62
- query?: (context: QueryContext, args: (string | number | Selector)[], evaluator: SelectorEvaluator) => Element[];
63
- }
64
- declare class SelectorEvaluatorImpl implements SelectorEvaluator {
65
- private _engines;
66
- private _cacheQueryCSS;
67
- private _cacheMatches;
68
- private _cacheQuery;
69
- private _cacheMatchesSimple;
70
- private _cacheMatchesParents;
71
- private _cacheCallMatches;
72
- private _cacheCallQuery;
73
- private _cacheQuerySimple;
74
- _cacheText: Map<Element | ShadowRoot, ElementText>;
75
- private _scoreMap;
76
- private _retainCacheCounter;
77
- constructor(extraEngines: Map<string, SelectorEngine$1>);
78
- begin(): void;
79
- end(): void;
80
- private _cached;
81
- private _checkSelector;
82
- matches(element: Element, s: Selector, context: QueryContext): boolean;
83
- query(context: QueryContext, s: any): Element[];
84
- _markScore(element: Element, score: number): void;
85
- private _hasScopeClause;
86
- private _expandContextForScopeMatching;
87
- private _matchesSimple;
88
- private _querySimple;
89
- private _matchesParents;
90
- private _matchesEngine;
91
- private _queryEngine;
92
- private _callMatches;
93
- private _callQuery;
94
- private _matchesCSS;
95
- _queryCSS(context: QueryContext, css: string): Element[];
96
- private _getEngine;
97
- }
98
- //#endregion
99
- //#region src/locatorUtils.d.ts
100
- /**
101
- * Copyright (c) Microsoft Corporation.
102
- *
103
- * Licensed under the Apache License, Version 2.0 (the "License");
104
- * you may not use this file except in compliance with the License.
105
- * You may obtain a copy of the License at
106
- *
107
- * http://www.apache.org/licenses/LICENSE-2.0
108
- *
109
- * Unless required by applicable law or agreed to in writing, software
110
- * distributed under the License is distributed on an "AS IS" BASIS,
111
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112
- * See the License for the specific language governing permissions and
113
- * limitations under the License.
114
- */
115
- interface ByRoleOptions {
116
- checked?: boolean;
117
- disabled?: boolean;
118
- exact?: boolean;
119
- expanded?: boolean;
120
- includeHidden?: boolean;
121
- level?: number;
122
- name?: string | RegExp;
123
- pressed?: boolean;
124
- selected?: boolean;
125
- }
126
- declare function getByTestIdSelector(testIdAttributeName: string, testId: string | RegExp): string;
127
- declare function getByLabelSelector(text: string | RegExp, options?: {
128
- exact?: boolean;
129
- }): string;
130
- declare function getByAltTextSelector(text: string | RegExp, options?: {
131
- exact?: boolean;
132
- }): string;
133
- declare function getByTitleSelector(text: string | RegExp, options?: {
134
- exact?: boolean;
135
- }): string;
136
- declare function getByPlaceholderSelector(text: string | RegExp, options?: {
137
- exact?: boolean;
138
- }): string;
139
- declare function getByTextSelector(text: string | RegExp, options?: {
140
- exact?: boolean;
141
- }): string;
142
- declare function getByRoleSelector(role: string, options?: ByRoleOptions): string;
143
- //#endregion
144
- //#region src/ivya.d.ts
145
- interface IvyaOptions {
146
- testIdAttribute: string;
147
- browser: 'webkit' | 'chromium' | 'firefox';
148
- exact: boolean;
149
- }
150
- interface IvyaConfiguration {
151
- testIdAttribute?: string;
152
- exact?: boolean;
153
- browser: 'webkit' | 'chromium' | 'firefox';
154
- }
155
- declare class Ivya {
156
- /** @internal */
157
- _engines: Map<string, SelectorEngine>;
158
- /** @internal */
159
- _evaluator: SelectorEvaluatorImpl;
160
- static options: IvyaOptions;
161
- private static singleton;
162
- static create(options: IvyaConfiguration): Ivya;
163
- private constructor();
164
- queryLocatorSelector(locator: string, root?: Node, strict?: boolean): Element | null;
165
- queryLocatorSelectorAll(locator: string, root?: Node): Element[];
166
- querySelector(selector: ParsedSelector, root: Node, strict?: boolean): Element | null;
167
- queryAllByRole(text: string, options?: ByRoleOptions, container?: Node): Element[];
168
- queryAllByLabelText(text: string | RegExp, options?: {
169
- exact?: boolean;
170
- }, container?: Node): Element[];
171
- queryAllByTestId(text: string | RegExp, container?: Node): Element[];
172
- queryAllByText(text: string | RegExp, options?: {
173
- exact?: boolean;
174
- }, container?: Node): Element[];
175
- queryAllByTitle(text: string | RegExp, options?: {
176
- exact?: boolean;
177
- }, container?: Node): Element[];
178
- queryAllByPlaceholder(text: string | RegExp, options?: {
179
- exact?: boolean;
180
- }, container?: Node): Element[];
181
- queryAllByAltText(text: string | RegExp, options?: {
182
- exact?: boolean;
183
- }, container?: Node): Element[];
184
- queryByRole(text: string, options?: ByRoleOptions, container?: Node): Element | null;
185
- queryByLabelText(text: string | RegExp, options?: {
186
- exact?: boolean;
187
- }, container?: Node): Element | null;
188
- queryByTestId(text: string | RegExp, container?: Node): Element | null;
189
- queryByText(text: string | RegExp, options?: {
190
- exact?: boolean;
191
- }, container?: Node): Element | null;
192
- queryByTitle(text: string | RegExp, options?: {
193
- exact?: boolean;
194
- }, container?: Node): Element | null;
195
- queryByPlaceholder(text: string | RegExp, options?: {
196
- exact?: boolean;
197
- }, container?: Node): Element | null;
198
- queryByAltText(text: string | RegExp, options?: {
199
- exact?: boolean;
200
- }, container?: Node): Element | null;
201
- private strictModeViolationError;
202
- generateSelectorSimple(targetElement: Element, options?: GenerateSelectorOptions): string;
203
- parseSelector(selector: string): ParsedSelector;
204
- previewNode(node: Node): string;
205
- querySelectorAll(selector: ParsedSelector, root: Node): Element[];
206
- private _queryEngineAll;
207
- private _queryNth;
208
- private _queryLayoutSelector;
209
- private createStacklessError;
210
- private _createTextEngine;
211
- private _createAttributeEngine;
212
- private _createCSSEngine;
213
- private _createNamedAttributeEngine;
214
- private _createVisibleEngine;
215
- private _createControlEngine;
216
- private _createHasEngine;
217
- private _createHasNotEngine;
218
- private _createInternalChainEngine;
219
- private _createInternalLabelEngine;
220
- private _createInternalHasTextEngine;
221
- private _createInternalHasNotTextEngine;
222
- }
223
- type SelectorRoot = Element | ShadowRoot | Document;
224
- interface SelectorEngine {
225
- queryAll: (root: SelectorRoot, selector: string | any) => Element[];
226
- }
227
-
228
- declare function convertElementToCssSelector(element: Element): string;
229
- declare function processTimeoutOptions<T extends {
230
- timeout?: number;
231
- }>(options_: T | undefined): T | undefined;
232
- declare function getIframeScale(): number;
233
-
234
- declare function ensureAwaited<T>(promise: (error?: Error) => Promise<T>): Promise<T>;
235
-
236
- declare const selectorEngine: Ivya;
237
- declare abstract class Locator {
238
- abstract selector: string;
239
- private _parsedSelector;
240
- protected _container?: Element | undefined;
241
- protected _pwSelector?: string | undefined;
242
- protected _errorSource?: Error;
243
- constructor();
244
- click(options?: UserEventClickOptions): Promise<void>;
245
- dblClick(options?: UserEventClickOptions): Promise<void>;
246
- tripleClick(options?: UserEventClickOptions): Promise<void>;
247
- wheel(options: UserEventWheelOptions): Promise<void>;
248
- clear(options?: UserEventClearOptions): Promise<void>;
249
- hover(options?: UserEventHoverOptions): Promise<void>;
250
- unhover(options?: UserEventHoverOptions): Promise<void>;
251
- fill(text: string, options?: UserEventFillOptions): Promise<void>;
252
- upload(files: string | string[] | File | File[], options?: UserEventUploadOptions): Promise<void>;
253
- dropTo(target: Locator, options?: UserEventDragAndDropOptions): Promise<void>;
254
- selectOptions(value: HTMLElement | HTMLElement[] | Locator | Locator[] | string | string[], options?: UserEventSelectOptions): Promise<void>;
255
- screenshot(options: Omit<LocatorScreenshotOptions, "base64"> & {
256
- base64: true;
257
- }): Promise<{
258
- path: string;
259
- base64: string;
260
- }>;
261
- screenshot(options?: LocatorScreenshotOptions): Promise<string>;
262
- mark(name: string, options?: MarkOptions): Promise<void>;
263
- protected abstract locator(selector: string): Locator;
264
- protected abstract elementLocator(element: Element): Locator;
265
- getByRole(role: string, options?: LocatorByRoleOptions): Locator;
266
- getByAltText(text: string | RegExp, options?: LocatorOptions): Locator;
267
- getByLabelText(text: string | RegExp, options?: LocatorOptions): Locator;
268
- getByPlaceholder(text: string | RegExp, options?: LocatorOptions): Locator;
269
- getByTestId(testId: string | RegExp): Locator;
270
- getByText(text: string | RegExp, options?: LocatorOptions): Locator;
271
- getByTitle(title: string | RegExp, options?: LocatorOptions): Locator;
272
- filter(filter: LocatorOptions): Locator;
273
- and(locator: Locator): Locator;
274
- or(locator: Locator): Locator;
275
- query(): HTMLElement | SVGElement | null;
276
- element(): HTMLElement | SVGElement;
277
- elements(): (HTMLElement | SVGElement)[];
278
- get length(): number;
279
- all(): Locator[];
280
- nth(index: number): Locator;
281
- first(): Locator;
282
- last(): Locator;
283
- toString(): string;
284
- toJSON(): string;
285
- findElement(options_?: SelectorOptions): Promise<HTMLElement | SVGElement>;
286
- protected triggerCommand<T>(command: string, ...args: any[]): Promise<T>;
287
- }
288
- declare function triggerCommandWithTrace<T>(options: {
289
- name: string;
290
- arguments: unknown[];
291
- errorSource?: Error | undefined;
292
- }): Promise<T>;
293
-
294
- export { Locator, convertElementToCssSelector, ensureAwaited, getByAltTextSelector, getByLabelSelector, getByPlaceholderSelector, getByRoleSelector, getByTestIdSelector, getByTextSelector, getByTitleSelector, getIframeScale, processTimeoutOptions, selectorEngine, triggerCommandWithTrace };
1
+ import '@vitest/browser/locators';
2
+ export * from '@vitest/browser/locators';
@@ -1,29 +1,2 @@
1
- import type { Locator } from './context.js'
2
- import type { TestingLibraryMatchers } from './jest-dom.js'
3
- import type { Assertion, ExpectPollOptions } from 'vitest'
4
-
5
- declare module 'vitest' {
6
- interface JestAssertion<T = any> extends TestingLibraryMatchers<void, T> {}
7
- interface AsymmetricMatchersContaining extends TestingLibraryMatchers<void, void> {}
8
-
9
- type Promisify<O> = {
10
- [K in keyof O]: O[K] extends (...args: infer A) => infer R
11
- ? O extends R
12
- ? Promisify<O[K]>
13
- : (...args: A) => Promise<R>
14
- : O[K];
15
- }
16
-
17
- type PromisifyDomAssertion<T> = Promisify<Assertion<T>>
18
-
19
- interface ExpectStatic {
20
- /**
21
- * `expect.element(locator)` is a shorthand for `expect.poll(() => locator.element())`.
22
- * You can set default timeout via `expect.poll.timeout` option in the config.
23
- * @see {@link https://vitest.dev/api/expect#poll}
24
- */
25
- element: <T extends HTMLElement | SVGElement | null | Locator>(element: T, options?: ExpectPollOptions) => PromisifyDomAssertion<Awaited<HTMLElement | SVGElement | null>>
26
- }
27
- }
28
-
29
- export {}
1
+ import '@vitest/browser/matchers';
2
+ export * from '@vitest/browser/matchers';
@@ -0,0 +1,2 @@
1
+ import '@vitest/mocker';
2
+ export * from '@vitest/mocker';
@@ -0,0 +1 @@
1
+ export * from '@vitest/mocker';
@@ -1 +1,2 @@
1
+ import '@vitest/browser/context';
1
2
  export * from '@vitest/browser/context';
@@ -1 +1 @@
1
- export * from '@vitest/browser/context';
1
+ export * from 'vitest/browser';
@@ -0,0 +1,2 @@
1
+ import '@vitest/browser/locators';
2
+ export * from '@vitest/browser/locators';
@@ -0,0 +1,2 @@
1
+ import '@vitest/browser-playwright';
2
+ export * from '@vitest/browser-playwright';
@@ -0,0 +1,2 @@
1
+ import '@vitest/browser-preview';
2
+ export * from '@vitest/browser-preview';
@@ -0,0 +1,2 @@
1
+ import '@vitest/browser';
2
+ export * from '@vitest/browser';
@@ -0,0 +1,2 @@
1
+ import '@vitest/mocker/automock';
2
+ export * from '@vitest/mocker/automock';
@@ -0,0 +1,2 @@
1
+ import '@vitest/mocker/browser';
2
+ export * from '@vitest/mocker/browser';
@@ -0,0 +1,2 @@
1
+ import '@vitest/mocker/node';
2
+ export * from '@vitest/mocker/node';
@@ -0,0 +1,2 @@
1
+ import '@vitest/mocker/redirect';
2
+ export * from '@vitest/mocker/redirect';
@@ -0,0 +1,2 @@
1
+ import '@vitest/mocker/register';
2
+ export * from '@vitest/mocker/register';
@@ -0,0 +1,2 @@
1
+ import '@vitest/mocker/transforms';
2
+ export * from '@vitest/mocker/transforms';
@@ -0,0 +1,2 @@
1
+ import '@vitest/mocker';
2
+ export * from '@vitest/mocker';
@@ -0,0 +1,2 @@
1
+ import '@vitest/pretty-format';
2
+ export * from '@vitest/pretty-format';
@@ -0,0 +1,2 @@
1
+ import '@vitest/snapshot/environment';
2
+ export * from '@vitest/snapshot/environment';
@@ -0,0 +1,2 @@
1
+ import '@vitest/snapshot/manager';
2
+ export * from '@vitest/snapshot/manager';
@@ -0,0 +1,2 @@
1
+ import '@vitest/snapshot';
2
+ export * from '@vitest/snapshot';
@@ -0,0 +1,2 @@
1
+ import '@vitest/spy';
2
+ export * from '@vitest/spy';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/constants';
2
+ export * from '@vitest/utils/constants';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/diff';
2
+ export * from '@vitest/utils/diff';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/display';
2
+ export * from '@vitest/utils/display';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/error';
2
+ export * from '@vitest/utils/error';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/helpers';
2
+ export * from '@vitest/utils/helpers';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/offset';
2
+ export * from '@vitest/utils/offset';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/resolver';
2
+ export * from '@vitest/utils/resolver';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/serialize';
2
+ export * from '@vitest/utils/serialize';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/source-map/node';
2
+ export * from '@vitest/utils/source-map/node';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/source-map';
2
+ export * from '@vitest/utils/source-map';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils/timers';
2
+ export * from '@vitest/utils/timers';
@@ -0,0 +1,2 @@
1
+ import '@vitest/utils';
2
+ export * from '@vitest/utils';
package/dist/toolchain.js CHANGED
@@ -4,7 +4,7 @@ export const toolchain = {
4
4
  {
5
5
  "id": "vite-plus",
6
6
  "name": "vite-plus",
7
- "version": "0.3.2",
7
+ "version": "1.0.0-rc.0",
8
8
  "kind": "package",
9
9
  "delivery": [
10
10
  "dependency"
@@ -14,7 +14,7 @@ export const toolchain = {
14
14
  {
15
15
  "id": "vite-plus-core",
16
16
  "name": "@voidzero-dev/vite-plus-core",
17
- "version": "0.3.2",
17
+ "version": "1.0.0-rc.0",
18
18
  "kind": "package",
19
19
  "delivery": [
20
20
  "dependency"
@@ -36,7 +36,7 @@ export const toolchain = {
36
36
  {
37
37
  "id": "rolldown",
38
38
  "name": "rolldown",
39
- "version": "1.2.8",
39
+ "version": "1.2.9",
40
40
  "kind": "tool",
41
41
  "delivery": [
42
42
  "bundled",
@@ -47,7 +47,7 @@ export const toolchain = {
47
47
  {
48
48
  "id": "vitest",
49
49
  "name": "vitest",
50
- "version": "4.1.11",
50
+ "version": "5.0.1",
51
51
  "kind": "tool",
52
52
  "delivery": [
53
53
  "dependency"
@@ -57,7 +57,7 @@ export const toolchain = {
57
57
  {
58
58
  "id": "oxlint",
59
59
  "name": "oxlint",
60
- "version": "1.82.0",
60
+ "version": "1.85.0",
61
61
  "kind": "tool",
62
62
  "delivery": [
63
63
  "dependency"
@@ -67,7 +67,7 @@ export const toolchain = {
67
67
  {
68
68
  "id": "oxfmt",
69
69
  "name": "oxfmt",
70
- "version": "0.67.0",
70
+ "version": "0.70.0",
71
71
  "kind": "tool",
72
72
  "delivery": [
73
73
  "dependency"
@@ -77,7 +77,7 @@ export const toolchain = {
77
77
  {
78
78
  "id": "oxlint-tsgolint",
79
79
  "name": "oxlint-tsgolint",
80
- "version": "7.0.2001",
80
+ "version": "7.0.2002",
81
81
  "kind": "tool",
82
82
  "delivery": [
83
83
  "dependency"
@@ -99,8 +99,8 @@ export const toolchain = {
99
99
  {
100
100
  "id": "vite-task",
101
101
  "name": "vite-task",
102
- "revision": "d05b1dcdbaabaa69643ee0b89cebe3cd390957e9",
103
- "builtAt": "2026-09-14T14:39:37Z",
102
+ "revision": "790b15282344e00f508e74bc0e10ad0feffcbbf2",
103
+ "builtAt": "2026-09-22T13:22:54Z",
104
104
  "kind": "tool",
105
105
  "delivery": [
106
106
  "compiled"
@@ -110,7 +110,7 @@ export const toolchain = {
110
110
  {
111
111
  "id": "oxc",
112
112
  "name": "oxc",
113
- "version": "0.149.0",
113
+ "version": "0.150.0",
114
114
  "kind": "engine",
115
115
  "delivery": [
116
116
  "compiled"
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "id": "vite-plus",
6
6
  "name": "vite-plus",
7
- "version": "0.3.2",
7
+ "version": "1.0.0-rc.0",
8
8
  "kind": "package",
9
9
  "delivery": [
10
10
  "dependency"
@@ -14,7 +14,7 @@
14
14
  {
15
15
  "id": "vite-plus-core",
16
16
  "name": "@voidzero-dev/vite-plus-core",
17
- "version": "0.3.2",
17
+ "version": "1.0.0-rc.0",
18
18
  "kind": "package",
19
19
  "delivery": [
20
20
  "dependency"
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "id": "rolldown",
38
38
  "name": "rolldown",
39
- "version": "1.2.8",
39
+ "version": "1.2.9",
40
40
  "kind": "tool",
41
41
  "delivery": [
42
42
  "bundled",
@@ -47,7 +47,7 @@
47
47
  {
48
48
  "id": "vitest",
49
49
  "name": "vitest",
50
- "version": "4.1.11",
50
+ "version": "5.0.1",
51
51
  "kind": "tool",
52
52
  "delivery": [
53
53
  "dependency"
@@ -57,7 +57,7 @@
57
57
  {
58
58
  "id": "oxlint",
59
59
  "name": "oxlint",
60
- "version": "1.82.0",
60
+ "version": "1.85.0",
61
61
  "kind": "tool",
62
62
  "delivery": [
63
63
  "dependency"
@@ -67,7 +67,7 @@
67
67
  {
68
68
  "id": "oxfmt",
69
69
  "name": "oxfmt",
70
- "version": "0.67.0",
70
+ "version": "0.70.0",
71
71
  "kind": "tool",
72
72
  "delivery": [
73
73
  "dependency"
@@ -77,7 +77,7 @@
77
77
  {
78
78
  "id": "oxlint-tsgolint",
79
79
  "name": "oxlint-tsgolint",
80
- "version": "7.0.2001",
80
+ "version": "7.0.2002",
81
81
  "kind": "tool",
82
82
  "delivery": [
83
83
  "dependency"
@@ -99,8 +99,8 @@
99
99
  {
100
100
  "id": "vite-task",
101
101
  "name": "vite-task",
102
- "revision": "d05b1dcdbaabaa69643ee0b89cebe3cd390957e9",
103
- "builtAt": "2026-09-14T14:39:37Z",
102
+ "revision": "790b15282344e00f508e74bc0e10ad0feffcbbf2",
103
+ "builtAt": "2026-09-22T13:22:54Z",
104
104
  "kind": "tool",
105
105
  "delivery": [
106
106
  "compiled"
@@ -110,7 +110,7 @@
110
110
  {
111
111
  "id": "oxc",
112
112
  "name": "oxc",
113
- "version": "0.149.0",
113
+ "version": "0.150.0",
114
114
  "kind": "engine",
115
115
  "delivery": [
116
116
  "compiled"
@@ -1,6 +1,7 @@
1
- import { p as createBaseUrlTsconfigFixArgs, t as BASEURL_TSCONFIG_FIX_PACKAGE } from "./constants-IhOditRA.js";
2
- import { c as parse, o as applyEdits, s as modify } from "./json-cULBl7Pi.js";
3
- import { S as log, b as confirm, k as isCancel, t as cancelAndExit } from "./prompts-CujFOJXu.js";
1
+ import { p as createBaseUrlTsconfigFixArgs, t as BASEURL_TSCONFIG_FIX_PACKAGE } from "./constants-CiKwrA0v.js";
2
+ import { c as modify, l as parse, o as applyEdits } from "./json-JP24qHUF.js";
3
+ import { t as vitest_v5_entry_points_default } from "./vitest-v5-entry-points-DthU1e_O.js";
4
+ import { S as log, b as confirm, k as isCancel, t as cancelAndExit } from "./prompts-CQobX7uP.js";
4
5
  import { n as runCommandSilently } from "./command-CguLh2KL.js";
5
6
  import path from "node:path";
6
7
  import { styleText } from "node:util";
@@ -100,7 +101,10 @@ function removeDeprecatedTsconfigFalseOption(filePath, optionName) {
100
101
  fs.writeFileSync(filePath, newText);
101
102
  return true;
102
103
  }
103
- const TSCONFIG_TYPE_REPLACEMENTS = { "tsdown/client": "vite-plus/pack/client" };
104
+ const TSCONFIG_TYPE_REPLACEMENTS = {
105
+ "tsdown/client": "vite-plus/pack/client",
106
+ ...Object.fromEntries(Object.entries(vitest_v5_entry_points_default).filter(([source]) => source.startsWith("vite-plus/")))
107
+ };
104
108
  function hasTypesToRewriteInTsconfig(filePath) {
105
109
  let text;
106
110
  try {
@@ -1,2 +1,2 @@
1
- import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig } from "./tsconfig-DCtWfQPA.js";
1
+ import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig } from "./tsconfig-Buo0RSzz.js";
2
2
  export { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig };