@cloudflare/vitest-pool-workers 0.16.1 → 0.16.3
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.mjs +6 -3
- package/dist/pool/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/pool/index.mjs
CHANGED
|
@@ -8940,6 +8940,7 @@ var validateQueueBinding = /* @__PURE__ */ __name((diagnostics, field, value) =>
|
|
|
8940
8940
|
diagnostics.errors.push(`"${field}" should, optionally, have a ${optionalOpt.type} "${optionalOpt.key}" field but got ${JSON.stringify(value)}.`);
|
|
8941
8941
|
isValid2 = false;
|
|
8942
8942
|
}
|
|
8943
|
+
if (hasProperty(value, "delivery_delay") && value.delivery_delay !== void 0) diagnostics.warnings.push(`The "delivery_delay" field in "${field}" is deprecated and has no effect. Queue-level settings should be configured using "wrangler queues update" instead. This setting will be removed in a future version.`);
|
|
8943
8944
|
if (!isRemoteValid(value, field, diagnostics)) isValid2 = false;
|
|
8944
8945
|
return isValid2;
|
|
8945
8946
|
}, "validateQueueBinding");
|
|
@@ -12868,12 +12869,14 @@ var CloudflarePoolWorker = class {
|
|
|
12868
12869
|
r: { externalize: specifier }
|
|
12869
12870
|
}));
|
|
12870
12871
|
const maybeRule = compiledRules.find((rule) => testRegExps(rule.include, specifier));
|
|
12871
|
-
|
|
12872
|
-
|
|
12872
|
+
const isWasmModuleSpecifier = maybeRule?.type === "CompiledWasm" && specifier.endsWith(".wasm?module");
|
|
12873
|
+
if (maybeRule !== void 0 && (!specifier.includes("?") || isWasmModuleSpecifier)) {
|
|
12874
|
+
let externalize = specifier.startsWith("/@fs/") ? specifier.substring(4) : path.join(this.options.project.config.root, specifier);
|
|
12875
|
+
if (isWasmModuleSpecifier) externalize = externalize.slice(0, -7);
|
|
12873
12876
|
return this.socket.send(structuredSerializableStringify({
|
|
12874
12877
|
t: "s",
|
|
12875
12878
|
i: d.i,
|
|
12876
|
-
r: { externalize }
|
|
12879
|
+
r: { externalize: `${externalize}?mf_vitest_force=${maybeRule.type}` }
|
|
12877
12880
|
}));
|
|
12878
12881
|
}
|
|
12879
12882
|
}
|