workerd 1.20260228.0 → 1.20260302.0
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 +17 -8
package/bin/workerd
CHANGED
|
@@ -122,7 +122,7 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
122
122
|
"node_modules",
|
|
123
123
|
".cache",
|
|
124
124
|
"workerd",
|
|
125
|
-
`pnpapi-${pkg.replace("/", "-")}-${"1.
|
|
125
|
+
`pnpapi-${pkg.replace("/", "-")}-${"1.20260302.0"}-${import_path.default.basename(subpath)}`
|
|
126
126
|
);
|
|
127
127
|
if (!import_fs.default.existsSync(binTargetPath)) {
|
|
128
128
|
import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
|
package/install.js
CHANGED
|
@@ -94,10 +94,10 @@ operating system, or missing some shared libraries.`;
|
|
|
94
94
|
console.error(msg);
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
if (stdout !== `workerd ${"2026-02
|
|
97
|
+
if (stdout !== `workerd ${"2026-03-02"}`) {
|
|
98
98
|
throw new Error(
|
|
99
99
|
`Expected ${JSON.stringify(
|
|
100
|
-
"2026-02
|
|
100
|
+
"2026-03-02"
|
|
101
101
|
)} but got ${JSON.stringify(stdout)}`
|
|
102
102
|
);
|
|
103
103
|
}
|
|
@@ -152,7 +152,7 @@ function installUsingNPM(pkg, subpath, binPath) {
|
|
|
152
152
|
try {
|
|
153
153
|
import_fs.default.writeFileSync(import_path2.default.join(installDir, "package.json"), "{}");
|
|
154
154
|
import_child_process.default.execSync(
|
|
155
|
-
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"1.
|
|
155
|
+
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"1.20260302.0"}`,
|
|
156
156
|
{ cwd: installDir, stdio: "pipe", env }
|
|
157
157
|
);
|
|
158
158
|
const installedBinPath = import_path2.default.join(
|
|
@@ -197,7 +197,7 @@ function maybeOptimizePackage(binPath) {
|
|
|
197
197
|
}
|
|
198
198
|
async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
|
|
199
199
|
const unscopedPkg = pkg.substring(pkg.indexOf("/") + 1);
|
|
200
|
-
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"1.
|
|
200
|
+
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"1.20260302.0"}.tgz`;
|
|
201
201
|
console.error(`[workerd] Trying to download ${JSON.stringify(url)}`);
|
|
202
202
|
try {
|
|
203
203
|
import_fs.default.writeFileSync(
|
package/lib/main.js
CHANGED
|
@@ -136,7 +136,7 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
136
136
|
"node_modules",
|
|
137
137
|
".cache",
|
|
138
138
|
"workerd",
|
|
139
|
-
`pnpapi-${pkg.replace("/", "-")}-${"1.
|
|
139
|
+
`pnpapi-${pkg.replace("/", "-")}-${"1.20260302.0"}-${import_path.default.basename(subpath)}`
|
|
140
140
|
);
|
|
141
141
|
if (!import_fs.default.existsSync(binTargetPath)) {
|
|
142
142
|
import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
|
|
@@ -151,8 +151,8 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
151
151
|
// npm/lib/node-path.ts
|
|
152
152
|
var { binPath } = generateBinPath();
|
|
153
153
|
var node_path_default = binPath;
|
|
154
|
-
var compatibilityDate = "2026-02
|
|
155
|
-
var version = "1.
|
|
154
|
+
var compatibilityDate = "2026-03-02";
|
|
155
|
+
var version = "1.20260302.0";
|
|
156
156
|
// Annotate the CommonJS export names for ESM import in node:
|
|
157
157
|
0 && (module.exports = {
|
|
158
158
|
compatibilityDate,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workerd",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20260302.0",
|
|
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.20260302.0",
|
|
18
|
+
"@cloudflare/workerd-darwin-64": "1.20260302.0",
|
|
19
|
+
"@cloudflare/workerd-linux-arm64": "1.20260302.0",
|
|
20
|
+
"@cloudflare/workerd-linux-64": "1.20260302.0",
|
|
21
|
+
"@cloudflare/workerd-windows-64": "1.20260302.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0"
|
|
24
24
|
}
|
package/worker.mjs
CHANGED
|
@@ -7968,8 +7968,17 @@ interface MediaTransformer {
|
|
|
7968
7968
|
* @returns A generator for producing the transformed media output
|
|
7969
7969
|
*/
|
|
7970
7970
|
transform(
|
|
7971
|
-
transform
|
|
7971
|
+
transform?: MediaTransformationInputOptions
|
|
7972
7972
|
): MediaTransformationGenerator
|
|
7973
|
+
|
|
7974
|
+
/**
|
|
7975
|
+
* Generates the final media output with specified options.
|
|
7976
|
+
* @param output - Configuration for the output format and parameters
|
|
7977
|
+
* @returns The final transformation result containing the transformed media
|
|
7978
|
+
*/
|
|
7979
|
+
output(
|
|
7980
|
+
output?: MediaTransformationOutputOptions
|
|
7981
|
+
): MediaTransformationResult
|
|
7973
7982
|
}
|
|
7974
7983
|
|
|
7975
7984
|
/**
|
|
@@ -7983,7 +7992,7 @@ interface MediaTransformationGenerator {
|
|
|
7983
7992
|
* @returns The final transformation result containing the transformed media
|
|
7984
7993
|
*/
|
|
7985
7994
|
output(
|
|
7986
|
-
output
|
|
7995
|
+
output?: MediaTransformationOutputOptions
|
|
7987
7996
|
): MediaTransformationResult
|
|
7988
7997
|
}
|
|
7989
7998
|
|
|
@@ -7994,19 +8003,19 @@ interface MediaTransformationGenerator {
|
|
|
7994
8003
|
interface MediaTransformationResult {
|
|
7995
8004
|
/**
|
|
7996
8005
|
* Returns the transformed media as a readable stream of bytes.
|
|
7997
|
-
* @returns A
|
|
8006
|
+
* @returns A promise containing a readable stream with the transformed media
|
|
7998
8007
|
*/
|
|
7999
|
-
media(): ReadableStream<Uint8Array
|
|
8008
|
+
media(): Promise<ReadableStream<Uint8Array>>
|
|
8000
8009
|
/**
|
|
8001
8010
|
* Returns the transformed media as an HTTP response object.
|
|
8002
|
-
* @returns The transformed media as a Response
|
|
8011
|
+
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
8003
8012
|
*/
|
|
8004
|
-
response(): Response
|
|
8013
|
+
response(): Promise<Response>
|
|
8005
8014
|
/**
|
|
8006
8015
|
* Returns the MIME type of the transformed media.
|
|
8007
|
-
* @returns
|
|
8016
|
+
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
8008
8017
|
*/
|
|
8009
|
-
contentType(): string
|
|
8018
|
+
contentType(): Promise<string>
|
|
8010
8019
|
}
|
|
8011
8020
|
|
|
8012
8021
|
/**
|