workerd 1.20260930.2 → 1.20261002.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 +41 -3
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.20261002.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-
|
|
98
|
+
if (stdout !== `workerd ${"2026-10-02"}`) {
|
|
99
99
|
throw new Error(
|
|
100
100
|
`Expected ${JSON.stringify(
|
|
101
|
-
"2026-
|
|
101
|
+
"2026-10-02"
|
|
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.20261002.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.20261002.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.20261002.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-
|
|
156
|
-
var version = "1.
|
|
155
|
+
var compatibilityDate = "2026-10-02";
|
|
156
|
+
var version = "1.20261002.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.20261002.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.20261002.1",
|
|
18
|
+
"@cloudflare/workerd-darwin-64": "1.20261002.1",
|
|
19
|
+
"@cloudflare/workerd-linux-arm64": "1.20261002.1",
|
|
20
|
+
"@cloudflare/workerd-linux-64": "1.20261002.1",
|
|
21
|
+
"@cloudflare/workerd-windows-64": "1.20261002.1"
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0"
|
|
24
24
|
}
|
package/worker.mjs
CHANGED
|
@@ -14351,10 +14351,19 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
14351
14351
|
): Promise<WorkflowInstance>;
|
|
14352
14352
|
|
|
14353
14353
|
/**
|
|
14354
|
-
* Create a batch of instances and return
|
|
14354
|
+
* Create a batch of instances and return handles for the created instances and any per-instance errors.
|
|
14355
14355
|
* \`createBatch\` is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached.
|
|
14356
|
-
* @param
|
|
14357
|
-
* @returns A promise that resolves with
|
|
14356
|
+
* @param options Options for creating instances by count or from a list of instance options
|
|
14357
|
+
* @returns A promise that resolves with the created instance handles and any per-instance errors.
|
|
14358
|
+
*/
|
|
14359
|
+
public createBatch(
|
|
14360
|
+
options: WorkflowBatchCreateOptions<PARAMS>
|
|
14361
|
+
): Promise<WorkflowBatchCreateResult>;
|
|
14362
|
+
|
|
14363
|
+
/**
|
|
14364
|
+
* Create a batch of instances and return handles for the ones that were created.
|
|
14365
|
+
* Instances that could not be created, for example because their ID already exists, are omitted from the result without an error.
|
|
14366
|
+
* @deprecated Use the object form of \`createBatch\` instead of the array form.
|
|
14358
14367
|
*/
|
|
14359
14368
|
public createBatch(
|
|
14360
14369
|
batch: WorkflowInstanceCreateOptions<PARAMS>[]
|
|
@@ -14370,6 +14379,35 @@ declare abstract class Workflow<PARAMS = unknown> {
|
|
|
14370
14379
|
public deleteBatch(instanceIds: string[]): Promise<WorkflowBatchDeleteResult>;
|
|
14371
14380
|
}
|
|
14372
14381
|
|
|
14382
|
+
type WorkflowBatchCreateOptions<PARAMS = unknown> =
|
|
14383
|
+
| {
|
|
14384
|
+
count: number;
|
|
14385
|
+
params?: PARAMS;
|
|
14386
|
+
retention?: {
|
|
14387
|
+
successRetention?: WorkflowRetentionDuration;
|
|
14388
|
+
errorRetention?: WorkflowRetentionDuration;
|
|
14389
|
+
};
|
|
14390
|
+
locationHint?: WorkflowInstanceLocationHint;
|
|
14391
|
+
instances?: never;
|
|
14392
|
+
}
|
|
14393
|
+
| {
|
|
14394
|
+
instances: WorkflowInstanceCreateOptions<PARAMS>[];
|
|
14395
|
+
count?: never;
|
|
14396
|
+
params?: never;
|
|
14397
|
+
retention?: never;
|
|
14398
|
+
locationHint?: never;
|
|
14399
|
+
};
|
|
14400
|
+
|
|
14401
|
+
type WorkflowBatchCreateResult = {
|
|
14402
|
+
created: WorkflowInstance[];
|
|
14403
|
+
errors: {
|
|
14404
|
+
index: number;
|
|
14405
|
+
id?: string;
|
|
14406
|
+
code: number;
|
|
14407
|
+
message: string;
|
|
14408
|
+
}[];
|
|
14409
|
+
};
|
|
14410
|
+
|
|
14373
14411
|
type WorkflowBatchDeleteResult = {
|
|
14374
14412
|
deleted: { id: string }[];
|
|
14375
14413
|
errors: {
|