Skip to content

Commit 5f1b2d8

Browse files
dependabot[bot]andykenwardCopilot
authored
chore(deps-dev): bump wrangler from 4.75.0 to 4.86.0 in the cloudflare group across 1 directory (#738)
* chore(deps-dev): bump wrangler Bumps the cloudflare group with 1 update in the / directory: [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler). Updates `wrangler` from 4.75.0 to 4.86.0 - [Release notes](https://github.com/cloudflare/workers-sdk/releases) - [Commits](https://github.com/cloudflare/workers-sdk/commits/wrangler@4.86.0/packages/wrangler) --- updated-dependencies: - dependency-name: wrangler dependency-version: 4.86.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: cloudflare ... Signed-off-by: dependabot[bot] <support@github.com> * docs: update AGENTS.md about TypeScript in Node.js * feat: script to update wrangler version Co-authored-by: Copilot <copilot@github.com> * chore: update wrangler version Co-authored-by: Copilot <copilot@github.com> * chore: build * chore: changeset --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andy Kenward <4893048+andykenward@users.noreply.github.com> Co-authored-by: Copilot <copilot@github.com>
1 parent 73a3453 commit 5f1b2d8

10 files changed

Lines changed: 107 additions & 54 deletions

File tree

.changeset/gentle-toes-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"github-actions-cloudflare-pages": patch
3+
---
4+
5+
chore(deps-dev): bump wrangler from 4.75.0 to 4.86.0

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pnpm run act:d # Test delete action locally with act
5656

5757
- **Node 24**: Strict engine requirement in [package.json](package.json#L102)
5858
- **pnpm 10.15.1**: Enforced by `packageManager` field
59+
- **TypeScript Script Execution**: In this repo environment, Node.js can run `.ts` scripts directly without extra runner commands. Prefer `node path/to/script.ts` for one-off script execution (for example, `node bin/sync-versions.ts`).
5960
- After modifying GraphQL queries/mutations: `pnpm run codegen` before building
6061
- After changing input keys in [action.yml](action.yml): Update [input-keys.ts](input-keys.ts)
6162

bin/sync-versions.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import assert from 'node:assert'
2+
import fs from 'node:fs'
3+
import path from 'node:path'
4+
5+
import packageJson from '../package.json' with {type: 'json'}
6+
7+
/**
8+
* Synchronizes the default `wranglerVersion` fallback in `src/common/inputs.ts`
9+
* with `devDependencies.wrangler` from `package.json`.
10+
*/
11+
12+
const wranglerVersion = packageJson.devDependencies.wrangler
13+
14+
assert.ok(
15+
wranglerVersion,
16+
'Unable to find devDependencies.wrangler in package.json'
17+
)
18+
19+
const inputsPath = path.resolve(import.meta.dirname, '../src/common/inputs.ts')
20+
const content = fs.readFileSync(inputsPath, 'utf8')
21+
const wranglerVersionPattern =
22+
/wranglerVersion: getInput\(INPUT_KEY_WRANGLER_VERSION\) \|\| '([^']+)'/
23+
24+
const currentWranglerVersion = content.match(wranglerVersionPattern)?.[1]
25+
26+
assert.ok(
27+
currentWranglerVersion,
28+
'Unable to find wranglerVersion fallback in src/common/inputs.ts'
29+
)
30+
31+
if (currentWranglerVersion !== wranglerVersion) {
32+
const updated = content.replace(
33+
wranglerVersionPattern,
34+
`wranglerVersion: getInput(INPUT_KEY_WRANGLER_VERSION) || '${wranglerVersion}'`
35+
)
36+
37+
fs.writeFileSync(inputsPath, updated)
38+
process.stdout.write(
39+
`Updated wrangler version fallback: ${currentWranglerVersion} -> ${wranglerVersion}\n`
40+
)
41+
}

dist/delete/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)