@vitest/web-worker
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -309,5 +309,7 @@ import { VitestExecutor } from 'vitest/execute'; | ||
debug("create message event, using polyfilled structured clone"); | ||
transfer?.length && console.warn( | ||
'[@vitest/web-worker] `structuredClone` is not supported in this environment. Falling back to polyfill, your transferable options will be lost. Set `VITEST_WEB_WORKER_CLONE` environmental variable to "none", if you don\'t want to loose it,or update to Node 17+.' | ||
); | ||
if (transfer?.length) { | ||
console.warn( | ||
'[@vitest/web-worker] `structuredClone` is not supported in this environment. Falling back to polyfill, your transferable options will be lost. Set `VITEST_WEB_WORKER_CLONE` environmental variable to "none", if you don\'t want to loose it,or update to Node 17+.' | ||
); | ||
} | ||
return new MessageEvent("message", { | ||
@@ -314,0 +316,0 @@ data: ponyfillStructuredClone(data, { lossy: true }), |
{ | ||
"name": "@vitest/web-worker", | ||
"type": "module", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Web Worker support for testing in Vitest", | ||
@@ -36,3 +36,3 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"vitest": "2.0.3" | ||
"vitest": "2.0.4" | ||
}, | ||
@@ -39,0 +39,0 @@ "dependencies": { |
24083
614