vitest 0.12.7 → 0.12.10

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 (23) hide show
  1. package/dist/{chunk-api-setup.2f2df7e0.js → chunk-api-setup.2405c167.js} +107 -51
  2. package/dist/{chunk-constants.3570739f.js → chunk-constants.e8bc5d35.js} +1 -1
  3. package/dist/{chunk-defaults.7d81a6ca.js → chunk-defaults.a3120857.js} +1 -1
  4. package/dist/{chunk-install-pkg.fd8d1022.js → chunk-install-pkg.73b84ae1.js} +1 -1
  5. package/dist/{chunk-integrations-globals.36dc71fa.js → chunk-integrations-globals.6e996fa7.js} +7 -7
  6. package/dist/{chunk-runtime-chain.5021a6b6.js → chunk-runtime-chain.d2ed2f76.js} +21 -10
  7. package/dist/{chunk-runtime-mocker.42fa71a8.js → chunk-runtime-mocker.13651a82.js} +4 -4
  8. package/dist/chunk-runtime-rpc.d3d38fc1.js +15 -0
  9. package/dist/{chunk-utils-global.2fab7e5c.js → chunk-utils-global.eb9e6d32.js} +34 -2
  10. package/dist/{chunk-utils-timers.da6ac0a6.js → chunk-utils-source-map.6b6c39c8.js} +14 -11
  11. package/dist/{chunk-vite-node-externalize.0aac0c8e.js → chunk-vite-node-externalize.464ab3dd.js} +36 -27
  12. package/dist/{chunk-vite-node-utils.9975fd9e.js → chunk-vite-node-utils.eec5d968.js} +5 -2
  13. package/dist/cli.js +7 -7
  14. package/dist/entry.js +6 -6
  15. package/dist/index.d.ts +61 -10
  16. package/dist/index.js +4 -4
  17. package/dist/node.d.ts +56 -0
  18. package/dist/node.js +8 -8
  19. package/dist/{vendor-entry.7d6cc1fd.js → vendor-entry.3113977a.js} +17 -14
  20. package/dist/{vendor-index.6c69a0a8.js → vendor-index.40be925a.js} +0 -0
  21. package/dist/worker.js +5 -5
  22. package/package.json +37 -37
  23. package/dist/chunk-runtime-rpc.47bae3f9.js +0 -7
package/package.json CHANGED
@@ -1,32 +1,29 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "0.12.7",
4
+ "version": "0.12.10",
5
5
  "description": "A blazing fast unit test framework powered by Vite",
6
+ "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
+ "license": "MIT",
8
+ "funding": "https://github.com/sponsors/antfu",
9
+ "homepage": "https://github.com/vitest-dev/vitest#readme",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/vitest-dev/vitest.git"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/vitest-dev/vitest/issues"
16
+ },
6
17
  "keywords": [
7
18
  "vite",
8
19
  "vite-node",
9
20
  "test",
10
21
  "jest"
11
22
  ],
12
- "homepage": "https://github.com/vitest-dev/vitest#readme",
13
- "bugs": {
14
- "url": "https://github.com/vitest-dev/vitest/issues"
15
- },
16
- "license": "MIT",
17
- "author": "Anthony Fu <anthonyfu117@hotmail.com>",
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/vitest-dev/vitest.git"
21
- },
22
- "funding": "https://github.com/sponsors/antfu",
23
- "main": "./dist/index.js",
24
- "module": "./dist/index.js",
25
- "types": "./dist/index.d.ts",
26
23
  "exports": {
27
24
  ".": {
28
- "import": "./dist/index.js",
29
- "types": "./dist/index.d.ts"
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js"
30
27
  },
31
28
  "./*": "./*",
32
29
  "./globals": {
@@ -36,23 +33,29 @@
36
33
  "types": "./importMeta.d.ts"
37
34
  },
38
35
  "./node": {
39
- "import": "./dist/node.js",
40
- "types": "./dist/node.d.ts"
36
+ "types": "./dist/node.d.ts",
37
+ "import": "./dist/node.js"
41
38
  },
42
39
  "./config": {
40
+ "types": "./config.d.ts",
43
41
  "import": "./dist/config.js",
44
- "require": "./dist/config.cjs",
45
- "types": "./config.d.ts"
42
+ "require": "./dist/config.cjs"
46
43
  }
47
44
  },
45
+ "main": "./dist/index.js",
46
+ "module": "./dist/index.js",
47
+ "types": "./dist/index.d.ts",
48
+ "bin": {
49
+ "vitest": "./vitest.mjs"
50
+ },
48
51
  "files": [
49
52
  "dist",
50
53
  "bin",
51
54
  "*.d.ts",
52
55
  "*.mjs"
53
56
  ],
54
- "bin": {
55
- "vitest": "./vitest.mjs"
57
+ "engines": {
58
+ "node": ">=v14.16.0"
56
59
  },
57
60
  "peerDependencies": {
58
61
  "@vitest/ui": "*",
@@ -82,7 +85,7 @@
82
85
  "local-pkg": "^0.4.1",
83
86
  "tinypool": "^0.1.3",
84
87
  "tinyspy": "^0.3.2",
85
- "vite": "^2.9.8"
88
+ "vite": "^2.9.9"
86
89
  },
87
90
  "devDependencies": {
88
91
  "@antfu/install-pkg": "^0.1.0",
@@ -91,21 +94,21 @@
91
94
  "@types/jsdom": "^16.2.14",
92
95
  "@types/micromatch": "^4.0.2",
93
96
  "@types/natural-compare": "^1.4.1",
94
- "@types/node": "^17.0.33",
97
+ "@types/node": "^17.0.35",
95
98
  "@types/prompts": "^2.4.0",
96
99
  "@types/sinonjs__fake-timers": "^8.1.2",
97
- "@vitest/ui": "0.12.7",
98
- "birpc": "^0.2.2",
99
- "c8": "^7.11.2",
100
+ "@vitest/ui": "0.12.10",
101
+ "birpc": "^0.2.3",
102
+ "c8": "^7.11.3",
100
103
  "cac": "^6.7.12",
101
104
  "chai-subset": "^1.6.0",
102
105
  "cli-truncate": "^3.1.0",
103
- "diff": "^5.0.0",
106
+ "diff": "^5.1.0",
104
107
  "execa": "^6.1.0",
105
108
  "fast-glob": "^3.2.11",
106
109
  "find-up": "^6.3.0",
107
110
  "flatted": "^3.2.5",
108
- "happy-dom": "^3.2.0",
111
+ "happy-dom": "^4.1.0",
109
112
  "jsdom": "^19.0.0",
110
113
  "log-update": "^5.0.1",
111
114
  "magic-string": "^0.26.2",
@@ -117,15 +120,12 @@
117
120
  "pkg-types": "^0.3.2",
118
121
  "pretty-format": "^27.5.1",
119
122
  "prompts": "^2.4.2",
120
- "rollup": "^2.73.0",
123
+ "rollup": "^2.74.1",
121
124
  "source-map-js": "^1.0.2",
122
125
  "strip-ansi": "^7.0.1",
123
- "typescript": "^4.6.4",
124
- "vite-node": "0.12.7",
125
- "ws": "^8.6.0"
126
- },
127
- "engines": {
128
- "node": ">=v14.16.0"
126
+ "typescript": "^4.7.2",
127
+ "vite-node": "0.12.10",
128
+ "ws": "^8.7.0"
129
129
  },
130
130
  "scripts": {
131
131
  "build": "rimraf dist && rollup -c",
@@ -1,7 +0,0 @@
1
- import { a as getWorkerState } from './chunk-utils-global.2fab7e5c.js';
2
-
3
- const rpc = () => {
4
- return getWorkerState().rpc;
5
- };
6
-
7
- export { rpc as r };