GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — remove third party everything support in fetch by KhafraDev · Pull Request #3502 · nodejs/undici

Conversation

@KhafraDev

@KhafraDev KhafraDev commented Aug 24, 2024

Copy link
Copy Markdown
Member

Third party Blob, FormData, and AbortController in fetch should never have landed. Even after it did, there was never any documentation on it - the only evidence that this was a feature was in tests and a few comments on issues.

Support is so bad, currently, in fact, that webidl skips validation entirely. Take webidl.converters.Blob for example: it's an interface converter (ie. validating that an object is an instance of a class), but when passed the strict: false option, it wouldn't perform any validation.

I understand that support was added for performance reasons, but it's something that we should have let node core fix, rather than "node-ifying" the spec. For use cases that are not possible with fetch, we should start recommending undici directly.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@KhafraDev
remove third party everything support in fetch
0626369
@KhafraDev KhafraDev added the semver-major Features or fixes that will be included in the next semver major release label Aug 24, 2024
KhafraDev added 7 commits August 24, 2024 12:40
@KhafraDev
fixup
18bdcd9
@KhafraDev
fixup
7dde356
@KhafraDev
test
2bc2110
@KhafraDev
test
8c6da34
@KhafraDev
test
c397421
@KhafraDev
fixup
19e8151
@KhafraDev
fixup
1c8f3a4
ronag
ronag approved these changes Aug 24, 2024
View reviewed changes
@KhafraDev

KhafraDev commented Aug 24, 2024

Copy link
Copy Markdown
Member Author

Node v22.7.0 broke some of the autobahn tests, confirmed it locally. When running in v22.6.0, all the tests pass. It wasn't caught because the autobahn suite only runs when changes to lib/web/websocket are made. @Uzlopak

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KhafraDev

KhafraDev commented Aug 24, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

It's probably the buffer bugs, thinking about it. I'm almost certain it's nodejs/node#54521 because the failing tests send strings, which are converted to a buffer with Buffer.from. They also send thousands of messages which would make them optimize.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KhafraDev
Merge branch 'main' into remove-third-party-everything
acc5420
@Uzlopak

Uzlopak commented Aug 27, 2024

Copy link
Copy Markdown
Contributor

@KhafraDev
can you look at #3503 to avoid something similar in the future?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

KhafraDev added 2 commits August 27, 2024 11:08
@KhafraDev
fixup
f1ef160
@KhafraDev
Merge branch 'remove-third-party-everything' of https://github.com/Kh…
d9f0b5a
…afraDev/undici into remove-third-party-everything
KhafraDev
KhafraDev commented Aug 27, 2024
View reviewed changes
Comment thread lib/web/fetch/request.js

// 29. If signal is not null, then make this’s signal follow signal.
if (signal != null) {
if (

@KhafraDev KhafraDev Aug 27, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

this is no longer needed because we are actually validating signal in webidl now

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@KhafraDev
fixup! remove is*Like, *Like
358faba
Uzlopak
Uzlopak approved these changes Aug 27, 2024
View reviewed changes

@Uzlopak Uzlopak left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@KhafraDev
KhafraDev merged commit de0424f into nodejs:main Aug 27, 2024
@KhafraDev
KhafraDev deleted the remove-third-party-everything branch August 27, 2024 16:07
@mcollina mcollina mentioned this pull request Nov 19, 2024
Support globalThis.FormData #3844
Closed
@github-actions github-actions Bot mentioned this pull request Dec 3, 2024
[Release] v7.1.0 #3922
Merged
This was referenced Dec 16, 2024
[Release] v7.1.1 #3952
Closed
[Release] v7.2.0 #3962
Merged
@github-actions github-actions Bot mentioned this pull request Mar 12, 2025
[Release] v6.21.2 #4092
Closed
@github-actions github-actions Bot mentioned this pull request May 12, 2025
[Release] v6.21.3 #4211
Closed
@Rob--W Rob--W mentioned this pull request Jul 8, 2025
Unsupported file type, please upload a supported file (.crx, .xpi, .zip). mozilla/web-ext#3418
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ronag ronag ronag approved these changes
@Uzlopak Uzlopak Uzlopak approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

semver-major Features or fixes that will be included in the next semver major release

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@KhafraDev @Uzlopak @ronag
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.