@vitest/ui
Advanced tools
Comparing version 2.1.0-beta.6 to 2.1.0-beta.7
import { Plugin } from 'vite'; | ||
import { Vitest } from 'vitest'; | ||
import { Vitest } from 'vitest/node'; | ||
@@ -4,0 +4,0 @@ declare const _default: (ctx: Vitest) => Plugin; |
@@ -6,4 +6,16 @@ import { fileURLToPath } from 'node:url'; | ||
import { toArray } from '@vitest/utils'; | ||
import c from 'tinyrainbow'; | ||
var version = "2.1.0-beta.7"; | ||
var index = (ctx) => { | ||
if (ctx.version !== version) { | ||
ctx.logger.warn( | ||
c.yellow( | ||
`Loaded ${c.inverse(c.yellow(` vitest@${ctx.version} `))} and ${c.inverse(c.yellow(` @vitest/ui@${version} `))}. | ||
Running mixed versions is not supported and may lead into bugs | ||
Update your dependencies and make sure the versions match.` | ||
) | ||
); | ||
} | ||
return { | ||
@@ -10,0 +22,0 @@ name: "vitest:ui", |
@@ -6,4 +6,4 @@ import { promises } from 'node:fs'; | ||
import { resolve, basename, dirname, relative } from 'pathe'; | ||
import { globSync } from 'tinyglobby'; | ||
import c from 'tinyrainbow'; | ||
import fg from 'fast-glob'; | ||
import { stringify } from 'flatted'; | ||
@@ -16,5 +16,2 @@ | ||
const project = ctx.getProjectByName(projectName); | ||
function clearId(id2) { | ||
return id2?.replace(/\?v=\w+$/, "") || ""; | ||
} | ||
async function get(mod, seen = /* @__PURE__ */ new Map()) { | ||
@@ -59,2 +56,5 @@ if (!mod || !mod.id) { | ||
} | ||
function clearId(id) { | ||
return id?.replace(/\?v=\w+$/, "") || ""; | ||
} | ||
@@ -125,3 +125,3 @@ function getOutputFile(config) { | ||
const ui = resolve(distDir, "client"); | ||
const files = fg.sync("**/*", { cwd: ui }); | ||
const files = globSync(["**/*"], { cwd: ui, expandDirectories: false }); | ||
await Promise.all( | ||
@@ -128,0 +128,0 @@ files.map(async (f) => { |
{ | ||
"name": "@vitest/ui", | ||
"type": "module", | ||
"version": "2.1.0-beta.6", | ||
"version": "2.1.0-beta.7", | ||
"description": "UI for Vitest", | ||
@@ -37,6 +37,5 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"vitest": "2.1.0-beta.6" | ||
"vitest": "2.1.0-beta.7" | ||
}, | ||
"dependencies": { | ||
"fast-glob": "^3.3.2", | ||
"fflate": "^0.8.2", | ||
@@ -46,7 +45,8 @@ "flatted": "^3.3.1", | ||
"sirv": "^2.0.4", | ||
"tinyglobby": "^0.2.6", | ||
"tinyrainbow": "^1.2.0", | ||
"@vitest/utils": "2.1.0-beta.6" | ||
"@vitest/utils": "2.1.0-beta.7" | ||
}, | ||
"devDependencies": { | ||
"@faker-js/faker": "^8.4.1", | ||
"@faker-js/faker": "^9.0.0", | ||
"@iconify-json/carbon": "^1.1.37", | ||
@@ -78,4 +78,4 @@ "@iconify-json/logos": "^1.1.44", | ||
"vue-virtual-scroller": "2.0.0-beta.8", | ||
"@vitest/ws-client": "2.1.0-beta.6", | ||
"@vitest/runner": "2.1.0-beta.6" | ||
"@vitest/runner": "2.1.0-beta.7", | ||
"@vitest/ws-client": "2.1.0-beta.7" | ||
}, | ||
@@ -82,0 +82,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
904876
2945
+ Addedtinyglobby@^0.2.6
+ Added@vitest/expect@2.1.0-beta.7(transitive)
+ Added@vitest/mocker@2.1.0-beta.7(transitive)
+ Added@vitest/pretty-format@2.1.0-beta.7(transitive)
+ Added@vitest/runner@2.1.0-beta.7(transitive)
+ Added@vitest/snapshot@2.1.0-beta.7(transitive)
+ Added@vitest/spy@2.1.0-beta.7(transitive)
+ Added@vitest/utils@2.1.0-beta.7(transitive)
+ Addedfdir@6.3.0(transitive)
+ Addedpicomatch@4.0.2(transitive)
+ Addedtinyexec@0.3.0(transitive)
+ Addedtinyglobby@0.2.6(transitive)
+ Addedvite-node@2.1.0-beta.7(transitive)
+ Addedvitest@2.1.0-beta.7(transitive)
- Removedfast-glob@^3.3.2
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@jridgewell/gen-mapping@0.3.5(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removed@vitest/expect@2.1.0-beta.6(transitive)
- Removed@vitest/pretty-format@2.1.0-beta.6(transitive)
- Removed@vitest/runner@2.1.0-beta.6(transitive)
- Removed@vitest/snapshot@2.1.0-beta.6(transitive)
- Removed@vitest/spy@2.1.0-beta.6(transitive)
- Removed@vitest/utils@2.1.0-beta.6(transitive)
- Removedbraces@3.0.3(transitive)
- Removedcross-spawn@7.0.3(transitive)
- Removedexeca@8.0.1(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedget-stream@8.0.1(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedhuman-signals@5.0.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-stream@3.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmimic-fn@4.0.0(transitive)
- Removednpm-run-path@5.3.0(transitive)
- Removedonetime@6.0.0(transitive)
- Removedpath-key@3.1.14.0.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@4.1.0(transitive)
- Removedstrip-final-newline@3.0.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedvite-node@2.1.0-beta.6(transitive)
- Removedvitest@2.1.0-beta.6(transitive)
- Removedwhich@2.0.2(transitive)
Updated@vitest/utils@2.1.0-beta.7