From 3d213e18b8a4138704bb538acb7ddcc0a46aa7bf Mon Sep 17 00:00:00 2001 From: Evert Pot Date: Wed, 24 Jan 2024 17:19:59 -0500 Subject: [PATCH] Remove node-fetch --- changelog.md | 7 +++++++ src/util.ts | 4 ---- util/fetch-link-relation-data.mjs | 1 - 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/changelog.md b/changelog.md index cad96d1..504d180 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,13 @@ Changelog ========= +1.1.0 (????-??-??) +------------------ + +* Add color for HTTP QUERY methods. +* Remove node-fetch dependency. + + 1.0.3 (2024-01-15) ------------------ diff --git a/src/util.ts b/src/util.ts index a31a240..e731ed8 100644 --- a/src/util.ts +++ b/src/util.ts @@ -8,10 +8,6 @@ import { } from './types.js'; import { State, Client } from 'ketting'; import { Context } from '@curveball/kernel'; -import * as nodeFetch from 'node-fetch'; - -// @ts-expect-error Signatures aren't 100% identical -if (!global.Request) global.Request = nodeFetch.Request; /** * Returns the list of links for a section. diff --git a/util/fetch-link-relation-data.mjs b/util/fetch-link-relation-data.mjs index 0bd8add..04e81b2 100644 --- a/util/fetch-link-relation-data.mjs +++ b/util/fetch-link-relation-data.mjs @@ -1,5 +1,4 @@ import { JSDOM } from 'jsdom'; -import fetch from 'node-fetch'; import { writeFileSync } from 'node:fs'; const response = await fetch('https://www.iana.org/assignments/link-relations/link-relations.xml');