Skip to content

Replace deprecated request with native fetch - #68

Merged
jonathan-r-thorpe merged 2 commits into
AMWA-TV:masterfrom
garethsb:replace-deprecated-request
Jul 29, 2026
Merged

Replace deprecated request with native fetch#68
jonathan-r-thorpe merged 2 commits into
AMWA-TV:masterfrom
garethsb:replace-deprecated-request

Conversation

@garethsb

Copy link
Copy Markdown
Contributor

Summary

  • Replace request / request-promise-native in getSDP() with Node's built-in fetch
  • Drop those dependencies so npm install -g (e.g. from nmos-testing CI) no longer pulls in the deprecated request / har-validator / uuid@3 stack

Test plan

  • npm test (29/29)
  • npm run lint
  • Confirm CI (Node 22/24) is green on this PR
  • Optional: npm install -g git+https://github.com/... and check that the request deprecation warnings are gone

@jonathan-r-thorpe jonathan-r-thorpe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Apart from the pre-existing typo ( "applicatio/sdp") it LGTM

Drop request and request-promise-native so global installs no longer
pull in the deprecated request/har-validator/uuid stack. Node 18+
provides fetch natively, matching the CI Node versions.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
@garethsb
garethsb force-pushed the replace-deprecated-request branch from 47783ba to f065218 Compare July 29, 2026 13:44
Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>

@jonathan-r-thorpe jonathan-r-thorpe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jonathan-r-thorpe
jonathan-r-thorpe merged commit 2829c99 into AMWA-TV:master Jul 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants