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

Revert "feat: set allowH2 to true and require Node.js >= 18 (#705)" #707

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Sep 25, 2024

This reverts commit 9a79940.

image

Summary by CodeRabbit

  • New Features

    • Updated HTTP client configuration to enhance compatibility.
    • Adjusted minimum Node.js version requirement for broader support.
  • Bug Fixes

    • Removed HTTP/2 support from the HTTP client configuration.

Copy link
Contributor

coderabbitai bot commented Sep 25, 2024

Walkthrough

The changes involve modifications to the HTTP client configuration in config/config.default.ts, specifically the removal of the allowH2 property, which disables HTTP/2 support. Additionally, the package.json file has been updated to lower the minimum required version of Node.js from >= 18.20.0 to >= 16.13.0, reflecting a change in compatibility requirements for the project.

Changes

File Change Summary
config/config.default.ts Removed allowH2 configuration property, disabling HTTP/2 support.
package.json Updated minimum Node.js version requirement from >= 18.20.0 to >= 16.13.0.

Possibly related PRs

🐰 In the code, we hop and play,
With settings changed, we find our way.
HTTP/2, we bid adieu,
Node.js version, we adjust too!
A leap for all, both big and small,
In this code garden, we thrive and sprawl! 🌼


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 0a0c4e7 and c79d042.

📒 Files selected for processing (2)
  • config/config.default.ts (0 hunks)
  • package.json (1 hunks)
💤 Files not reviewed due to no reviewable changes (1)
  • config/config.default.ts
🔇 Additional comments not posted (1)
package.json (1)

148-148: Verify compatibility with Node.js 16.13.0 and consider security implications

The change in the minimum required Node.js version from 18.20.0 to 16.13.0 aligns with the PR objective to revert a previous commit. However, this downgrade raises several considerations:

  1. Compatibility: Ensure that all dependencies in the project are compatible with Node.js 16.13.0. Some packages might have dropped support for older Node.js versions.

  2. Features: Node.js 18 introduced several new features and improvements. Verify that the codebase doesn't rely on any Node.js 18+ specific features.

  3. Security: Node.js 16.13.0 is an older version and may not include the latest security patches. Consider the security implications of using this version, especially if the application is deployed in a production environment.

  4. Long-term support: Node.js 16 reached its end-of-life on September 11, 2023. Using an unsupported version in production is not recommended.

  5. Performance: Newer Node.js versions often come with performance improvements. Reverting to an older version might impact the application's performance.

To ensure compatibility, run the following script to check for any dependencies that require Node.js >= 18:

Given these considerations, please clarify the reason for reverting to Node.js 16.13.0. If this is a temporary measure, consider adding a TODO comment or creating an issue to track the need for upgrading back to a more recent, supported Node.js version in the future.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.81%. Comparing base (9a79940) to head (c79d042).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #707      +/-   ##
==========================================
- Coverage   96.81%   96.81%   -0.01%     
==========================================
  Files         181      181              
  Lines       18004    18003       -1     
  Branches     2345     2338       -7     
==========================================
- Hits        17430    17429       -1     
  Misses        574      574              
Flag Coverage Δ
96.81% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fengmk2 fengmk2 merged commit 526b66a into master Sep 25, 2024
11 of 13 checks passed
@fengmk2 fengmk2 deleted the revert-9a7994090b18df0847eb7552ceff273eab80dea9 branch September 25, 2024 10:36
fengmk2 pushed a commit that referenced this pull request Sep 25, 2024
[skip ci]

## [3.62.1](v3.62.0...v3.62.1) (2024-09-25)

### Reverts

* Revert "feat: set allowH2 to true and require Node.js >= 18 (#705)" (#707) ([526b66a](526b66a)), closes [#705](#705) [#707](#707)
@fengmk2
Copy link
Member Author

fengmk2 commented Sep 28, 2024

image

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.

1 participant