Skip to content

fix: upgrade @actions/* and devDependencies to ESM-compatible latest versions#557

Merged
ueokande merged 2 commits into
masterfrom
update-dependencies
May 6, 2026
Merged

fix: upgrade @actions/* and devDependencies to ESM-compatible latest versions#557
ueokande merged 2 commits into
masterfrom
update-dependencies

Conversation

@ueokande
Copy link
Copy Markdown
Member

@ueokande ueokande commented May 6, 2026

The @actions/core, @actions/exec, @actions/http-client, @actions/io, and @actions/tool-cache packages released major versions (v3/v4) that are ESM-only, dropping CommonJS support. Continuing to use the old versions would leave the action on unmaintained releases that no longer receive security patches or new features.

To adopt these packages, the project needed to move from CommonJS to ESM. This required adding "type": "module" to package.json and updating the TypeScript configuration to target ES2022 with module: ESNext and moduleResolution: bundler, which is the correct mode for bundler-based builds using ncc. The test file was also updated to replace the CommonJS-only __dirname global with import.meta.dirname, available in Node.js 21 and later.

All devDependencies were updated to their latest versions at the same time. Biome 2 introduced a breaking change in its configuration schema, renaming files.ignore to files.includes with negation-prefixed patterns, and renaming the --apply CLI flag to --write. Both were updated. Biome 2 also introduced a new rule that flags unused private class members; the unused platform field in WindowsInstaller was renamed to _platform to retain the value for potential future use while satisfying the linter.

ueokande and others added 2 commits May 6, 2026 14:17
- Update @actions/core, exec, http-client, io, tool-cache to latest
  (v3/v4 are ESM-only packages)
- Add "type": "module" to package.json to enable ESM
- Update tsconfig.json: target ES2022, module ESNext,
  moduleResolution bundler
- Replace __dirname with import.meta.dirname in test file

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Update @biomejs/biome 1.7 → 2.4, @types/node 18 → 25,
  @vercel/ncc 0.38.0 → 0.38.4, typescript 5.2 → 6.0,
  vitest 1.6 → 4.1
- Migrate biome.json: files.ignore → files.includes with negation
  patterns (Biome 2 API change)
- Fix lint:fix script: --apply → --write (Biome 2 API change)
- Fix noUnusedPrivateClassMembers: rename WindowsInstaller.platform
  to _platform (kept for future use)
- Fix import order in src files (auto-fixed by Biome)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ueokande ueokande merged commit b36f770 into master May 6, 2026
8 checks passed
@ueokande ueokande deleted the update-dependencies branch May 6, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant