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.