Skip to content

fix: migrate to ESM and update all dependencies to latest#647

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

fix: migrate to ESM and update all dependencies to latest#647
ueokande merged 4 commits into
masterfrom
update-dependencies

Conversation

@ueokande
Copy link
Copy Markdown
Member

@ueokande ueokande commented May 6, 2026

Summary

Migrates the project to ESM and updates all dependencies to their latest versions.

Changes

ESM migration

  • Add "type": "module" to package.json
  • Update tsconfig.json: target: ES2022, module: ESNext, moduleResolution: Bundler, remove esModuleInterop
  • Fix LatestInstaller: move SnapshotInstaller init into constructor body to avoid ES2022 native class field initialization order issue
  • Fix tests: replace vi.spyOn on ESM module exports with vi.mock + vi.mocked pattern (ESM module exports are non-configurable by spec)

Dependency updates

Package Old New
@actions/core 1.x 3.0.1
@actions/exec 1.x 3.0.0
@actions/http-client 2.x 4.0.1
@actions/io 1.x 3.0.2
@actions/tool-cache 2.x 4.0.0
typescript 5.x 6.0.3
@vercel/ncc 0.38.1 0.38.4
@biomejs/biome 1.7.2 2.4.14
@types/node 20.x 25.6.0
vitest 2.x 4.1.5

Biome 2.x migration

  • files.ignorefiles.includes with negation patterns
  • lint:fix script: --apply--write
  • Apply auto-fixed import ordering

@ueokande ueokande changed the title feat: migrate to ESM and update all dependencies to latest fix: migrate to ESM and update all dependencies to latest May 6, 2026
ueokande and others added 4 commits May 6, 2026 13:33
- Add "type": "module" to package.json
- Update tsconfig: target ES2022, module ESNext, moduleResolution Bundler
- Remove esModuleInterop (not needed for native ESM)
- Update @actions/core 1.x → 3.0.1 (ESM-only)
- Update @actions/exec 1.x → 3.0.0 (ESM-only)
- Update @actions/http-client 2.x → 4.0.1 (ESM-only)
- Update @actions/io 1.x → 3.0.2 (ESM-only)
- Update @actions/tool-cache 2.x → 4.0.0 (ESM-only)
- Update typescript 5.x → 6.0.3
- Update @vercel/ncc 0.38.1 → 0.38.4
- Fix LatestInstaller: move SnapshotInstaller init into constructor
  to avoid ES2022 class field initialization order issue
- Fix tests: replace vi.spyOn on ESM module exports with
  vi.mock + vi.mocked pattern

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Update @biomejs/biome 1.7.2 → 2.4.14
- Migrate biome.json: files.ignore → files.includes with negation patterns
- Update lint:fix script: --apply → --write (renamed in Biome 2.x)
- Apply auto-fixed import ordering in src/ files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ueokande ueokande force-pushed the update-dependencies branch from 12447c3 to 4980211 Compare May 6, 2026 04:33
@ueokande ueokande merged commit 7e4ea99 into master May 6, 2026
20 checks passed
@ueokande ueokande deleted the update-dependencies branch May 6, 2026 04:44
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