@cloudflare/vitest-plugin 1.1.13 → 1.2.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/dist/pool/index.d.mts +14 -4
- package/dist/pool/index.mjs +980 -286
- package/dist/pool/index.mjs.map +1 -1
- package/package.json +10 -10
- package/types/cloudflare-test.d.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vitest-plugin",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Workers Vitest integration for writing Vitest unit and integration tests that run inside the Workers runtime",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"cjs-module-lexer": "1.2.3",
|
|
46
46
|
"esbuild": "0.28.1",
|
|
47
47
|
"zod": "4.4.3",
|
|
48
|
-
"miniflare": "5.
|
|
49
|
-
"wrangler": "4.
|
|
48
|
+
"miniflare": "5.20260921.0-alpha",
|
|
49
|
+
"wrangler": "4.136.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@cloudflare/workers-types": "^5.
|
|
52
|
+
"@cloudflare/workers-types": "^5.20260921.1",
|
|
53
53
|
"@types/node": "22.15.17",
|
|
54
54
|
"@types/semver": "^7.5.1",
|
|
55
55
|
"@vitest/runner": "4.1.0",
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
"typescript": "5.8.3",
|
|
67
67
|
"undici": "7.29.0",
|
|
68
68
|
"vitest": "4.1.0",
|
|
69
|
-
"@cloudflare/config": "0.
|
|
69
|
+
"@cloudflare/config": "0.16.0",
|
|
70
70
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
71
|
-
"@cloudflare/remote-bindings": "0.0.
|
|
72
|
-
"@cloudflare/runtime-types": "0.0.
|
|
73
|
-
"@cloudflare/workers-
|
|
74
|
-
"@cloudflare/
|
|
75
|
-
"@cloudflare/
|
|
71
|
+
"@cloudflare/remote-bindings": "0.0.29",
|
|
72
|
+
"@cloudflare/runtime-types": "0.0.31",
|
|
73
|
+
"@cloudflare/workers-utils": "0.41.0",
|
|
74
|
+
"@cloudflare/workflows-shared": "0.14.0",
|
|
75
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@vitest/runner": "^4.1.0",
|
|
@@ -205,9 +205,8 @@ declare module "cloudflare:test" {
|
|
|
205
205
|
/**
|
|
206
206
|
* Applies all un-applied `migrations` to database `db`, recording migrations
|
|
207
207
|
* state in the `migrationsTableName` table. `migrationsTableName` defaults to
|
|
208
|
-
* `d1_migrations`. Call the `readD1Migrations()` function from
|
|
209
|
-
* `@cloudflare/vitest-plugin
|
|
210
|
-
* `migrations` array.
|
|
208
|
+
* `d1_migrations`. Call the `readD1Migrations()` function from
|
|
209
|
+
* `@cloudflare/vitest-plugin` inside Node.js to get the `migrations` array.
|
|
211
210
|
*/
|
|
212
211
|
export function applyD1Migrations(
|
|
213
212
|
db: D1Database,
|