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

chore: Remove undici, set minimum node version to 18.17 #5702

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

wmertens
Copy link
Member

sharp requires "^18.17.0 || ^20.3.0 || >=21.0.0", and that's the cause of installation issues.

Furthermore, global fetch is in node since v18, so we don't need undici any more.

Bun and Deno also include fetch.

Copy link

netlify bot commented Jan 12, 2024

👷 Deploy request for qwik-insights pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 1d9fa88

Copy link

gitguardian bot commented Jan 12, 2024

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
- Google API Key 1d9fa88 packages/docs/scripts/showcase.js View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@devcaeg
Copy link

devcaeg commented Feb 2, 2024

@wmertens

When will this change be merged?

@wmertens
Copy link
Member Author

@manucorporat the macro plugin keeps erroring on insights/src/root.tsx, even though it hasn't changed. It says the code is unreachable. Any idea what could cause this?
This single commit PR must be the reason because I keep rebasing on main which has no error.

@PatrickJS
Copy link
Member

can we change the min version to node 20? 😁 20 is a lot faster

@gioboa
Copy link
Member

gioboa commented Jun 2, 2024

is this PR still valid or is it abandoned ?

@devcaeg
Copy link

devcaeg commented Jun 2, 2024

is this PR still valid or is it abandoned ?

If I am not mistaken they are waiting for version 2.0.

@wmertens wmertens changed the base branch from main to build/v2 July 28, 2024 09:39
@wmertens wmertens requested review from a team as code owners July 28, 2024 09:39
The node engines "^18.17.0 || ^20.3.0 || >=21.0.0" are taken from
the `sharp` dependency, which probably has good reason for them.

All of these include global fetch, so undici is not needed.

Bun and deno also include fetch.
Copy link

changeset-bot bot commented Jul 28, 2024

⚠️ No Changeset found

Latest commit: b3b2530

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

@wmertens wmertens enabled auto-merge (squash) July 28, 2024 09:54
@wmertens wmertens merged commit 3e940b7 into QwikDev:build/v2 Jul 28, 2024
17 of 18 checks passed
@wmertens wmertens deleted the remove-undici branch July 28, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants