@void/deploy-cloudflare 0.21.9 → 0.22.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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -3
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1186,6 +1186,7 @@ async function activateCloudflareVersionWithSecretsFile(options) {
1186
1186
  reason: "uploader-changed"
1187
1187
  };
1188
1188
  const previousVersionId = previous.versionId;
1189
+ const trustedInheritanceVersionIds = previousVersionId && options.trustedInheritanceVersionIds?.at(-1) === previousVersionId ? [] : options.trustedInheritanceVersionIds;
1189
1190
  let inheritanceBaseline;
1190
1191
  let trustedCandidateChain = false;
1191
1192
  let activeSecretsPinned = false;
@@ -1196,12 +1197,12 @@ async function activateCloudflareVersionWithSecretsFile(options) {
1196
1197
  reason: "inheritance-source-unavailable"
1197
1198
  };
1198
1199
  const latestVersionId = recent.at(-1)?.id ?? null;
1199
- if (options.expectedPreviousVersionId !== void 0 || options.trustedInheritanceVersionIds !== void 0) {
1200
+ if (options.expectedPreviousVersionId !== void 0 || trustedInheritanceVersionIds !== void 0) {
1200
1201
  const activeIndex = recent.findIndex((version) => version.id === previous.versionId);
1201
1202
  const inheritedChain = activeIndex < 0 ? [] : recent.slice(activeIndex);
1202
1203
  const inheritedCandidates = inheritedChain.slice(1).map((version) => version.id);
1203
- trustedCandidateChain = options.trustedInheritanceVersionIds !== void 0 && options.trustedInheritanceVersionIds.length > 0 && arraysEqual(inheritedCandidates, options.trustedInheritanceVersionIds);
1204
- if (!(inheritedChain.length > 0 && inheritedChain.every((version, index) => index === 0 || version.number === inheritedChain[index - 1].number + 1) && (arraysEqual(inheritedCandidates, options.trustedInheritanceVersionIds ?? []) || options.pinActiveSecrets !== void 0))) return {
1204
+ trustedCandidateChain = trustedInheritanceVersionIds !== void 0 && trustedInheritanceVersionIds.length > 0 && arraysEqual(inheritedCandidates, trustedInheritanceVersionIds);
1205
+ if (!(inheritedChain.length > 0 && inheritedChain.every((version, index) => index === 0 || version.number === inheritedChain[index - 1].number + 1) && (arraysEqual(inheritedCandidates, trustedInheritanceVersionIds ?? []) || options.pinActiveSecrets !== void 0))) return {
1205
1206
  ok: false,
1206
1207
  reason: "inheritance-source-changed",
1207
1208
  activeVersionId: recent.at(-1)?.id ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@void/deploy-cloudflare",
3
- "version": "0.21.9",
3
+ "version": "0.22.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/voidzero-dev/void.git",
@@ -20,15 +20,15 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@void/deploy-core": "0.21.9",
23
+ "@void/deploy-core": "0.22.0",
24
24
  "jsonc-parser": "3.3.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@cloudflare/workers-types": "^4.20260702.1",
28
- "@types/node": "^26.5.1",
28
+ "@types/node": "^26.6.3",
29
29
  "pathslash": "^0.1.0",
30
30
  "typescript": "7.0.2",
31
- "vite-plus": "0.3.1"
31
+ "vite-plus": "1.0.0"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "vp pack",