Skip to content

build: remove package-json dependency#1920

Open
ckerr wants to merge 3 commits intomainfrom
build/remove-package-json-dep
Open

build: remove package-json dependency#1920
ckerr wants to merge 3 commits intomainfrom
build/remove-package-json-dep

Conversation

@ckerr
Copy link
Copy Markdown
Member

@ckerr ckerr commented May 5, 2026

Does what it says on the tin: remove package-json dependency.

@ckerr ckerr requested review from a team and codebytere as code owners May 5, 2026 20:15
@ckerr ckerr added the dependencies Pull requests that update a dependency file label May 5, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented May 5, 2026

Coverage Status

coverage: 88.4% (-0.09%) from 88.492% — build/remove-package-json-dep into main

Copy link
Copy Markdown
Member

@dsanders11 dsanders11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One specific change requested inline, but overall I'd feel more comfortable with this change if we pulled it out into a helper util and added test coverage of it.

Comment on lines +203 to +204
const res = await fetch(url, { headers });
const data = (await res.json()) as { versions: Record<string, unknown> };
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to check res.ok before parsing it as JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants