Skip to content

Please update graphql-request #2012

@Dmitrijs-Sakovics

Description

@Dmitrijs-Sakovics

Describe the Bug

The package @sitecore-jss/sitecore-jss has a dependency on "graphql-request": "^4.2.0". This has a downstream dependency on punycode, which under Node.Js 22 raises a deprecation message.

Later versions of graphql-request (latest is 7.1.2) do not have this downstream dependency

To Reproduce

  1. use Node.Js 22
  2. run anything that uses @sitecore-jss/sitecore-jss
  3. observe the deprecation message:
    Image

Expected Behavior

No deprecation message shown

Possible Fix

the deprecation message can be traced to a very old version of whatwg-url@5.0.0 used downstream:
Image
Later versions of graphql-request have removed the cross-fetch dependency and do not exhibit the same problem

Provide environment information

  • Sitecore Version: 10.3
  • JSS Version: 21
  • Environment Name and version: Node 22.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogIssue/PR/discussion is reviewed and added to backlog for the further work🐞 bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions