Skip to content

Bump @opennextjs/cloudflare to 1.20.19 and drop the @node-minify/core/glob resolution - #32470

Merged
mabdullahabaid merged 3 commits into
mainfrom
chore/drop-node-minify-glob-resolution
Dec 5, 2026
Merged

mabdullahabaid merged 3 commits into
mainfrom
chore/drop-node-minify-glob-resolution

Conversation

@mabdullahabaid

Copy link
Copy Markdown
Contributor

Three separate commits:

Bump @opennextjs/cloudflare to 1.20.19 (twenty-website)

1.20.19 is the latest release past the npm age gate. It moves @opennextjs/aws from 4.1.12 to 4.2.1, which depends on @node-minify 10.5 instead of 9, and its own glob from 13 to 14. I read the changelogs for 1.20.14 to 1.20.19 and @opennextjs/aws 4.1.13 to 4.2.1. The relevant fixes for us are around the regional cache (cache keys encoded, no stale entries after revalidateTag), and 1.20.19 also fixes a 1.20.18 regression where requests with a Cookie header answered 500 in the Node.js middleware.

Since 1.20.16 the build refuses to run with run_worker_first unless the assets section sets html_handling: "none", so wrangler.jsonc gets that line. It only changes how HTML assets are matched (exact path only), and the website has none: no .html in public/ or in the built .open-next/assets.

Checked locally: opennextjs-cloudflare build fails on main's wrangler config with 1.20.19 and passes with this change. opennextjs-cloudflare preview --env dev serves /, /pricing, /customers, /llms.txt, /robots.txt and /sitemap.xml with 200, with and without a Cookie header, a 404 for an unknown path, and the static CSS chunks.

Drop the @node-minify/core/glob resolution

It forced glob 10.5.0 under @node-minify/core 9 (GHSA-5j98-mcp5-4vw2). @node-minify/core 10.5 no longer depends on glob, so after the bump the resolution matches nothing and the lockfile is the same with or without it. Its //resolutions line goes with it.

Type the tarball spec header helper without a cast

Follow-up to #32181: the spec encoded the header and cast the optional Header.block, and the helper took two positional arguments. It now encodes into its own 512-byte block and takes { path, size }.

This does not close any Dependabot alert on its own: terser moves from 5.36.0 to 5.46.0 (the fix is in 5.51.3), and other packages still bring older glob and minimatch copies.

Encode each header into its own 512-byte block instead of casting the
optional Header.block, and pass path and size as one object.
1.20.19 is the latest release past the npm age gate. It moves
@opennextjs/aws from 4.1.12 to 4.2.1, which depends on @node-minify 10.5
instead of 9 (@node-minify/core no longer depends on glob), and moves its
own glob from 13 to 14.

Since 1.20.16 the build requires html_handling "none" when
run_worker_first is enabled, so public files are served at their exact
path only. The website has no HTML assets (none in public/ or in the
built .open-next/assets), so nothing it serves changes.
@opennextjs/aws 4.2.1 depends on @node-minify/core 10.5, which no longer
depends on glob, so the resolution matches nothing and the lockfile is
unchanged without it.
@twenty-ci-bot-public

Copy link
Copy Markdown

👋 Thanks for contributing to Twenty!

Your PR has been set to draft while you work on it. Once you're done, mark it as Ready for review and our automated checks will run.

Looking forward to your contribution!

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​opennextjs/​cloudflare@​1.20.13 ⏵ 1.20.1999 +110090 +195 -1100

View full report

@greptile-apps

greptile-apps Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Updates the website’s OpenNext adapter and its dependencies.

  • The website builds with OpenNext 1.20.19 and worker-first asset routing.
  • Minification no longer forces a separate glob version.
  • Tar header tests encode each header into an explicit byte block.

No actionable issues were found. Builds and tests were not run during this review.

Known limitation acknowledged by mabdullahabaid: the updated terser remains below the stated fixed version, and other dependencies retain older glob and minimatch copies. The PR explicitly does not claim to close those alerts.

Reviews (1) · Last reviewed commit: "Drop the @node-minify/core/glob resoluti..." · Reviewed by Greptile

@twenty-ci-bot-public

Copy link
Copy Markdown

🤖 PR Review

Check Result
🔍 Build safety ⏭️ skipped — external-only
🧭 Triage ⏭️ skipped — external-only
📐 Quality ✅ passed — 1 nit(s)
🛡️ Security ✅ passed
🚦 Auto-approve ✅ passed — complexity low
🔐 Permissions ⏭️ skipped: no endpoint permission change

🛡️ Security Review

✅ No high-severity vulnerabilities detected.


🚦 Auto-approve

✅ Eligible for auto-approval — low-complexity, no high-blast-radius paths.

  • 🧠 Complexity: low
  • 📏 Size: +131 / -72 lines across 5 file(s)

View details

Automated pre-review — human approval still required.

@twenty-ci-bot-public

Copy link
Copy Markdown

🟡 Quality review · 1 finding

Safe to merge: one non-blocking scope nit

High-level — A contained website dependency bump (@opennextjs/cloudflare 1.20.19 pulls in @node-minify 10.5.0, so the glob resolution override can go) plus a wrangler html_handling tweak that is low-risk because the website ships no static .html assets; the only issue is an unrelated twenty-server spec refactor riding along.
Low-level — No rule violations found — 50 rule questions over 1 piece(s) of 1 file(s)

💬 1 inline comment on the diff.


Reviewed against the pr-review standard — high-level then low-level. Advisory; human review still required. Run details.


const encodeFileHeader = (path: string, size: number): Uint8Array => {
const header = new tar.Header({
const encodeFileHeader = ({

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Nit · High-level · build strategy

An unrelated twenty-server test-helper rewrite is bundled into a twenty-website dependency bump

Nothing in this diff touches tar (twenty-server is already on tar ^8.0.5), so this spec change is a separate fix sitting inside an @opennextjs/cloudflare / glob security bump, and a revert of either one takes the other with it. Split it into its own PR, or name it in the description if CI on main needs it.

@mabdullahabaid mabdullahabaid Dec 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Bundled on purpose to save a review cycle on a two-line test follow-up.

@CoreTeamTwenty CoreTeamTwenty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

✅ Auto-approved — cleared automated quality and security review and is low-complexity.

  • Quality: passed — 1 nit(s)
  • Security: passed
  • Auto-approve: passed — complexity low

Automated approval — a human still merges, and this is re-evaluated on every push.

@twenty-ci-bot-public

Copy link
Copy Markdown

🔍 Visual Regression Review — twenty-ui

✅ 11 visual change(s) reviewed — all explained by this PR.

Changed: 12 · Added: 0 · Removed: 0 · Unchanged: 1530

11 item(s) to double-check (uncertain / low confidence)
Story Verdict Confidence Explained by
🟡 ui-components-datepicker--display uncertain 60% none
🟡 ui-surfaces-popover-parts--advanced-anchor uncertain 70% none
🟡 ui-components-codeeditor--auto-height uncertain 70% none
🟡 ui-components-codeeditor--model-lifecycle uncertain 70% none
🟡 ui-components-codeeditor--default uncertain 70% none
🟡 ui-components-codeeditor--editing uncertain 70% none
🟡 ui-components-codeeditor--theme-precedence uncertain 70% none
🟡 ui-components-codeeditor--dark uncertain 70% none
🟡 ui-components-codeeditor--bounded-resizable uncertain 70% none
🟡 ui-components-codeeditor--css-height-resizable uncertain 70% none
🟡 ui-components-codeeditor--resizable uncertain 70% none
Changed stories
Story Diff %
ui-components-datepicker--display 52%
ui-surfaces-popover-parts--advanced-anchor 2%
ui-components-codeeditor--default 1%
ui-components-codeeditor--auto-height 1%
ui-components-codeeditor--model-lifecycle 1%
ui-components-codeeditor--dark 0%
ui-components-codeeditor--bounded-resizable 0%
ui-components-codeeditor--css-height-resizable 0%
ui-components-codeeditor--editing 0%
ui-components-codeeditor--theme-precedence 0%
ui-components-codeeditor--resizable 0%
ui-components-codeeditor--controlled-value 0%

View run details · advisory mode

@twenty-ci-bot-public

Copy link
Copy Markdown

🔍 Visual Regression Review — twenty-front

✅ 11 visual change(s) reviewed — all explained by this PR.

Changed: 18 · Added: 0 · Removed: 0 · Unchanged: 2161

11 item(s) to double-check (uncertain / low confidence)
Story Verdict Confidence Explained by
🟡 modules-settings-applications-settingsapplicationiframemediapermissionssection--… uncertain 70% none (no frontend change in PR)
🟡 modules-settings-applications-settingsapplicationiframemediapermissionssection--… uncertain 50% none
🟡 modules-settings-applications-settingsapplicationiframemediapermissionssection--… uncertain 50% none
🟡 modules-pagelayout-widgets-recordpagenotewidget--dashboard-selection uncertain 70% none
🟡 modules-pagelayout-widgets-recordpagenotewidget--select-and-format-text uncertain 60% none
🟡 modules-sidepanel-recordcreationflow--retry-after-failed-creation uncertain 75% none
🟡 modules-sidepanel-recordcreationflow--submit-with-command-enter uncertain 60% none
🟡 modules-sidepanel-recordcreationflow--submit-with-control-enter uncertain 60% none
🟡 modules-sidepanel-recordcreationflow--submit-with-button uncertain 60% none
🟡 modules-ai-aichattab--new-chat-suggested-prompt uncertain 70% none
🟡 modules-sidepanel-snoozeaichat--day-and-time-picker uncertain 80% none
Changed stories
Story Diff %
modules-settings-applications-settingsapplicationiframemediapermissionssection--reports-failed-refresh 4%
modules-settings-applications-settingsapplicationiframemediapermissionssection--does-not-apply-rejected-approval 2%
modules-pagelayout-widgets-recordpagenotewidget--dashboard-selection 1%
modules-pagelayout-widgets-recordpagenotewidget--select-and-format-text 1%
modules-settings-applications-settingsapplicationiframemediapermissionssection--approves-only-reviewed-additional-access 1%
modules-sidepanel-composerpages--calendar-event-without-account-permission 0%
modules-sidepanel-composerpages--calendar-event-without-accounts 0%
modules-sidepanel-recordcreationflow--retry-after-failed-creation 0%
modules-sidepanel-recordcreationflow--submit-with-button 0%
modules-sidepanel-recordcreationflow--submit-with-command-enter 0%
modules-sidepanel-recordcreationflow--submit-with-control-enter 0%
modules-ai-aichattab--new-chat-suggested-prompt 0%
modules-sidepanel-snoozeaichat--day-and-time-picker 0%
modules-sidepanel-composerpages--calendar-event 0%
modules-activities-files-videopreview--player 0%
modules-activity-taskgroups--empty 0%
modules-ai-aichattab--open-original-from-reply 0%
modules-ai-aichattab--reply-to-teammate 0%

View run details · advisory mode

@mabdullahabaid
mabdullahabaid added this pull request to the merge queue Dec 5, 2026
Merged via the queue into main with commit e7096a8 Dec 5, 2026
217 of 218 checks passed
@mabdullahabaid
mabdullahabaid deleted the chore/drop-node-minify-glob-resolution branch December 5, 2026 11:54
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