Skip to content

fix: patch open to maintaining Node 16.10 compatibility#5570

Merged
chenjiahan merged 2 commits intomainfrom
node_compat_0709
Jul 9, 2025
Merged

fix: patch open to maintaining Node 16.10 compatibility#5570
chenjiahan merged 2 commits intomainfrom
node_compat_0709

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Related Links

#5566 (comment)

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings July 9, 2025 10:46
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 9, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit aa4c400
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/686e488c4e8b65000959fc24
😎 Deploy Preview https://deploy-preview-5570--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 75 (🟢 up 9 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reverts the Node.js engine bump and applies a compatibility patch for Node 16.10 by normalizing workspace config and adding an open patch.

  • Normalize pnpm-workspace.yaml package entries, add hoistPattern, and include the new open@10.1.2 patch
  • Add patches/open@10.1.2.patch to adjust fs imports for Node <16.17
  • Downgrade core package’s Node engine requirement from >=16.17.0 to >=16.10.0

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
pnpm-workspace.yaml Cleaned up package globs, moved hoistPattern, added open patch entry
patches/open@10.1.2.patch Adjusted fs and fsConstants imports for broader Node support
packages/core/package.json Lowered Node engine requirement to maintain 16.10 compatibility
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (3)

pnpm-workspace.yaml:2

  • The nested list entries (e.g. - - 'website') duplicate the newly added single-dash entries. Remove the old nested syntax to avoid duplicate package definitions and YAML parsing issues.
  - website

pnpm-workspace.yaml:15

  • These patch entries now appear twice (once as list items with - and once as direct mappings). Consolidate into a single consistent format to avoid confusion and potential parsing errors.
  css-loader@7.1.2: patches/css-loader@7.1.2.patch

pnpm-workspace.yaml:20

  • Consider quoting mapping keys and values containing @ and special characters (e.g. 'open@10.1.2': 'patches/open@10.1.2.patch') to ensure robust YAML parsing.
  open@10.1.2: patches/open@10.1.2.patch

@chenjiahan chenjiahan merged commit 07952e8 into main Jul 9, 2025
13 checks passed
@chenjiahan chenjiahan deleted the node_compat_0709 branch July 9, 2025 10:53
@chenjiahan chenjiahan mentioned this pull request Jul 10, 2025
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.

2 participants