Skip to content

We should be supporting node 24 tests #7602

Closed

Activity

  1. added
    type: process
    on Mar 14, 2026
  2. bmbferreira commented on Apr 24, 2026

    @bmbferreira

    This is more urgent than it might seem — we hit a production breakage that was ultimately rooted in a gaxios bug that Node 24 coverage would have caught.

    What happened

    #getFetch() in gaxios checks typeof window !== 'undefined' to detect browser environments, then uses window.fetch. In our server, packages/theydo-editor-schema sets globalThis.window = jsdomInstance.window so Tiptap's server-side HTML helpers have access to window.DOMParser. jsdom does not implement fetch, so window.fetch === undefined — and every BigQuery auth request threw:

    TypeError: fetchImpl is not a function
        at Gaxios._request (gaxios.ts:227:15)
    

    This resulted in 185 production errors on @google-cloud/bigquery connections across April 21–24, 2026.

    Correction to my earlier comment

    I initially blamed Node 24.15 / undici 7.24.4 for causing the breakage (the timing correlated with a Node upgrade). That was wrong — the same error reproduced on 24.14. The Node version was never the cause; the real trigger was the jsdom globalThis.window assignment, which exposed the fragility in gaxios's hasWindow heuristic.

    Why Node 24 CI still matters

    Even though Node 24 wasn't the root cause here, adding it to the matrix would have caught the breakage earlier — a test running gaxios on Node 24 in a jsdom-polluted environment would have failed. More broadly, as Node 24 becomes widely adopted, any incompatibility with newer undici or V8 versions will go undetected without it in the matrix.

    A fix for the gaxios hasWindow issue is proposed in PR #8107: #8107

  3. pearigee commented on Jul 29, 2026

    @pearigee
    Contributor

    24 is now covered in our testing matrix.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs fix soontype: process

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions