Repository navigation
Bump @opennextjs/cloudflare to 1.20.19 and drop the @node-minify/core/glob resolution - #32470
Conversation
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.
|
👋 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! |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryUpdates the website’s OpenNext adapter and its dependencies.
No actionable issues were found. Builds and tests were not run during this review. Known limitation acknowledged by Reviews (1) · Last reviewed commit: "Drop the @node-minify/core/glob resoluti..." · Reviewed by Greptile |
🤖 PR Review
🛡️ Security Review✅ No high-severity vulnerabilities detected. 🚦 Auto-approve✅ Eligible for auto-approval — low-complexity, no high-blast-radius paths.
Automated pre-review — human approval still required. |
🟡 Quality review · 1 finding
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. 💬 1 inline comment on the diff. Reviewed against the |
|
|
||
| const encodeFileHeader = (path: string, size: number): Uint8Array => { | ||
| const header = new tar.Header({ | ||
| const encodeFileHeader = ({ |
There was a problem hiding this comment.
🟡 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.
There was a problem hiding this comment.
Bundled on purpose to save a review cycle on a two-line test follow-up.
CoreTeamTwenty
left a comment
There was a problem hiding this comment.
✅ 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.
🔍 Visual Regression Review —
|
| 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
🔍 Visual Regression Review —
|
| 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
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 aCookieheader answered 500 in the Node.js middleware.Since 1.20.16 the build refuses to run with
run_worker_firstunless the assets section setshtml_handling: "none", sowrangler.jsoncgets that line. It only changes how HTML assets are matched (exact path only), and the website has none: no.htmlinpublic/or in the built.open-next/assets.Checked locally:
opennextjs-cloudflare buildfails on main's wrangler config with 1.20.19 and passes with this change.opennextjs-cloudflare preview --env devserves/,/pricing,/customers,/llms.txt,/robots.txtand/sitemap.xmlwith 200, with and without aCookieheader, 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
//resolutionsline 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.