wrangler 4.12.1 → 4.13.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.
@@ -166,6 +166,11 @@
166
166
  "type": "boolean",
167
167
  "description": "Minify the script before uploading."
168
168
  },
169
+ "keep_names": {
170
+ "type": "boolean",
171
+ "description": "Keep function names after javascript transpilations.",
172
+ "default": "{true}"
173
+ },
169
174
  "first_party_worker": {
170
175
  "type": "boolean",
171
176
  "description": "Designates this Worker as an internal-only \"first-party\" Worker."
@@ -586,6 +591,11 @@
586
591
  "entrypoint": {
587
592
  "type": "string",
588
593
  "description": "Optionally, the entrypoint (named export) of the service to bind to."
594
+ },
595
+ "props": {
596
+ "type": "object",
597
+ "additionalProperties": {},
598
+ "description": "Optional properties that will be made available to the service via ctx.props."
589
599
  }
590
600
  },
591
601
  "required": [
@@ -1093,6 +1103,11 @@
1093
1103
  "type": "boolean",
1094
1104
  "description": "Minify the script before uploading."
1095
1105
  },
1106
+ "keep_names": {
1107
+ "type": "boolean",
1108
+ "description": "Keep function names after javascript transpilations.",
1109
+ "default": "{true}"
1110
+ },
1096
1111
  "first_party_worker": {
1097
1112
  "type": "boolean",
1098
1113
  "description": "Designates this Worker as an internal-only \"first-party\" Worker."
@@ -1513,6 +1528,11 @@
1513
1528
  "entrypoint": {
1514
1529
  "type": "string",
1515
1530
  "description": "Optionally, the entrypoint (named export) of the service to bind to."
1531
+ },
1532
+ "props": {
1533
+ "type": "object",
1534
+ "additionalProperties": {},
1535
+ "description": "Optional properties that will be made available to the service via ctx.props."
1516
1536
  }
1517
1537
  },
1518
1538
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.12.1",
3
+ "version": "4.13.1",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -55,14 +55,14 @@
55
55
  "esbuild": "0.25.2",
56
56
  "path-to-regexp": "6.3.0",
57
57
  "unenv": "2.0.0-rc.15",
58
- "workerd": "1.20250417.0",
59
- "miniflare": "4.20250417.0",
60
- "@cloudflare/kv-asset-handler": "0.4.0"
58
+ "workerd": "1.20250424.0",
59
+ "@cloudflare/kv-asset-handler": "0.4.0",
60
+ "miniflare": "4.20250424.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
64
64
  "@cloudflare/types": "6.18.4",
65
- "@cloudflare/workers-types": "^4.20250417.0",
65
+ "@cloudflare/workers-types": "^4.20250424.0",
66
66
  "@cspotcode/source-map-support": "0.8.1",
67
67
  "@iarna/toml": "^3.0.0",
68
68
  "@microsoft/api-extractor": "^7.47.0",
@@ -135,14 +135,14 @@
135
135
  "xdg-app-paths": "^8.3.0",
136
136
  "xxhash-wasm": "^1.0.1",
137
137
  "yargs": "^17.7.2",
138
- "@cloudflare/eslint-config-worker": "1.1.0",
139
- "@cloudflare/pages-shared": "^0.13.30",
140
138
  "@cloudflare/cli": "1.1.1",
141
- "@cloudflare/workers-shared": "0.17.2",
142
- "@cloudflare/workers-tsconfig": "0.0.0"
139
+ "@cloudflare/eslint-config-worker": "1.1.0",
140
+ "@cloudflare/workers-shared": "0.17.3",
141
+ "@cloudflare/workers-tsconfig": "0.0.0",
142
+ "@cloudflare/pages-shared": "^0.13.32"
143
143
  },
144
144
  "peerDependencies": {
145
- "@cloudflare/workers-types": "^4.20250417.0"
145
+ "@cloudflare/workers-types": "^4.20250424.0"
146
146
  },
147
147
  "peerDependenciesMeta": {
148
148
  "@cloudflare/workers-types": {
@@ -724,6 +724,7 @@ declare interface CfService {
724
724
  service: string;
725
725
  environment?: string;
726
726
  entrypoint?: string;
727
+ props?: Record<string, unknown>;
727
728
  }
728
729
 
729
730
  declare interface CfUnsafe {
@@ -1797,6 +1798,13 @@ declare interface EnvironmentInheritable {
1797
1798
  * @inheritable
1798
1799
  */
1799
1800
  minify: boolean | undefined;
1801
+ /**
1802
+ * Keep function names after javascript transpilations.
1803
+ *
1804
+ * @default {true}
1805
+ * @inheritable
1806
+ */
1807
+ keep_names: boolean | undefined;
1800
1808
  /**
1801
1809
  * Designates this Worker as an internal-only "first-party" Worker.
1802
1810
  *
@@ -2121,6 +2129,8 @@ declare interface EnvironmentNonInheritable {
2121
2129
  environment?: string;
2122
2130
  /** Optionally, the entrypoint (named export) of the service to bind to. */
2123
2131
  entrypoint?: string;
2132
+ /** Optional properties that will be made available to the service via ctx.props. */
2133
+ props?: Record<string, unknown>;
2124
2134
  }[] | undefined;
2125
2135
  /**
2126
2136
  * Specifies analytics engine datasets that are bound to this Worker environment.
@@ -26141,6 +26151,8 @@ declare interface StartDevWorkerInput {
26141
26151
  alias?: Record<string, string>;
26142
26152
  /** Whether the bundled worker is minified. Only takes effect if bundle: true. */
26143
26153
  minify?: boolean;
26154
+ /** Whether to keep function names after JavaScript transpilations. */
26155
+ keepNames?: boolean;
26144
26156
  /** Options controlling a custom build step. */
26145
26157
  custom?: {
26146
26158
  /** Custom shell command to run before bundling. Runs even if bundle. */