Repository navigation
MAINT: Drop node-fetch and eslintrc, fix package metadata - #118
Merged
Merged
Conversation
- Use the native global fetch (stable since Node 18; the action runs on node24), removing the last non-@actions runtime dependency - Use js.configs.recommended directly instead of the FlatCompat shim, removing @eslint/eslintrc and with it the last js-yaml in the tree - Replace the leftover 'javascript-action' template metadata and declare engines: node >=24 - Use npm ci rather than npm install in CI so a stale lockfile is an error dist/ shrinks from 1535kB to 1236kB. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Jul 28, 2026
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.
Tier 2 from the modernization list.
node-fetch-> nativefetch. Stable since Node 18 and the action runs onnode24. This was the last runtime dependency outside@actions/*.@eslint/eslintrc/FlatCompat->js.configs.recommended. The compat shim was the only remaining source ofjs-yaml— the package that kicked off this whole series of PRs.npm ls js-yamlis now empty.javascript-action, description "JavaScript Action Template", and repository/author/homepage/bugs all pointing atactions/javascript-action. Also adds"private": trueand"engines": {"node": ">=24"}to matchruns.using: node24.npm install->npm ciin all three CI configs, so a stale lockfile fails instead of being silently repaired. Verifiednpm cisucceeds against the current lockfile.Results
dist/index.jsjs-yamlin treeTests: 22, 100% coverage, unchanged. Since the tests inject
fetchFn, they do not exercise native fetch — I verified that separately by runningrun()against the live CircleCI API with onlygetOctokitfaked, and confirmed a real HTTP round-trip.That live check also turned up a pre-existing bug unrelated to this PR: with no
api-tokenconfigured the action sendsCircle-Token: null, and CircleCI now answers401 Invalid token provided, where omitting the header returns200. Fixed separately in #119 — worth having in the release.🤖 Generated with Claude Code