Replace dependencies where possible #14

Merged
mcataford merged 3 commits from refactor/replace-deps-where-possible into main 2021-08-02 04:52:01 +00:00
mcataford commented 2021-08-02 04:38:51 +00:00 (Migrated from github.com)

axios and md5 were underused and not really pulling their weight when considering the weight they add to the bundle.

  • Replaces axios with fetch. Browser compat should not be a problem for what is being used here.
  • Replaces md5 with some text subs. It's only used for keying local storage, hashing doesn't bring more value than just using the URL itself as a key (as opposed to md5(url)).

Consequence

The local storage keying is changing, which will invalidate existing caches.

`axios` and `md5` were underused and not really pulling their weight when considering the weight they add to the bundle. - Replaces `axios` with `fetch`. [Browser compat](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API#browser_compatibility) should not be a problem for what is being used here. - Replaces `md5` with some text subs. It's only used for keying local storage, hashing doesn't bring more value than just using the URL itself as a key (as opposed to `md5(url)`). ## Consequence The local storage keying is changing, which will invalidate existing caches.
github-actions[bot] commented 2021-08-02 04:42:49 +00:00 (Migrated from github.com)

👀 Branch deployed at Website Draft URL: https://610777c7c714da60dae6f3ca--sleepy-shaw-d8efec.netlify.app

:eyes: Branch deployed at Website Draft URL: https://610777c7c714da60dae6f3ca--sleepy-shaw-d8efec.netlify.app
github-actions[bot] commented 2021-08-02 04:51:25 +00:00 (Migrated from github.com)

👀 Branch deployed at Website Draft URL: https://610779caa18b5b9e95c83c3d--sleepy-shaw-d8efec.netlify.app

:eyes: Branch deployed at Website Draft URL: https://610779caa18b5b9e95c83c3d--sleepy-shaw-d8efec.netlify.app
Sign in to join this conversation.
No description provided.