Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump make-fetch-happen to v13 #681

Merged
merged 4 commits into from
Aug 16, 2023
Merged

bump make-fetch-happen to v13 #681

merged 4 commits into from
Aug 16, 2023

Conversation

bdehamer
Copy link
Collaborator

@bdehamer bdehamer commented Aug 11, 2023

Summary

Preparation for the inclusion of sigstore in the v10 release of the npm CLI.

To minimize the number of extra dependencies we bring to the npm CLI integration, we keep our version of the make-fetch-happen package synchronized with the version in use by npm. With their v10 release, npm will move to make-fetch-happen@13.0.0 so we need a sigstore version which does the same.

The move from v11 to v13 of make-fetch-happen is a MAJOR SEMVER change which drops support for node 14 (EOL'd April 2023). Adopting v13 of make-fetch-happen in sigstore will also trigger a major semver change and necessitates that we also drop support for node 14.

The changes here include:

  • Update make-fetch-happen to v13 in the packages which are dependent on it
  • Update TypeScript compilation options to target node 16 instead of node 14
  • Removal of node 14 versions from CI test matrix

There will be a similar change made to the tuf-js package which also depends on make-fetch-happen.

See #523

@changeset-bot
Copy link

changeset-bot bot commented Aug 11, 2023

🦋 Changeset detected

Latest commit: 7181198

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@sigstore/mock Minor
@sigstore/cli Minor
@sigstore/rekor-types Major
@sigstore/bundle Major
sigstore Major
@sigstore/sign Major
@sigstore/tuf Major
@sigstore/mock-server Patch
@sigstore/conformance Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +1 to +6
---
'@sigstore/mock': minor
'@sigstore/cli': minor
---

Drop node 14 support
Copy link
Collaborator Author

@bdehamer bdehamer Aug 11, 2023

Choose a reason for hiding this comment

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

Since these two packages haven't yet reached a stable 1.0 release, I'm NOT going to treat the node 16 requirement as a major change.

Comment on lines -41 to +42
return promise
.promiseAny(providers.map((getToken) => getToken(this.audience)))
.catch(() => Promise.reject('CI: no tokens available'));
return Promise.any(
providers.map((getToken) => getToken(this.audience))
).catch(() => Promise.reject('CI: no tokens available'));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now that we're on Node 16 we can swap our custom promiseAny function for the Promise.any implementation in the standard library.

@bdehamer bdehamer marked this pull request as ready for review August 11, 2023 18:46
@bdehamer bdehamer requested a review from a team as a code owner August 11, 2023 18:46
feelepxyz
feelepxyz previously approved these changes Aug 15, 2023
Copy link
Member

@feelepxyz feelepxyz left a comment

Choose a reason for hiding this comment

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

💯

Signed-off-by: Brian DeHamer <bdehamer@github.com>
@bdehamer bdehamer changed the title bump make-fetch-happen to v12 bump make-fetch-happen to v13 Aug 15, 2023
Signed-off-by: Brian DeHamer <bdehamer@github.com>
Signed-off-by: Brian DeHamer <bdehamer@github.com>
@bdehamer bdehamer merged commit d0053a3 into main Aug 16, 2023
18 checks passed
@bdehamer bdehamer deleted the bdehamer/v2 branch August 16, 2023 15:57
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.

None yet

2 participants