wrangler 3.72.2 → 3.72.3
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/package.json +2 -2
- package/wrangler-dist/cli.js +65 -43
- package/wrangler-dist/cli.js.map +0 -7
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.72.
|
3
|
+
"version": "3.72.3",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"workerd": "1.20240821.1",
|
67
67
|
"xxhash-wasm": "^1.0.1",
|
68
68
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
69
|
-
"@cloudflare/workers-shared": "0.
|
69
|
+
"@cloudflare/workers-shared": "0.4.0",
|
70
70
|
"miniflare": "3.20240821.0"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
package/wrangler-dist/cli.js
CHANGED
@@ -152693,7 +152693,7 @@ init_import_meta_url();
|
|
152693
152693
|
init_import_meta_url();
|
152694
152694
|
|
152695
152695
|
// package.json
|
152696
|
-
var version = "3.72.
|
152696
|
+
var version = "3.72.3";
|
152697
152697
|
var package_default = {
|
152698
152698
|
name: "wrangler",
|
152699
152699
|
version,
|
@@ -162626,7 +162626,7 @@ function buildMiniflareBindingOptions(config) {
|
|
162626
162626
|
}
|
162627
162627
|
const serviceBindings = {
|
162628
162628
|
...config.serviceBindings,
|
162629
|
-
...config.experimentalAssets ? { ASSET_SERVER: "asset-server" } : {}
|
162629
|
+
...config.experimentalAssets ? { ASSET_SERVER: "asset-server-worker" } : {}
|
162630
162630
|
};
|
162631
162631
|
const notFoundServices = /* @__PURE__ */ new Set();
|
162632
162632
|
for (const service of config.services ?? []) {
|
@@ -163937,6 +163937,38 @@ function createWorkerUploadForm(worker) {
|
|
163937
163937
|
}
|
163938
163938
|
__name(createWorkerUploadForm, "createWorkerUploadForm");
|
163939
163939
|
|
163940
|
+
// src/deployment-bundle/esbuild-plugins/log-build-output.ts
|
163941
|
+
init_import_meta_url();
|
163942
|
+
function logBuildOutput(nodejsCompatMode, onStart, updateBundle) {
|
163943
|
+
let bundled = false;
|
163944
|
+
return {
|
163945
|
+
name: "log-build-output",
|
163946
|
+
setup(build5) {
|
163947
|
+
build5.onStart(() => {
|
163948
|
+
onStart?.();
|
163949
|
+
});
|
163950
|
+
build5.onEnd(async ({ errors, warnings }) => {
|
163951
|
+
if (errors.length > 0) {
|
163952
|
+
if (nodejsCompatMode !== "legacy") {
|
163953
|
+
rewriteNodeCompatBuildFailure(errors);
|
163954
|
+
}
|
163955
|
+
logBuildFailure(errors, warnings);
|
163956
|
+
return;
|
163957
|
+
}
|
163958
|
+
if (warnings.length > 0) {
|
163959
|
+
logBuildWarnings(warnings);
|
163960
|
+
}
|
163961
|
+
if (!bundled) {
|
163962
|
+
bundled = true;
|
163963
|
+
} else {
|
163964
|
+
await updateBundle?.();
|
163965
|
+
}
|
163966
|
+
});
|
163967
|
+
}
|
163968
|
+
};
|
163969
|
+
}
|
163970
|
+
__name(logBuildOutput, "logBuildOutput");
|
163971
|
+
|
163940
163972
|
// src/deployments.ts
|
163941
163973
|
init_import_meta_url();
|
163942
163974
|
var import_url8 = require("url");
|
@@ -199068,7 +199100,10 @@ async function generateRuntimeTypes({
|
|
199068
199100
|
await ensureDirectoryExists(outFile);
|
199069
199101
|
const types = await generate({
|
199070
199102
|
compatibilityDate: compatibility_date,
|
199071
|
-
|
199103
|
+
// Ignore nodejs compat flags as there is currently no mechanism to generate these dynamically.
|
199104
|
+
compatibilityFlags: compatibility_flags.filter(
|
199105
|
+
(flag) => !flag.includes("nodejs_compat")
|
199106
|
+
)
|
199072
199107
|
});
|
199073
199108
|
await (0, import_promises24.writeFile)(outFile, types, "utf8");
|
199074
199109
|
return {
|
@@ -199142,7 +199177,7 @@ function logRuntimeTypesMessage(outFile, tsconfigTypes, isNodeCompat = false) {
|
|
199142
199177
|
}
|
199143
199178
|
if (isNodeCompat && !isNodeTypesInstalled) {
|
199144
199179
|
logger.info(
|
199145
|
-
'\u{1F4E3}
|
199180
|
+
'\u{1F4E3} Since you have Node.js compatibility mode enabled, you should consider adding Node.js for TypeScript by running "npm i --save-dev @types/node@20.8.3". Please see the docs for more details: https://developers.cloudflare.com/workers/languages/typescript/#transitive-loading-of-typesnode-overrides-cloudflareworkers-types'
|
199146
199181
|
);
|
199147
199182
|
}
|
199148
199183
|
logger.info(
|
@@ -199656,7 +199691,9 @@ async function queryIndex(config, indexName, vector, options29) {
|
|
199656
199691
|
`/accounts/${accountId}/vectorize/v2/indexes/${indexName}/query`,
|
199657
199692
|
{
|
199658
199693
|
method: "POST",
|
199659
|
-
headers: {
|
199694
|
+
headers: {
|
199695
|
+
"content-type": jsonContentType
|
199696
|
+
},
|
199660
199697
|
body: JSON.stringify({
|
199661
199698
|
...options29,
|
199662
199699
|
vector: Array.isArray(vector) ? vector : Array.from(vector)
|
@@ -199671,6 +199708,9 @@ async function getByIds(config, indexName, ids) {
|
|
199671
199708
|
`/accounts/${accountId}/vectorize/v2/indexes/${indexName}/get_by_ids`,
|
199672
199709
|
{
|
199673
199710
|
method: "POST",
|
199711
|
+
headers: {
|
199712
|
+
"content-type": jsonContentType
|
199713
|
+
},
|
199674
199714
|
body: JSON.stringify(ids)
|
199675
199715
|
}
|
199676
199716
|
);
|
@@ -199682,6 +199722,9 @@ async function deleteByIds(config, indexName, ids) {
|
|
199682
199722
|
`/accounts/${accountId}/vectorize/v2/indexes/${indexName}/delete_by_ids`,
|
199683
199723
|
{
|
199684
199724
|
method: "POST",
|
199725
|
+
headers: {
|
199726
|
+
"content-type": jsonContentType
|
199727
|
+
},
|
199685
199728
|
body: JSON.stringify(ids)
|
199686
199729
|
}
|
199687
199730
|
);
|
@@ -199703,6 +199746,9 @@ async function createMetadataIndex(config, indexName, payload) {
|
|
199703
199746
|
`/accounts/${accountId}/vectorize/v2/indexes/${indexName}/metadata_index/create`,
|
199704
199747
|
{
|
199705
199748
|
method: "POST",
|
199749
|
+
headers: {
|
199750
|
+
"content-type": jsonContentType
|
199751
|
+
},
|
199706
199752
|
body: JSON.stringify(payload)
|
199707
199753
|
}
|
199708
199754
|
);
|
@@ -199724,6 +199770,9 @@ async function deleteMetadataIndex(config, indexName, payload) {
|
|
199724
199770
|
`/accounts/${accountId}/vectorize/v2/indexes/${indexName}/metadata_index/delete`,
|
199725
199771
|
{
|
199726
199772
|
method: "POST",
|
199773
|
+
headers: {
|
199774
|
+
"content-type": jsonContentType
|
199775
|
+
},
|
199727
199776
|
body: JSON.stringify(payload)
|
199728
199777
|
}
|
199729
199778
|
);
|
@@ -199924,7 +199973,10 @@ async function handler20(args) {
|
|
199924
199973
|
return;
|
199925
199974
|
}
|
199926
199975
|
logger.log(`\u{1F4CB} Deleting vectors...`);
|
199927
|
-
const
|
199976
|
+
const ids = {
|
199977
|
+
ids: args.ids
|
199978
|
+
};
|
199979
|
+
const mutation = await deleteByIds(config, args.name, ids);
|
199928
199980
|
logger.log(
|
199929
199981
|
`\u2705 Successfully enqueued ${args.ids.length} vectors into index '${args.name}' for deletion. Mutation changeset identifier: ${mutation.mutationId}.`
|
199930
199982
|
);
|
@@ -200020,7 +200072,10 @@ async function handler23(args) {
|
|
200020
200072
|
return;
|
200021
200073
|
}
|
200022
200074
|
logger.log(`\u{1F4CB} Fetching vectors...`);
|
200023
|
-
const
|
200075
|
+
const ids = {
|
200076
|
+
ids: args.ids
|
200077
|
+
};
|
200078
|
+
const vectors = await getByIds(config, args.name, ids);
|
200024
200079
|
if (vectors.length === 0) {
|
200025
200080
|
logger.warn(
|
200026
200081
|
`The index does not contain vectors corresponding to the provided identifiers`
|
@@ -205528,7 +205583,8 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
205528
205583
|
defineNavigatorUserAgent: isNavigatorDefined(
|
205529
205584
|
props.compatibilityDate ?? config.compatibility_date,
|
205530
205585
|
props.compatibilityFlags ?? config.compatibility_flags
|
205531
|
-
)
|
205586
|
+
),
|
205587
|
+
plugins: [logBuildOutput(nodejsCompatMode)]
|
205532
205588
|
}
|
205533
205589
|
);
|
205534
205590
|
for (const module3 of modules) {
|
@@ -205536,11 +205592,6 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
205536
205592
|
const bytesInOutput = typeof module3.content === "string" ? Buffer.byteLength(module3.content) : module3.content.byteLength;
|
205537
205593
|
dependencies[modulePath] = { bytesInOutput };
|
205538
205594
|
}
|
205539
|
-
for (const module3 of modules) {
|
205540
|
-
const modulePath = module3.filePath === void 0 ? module3.name : import_node_path60.default.relative("", module3.filePath);
|
205541
|
-
const bytesInOutput = typeof module3.content === "string" ? Buffer.byteLength(module3.content) : module3.content.byteLength;
|
205542
|
-
dependencies[modulePath] = { bytesInOutput };
|
205543
|
-
}
|
205544
205595
|
const content = (0, import_node_fs35.readFileSync)(resolvedEntryPointPath, {
|
205545
205596
|
encoding: "utf-8"
|
205546
205597
|
});
|
@@ -207292,34 +207343,6 @@ function runBuild({
|
|
207292
207343
|
});
|
207293
207344
|
}
|
207294
207345
|
__name(updateBundle, "updateBundle");
|
207295
|
-
let bundled = false;
|
207296
|
-
const onEnd = {
|
207297
|
-
name: "on-end",
|
207298
|
-
setup(b2) {
|
207299
|
-
b2.onStart(() => {
|
207300
|
-
onStart();
|
207301
|
-
});
|
207302
|
-
b2.onEnd(async (result) => {
|
207303
|
-
const errors = result.errors;
|
207304
|
-
const warnings = result.warnings;
|
207305
|
-
if (errors.length > 0) {
|
207306
|
-
if (nodejsCompatMode !== "legacy") {
|
207307
|
-
rewriteNodeCompatBuildFailure(result.errors);
|
207308
|
-
}
|
207309
|
-
logBuildFailure(errors, warnings);
|
207310
|
-
return;
|
207311
|
-
}
|
207312
|
-
if (warnings.length > 0) {
|
207313
|
-
logBuildWarnings(warnings);
|
207314
|
-
}
|
207315
|
-
if (!bundled) {
|
207316
|
-
bundled = true;
|
207317
|
-
} else {
|
207318
|
-
await updateBundle();
|
207319
|
-
}
|
207320
|
-
});
|
207321
|
-
}
|
207322
|
-
};
|
207323
207346
|
async function build5() {
|
207324
207347
|
if (!destination) {
|
207325
207348
|
return;
|
@@ -207345,7 +207368,7 @@ function runBuild({
|
|
207345
207368
|
bypassAssetCache: true,
|
207346
207369
|
targetConsumer,
|
207347
207370
|
testScheduled,
|
207348
|
-
plugins: [
|
207371
|
+
plugins: [logBuildOutput(nodejsCompatMode, onStart, updateBundle)],
|
207349
207372
|
local,
|
207350
207373
|
projectRoot,
|
207351
207374
|
defineNavigatorUserAgent
|
@@ -212861,4 +212884,3 @@ yargs-parser/build/lib/index.js:
|
|
212861
212884
|
* SPDX-License-Identifier: ISC
|
212862
212885
|
*)
|
212863
212886
|
*/
|
212864
|
-
//# sourceMappingURL=cli.js.map
|