Skip to content

feat: switch to npm, use native fetch#4047

Merged
domoritz merged 5 commits intomainfrom
dom/npm
Mar 29, 2025
Merged

feat: switch to npm, use native fetch#4047
domoritz merged 5 commits intomainfrom
dom/npm

Conversation

@domoritz
Copy link
Member

No description provided.

@domoritz domoritz requested a review from a team as a code owner March 29, 2025 02:14
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 29, 2025

Deploying vega with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3441e7f
Status:🚫  Build failed.

View logs

@domoritz domoritz changed the title chore: switch to npm feat: switch to npm, use native fetch Mar 29, 2025
@domoritz domoritz enabled auto-merge (squash) March 29, 2025 03:00
@domoritz domoritz merged commit 12964ee into main Mar 29, 2025
4 of 5 checks passed
@domoritz domoritz deleted the dom/npm branch March 29, 2025 03:02
@hydrosquall
Copy link
Member

Nice, confirmed that swapping in native fetch makes sense after node 18 and lets us cut the bundle size.

We may want to note a minimum node version in the readme or development docs if that's the case.

@domoritz
Copy link
Member Author

Node 18 is the latest supported and it's also indicated in the package.json already. Might be enough.

domoritz added a commit that referenced this pull request Mar 30, 2025
`mode` is already an argument to fetch
(https://developer.mozilla.org/en-US/docs/Web/API/RequestInit#mode) so
we need to change the name.

Technically it's a breaking change but we had an option collision so I
think we should consider this a fix. Plus v6 hasn't been out for long.

Follow up for #4047
@lsh lsh mentioned this pull request Sep 4, 2025
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.

2 participants