workerd 1.20260818.1 → 1.20260819.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/bin/workerd +1 -1
- package/install.js +4 -4
- package/lib/main.js +3 -3
- package/package.json +6 -6
- package/worker.mjs +6 -1
package/bin/workerd
CHANGED
|
@@ -123,7 +123,7 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
123
123
|
"node_modules",
|
|
124
124
|
".cache",
|
|
125
125
|
"workerd",
|
|
126
|
-
`pnpapi-${pkg.replace("/", "-")}-${"1.
|
|
126
|
+
`pnpapi-${pkg.replace("/", "-")}-${"1.20260819.1"}-${import_path.default.basename(subpath)}`
|
|
127
127
|
);
|
|
128
128
|
if (!import_fs.default.existsSync(binTargetPath)) {
|
|
129
129
|
import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
|
package/install.js
CHANGED
|
@@ -95,10 +95,10 @@ operating system, or missing some shared libraries.`;
|
|
|
95
95
|
console.error(msg);
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
if (stdout !== `workerd ${"2026-08-
|
|
98
|
+
if (stdout !== `workerd ${"2026-08-19"}`) {
|
|
99
99
|
throw new Error(
|
|
100
100
|
`Expected ${JSON.stringify(
|
|
101
|
-
"2026-08-
|
|
101
|
+
"2026-08-19"
|
|
102
102
|
)} but got ${JSON.stringify(stdout)}`
|
|
103
103
|
);
|
|
104
104
|
}
|
|
@@ -153,7 +153,7 @@ function installUsingNPM(pkg, subpath, binPath) {
|
|
|
153
153
|
try {
|
|
154
154
|
import_fs.default.writeFileSync(import_path2.default.join(installDir, "package.json"), "{}");
|
|
155
155
|
import_child_process.default.execSync(
|
|
156
|
-
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"1.
|
|
156
|
+
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"1.20260819.1"}`,
|
|
157
157
|
{ cwd: installDir, stdio: "pipe", env }
|
|
158
158
|
);
|
|
159
159
|
const installedBinPath = import_path2.default.join(
|
|
@@ -198,7 +198,7 @@ function maybeOptimizePackage(binPath) {
|
|
|
198
198
|
}
|
|
199
199
|
async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
|
|
200
200
|
const unscopedPkg = pkg.substring(pkg.indexOf("/") + 1);
|
|
201
|
-
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"1.
|
|
201
|
+
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"1.20260819.1"}.tgz`;
|
|
202
202
|
console.error(`[workerd] Trying to download ${JSON.stringify(url)}`);
|
|
203
203
|
try {
|
|
204
204
|
import_fs.default.writeFileSync(
|
package/lib/main.js
CHANGED
|
@@ -137,7 +137,7 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
137
137
|
"node_modules",
|
|
138
138
|
".cache",
|
|
139
139
|
"workerd",
|
|
140
|
-
`pnpapi-${pkg.replace("/", "-")}-${"1.
|
|
140
|
+
`pnpapi-${pkg.replace("/", "-")}-${"1.20260819.1"}-${import_path.default.basename(subpath)}`
|
|
141
141
|
);
|
|
142
142
|
if (!import_fs.default.existsSync(binTargetPath)) {
|
|
143
143
|
import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
|
|
@@ -152,8 +152,8 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
152
152
|
// npm/lib/node-path.ts
|
|
153
153
|
var { binPath } = generateBinPath();
|
|
154
154
|
var node_path_default = binPath;
|
|
155
|
-
var compatibilityDate = "2026-08-
|
|
156
|
-
var version = "1.
|
|
155
|
+
var compatibilityDate = "2026-08-19";
|
|
156
|
+
var version = "1.20260819.1";
|
|
157
157
|
// Annotate the CommonJS export names for ESM import in node:
|
|
158
158
|
0 && (module.exports = {
|
|
159
159
|
compatibilityDate,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workerd",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20260819.1",
|
|
4
4
|
"description": "👷 workerd, Cloudflare's JavaScript/Wasm Runtime",
|
|
5
5
|
"repository": "https://github.com/cloudflare/workerd",
|
|
6
6
|
"scripts": {
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"workerd": "bin/workerd"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@cloudflare/workerd-darwin-arm64": "1.
|
|
18
|
-
"@cloudflare/workerd-darwin-64": "1.
|
|
19
|
-
"@cloudflare/workerd-linux-arm64": "1.
|
|
20
|
-
"@cloudflare/workerd-linux-64": "1.
|
|
21
|
-
"@cloudflare/workerd-windows-64": "1.
|
|
17
|
+
"@cloudflare/workerd-darwin-arm64": "1.20260819.1",
|
|
18
|
+
"@cloudflare/workerd-darwin-64": "1.20260819.1",
|
|
19
|
+
"@cloudflare/workerd-linux-arm64": "1.20260819.1",
|
|
20
|
+
"@cloudflare/workerd-linux-64": "1.20260819.1",
|
|
21
|
+
"@cloudflare/workerd-windows-64": "1.20260819.1"
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0"
|
|
24
24
|
}
|
package/worker.mjs
CHANGED
|
@@ -10718,11 +10718,16 @@ type ImageTransformationOutputOptions = {
|
|
|
10718
10718
|
encoding?: 'base64';
|
|
10719
10719
|
};
|
|
10720
10720
|
|
|
10721
|
+
type ImageTransformationResponseOptions = {
|
|
10722
|
+
headers?: HeadersInit;
|
|
10723
|
+
};
|
|
10724
|
+
|
|
10721
10725
|
interface ImageTransformationResult {
|
|
10722
10726
|
/**
|
|
10723
10727
|
* The image as a response, ready to store in cache or return to users
|
|
10728
|
+
* @param options Options that apply to the returned response, e.g. additional headers
|
|
10724
10729
|
*/
|
|
10725
|
-
response(): Response;
|
|
10730
|
+
response(options?: ImageTransformationResponseOptions): Response;
|
|
10726
10731
|
/**
|
|
10727
10732
|
* The content type of the returned image
|
|
10728
10733
|
*/
|