From fbc20dc18e82a7c558408b297256bba3402957e6 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Tue, 21 Dec 2021 09:15:16 +0100 Subject: [PATCH] ADR: Use node-fetch for data fetching Signed-off-by: Johan Haals --- .../adr013-use-node-fetch.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/architecture-decisions/adr013-use-node-fetch.md diff --git a/docs/architecture-decisions/adr013-use-node-fetch.md b/docs/architecture-decisions/adr013-use-node-fetch.md new file mode 100644 index 0000000000..8a6f61545d --- /dev/null +++ b/docs/architecture-decisions/adr013-use-node-fetch.md @@ -0,0 +1,22 @@ +--- +id: adrs-adr013 +title: 'ADR013: Use node-fetch for data fetching' +description: Architecture Decision Record (ADR) for HTTP data fetching packages +--- + +## Context + +Using multiple HTTP packages for data fetching increases the complexity and the +support burden of keeping said package up to date. + +## Decision + +Node packages should use the `node-fetch` package for HTTP data fetching. +Isomorphic packages should use the `cross-fetch` as a development dependency and +rely on the built-in `fetch` API. + +## Consequences + +We will gradually transition away from third party packages such as `axios`, +`got` and others. Once we have transitioned to `node-fetch` we will add lint +rules to enforce this decision.