@vitest/browser 5.0.0-rc.4 → 5.0.1

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.
package/context.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SerializedConfig } from 'vitest'
2
- import { StringifyOptions, CDPSession, BrowserCommands } from 'vitest/internal/browser'
2
+ import { StringifyOptions, CDPSession, BrowserCommands, BrowserTraceEntryKind, MarkOptions } from 'vitest/internal/browser'
3
3
  import { ARIARole } from './aria-role.js'
4
4
  import {} from './matchers.js'
5
5
  import { __ivyaAriaTypes } from '@vitest/browser/internal/vendor-types'
@@ -18,7 +18,7 @@ export type BufferEncoding =
18
18
  | 'binary'
19
19
  | 'hex'
20
20
 
21
- export { CDPSession };
21
+ export { BrowserTraceEntryKind, CDPSession, MarkOptions };
22
22
 
23
23
  export interface ScreenshotOptions extends SelectorOptions {
24
24
  /**
@@ -42,22 +42,6 @@ export interface ScreenshotOptions extends SelectorOptions {
42
42
  save?: boolean
43
43
  }
44
44
 
45
- export type BrowserTraceEntryKind = 'action' | 'expect' | 'mark' | 'lifecycle'
46
-
47
- export interface MarkOptions {
48
- /**
49
- * Optional stack string used to resolve marker location.
50
- * Useful for wrapper libraries that need to forward the end-user callsite.
51
- */
52
- stack?: string
53
-
54
- /**
55
- * Optional marker kind that's used to categorize the marker in the trace viewer.
56
- * @default 'mark'
57
- */
58
- kind?: BrowserTraceEntryKind
59
- }
60
-
61
45
  interface StandardScreenshotComparators {
62
46
  pixelmatch: {
63
47
  /**
package/dist/index.js CHANGED
@@ -209,7 +209,7 @@ const basename = function(p, extension) {
209
209
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
210
210
  };
211
211
 
212
- var version = "5.0.0-rc.4";
212
+ var version = "5.0.1";
213
213
 
214
214
  const pkgRoot = resolve(fileURLToPath(import.meta.url), "../..");
215
215
  const distRoot = resolve(pkgRoot, "dist");
@@ -3601,7 +3601,7 @@ body {
3601
3601
  next();
3602
3602
  });
3603
3603
  // strip _vitest_original query added by importActual so that
3604
- // the plugin pipeline sees the original import id (e.g. virtual modules's load hook).
3604
+ // the plugin pipeline sees the original import id (e.g. virtual modules' load hook).
3605
3605
  server.middlewares.use((req, _res, next) => {
3606
3606
  if (req.url?.includes("_vitest_original") && parentServer.config.browser.provider?.name === "playwright") {
3607
3607
  req.url = req.url.replace(/[?&]_vitest_original(?=[&#]|$)/, "").replace(/[?&]ext\b[^&#]*/, "").replace(/\?$/, "");
package/jest-dom.d.ts CHANGED
@@ -771,7 +771,7 @@ export interface TestingLibraryMatchers<R extends void | Promise<void>, T = unkn
771
771
  * @see https://vitest.dev/guide/browser/aria-snapshots
772
772
  * @see https://vitest.dev/api/expect#tomatchariasnapshot
773
773
  */
774
- toMatchAriaSnapshot: () => void
774
+ toMatchAriaSnapshot: () => R
775
775
  /**
776
776
  * @experimental
777
777
  * @description
@@ -802,5 +802,5 @@ export interface TestingLibraryMatchers<R extends void | Promise<void>, T = unkn
802
802
  * @see https://vitest.dev/guide/browser/aria-snapshots
803
803
  * @see https://vitest.dev/api/expect#tomatchariaInlinesnapshot
804
804
  */
805
- toMatchAriaInlineSnapshot: (inlineSnapshot?: string) => void
805
+ toMatchAriaInlineSnapshot: (inlineSnapshot?: string) => R
806
806
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/browser",
3
3
  "type": "module",
4
- "version": "5.0.0-rc.4",
4
+ "version": "5.0.1",
5
5
  "description": "Browser running for Vitest",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -63,13 +63,13 @@
63
63
  "providers"
64
64
  ],
65
65
  "peerDependencies": {
66
- "vitest": "5.0.0-rc.4"
66
+ "vitest": "5.0.1"
67
67
  },
68
68
  "dependencies": {
69
69
  "@blazediff/core": "1.10.0",
70
- "@vitest/mocker": "5.0.0-rc.4",
71
- "@vitest/ui": "5.0.0-rc.4",
72
- "@vitest/utils": "5.0.0-rc.4",
70
+ "@vitest/mocker": "5.0.1",
71
+ "@vitest/ui": "5.0.1",
72
+ "@vitest/utils": "5.0.1",
73
73
  "magic-string": "^1.2.3",
74
74
  "pngjs": "^7.0.0",
75
75
  "sirv": "^3.0.2",
@@ -82,14 +82,14 @@
82
82
  "@types/node": "24.13.3",
83
83
  "@types/pngjs": "^6.0.5",
84
84
  "@types/ws": "^8.18.1",
85
- "@vitest/snapshot": "5.0.0-rc.4",
85
+ "@vitest/snapshot": "5.0.1",
86
86
  "birpc": "^4.2.0",
87
87
  "flatted": "^3.4.4",
88
88
  "ivya": "^1.8.2",
89
89
  "mime": "^4.1.0",
90
90
  "pathe": "^2.0.3",
91
91
  "rrweb-snapshot": "2.1.1",
92
- "vitest": "5.0.0-rc.4"
92
+ "vitest": "5.0.1"
93
93
  },
94
94
  "scripts": {
95
95
  "typecheck": "tsc -p ./src/client/tsconfig.json --noEmit",