Skip to content

[@rushstack/heft-config-file] Replace node structuredClone#5206

Merged
octogonz merged 3 commits intomicrosoft:mainfrom
sherlockfeng:chore/replace-node-structuredclone
Apr 24, 2025
Merged

[@rushstack/heft-config-file] Replace node structuredClone#5206
octogonz merged 3 commits intomicrosoft:mainfrom
sherlockfeng:chore/replace-node-structuredclone

Conversation

@sherlockfeng
Copy link
Contributor

Summery

Replace the native structuredClone with @ungap/structured-clone.In this way, Rush can still run in the Node 16 environment.

sherlockfeng and others added 2 commits April 24, 2025 11:02
…structuredclone_2025-04-24-03-50.json

Co-authored-by: Daniel <3473356+D4N14L@users.noreply.github.com>
@sherlockfeng sherlockfeng force-pushed the chore/replace-node-structuredclone branch from 1d4aa03 to e4b3065 Compare April 24, 2025 18:19
"changes": [
{
"packageName": "@rushstack/heft-config-file",
"comment": "Fix Node 16 compatibility by using non-built-in structuredClone",
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we want to support Node 16 reliably, Rush needs to re-add CI validation for this environment. As discussed with @D4N14L it is not necessary for the entire Rush Stack monorepo to build with Node 16 (which will encounter a typescript-eslint incompatibility). Instead, we could add a YAML step to the GitHub Action which merely invokes some Rush tests using Node 16 after building using the latest Node.

@sherlockfeng will consider implementing this, after evaluating the importance of Node 16 for his case.

@octogonz octogonz merged commit 3209573 into microsoft:main Apr 24, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

3 participants