vite-plus 0.3.3 → 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 (138) hide show
  1. package/LICENSE +35 -146
  2. package/README.md +3 -3
  3. package/binding/index.cjs +57 -54
  4. package/binding/index.d.cts +9 -0
  5. package/dist/{agent-Cu6-tXIP.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 +18 -12
  10. package/dist/{define-config-DPNEJxPz.d.ts → define-config-B9usMnEa.d.ts} +51 -10
  11. package/dist/{define-config-D0mevyb3.cjs → define-config-CBccpane.cjs} +173 -44
  12. package/dist/{define-config-IgzmnvvV.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-4sjlHmUh.js → editor-DMBczTdj.js} +205 -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-BVqEe9KY.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-CHH8jWan.js → package-B85H2Nw0.js} +6 -2
  28. package/dist/{vitest-ecosystem-BiRqcaRI.js → package-overrides-Dpn4scvN.js} +1 -7
  29. package/dist/{prompts-k14KgthC.js → prompts-CQobX7uP.js} +2 -2
  30. package/dist/{resolve-vite-config-BqvS2P98.js → resolve-vite-config-BUFUmi8h.js} +2 -2
  31. package/dist/{resolve-vite-config-CTOTuqTi.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 +8 -8
  78. package/dist/toolchain.json +8 -8
  79. package/dist/{tsconfig-C3h9CVTA.js → tsconfig-Buo0RSzz.js} +8 -4
  80. package/dist/{tsconfig-euB-GmIE.js → tsconfig-C1VeTG9k.js} +1 -1
  81. package/dist/version.js +5 -3
  82. package/dist/versions.js +4 -4
  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/guide/check.md +2 -0
  89. package/docs/guide/commit-hooks.md +8 -1
  90. package/docs/guide/env.md +18 -13
  91. package/docs/guide/fmt.md +4 -2
  92. package/docs/guide/index.md +1 -1
  93. package/docs/guide/install.md +1 -1
  94. package/docs/guide/lint.md +3 -1
  95. package/docs/guide/local-cli.md +3 -3
  96. package/docs/guide/migrate-rules.md +16 -12
  97. package/docs/guide/migrate.md +86 -20
  98. package/docs/guide/monorepo.md +5 -1
  99. package/docs/guide/test.md +2 -0
  100. package/docs/guide/troubleshooting.md +3 -3
  101. package/docs/guide/vitest-v5.md +221 -0
  102. package/package.json +64 -87
  103. package/bin/oxfmt +0 -33
  104. package/bin/oxlint +0 -38
  105. package/dist/cli-truncate-Bg3RDXpi.js +0 -865
  106. package/dist/constants-C2dTOTe-.js +0 -80
  107. package/dist/is-fullwidth-code-point-BUNlIICg.js +0 -8
  108. package/dist/log-update-CoW8Z4Dl.js +0 -491
  109. package/dist/strip-ansi-C3wrWz9t.js +0 -853
  110. package/dist/test/browser/providers/webdriverio/context.d.ts +0 -1
  111. package/dist/test/browser/providers/webdriverio/context.js +0 -1
  112. package/dist/test/browser/providers/webdriverio.d.ts +0 -77
  113. package/dist/test/browser/providers/webdriverio.js +0 -1
  114. package/dist/test/browser-webdriverio/context.d.ts +0 -1
  115. package/dist/test/browser-webdriverio.d.ts +0 -77
  116. package/dist/test/browser-webdriverio.js +0 -1
  117. package/dist/test/coverage.d.ts +0 -2
  118. package/dist/test/coverage.js +0 -1
  119. package/dist/test/environments.d.ts +0 -2
  120. package/dist/test/environments.js +0 -1
  121. package/dist/test/plugins/browser-webdriverio.js +0 -1
  122. package/dist/test/plugins/expect.js +0 -1
  123. package/dist/test/plugins/runner-types.js +0 -1
  124. package/dist/test/plugins/runner-utils.js +0 -1
  125. package/dist/test/plugins/runner.js +0 -1
  126. package/dist/test/reporters.d.ts +0 -2
  127. package/dist/test/reporters.js +0 -1
  128. package/dist/test/runners.d.ts +0 -2
  129. package/dist/test/runners.js +0 -1
  130. package/dist/test/snapshot.d.ts +0 -2
  131. package/dist/test/snapshot.js +0 -1
  132. package/dist/test/suite.d.ts +0 -2
  133. package/dist/test/suite.js +0 -1
  134. package/dist/tsgolint-path-CbDReEOx.js +0 -34
  135. package/dist/tsgolint-path.d.ts +0 -7
  136. package/dist/tsgolint-path.js +0 -2
  137. package/dist/wrap-ansi-DNjkuBEp.js +0 -157
  138. package/dist/wrap-ansi-DUi52C6W.js +0 -2
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_define_config = require("./define-config-D0mevyb3.cjs");
1
+ const require_define_config = require("./define-config-CBccpane.cjs");
2
2
  //#region src/index.cts
3
3
  const vite = require("vite");
4
4
  const { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } = require("vitest/config");
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-DPNEJxPz.js";
1
+ import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-B9usMnEa.js";
2
2
  import { TestProjectConfiguration, TestProjectInlineConfiguration, TestTagDefinition, TestUserConfig, UserProjectConfigExport, UserProjectConfigFn, UserWorkspaceConfig, ViteUserConfig, ViteUserConfigExport, ViteUserConfigFn, ViteUserConfigFnObject, ViteUserConfigFnPromise, WatcherTriggerPattern, configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } from "vitest/config";
3
3
  export * from "vite";
4
4
  export { type TestProjectConfiguration, type TestProjectInlineConfiguration, type TestTagDefinition, type TestUserConfig, type UserProjectConfigExport, type UserProjectConfigFn, type UserWorkspaceConfig, type ViteUserConfig, type ViteUserConfigExport, type ViteUserConfigFn, type ViteUserConfigFnObject, type ViteUserConfigFnPromise, type WatcherTriggerPattern, configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude, defineConfig, defineProject, lazyPlugins };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-IgzmnvvV.js";
1
+ import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-jhuYJ7Tb.js";
2
2
  import { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } from "vitest/config";
3
3
  export * from "vite";
4
4
  export { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude, defineConfig, defineProject, lazyPlugins };
@@ -745,7 +745,7 @@ function parse$1(text, errors = [], options = ParseOptions.DEFAULT) {
745
745
  /**
746
746
  * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result.
747
747
  */
748
- function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
748
+ function parseTree$1(text, errors = [], options = ParseOptions.DEFAULT) {
749
749
  let currentParent = {
750
750
  type: "array",
751
751
  offset: -1,
@@ -840,7 +840,7 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
840
840
  /**
841
841
  * Finds the node at the given path in a JSON DOM.
842
842
  */
843
- function findNodeAtLocation(root, path) {
843
+ function findNodeAtLocation$1(root, path) {
844
844
  if (!root) return;
845
845
  let node = root;
846
846
  for (let segment of path) if (typeof segment === "string") {
@@ -1069,12 +1069,12 @@ function getNodeType(value) {
1069
1069
  //#region ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/edit.js
1070
1070
  function setProperty(text, originalPath, value, options) {
1071
1071
  const path = originalPath.slice();
1072
- const root = parseTree(text, []);
1072
+ const root = parseTree$1(text, []);
1073
1073
  let parent = void 0;
1074
1074
  let lastSegment = void 0;
1075
1075
  while (path.length > 0) {
1076
1076
  lastSegment = path.pop();
1077
- parent = findNodeAtLocation(root, path);
1077
+ parent = findNodeAtLocation$1(root, path);
1078
1078
  if (parent === void 0 && value !== void 0) {
1079
1079
  if (typeof lastSegment === "string") value = { [lastSegment]: value };
1080
1080
  else value = [value];
@@ -1088,7 +1088,7 @@ function setProperty(text, originalPath, value, options) {
1088
1088
  content: JSON.stringify(value)
1089
1089
  }, options);
1090
1090
  } else if (parent.type === "object" && typeof lastSegment === "string" && Array.isArray(parent.children)) {
1091
- const existing = findNodeAtLocation(parent, [lastSegment]);
1091
+ const existing = findNodeAtLocation$1(parent, [lastSegment]);
1092
1092
  if (existing !== void 0) {
1093
1093
  if (value === void 0) {
1094
1094
  if (!existing.parent) throw new Error("Malformed AST");
@@ -1276,6 +1276,14 @@ var SyntaxKind;
1276
1276
  * Therefore, always check the errors list to find out if the input was valid.
1277
1277
  */
1278
1278
  const parse = parse$1;
1279
+ /**
1280
+ * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result.
1281
+ */
1282
+ const parseTree = parseTree$1;
1283
+ /**
1284
+ * Finds the node at the given path in a JSON DOM.
1285
+ */
1286
+ const findNodeAtLocation = findNodeAtLocation$1;
1279
1287
  var ParseErrorCode;
1280
1288
  (function(ParseErrorCode) {
1281
1289
  ParseErrorCode[ParseErrorCode["InvalidSymbol"] = 1] = "InvalidSymbol";
@@ -1373,4 +1381,4 @@ function isJsonFile(file) {
1373
1381
  }
1374
1382
  }
1375
1383
  //#endregion
1376
- export { writeJsonFile as a, parse as c, readJsonFile as i, editJsonFile as n, applyEdits as o, isJsonFile as r, modify as s, detectFormattingOptions as t };
1384
+ export { writeJsonFile as a, modify as c, readJsonFile as i, parse as l, editJsonFile as n, applyEdits as o, isJsonFile as r, findNodeAtLocation as s, detectFormattingOptions as t, parseTree as u };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./define-config-D0mevyb3.cjs");
2
+ require("./define-config-CBccpane.cjs");
3
3
  let _oxlint_plugins = require("@oxlint/plugins");
4
4
  Object.defineProperty(exports, "definePlugin", {
5
5
  enumerable: true,