@cloudflare/vite-plugin 1.37.2 → 1.37.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/dist/index.mjs
CHANGED
|
@@ -1503,7 +1503,7 @@ async function assertWranglerVersion() {
|
|
|
1503
1503
|
* The default compatibility date to use when the user omits one.
|
|
1504
1504
|
* This value is injected at build time and remains fixed for each release.
|
|
1505
1505
|
*/
|
|
1506
|
-
const DEFAULT_COMPAT_DATE = "2026-05-
|
|
1506
|
+
const DEFAULT_COMPAT_DATE = "2026-05-21";
|
|
1507
1507
|
|
|
1508
1508
|
//#endregion
|
|
1509
1509
|
//#region ../../node_modules/.pnpm/@remix-run+node-fetch-server@0.8.0/node_modules/@remix-run/node-fetch-server/dist/node-fetch-server.js
|
|
@@ -50047,10 +50047,16 @@ async function getImageRepoTags(dockerPath, imageTag) {
|
|
|
50047
50047
|
*/
|
|
50048
50048
|
async function cleanupDuplicateImageTags(dockerPath, imageTag) {
|
|
50049
50049
|
try {
|
|
50050
|
-
const
|
|
50050
|
+
const repoTags = await getImageRepoTags(dockerPath, imageTag);
|
|
50051
|
+
const currentBuildId = getImageTag(imageTag);
|
|
50052
|
+
const tagsToRemove = repoTags.filter((tag) => tag.startsWith("cloudflare-dev") && getImageTag(tag) !== currentBuildId);
|
|
50051
50053
|
if (tagsToRemove.length > 0) runDockerCmdWithOutput(dockerPath, ["rmi", ...tagsToRemove]);
|
|
50052
50054
|
} catch {}
|
|
50053
50055
|
}
|
|
50056
|
+
function getImageTag(imageTag) {
|
|
50057
|
+
const tagSeparatorIndex = imageTag.lastIndexOf(":");
|
|
50058
|
+
return tagSeparatorIndex === -1 ? void 0 : imageTag.slice(tagSeparatorIndex + 1);
|
|
50059
|
+
}
|
|
50054
50060
|
|
|
50055
50061
|
//#endregion
|
|
50056
50062
|
//#region ../containers-shared/src/images.ts
|