chore: merge all open Dependabot PRs with full ESM migration (@actions/core v3, TypeScript 6.0, ESLint 10, and more)#1257
Draft
chore: merge all open Dependabot PRs with full ESM migration (@actions/core v3, TypeScript 6.0, ESLint 10, and more)#1257
Conversation
…patibility fixes Agent-Logs-Url: https://github.com/JamesIves/fetch-api-data-action/sessions/f9f6a89c-acb9-46f7-9d2d-6c33b1809ace Co-authored-by: JamesIves <10888441+JamesIves@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
JamesIves
April 4, 2026 20:49
View session
Owner
|
@copilot convert things to esm instead of writing around it |
Agent-Logs-Url: https://github.com/JamesIves/fetch-api-data-action/sessions/7a6426c3-9a12-45f8-bdf4-bf1e6600d928 Co-authored-by: JamesIves <10888441+JamesIves@users.noreply.github.com>
Contributor
Author
Done in c2b4f31. The project is now fully ESM:
All 20 tests pass. |
Copilot
AI
changed the title
chore: merge all open Dependabot PRs (TypeScript 6.0, ESLint 10, and more)
chore: merge all open Dependabot PRs with full ESM migration (@actions/core v3, TypeScript 6.0, ESLint 10, and more)
Apr 5, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #1257 +/- ##
==========================================
- Coverage 98.94% 98.75% -0.20%
==========================================
Files 4 4
Lines 95 80 -15
Branches 30 31 +1
==========================================
- Hits 94 79 -15
Misses 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consolidates all open Dependabot PRs into a single update and converts the project to native ESM (
"type": "module"), enabling the use of@actions/corev3 and@actions/iov3 (both ESM-only packages).Dependency Updates
@actions/core2.0.2 → 3.0.0 (ESM-only, now included via full ESM migration)@actions/io2.0.0 → 3.0.2 (ESM-only, now included via full ESM migration)typescript5.9.3 → 6.0.2eslint9.39.2 → 10.1.0typescript-eslint/@typescript-eslint/*8.53.0 → 8.58.0eslint-plugin-jest29.12.1 → 29.15.1jest/jest-circus30.2.0 → 30.3.0ts-jest29.4.6 → 29.4.9prettier3.8.0 → 3.8.1@types/node25.0.9 → 25.5.0setup-nodev6.2.0 → v6.3.0,codecovv5.5.2 → v6.0.0lodash4.17.21 → 4.18.1,handlebars4.7.8 → 4.7.9ESM Migration
package.json: added"type": "module", updated test script withNODE_OPTIONS=--experimental-vm-modulestsconfig.json: switched tomodule: NodeNext/target: es2022src/*.ts: added.jsextensions to all relative imports (TypeScript NodeNext requirement); interface-only imports changed toimport typesrc/lib.ts: re-export ofActionInterfacechanged toexport typejest.config.js→jest.config.cjs: renamed for CJS format compatibility; addedextensionsToTreatAsEsm: ['.ts'],useESM: true, andmoduleNameMapperfor.js→.tsresolutiontsconfig.test.json: addedisolatedModules: true__tests__/*.test.ts: updated relative imports to use.jsextensions; jest APIs imported from@jest/globals(required in ESM VM module mode)__tests__/lib.test.ts: switched fromjest.mock()tojest.unstable_mockModule()with dynamic imports (ESM-compatible mocking for@actions/core)eslint.config.mjs: removed CJS-onlymoduleglobal; addedsourceType: 'commonjs'override for.cjsfilesTypeScript 6.0 / ESLint 10 Compatibility
tsconfig.json: explicit"types": ["node"]required by TypeScript 6.0src/fetch.ts:import {render} from 'mustache'→import Mustache from 'mustache'(mustache ESM entry is default-export only)eslint.config.mjs: addedignores: ['lib/', 'coverage/']; added@eslint/jsas explicit dev dependencypackage.json:resolutionsto deduplicate@typescript-eslint/utilsto 8.58.0Testing
All 20 tests pass. TypeScript compilation, lint, and format checks are clean.