build(deps): bump node-fetch from 2.6.9 to 3.3.2#2146
build(deps): bump node-fetch from 2.6.9 to 3.3.2#2146dependabot[bot] wants to merge 1 commit intomainfrom
Conversation
|
This will require some rework, it's a major bump of |
|
Presumably we need to do this in the upstream code generator anyway. |
|
Here is the node-fetch v3 upgrade guide: https://github.com/node-fetch/node-fetch/blob/main/docs/v3-UPGRADE-GUIDE.md There are some things that are relevant to us:
Here are the current test failures with this PR and the TypeScript problems fixed: EDIT: The last two failures appear to be related to node-fetch v3 (unsure if it is a bug or intentional due to a spec change). Note the difference in this handler between v2 and v3. In those failing tests, the request is intentionally aborted, which triggers that |
2ecd61d to
897628e
Compare
|
@dependabot recreate |
897628e to
ff293ea
Compare
|
/hold |
|
@dependabot rebase |
|
Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry! If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request |
|
rebase DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@dependabot recreate |
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.9 to 3.3.2. - [Release notes](https://github.com/node-fetch/node-fetch/releases) - [Commits](node-fetch/node-fetch@v2.6.9...v3.3.2) --- updated-dependencies: - dependency-name: node-fetch dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
ce5cd79 to
e441cdc
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anandfresh, brendandburns, dependabot[bot] The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@brendandburns I have this PR marked as "do not merge" because I'm not sure that we should update to node-fetch v3 in this repo until we have proper support in the code generator. Do we have any idea if the code generator has support for v3? |
|
I was assuming that because the typescript compiles that it works correctly. If our tests pass, but the real usage would fail, I think we need to update our tests. We shouldn't be in a state where tests pass, but real usage fails. I'll checkout this branch locally and give it a try. |
|
Yea, to be clear, I did not try any real world usage with node-fetch v3. I think if the code generator works with v3, we should try adding an option (if one does not already exist) to use it so that the support feels more official. |
|
Instead using external node-fetch library with a major version bump why not just use native |
|
I think that is the end goal. I think it would be great because we could drop a number of dependencies which are increasingly painful to keep up with.
|
|
I don't think there is any reason to wait until node 20 end of life. |
|
So, even Node 18 does not print an experimental warning when |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Yeah, I'm ok to move to the internal |
|
I'm going to close this since we're going to switch to node internal fetch. |
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps node-fetch from 2.6.9 to 3.3.2.
Release notes
Sourced from node-fetch's releases.
... (truncated)
Commits
8b3320dfix: Remove the default connection close header. (#1736)7b86e94fix: release "Allow URL class object as an argument for fetch()" #1696 (#1716)8ced5b9docs: readme - non ESM example (#1707)71e376bci(release): use latest Node LTS (#1697)e093030Allow URL class object as an argument for fetch() (#1696)55a4870feat: add static Response.json (#1670)c071406(1138) - Fixed HTTPResponseError with correct constructor and usage (#1666)6f72caadocs: fix missing comma in example (#1623)2880238fix: ReDoS referrer (#1611)e87b093fix(Headers): don't forward secure headers on protocol change (#1599)You can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)