@cloudflare/workers-utils 0.46.0 → 0.47.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/browser.d.mts +9 -0
- package/dist/browser.mjs +1 -1
- package/dist/{chunk-PWC7WAOU.mjs → chunk-CAPCWVOB.mjs} +7422 -2066
- package/dist/{chunk-AUSY7DKT.mjs → chunk-TAK63GWY.mjs} +12 -1
- package/dist/{compliance-vunjXD3w.d.mts → compliance-BFVODD7c.d.mts} +11 -0
- package/dist/compliance.d.mts +1 -1
- package/dist/index.d.mts +9 -4
- package/dist/index.mjs +125 -1054
- package/dist/metafile-esm.json +1 -1
- package/dist/test-helpers/index.d.mts +1 -1
- package/dist/test-helpers/index.mjs +1 -1
- package/dist/zod-format.mjs +1 -1
- package/package.json +5 -6
package/dist/browser.d.mts
CHANGED
|
@@ -252,6 +252,7 @@ type WorkerMetadataBinding = {
|
|
|
252
252
|
type AssetConfigMetadata = {
|
|
253
253
|
html_handling?: AssetConfig["html_handling"];
|
|
254
254
|
not_found_handling?: AssetConfig["not_found_handling"];
|
|
255
|
+
base_path?: AssetConfig["base_path"];
|
|
255
256
|
run_worker_first?: boolean | string[];
|
|
256
257
|
_redirects?: string;
|
|
257
258
|
_headers?: string;
|
|
@@ -2059,6 +2060,10 @@ type Assets = {
|
|
|
2059
2060
|
html_handling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none";
|
|
2060
2061
|
/** How to handle requests that do not match an asset. */
|
|
2061
2062
|
not_found_handling?: "single-page-application" | "404-page" | "none";
|
|
2063
|
+
/**
|
|
2064
|
+
* The public URL prefix under which the application is served, e.g. `/subpath/`.
|
|
2065
|
+
*/
|
|
2066
|
+
base_path?: string;
|
|
2062
2067
|
/**
|
|
2063
2068
|
* Matches will be routed to the User Worker, and matches to negative rules will go to the Asset Worker.
|
|
2064
2069
|
*
|
|
@@ -2301,6 +2306,10 @@ interface ConfigFields<Dev extends RawDevConfig> {
|
|
|
2301
2306
|
* or a `*@domain` catch-all (e.g. `"*@example.com"`). Every entry creates an
|
|
2302
2307
|
* Email Routing rule whose action routes mail to this Worker.
|
|
2303
2308
|
*
|
|
2309
|
+
* A `*@domain` catch-all must use the zone apex (e.g. `"*@example.com"`,
|
|
2310
|
+
* not `"*@mail.example.com"`). The zone catch-all also receives mail for
|
|
2311
|
+
* every subdomain in the zone that has no literal rule.
|
|
2312
|
+
*
|
|
2304
2313
|
* This field is top-level only and applies to every environment of the
|
|
2305
2314
|
* Worker; it cannot be set under `env.*`.
|
|
2306
2315
|
*
|
package/dist/browser.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
|
|
4
4
|
// src/default-compat-date.ts
|
|
5
|
-
var DEFAULT_COMPAT_DATE = "2026-10-
|
|
5
|
+
var DEFAULT_COMPAT_DATE = "2026-10-06";
|
|
6
6
|
|
|
7
7
|
// src/assert-never.ts
|
|
8
8
|
function assertNever(_value) {
|