Skip to content

chore: bump nan to 2.28.0 - #53636

Merged
MarshallOfSound merged 2 commits into
mainfrom
chore/roll-nan
Sep 6, 2026
Merged

MarshallOfSound merged 2 commits into
mainfrom
chore/roll-nan

Conversation

@codebytere

@codebytere codebytere commented Sep 6, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Bumps nan from 2.23.0 to 2.28.0. Upstream has since landed its own versions of most of what we were patching (WriteUtf8V2, EmbedderDataTypeTag, ExternalPointerTypeTag, the AccessControl enum removal, ReturnValue<void>::Set), and two more of our patches had become no-ops, so the code patches go from ten to two, both for V8 15.x:

Both are candidates for a single upstream nodejs/nan "support V8 >= 15.3" PR.

The .yarnrc.yml / yarn.lock patch the spec runner needs (nan ships no lockfile, and immutable installs on CI require one) is regenerated for 2.28.0, so patches/nan is three files in total. nannew-test.js passes again and comes off the runner's disabled list; buffer-test.js stays off because it allocates an ArrayBuffer backing store outside the V8 sandbox.

Verified on Linux with script/nan-spec-runner.js against a testing build: all 46 addons compile and the suite is 569/569.

Checklist

Release Notes

Notes: none

nan 2.28.0 carries its own versions of most of what we patched (WriteUtf8V2,
EmbedderDataTypeTag, ExternalPointerTypeTag, the AccessControl and
ReturnValue<void> changes), so nine of eleven patches go. Two remain for V8
15.x: setter callbacks taking PropertyCallbackInfo<Boolean>, and Holder() /
SetPrototype() replacing the V2 variants that 15.3 removed. The yarn lockfile
the runner needs moves from a patch into script/nan/ and nannew-test.js is
re-enabled; buffer-test.js still allocates outside the V8 sandbox.
@codebytere
codebytere requested review from a team as code owners September 6, 2026 19:01
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Sep 6, 2026
Regenerate the .yarnrc.yml / yarn.lock patch for 2.28.0 instead of shipping the
lockfile under script/.

@MarshallOfSound MarshallOfSound left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems legit 👍

@MarshallOfSound

Copy link
Copy Markdown
Member

Should we auto-roll nan?

@MarshallOfSound
MarshallOfSound merged commit 070ac1d into main Sep 6, 2026
83 checks passed
@MarshallOfSound
MarshallOfSound deleted the chore/roll-nan branch September 6, 2026 21:27
@release-clerk

release-clerk Bot commented Sep 6, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants